Skip to content

Commit

Permalink
Fix / improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolacy committed Oct 31, 2024
1 parent 31421e1 commit 4b02612
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/babylon/keeper/mint_rewards.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4b02612

Please sign in to comment.