r/CryptoTechnology • 🟢 • 6d ago

Should a guardian be able to pause a vault instantly when upgrades need a 48h timelock?

Looking at a design where upgrades go through a 48 hour timelock, but a guardian multisig can pause deposits and withdrawals immediately, and only the DAO can unpause. The idea is that if something is being drained you can't wait two days.

My worry is that the instant pause is now the strongest power in the system. A compromised or coerced guardian can freeze everyone's funds, and the timelock does nothing against that, because pausing isn't an upgrade.

I'm not sure whether the right answer is to cap how long a pause lasts, split pause between deposits and withdrawals, or accept it as the price of reacting fast.

If you hold funds in a protocol like this, which of those would make you trust it more, and is there a setup you've seen that handles it better?

6 Upvotes

8 comments sorted by

1

u/secrypta 🟢 5d ago

The DAO-only unpause is good, but an instant withdrawal freeze is itself a dangerous power one key holds forever. Two fixes: make the pause auto-expire after a few hours (DAO re-pauses if the threat is real), and split it, since pausing deposits is nearly harmless but pausing withdrawals is what traps users. Even better where you can: an automatic outflow cap (percent of TVL per hour) stops a drain without anyone touching a button.

2

u/Bloqarl 🟢 4d ago

the part i'd worry about with auto-expiry is the gap after it runs out, since a DAO vote takes days, not a few hours. that's why the outflow cap appeals to me most: it keeps limiting a drain while nobody can act, and there's no key to steal or coerce.

1

u/secrypta 🟢 4d ago

Agreed, that's the right instinct. No key to steal or coerce, and it keeps limiting the damage even in the window where nobody can act, that's the property that matters most here.

One small thing I'd add on top: a running total alongside the per-hour cap, so a patient attacker sitting just under the limit can't slow-bleed it over the days a vote takes. Cross the cumulative line and the vault halts itself, same spirit, no button to press.

•

u/Usual_Specialist3698 🟢 1h ago

One option I haven't seen here: make the pause asymmetric by destination, not just by direction. While paused, withdrawals still work, but only back to the address that made the deposit, at the share price from the last block before the pause, and still under the outflow cap.

That handles both failure modes people describe. A drain usually needs funds to go somewhere new or needs the share price pushed around, and both are blocked. A coerced or compromised guardian can't trap anyone either, because the worst they can do is force an orderly exit at a known price. The cost lands on users who deposited from an address they'd rather not get funds back to (contracts, custodians using a hot wallet), which is a much smaller harm than a freeze.

Two caveats. If the exploit is in the accounting itself, the snapshot price can already be wrong, so this sits on top of the cap rather than replacing it. And with auto-expiry added, the guardian's power shrinks to "can trigger exit-only mode for N hours", which is something you could reasonably hand to a 2-of-5.