Skip to content

Commit

Permalink
refactor: remove unused condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tuantran1702 committed Jan 16, 2024
1 parent a454e54 commit 481e937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/bank/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (k Keeper) BurnCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins)
burnAmts := sdk.Coins{}
for _, amt := range amounts {
// Send to community pool if denom is acudos, if cudosAdmin ignore, else burn
if k.dkSet && amt.Denom == sendToCommunityDenom {
if amt.Denom == sendToCommunityDenom {
if err := k.dk.FundCommunityPool(ctx, sdk.NewCoins(amt), k.ak.GetModuleAddress(moduleName)); err != nil {
return err
}
Expand Down

0 comments on commit 481e937

Please sign in to comment.