Skip to content

Fix rebate transfer and timeout refund edge cases#955

Open
mswilkison wants to merge 2 commits intofeature/evm-l2-fee-waiversfrom
pr-952-review-fixes
Open

Fix rebate transfer and timeout refund edge cases#955
mswilkison wants to merge 2 commits intofeature/evm-l2-fee-waiversfrom
pr-952-review-fixes

Conversation

@mswilkison
Copy link
Copy Markdown

Summary

  • drop stale rebates during forceStakeTransfer even when the old staker rolling-window index was not lazily advanced
  • clear EVM source-chain sender metadata when an allowed sender is revoked through the legacy updater
  • bind L2 timeout refund records to the Bridge redemption requestedAt timestamp so stale refund records cannot match later same-key redemptions

Testing

  • npm run lint:sol
  • npm run test -- test/cross-chain/wormhole/L1BTCRedeemerWormhole.test.ts
  • npm run test -- --grep "forceStakeTransfer"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants