Skip to content

Commit

Permalink
fix: SetLatestProcessedRefundSwapKey out of loop
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Jan 3, 2024
1 parent 7338bf8 commit d5fe15b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/tokens/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ func EndBlocker(ctx sdk.Context, timelockKeeper timelock.Keeper, swapKeeper swap
}

logger.Info("succeed to refund swap", "swapId", swapID, "swap", fmt.Sprintf("%+v", swapItem))
swapKeeper.SetLatestProcessedRefundSwapKey(ctx, swapIterator.Key())
lastProcessedRefundSwapKey = swapIterator.Key()
i++
}

swapKeeper.SetLatestProcessedRefundSwapKey(ctx, lastProcessedRefundSwapKey)
}

// EndBreatheBlock processes the breathe block lifecycle event.
Expand Down

0 comments on commit d5fe15b

Please sign in to comment.