The DEX has a multisig administrator account that is able to perform the governance tasks.
The multisig account can be switched to a different account by the multisig account itself.
Locking and Unlocking the DEX¶
In emergency situations, the multisig has the capability to lock the DEX.
If the DEX is locked, no swaps can be created, traded or dropped. However, all governance functions and withdrawal functions are still intact.
The DEX can be unlocked by the multisig account, which resumes normal operation.
The multisig account has the capability to withdraw the fees from the DEX that have been accumulated through trading.
The multisig account has the capability to withdraw Ether that have been deposited into the DEX by accident.
For example, an NFT may have been minted through an ERC721 with the DEX as beneficiary. Or an amount of ERC20 tokens may have been transferred to the DEX directly.
The multisig account is not able to withdraw Ether that were deposited into the DEX by a user account through the regular swap creation method, make. The contract has an internal counter to protect user owned Ether.