Skip to content

ENG-515: add rescue bank feat#920

Open
RobertoMSousa wants to merge 1 commit intothreshold-network:mainfrom
RobertoMSousa:rescue_bank
Open

ENG-515: add rescue bank feat#920
RobertoMSousa wants to merge 1 commit intothreshold-network:mainfrom
RobertoMSousa:rescue_bank

Conversation

@RobertoMSousa
Copy link

@RobertoMSousa RobertoMSousa commented Dec 15, 2025

When a cross-chain redemption fails on L1 (for example due to a guardian veto or a timeout), the refunded amount is sent back to the L1BTCRedeemerWormhole contract’s Bank balance. Until now, there was no way to move those funds out again, which meant refunds could get stuck unless we shipped a contract upgrade.

What this PR does

This PR adds a small, controlled escape hatch to handle these cases cleanly:
• Introduces a recoveryAddress dedicated to refund recovery
• Adds setRecoveryAddress(address) (owner-only) with basic safety checks and an event
• Adds rescueBankBalance(address recipient, uint256 amount) (owner-only), which:
• only allows transfers to the configured recoveryAddress
• moves funds using bank.transferBalance
• emits an event for transparency and auditability

LInear link: https://linear.app/tlabz/issue/ENG-515/add-refund-recovery-escape-hatch-to-l1btcredeemerwormhole-bank-balance

@RobertoMSousa RobertoMSousa changed the title feat: add rescue bank feat ENG-515: add rescue bank feat Dec 18, 2025
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.

1 participant