From 8f7d96ad95d163feccfd7193c08565dbda3e43d9 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Mon, 4 Mar 2024 18:14:02 -0500 Subject: [PATCH] Update x/emissions/keeper/msg_server_withdraw_emissions.go Co-authored-by: Lucas Bertrand --- x/emissions/keeper/msg_server_withdraw_emissions.go | 1 + 1 file changed, 1 insertion(+) diff --git a/x/emissions/keeper/msg_server_withdraw_emissions.go b/x/emissions/keeper/msg_server_withdraw_emissions.go index 69919f6d0c..74a6f59239 100644 --- a/x/emissions/keeper/msg_server_withdraw_emissions.go +++ b/x/emissions/keeper/msg_server_withdraw_emissions.go @@ -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))