Skip to content

Commit 32fe4d9

Browse files
committed
comments
1 parent 1c4e6c1 commit 32fe4d9

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

simapp/mint_fn.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
minttypes "cosmossdk.io/x/mint/types"
1313
stakingtypes "cosmossdk.io/x/staking/types"
1414

15-
"github.com/cosmos/cosmos-sdk/telemetry"
1615
sdk "github.com/cosmos/cosmos-sdk/types"
1716
)
1817

@@ -111,15 +110,10 @@ func ProvideExampleMintFn(bankKeeper MintBankKeeper) minttypes.MintFn {
111110
// return err
112111
// }
113112

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

119-
if mintedCoin.Amount.IsInt64() {
120-
defer telemetry.ModuleSetGauge(minttypes.ModuleName, float32(mintedCoin.Amount.Int64()), "minted_tokens")
121-
}
122-
123117
return env.EventService.EventManager(ctx).EmitKV(
124118
minttypes.EventTypeMint,
125119
event.NewAttribute(minttypes.AttributeKeyBondedRatio, bondedRatio.String()),

0 commit comments

Comments
 (0)