Submitted by 0xStalin, also found by ladboy233 (1, 2)
Users cant repay their debts if the OmniPool contract is paused which can cause users to fall into liquidation and lose their collateral
The OmniPool::repay() function has implemented the whenNotPaused modifier, which will prevent the function from being used if the contract is paused. The problem is that the usage of this function should not be prevented because if users are unable to repay their debts, their accounts can fall into liquidation status while the OmniPool contract is paused, and once the contract is unpaused, and liquidations are enabled too, if the account felt into liquidation status, now the users and liquidators will be in a mev run to either repay the debt or liquidate the collateral.
This presents an unnecessary risk to users by preventing them from repaying their debts.
The mitigation is very straight forward, dont disable the borrowers repayments, and dont interrupt the repayments. Remove the whenNotPaused modifier:
allenjlee (BetaFinance) confirmed and commented:
cccz (Judge) commented:
