Protocol assumes feed decimals is 18 at all cases
Not all token has their feed decimals is 8, hence ADDITIONAL_FEED_PRECISION
is immutable and always equal to 1e10
is not correct in every cases.
This can make values of the tokens that have the feed decimals not equal to 8 is not calculated correctly
For example:
If a token X has the feed decimals equal to 18, the value of the token is calculated 1e10 times bigger than its expected value
If a token Y has the feed decimals equal to 2, the value of the token is calculated 1e6 times smaller than its expected value
Because of this, users can mint DSC token more than expected
VSCode
Get decimals from chainlink for each token to calculate ADDITIONAL_FEED_PRECISION
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.