code-423n4 / 2023-08-dopex-findings

3 stars 3 forks source link

Potential insolvency risk in dpxETH stablecoin system due to absence of liquidation mechanism #2190

Closed code423n4 closed 11 months ago

code423n4 commented 1 year ago

Lines of code

https://github.com/code-423n4/2023-08-dopex/blob/eb4d4a201b3a75dd4bddc74a34e9c42c71d0d12f/contracts/core/RdpxV2Core.sol#L1016

Vulnerability details

Impact

The dpxETH stablecoin system, as implemented, relies on user deposits as collateral when the stablecoin is minted through bond purchasing. When the bonding process is done, the protocol mints a corresponding amount of Receipt tokens to the user that he can redeem for rdpxV2ReceiptToken.

Notably, the mechanism lacks a clear liquidation process to address possible collateral devaluation, leading to potential insolvency issues.

A significant devaluation of the collateral without a corresponding liquidation process can create a scenario where the minted stablecoins' volume exceeds the actual vault backing. This mismatch can erode trust in the dpxETH stablecoin's credibility and stability, potentially leading to a loss of funds for users.

Proof of Concept

Tools Used

Manual review.

Recommended Mitigation Steps

Incorporate a incitivized liquidation mechanism or process that adjusts collateral values in real-time, ensuring that the stablecoin always has adequate backing.

Assessed type

Other

c4-pre-sort commented 11 months ago

bytes032 marked the issue as low quality report

bytes032 commented 11 months ago

Invalid

c4-judge commented 11 months ago

GalloDaSballo marked the issue as unsatisfactory: Insufficient proof

GalloDaSballo commented 11 months ago

Needs a paper with math to make this argument