Skip to content

Commit

Permalink
Update x/emissions/keeper/msg_server_withdraw_emissions.go
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Bertrand <[email protected]>
  • Loading branch information
kingpinXD and lumtis authored Mar 4, 2024
1 parent a17d678 commit 8f7d96a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x/emissions/keeper/msg_server_withdraw_emissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func (k msgServer) WithdrawEmission(goCtx context.Context, msg *types.MsgWithdra
if err != nil {
return nil, errorsmod.Wrap(types.ErrUnableToWithdrawEmissions, fmt.Sprintf("error while removing withdrawable emission for address %s : %s", msg.Creator, err))
}

err = k.GetBankKeeper().SendCoinsFromModuleToAccount(ctx, types.UndistributedObserverRewardsPool, address, sdk.NewCoins(sdk.NewCoin(config.BaseDenom, msg.Amount)))
if err != nil {
ctx.Logger().Error(fmt.Sprintf("Error while processing withdraw of emission to adresss %s for amount %s : err %s", address, msg.Amount, err))
Expand Down

0 comments on commit 8f7d96a

Please sign in to comment.