| SIP | 0095 |
|---|---|
| Title | Staking Recovery — Sweep of the Attacker's Staked SOV |
| Author | Tyrone Johnson (@tjcloa) |
| Status | Ready for vote |
| Track | Contract |
| Created | 2026-09-21 |
In September 2026 the Sovryn DEX on BOB was exploited. The attacker converted part of the proceeds into SOV, staked it on Rootstock at the maximum lock, and used the resulting voting power to attempt a second and far more serious attack: a hostile takeover of Sovryn Protocol itself through Bitocracy.
That second attack has failed. SIP-0056 on the owner governor is Defeated on chain. It was never queued and can never be queued for execution and executed.
The attacker's SOV is still staked, and it is still voting. This proposal takes it.
SIP-0095 installs a single-purpose recovery module on the Staking contract, uses it to move the SOV staked by the attacker's addresses to the Exchequer multisig, returns the SOV that was staked to secure the vote, and removes the module again — all in one transaction. The recovered SOV is held by the Exchequer for the subsequent compensation of those harmed by the DEX exploit. The distribution mechanism is not part of this proposal.
This proposal does one thing. It is a recovery, and nothing else rides along with it: no parameter changes, no unrelated upgrades, and no redeployment of anything already live. The entire change to the protocol's code is one new file, installed and removed inside the same transaction.
The Sovryn DEX on BOB was exploited. The DEX is under Emergency Halt, which stops dispatch to every callpath on the exchange. The full accounting of that exploit — root cause, the exact pools and amounts affected, and the patch — is still being calculated and is not part of this proposal. It will be published separately. Nothing in SIP-0095 depends on that accounting being complete, and nothing in SIP-0095 restarts the DEX.
What matters here is what the attacker did next. Rather than exit with the proceeds, they bought SOV, staked it at the maximum lock, and created SIP-0056 on the owner governor — a proposal which, had it executed, would have handed them control of the protocol.
Bitocracy voted SIP-0056 down: it fell short of the supermajority the owner governor requires, and it is recorded on chain as Defeated. It can never be queued or executed.
And the protocol was contained. Staking on Rootstock was frozen and paused, closing every path by which staked tokens can leave. That containment is still in force, and it must stay in force until this proposal executes. The reason is set out under Why staking cannot reopen first.
The recovery is carried out by a single-purpose module, StakingRecoveryModule, added to the Staking contract's module set. Its design follows a small number of strict principles, each chosen so that the power it grants is as narrow and as short-lived as it can be.
It is hard-wired, not configurable. Every address it can act on is fixed in the code at compile time: the attacker's addresses, the account holding the stake placed to secure the vote, and the Exchequer as the sole destination. The functions take no address arguments. The module cannot be pointed at any other staker, and it cannot send tokens anywhere but the Exchequer — not by the owner, not by anyone.
It can only be called by governance. Both functions are restricted to the owner of the Staking contract, which is the owner timelock. In practice that means they can be invoked only by an executing governance proposal that Bitocracy has already approved — never by an individual, a multisig, or the attacker.
It exists for one transaction. The proposal installs the module, uses it, and removes it in the same atomic transaction. The capability to move these positions does not exist before the proposal executes and does not exist after. If any step fails, the whole transaction reverts and nothing changes.
It holds no state of its own. The module adds no storage. It cannot alter the Staking contract's storage layout, cannot corrupt existing balances or checkpoints, and cannot be left in a half-finished condition.
It takes only what was staked by the account in question. It moves each account's own staked balance and nothing else. Voting power that other stakers delegated to those addresses belongs to them and is left untouched and re-delegatable. It writes exactly the same accounting a normal withdrawal writes, so protocol totals and every other staker's position and history stay consistent. Vesting positions are refused outright.
It is salvage, not slashing. No early-unstaking penalty is applied. The full staked amount is returned to the protocol for the benefit of the exploit's victims, rather than a portion being diverted into fee sharing.
The one thing that must hold true at execution is that the attacker's stake has not moved. That is exactly what the ongoing freeze guarantees: while staking is frozen and paused, the attacker's positions cannot be topped up, withdrawn, or shifted to another lock date, so what the module is compiled to recover is what is there when it runs.
Because the attacker still holds voting power, the recovery is backed by enough additional voting weight that it cannot be voted down. That weight is a temporary loan, not an issuance — nothing is minted — and returning it is one of the proposal's own actions, so once SIP-0095 executes the lent weight is given back in full and Bitocracy's balance of power returns to where it was.
Staking must stay frozen until this proposal executes. This is the most costly part of the plan and it is worth stating plainly, because honest stakers are bearing it.
If staking reopens before the sweep, the attacker withdraws. They pay the early-unstaking penalty and keep the larger part of the stake, and the penalty goes to fee sharing rather than to the treasury, so it reaches the exploit's victims not at all. Reopening early therefore does not recover a reduced amount — it converts a full recovery into a permanent loss, in exchange for a few days of convenience.
The cost of holding the line is that honest stakers cannot unstake either, for a handful of days while the proposal runs its course. There is no way to spare them, and this proposal does not try.
A narrow brake — the ability to stop withdrawals while leaving ordinary staking and delegation working — is what the protocol actually lacked during this incident, and it was drafted alongside this recovery. It has deliberately not been included here. The existing pause model turned out to be internally inconsistent in ways that only became clear while building it. Layering a third pause concept onto that, under incident time pressure, in the proposal that releases the recovered funds, was judged the wrong risk to take. The unified replacement is in the backlog and will come to Bitocracy as its own proposal, on its own merits, with its own review.
No deployed contract is modified, replaced, or redeployed. The entire change is one new file, StakingRecoveryModule, which the proposal registers on the Staking contract, calls twice, and deregisters again — all inside the same atomic transaction. The Staking contract's own logic, its storage layout, and every other module are untouched, and once the proposal has executed the protocol's live code is exactly what it is today.
- Existing contract: Staking,
0x5684a06CaB22Db16d901fEe2A5C081b4C91eA40e— unchanged. - New contract: StakingRecoveryModule,
0x33bE65cc9865eF26C8997358c9705D31E6C7B4ef— installed and removed in the same transaction. - PR: DistributedCollective/Sovryn-smart-contracts#583
SIP-0095 is a single proposal on the owner governor carrying four actions, executed atomically:
1. Install the recovery module. Registers StakingRecoveryModule, described above.
2. Sweep the attacker's stake. recoverAttackerStake() moves the full staked balance of both attacker addresses to the Exchequer in a single transfer. Both are swept in one call, so the encoding cannot leave one behind, and it still succeeds if one has already been emptied. It takes no arguments.
3. Return the securing stake. recoverGuardiansStake(until) returns the SOV that was staked to secure the vote to the Exchequer. Its lock date is the proposal's only parameter, read from chain when the proposal is built.
4. Remove the recovery module. The module is deregistered in the same transaction that installed it. After execution, the capability no longer exists on the Staking contract.
The recovered SOV is held by the Exchequer multisig, 0x924f5ad34698Fd20c90Fe5D5A8A0abd3b42dc711, earmarked for compensating the damage caused by the DEX exploit.
The distribution mechanism is deliberately not part of this proposal. The exploit's accounting is still being calculated, and the sweep should not wait for it. Recovering the funds is urgent; allocating them is not, and allocating them badly would be worse than allocating them slowly. Distribution will come back to Bitocracy as its own proposal once the loss is quantified.
Copyright and related rights waived via CC0.