Emergency situations
During the operation of the protocol, various emergency situations may arise. For example, these could be:
A bug in the smart contract.
A MAJOR trigger was activated.
An exploit.
In such situations, the owner of DEFII calls emergencyExit(), after which the liquidity is withdrawn from the third-party protocol to the DEFII contract.
To exit from DEFII, the user simply needs to call the withdrawFundsAfterEmergencySituation() function in the LocalDefii or RemoteDefiiAgent contract, and the funds from DEFII will be sent directly to the user's wallet.
Last updated