From 4b02612272b7dd6d43a5fa0087b74a3f30e19d19 Mon Sep 17 00:00:00 2001 From: Mauro Lacy Date: Thu, 31 Oct 2024 12:07:22 +0400 Subject: [PATCH] Fix / improve comments --- x/babylon/keeper/mint_rewards.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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")