MooniswapFactoryGovernance
contract has a shutdown function that can be used to pause the contract and prevent any future swaps.
However there is no function to unpause the contract.
There is also no way for the factory contract to redeploy a Mooniswap instance for a given pair of tokens.
Therefore, if a Mooniswap contract is ever shutdown/paused, it will not be possible for that pair of tokens to ever be traded on the Mooniswap platform again, unless a new factory contract is deployed.
Consider providing a way for Mooniswap contracts to be unpaused.
- OpenZeppelin Audit 1inch Finding
- DoS
- Medium Severity
- No Unpause
- Factory Redeployment
- Add Unpause Ability
- Youtube Reference
- Medium Risk severity finding from OpenZeppelin’s Audit of 1inch Liquidity Protocol Audit