There is a precission correction which is hardcoded to 1e10
which might not hold true for all collateral tokens.
DSCEngine uses Chainlink oracles as a pricefeed. To reflect the difference of the used Tokens decimals and it´s corresponding chainlink oracle there is a variable which is multiplied with, when calculating the price.
However, it is hardcoded to 1e10
, which might not be valid for all available Tokens that can be used as collateral.
Wrong Amount of tokens will be calculated.
Manual Review
create a mapping to store a different feed precision per Token.
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.