From ef79aefe46c794cc8635ee6e26cb68e7724cbdbd Mon Sep 17 00:00:00 2001 From: oren-lava Date: Wed, 6 Mar 2024 12:33:43 +0200 Subject: [PATCH] CNS-869: fix min iprpc cost charge bug --- x/rewards/keeper/iprpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/rewards/keeper/iprpc.go b/x/rewards/keeper/iprpc.go index 12006885a9..00c790d2b7 100644 --- a/x/rewards/keeper/iprpc.go +++ b/x/rewards/keeper/iprpc.go @@ -41,7 +41,7 @@ func (k Keeper) FundIprpc(ctx sdk.Context, creator string, duration uint64, fund utils.LogAttr("min_iprpc_fund_cost", minIprpcFundCost.String()), ) } - fund = fund.Sub(minIprpcFundCostCoins...) + fund = fund.Sub(minIprpcFundCost) // send the funds to the iprpc pool err = k.bankKeeper.SendCoinsFromAccountToModule(ctx, addr, string(types.IprpcPoolName), fund)