code-423n4 / 2024-03-dittoeth-findings

0 stars 0 forks source link

Risky debt accumulates, threatens system stability, solvency. || Timely liquidation hindered, unhealthy positions persist, system risks. #227

Closed c4-bot-10 closed 5 months ago

c4-bot-10 commented 5 months ago

Lines of code

https://github.com/code-423n4/2024-03-dittoeth/blob/91faf46078bb6fe8ce9f55bcb717e5d2d302d22e/contracts/facets/PrimaryLiquidationFacet.sol#L47-L90

Vulnerability details

Impact

Description

Vulnerability Details

  • When minShortErc is set too low, liquidators may not be motivated to liquidate ShortRecords with low ercDebt due to insufficient incentives. This can result in a concentration of risky debt that is not being adequately managed.
  • When minShortErc is set too high, ShortRecords with ercDebt below the high threshold may not be eligible for liquidation, even if they are risky. This can hinder the timely liquidation of unhealthy positions and lead to a buildup of risky debt in the system.

Tools Used

Manual Review

Recommended Mitigation Steps

Consider introducing additional incentives or mechanisms to encourage liquidators to actively manage risky positions, even if the ercDebt is relatively low.

By carefully setting and managing the minShortErc parameter, the system can ensure that liquidators are properly incentivized to liquidate risky debt and that the overall health and stability of the system are maintained.

Assessed type

Governance

c4-pre-sort commented 5 months ago

raymondfam marked the issue as insufficient quality report

c4-pre-sort commented 5 months ago

raymondfam marked the issue as duplicate of #261

raymondfam commented 5 months ago

System parameters are settable by owner, and may change before launch.

c4-judge commented 4 months ago

hansfriese marked the issue as unsatisfactory: Insufficient proof