DeFiFoundry
60,000 USDC
View results
Submission Details
Severity: low
Invalid

Don't relay on chainlink min and max answer

Summary

The protocol uses Chainlink Oracle's min and max answer checks to prevent extreme price fluctuations. However, the min answer value is very small and cannot effectively prevent such fluctuations.

Vulnerability Details

let check the limit impose by chainlink aggregator for price of assets supported by Zeros:

// WBTC/USD
maxAnswer : 95780971304118053647396689196894323976171195136475135
minAnswer : 1
// SUSDE/USD
maxAnswer : 95780971304118053647396689196894323976171195136475135
minAnswer : 1
// USDE/USD
maxAnswer : 95780971304118053647396689196894323976171195136475135
minAnswer : 1
// USDT/USD
maxAnswer : 100000000000
minAnswer : 1000000

The price for USDT would be considered valid even if it falls to 0.0000002. For example, during the UST/Luna incident, UST was priced at 35 cents, leading to the largest stablecoin depeg. This demonstrates that the minAnswer alone cannot prevent a depegging event. Therefore, the protocol needs to impose its own limits for each asset to address such scenarios. The same applies to other assets.

Impact

Chainlink aggregator limits cannot prevent massive fluctuations and are also deprecated.

Tools Used

Manual Review

Recommendations

Impose limits on each asset to prevent such conditions.

Updates

Lead Judging Commences

inallhonesty Lead Judge
10 months ago
inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.