Emergency Operations and Recovery
emergency_pause(...)
, resume_after_emergency(...)
, emergency_withdraw(...)
Purpose: Protect liquidity and user funds in case of bugs, exploits, or other unforeseen issues.
Process:
Temporarily deactivate trading or liquidity changes.
Allow the pool owner to remove NFTs and tokens if necessary to prevent losses.
Ensure these operations are restricted to authorized addresses and subject to cooldowns.
Use Cases:
Responding to a smart contract vulnerability or market anomaly.
Providing user confidence in the event of unexpected problems.
Best Practices:
Use emergency features sparingly and transparently.
Communicate with users when pausing and resuming pool activities.
Last updated