Skip to content

Commit

Permalink
fix: error messages are info instead
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond committed Feb 9, 2024
1 parent 1425d6e commit e68162b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/upgrade-assure/update-genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func updateGenesis(validatorBalance, homePath, genesisFilePath string) {
"elys1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrqau4f4q",
"elys17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9jfksztgw5uh69wac2pgs98tvuy",
}
genesis.AppState.Clock.Params.ContractGasLimit = "100000000"
genesis.AppState.Clock.Params.ContractGasLimit = "1000000000"

// update broker address
genesis.AppState.Parameter.Params.BrokerAddress = "elys1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrqau4f4q"
Expand Down
4 changes: 2 additions & 2 deletions x/perpetual/keeper/begin_blocker_process_mtp.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func BeginBlockerProcessMTP(ctx sdk.Context, k Keeper, mtp *types.MTP, pool type
// flag position as must force close
mustForceClose = true
} else {
ctx.Logger().Error(errors.Wrap(types.ErrMTPHealthy, "skipping executing force close because mtp is healthy").Error())
ctx.Logger().Info(errors.Wrap(types.ErrMTPHealthy, "skipping executing force close because mtp is healthy").Error())
}

assetPrice, err := k.EstimateSwap(ctx, sdk.NewCoin(mtp.CustodyAsset, sdk.OneInt()), baseCurrency, ammPool)
Expand All @@ -70,7 +70,7 @@ func BeginBlockerProcessMTP(ctx sdk.Context, k Keeper, mtp *types.MTP, pool type
// flag position as must force close
mustForceClose = true
} else {
ctx.Logger().Error(fmt.Sprintf("skipping force close on position %s because take profit price %s <> %s", mtp.String(), mtp.TakeProfitPrice.String(), assetPrice.String()))
ctx.Logger().Info(fmt.Sprintf("skipping force close on position %s because take profit price %s <> %s", mtp.String(), mtp.TakeProfitPrice.String(), assetPrice.String()))
}

// if flag is false, then skip force close
Expand Down

0 comments on commit e68162b

Please sign in to comment.