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 f2d4d84 commit 01c9e45
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 @@ -23,6 +23,7 @@ func (k msgServer) WithdrawEmission(goCtx context.Context, msg *types.MsgWithdra
if err != nil {
return nil, errorsmod.Wrap(types.ErrInvalidAddress, err.Error())
}

// check if the undistributed rewards pool has enough balance to process this request.
// This is just a preliminary check, the actual processing at endblock might still fail if the pool balance gets affected.
undistributedRewardsBalance := k.GetBankKeeper().GetBalance(ctx, types.UndistributedObserverRewardsPoolAddress, config.BaseDenom)
Expand Down

0 comments on commit 01c9e45

Please sign in to comment.