Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Jun 3, 2024
1 parent 1c4e6c1 commit 32fe4d9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions simapp/mint_fn.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
minttypes "cosmossdk.io/x/mint/types"
stakingtypes "cosmossdk.io/x/staking/types"

"github.com/cosmos/cosmos-sdk/telemetry"
sdk "github.com/cosmos/cosmos-sdk/types"
)

Expand Down Expand Up @@ -111,15 +110,10 @@ func ProvideExampleMintFn(bankKeeper MintBankKeeper) minttypes.MintFn {
// return err
// }

// TODO: figure how to get FeeCollectorName from mint module without generating a cyclic dependency
if err = bankKeeper.SendCoinsFromModuleToModule(ctx, minttypes.ModuleName, authtypes.FeeCollectorName, mintedCoins); err != nil {
return err
}

if mintedCoin.Amount.IsInt64() {
defer telemetry.ModuleSetGauge(minttypes.ModuleName, float32(mintedCoin.Amount.Int64()), "minted_tokens")
}

return env.EventService.EventManager(ctx).EmitKV(
minttypes.EventTypeMint,
event.NewAttribute(minttypes.AttributeKeyBondedRatio, bondedRatio.String()),
Expand Down

0 comments on commit 32fe4d9

Please sign in to comment.