Skip to content

Commit

Permalink
fix: get UnbondingSize In Queue
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Jan 2, 2024
1 parent b75f19c commit 8caaf22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/stake/endblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func handleRefundStake(ctx sdk.Context, sideChainPrefix []byte, k keeper.Keeper)
count := 0
boundDenom := k.BondDenom(sideChainCtx)
bscSideChainId := k.ScKeeper.BscSideChainId(ctx)
unBoundingDelegationSize := k.GetUnbondingSizeInQueue(sideChainCtx, ctx.BlockHeader().Time)
unBoundingDelegationSize := k.GetUnbondingSizeInQueue(sideChainCtx, ctx.BlockHeader().Time.Add(k.UnbondingTime(ctx)))
if unBoundingDelegationSize >= maxUnboundPerDay {
ctx.Logger().Info("unBoundingDelegation exceed the maxUnboundPerDay")
return refundEvents
Expand Down

0 comments on commit 8caaf22

Please sign in to comment.