The problem here was that liquidator reward calculations for underwater positions deviated from the economic model outlined in the protocol docs.
According to docs liquidation fee for underwater positions is 10% of the debt, however the V3Vault.sol calculated the liquidation fee as 10% of the collateral value left in the position rather than 10% of the debt. Since the collateral value is lower than the debt, this reduces the incentive for liquidators
Mitigation
PR-7 successfully mitigates the original issue by updating the liquidation fee to be calculated from the debt, instead of the collateral value left.
Lines of code
Vulnerability details
C4 Issue
M-24: Incorrect liquidation fee calculation during underwater liquidation...
Issue Details
The problem here was that liquidator reward calculations for underwater positions deviated from the economic model outlined in the protocol docs.
According to docs liquidation fee for underwater positions is 10% of the debt, however the
V3Vault.sol
calculated the liquidation fee as 10% of the collateral value left in the position rather than 10% of the debt. Since the collateral value is lower than the debt, this reduces the incentive for liquidatorsMitigation
PR-7 successfully mitigates the original issue by updating the liquidation fee to be calculated from the debt, instead of the collateral value left.
Conclusion
Mitigation Confirmed