| SIP | 0096 |
|---|---|
| Title | Perimeter Withdrawal Delay (continuation of SIP-0094) |
| Author | Edan Yago (@YagoBit) |
| Status | Approved |
| Track | Contract |
| Created | 2026-09-07 |
SIP-0096 completes the withdrawal protection introduced as phase 2 of the Perimeter programme in SIP-0094. It adds a configurable delay to covered user withdrawals so suspicious exits can be reviewed before funds leave the protocol. Covered withdrawals are held in an exit delay queue and can be claimed by their recorded recipient after the delay. The queue also supports pausing claims, blocking addresses, and bounded recovery of funds in confirmed incidents.
The proposal updates the lending and Zero withdrawal paths and adds the queue and its controller logic. It is submitted in two GovernorOwner proposals to fit the governor's ten-action limit: Part 1 has nine actions for lending; Part 2 has five actions for Zero. The delay remains off until installation and activation gates pass.
Without a delay, a withdrawal can leave the protocol in the same transaction in which an exploit begins. Escrowing covered exits creates time to identify and respond to an attack. Users will need to initiate a withdrawal and claim it after its unlock time, adding a delay and a second transaction to the withdrawal experience.
Register LoanTokenLogicLM and LoanTokenLogicWrbtcLM on their two beacons; install LoanClosingsWith, LoanClosingsWithSwap, LoanMaintenance, LoanMaintenanceViews, and ExitFeeModule; then set the borrower settlement companion and queue pointers. These nine actions apply the configured delay to covered user exits, including iToken redemptions, borrower collateral withdrawals, and loan-close payouts.
The FeeSharingCollector upgrade is separate from Part 1. Before Part 1 executes, apply and read back the Collector's paired zero-fee and delay-bypass exemptions. After Part 1 installs the two-return iWRBTC redemption module, the Exchequer multisig upgrades the existing Collector proxy with the no-argument implementation. The proxy's existing protocol and staking pointers remain intact; it is not initialized again. The SIP-0094 fee stays enabled, and the new delay stays off until installation and activation gates pass.
Forced settlement paths such as liquidation and rollover remain direct and are not delayed. Read-only queries, collateral deposits, and maintenance actions that do not pay out a covered user exit are unchanged.
Update the Zero borrower withdrawal and collateral-surplus paths to apply the same delay and queue behavior. Update CollSurplusPool first, then BorrowerOperations, BorrowerOperationsPerimeterOps, and TroveManager, including the Recovery Mode correction, and connect borrower exits to the queue. Redemptions and other forced settlement paths remain direct and are not delayed.
For a covered exit while the delay is enabled, the net user payout is recorded in the queue with a fixed recipient and unlock time. After unlock, the recorded eligible parties can claim it. Anyone may deliver an unlocked, unblocked contract-owned request, but payment can go only to its immutable recorded receiver; the caller cannot redirect it. This is ordinary delivery, not guardian resolution. Authorized incident controls can pause claims or block addresses; recovery is limited to the queue's configured routes and request conditions. Disabling the delay stops new holds but does not alter withdrawals already queued. The delay control is independent of SIP-0094's fee control.
The delay applies only to configured exit surfaces. Fees continue to follow SIP-0094. This proposal does not authorize a treasury transfer.
Update the Sovryn dapp to show the delay and unlock time on covered withdrawals, and to let users view and claim their queued withdrawals after unlock.
The controller is the existing Perimeter controller proxy. The addresses below are the deployed mainnet contracts.
| Contract | Address |
|---|---|
| ExitFeeController proxy (delay controller) | 0x99994b4522483de17f31a5bc010c5901add3440e |
| FeeSharingCollector proxy | 0x115cAF168c51eD15ec535727F64684D33B7b08D1 |
| CollSurplusPool proxy | 0x310ec7Fe6e4943DA773De8948255E37CC45e34bb |
| BorrowerOperations proxy | 0x5B9dB4B8bdeF3e57323187a9AC2639C5DEe5FD39 |
| ExitDelayQueue proxy | 0x6A281FCB0838F7a75f93d678000cb0E57ed8Dc45 |
| Lending implementation modules and FeeSharingCollector implementation | LoanTokenLogicLM 0xeD1761D4Ef713f274555Fb7C956Ca088Bf4Ae236; LoanTokenLogicWrbtcLM 0x4315C5b88F3B5be824B1aac8CD2B12b7C1C01316; BorrowerExitPerimeterOps 0x61f1955F54f8DE6858A752f3445309889c03c441; LoanClosingsWith 0xd0661123b5F3E3d43E61c06385657ca503d71b8d; LoanClosingsWithSwap 0x1d38628B6746b6b8097A380D8a17aa7111855cf3; ExitFeeModule 0xb6474794e1ed9e0CF3EA8511aEcfA8e9462Ef1F4; LoanMaintenance 0x4abAbF0a00C3F809CC0D6C1A2E13f8A9dfa8bf43; LoanMaintenanceViews 0x1c07317fFF655b1ff0083C0460c45A8b556bc14e; FeeSharingCollector implementation 0xcCB75e444f4808012A57Eb2Db06648249f370D2f |
| Zero implementation modules | BorrowerOperations implementation 0x8d69F344c051a73671Aef27D7695dF52C0bD7f7e; TroveManager implementation 0x57219Dd6c9e869750c23e4043C62562dc6Fd1EC4; CollSurplusPool implementation 0xDf0391a2bE429091D878a09753fCD3eB04C32149; BorrowerOperationsPerimeterOps 0x3dCecd9c0524bBA3990DCB403601Ee5Ea1136bf8 |
All staged implementations are source-verified. The controller implementation and the eleven other modules are verified on Rootstock Blockscout. The Zero BorrowerOperations and TroveManager implementations carry a constructor-set Permit2 immutable that the Blockscout verifier currently fails to match; both are instead exact-match verified on Sourcify — creation and runtime bytecode — (match IDs 56004603 and 56004786, no account required) and publicly verified on Tenderly (viewable with any Tenderly account: BorrowerOperations, TroveManager).
- SIP-0094 — Perimeter Fee
- Core contracts: Sovryn-perimeter PR #1
- Lending: Sovryn-smart-contracts PR #582
- Zero: zero-contracts PR #11
- Frontend: Sovryn dapp delay update — PR #1152 (
perimeter-production-only→develop).
Copyright and related rights waived via CC0.