From e68162b4074ef9c58cc318bc3e49612f584014b2 Mon Sep 17 00:00:00 2001 From: Cosmic Vagabond <121588426+cosmic-vagabond@users.noreply.github.com> Date: Fri, 9 Feb 2024 05:08:15 +0100 Subject: [PATCH] fix: error messages are info instead --- scripts/upgrade-assure/update-genesis.go | 2 +- x/perpetual/keeper/begin_blocker_process_mtp.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade-assure/update-genesis.go b/scripts/upgrade-assure/update-genesis.go index 37fe4151f..87d1fbc82 100644 --- a/scripts/upgrade-assure/update-genesis.go +++ b/scripts/upgrade-assure/update-genesis.go @@ -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" diff --git a/x/perpetual/keeper/begin_blocker_process_mtp.go b/x/perpetual/keeper/begin_blocker_process_mtp.go index e91a478b8..09f5a3e95 100644 --- a/x/perpetual/keeper/begin_blocker_process_mtp.go +++ b/x/perpetual/keeper/begin_blocker_process_mtp.go @@ -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) @@ -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