diff --git a/x/babylon/keeper/mint_rewards.go b/x/babylon/keeper/mint_rewards.go index 0d4b79e..eb742d9 100644 --- a/x/babylon/keeper/mint_rewards.go +++ b/x/babylon/keeper/mint_rewards.go @@ -7,10 +7,10 @@ import ( "github.com/cosmos/cosmos-sdk/types/errors" ) -// MintBlockRewards mints new "virtual" bonding tokens and sends them to the staking contract for distribution. -// The amount minted is removed from the SupplyOffset (so that it will become negative), when supported. -// Authorization of the actor/recipient should be handled before entering this method. -// The amount is computed based on the finality inflation rate and the total staking token supply, in the bonded denom +// MintBlockRewards mints new tokens and sends them to the staking contract for distribution. +// Authorization of the actor should be handled before entering this method. +// Authorization of the recipient is being handled within the method for safety, but can +// be removed for flexibility func (k Keeper) MintBlockRewards(pCtx sdk.Context, recipient sdk.AccAddress, amt sdk.Coin) (sdkmath.Int, error) { if amt.Amount.IsNil() || amt.Amount.IsZero() || amt.Amount.IsNegative() { return sdkmath.ZeroInt(), errors.ErrInvalidRequest.Wrap("amount")