ChainlinkARBOracle.consultIn18Decimals
function returns wrong price if answer decimals is > 18
The ChainlinkARBOracle.consultIn18Decimals
function extracts the token price from a chainlink price feed and scales it to be retuned in 18 decimals.
But if the returned _decimals
is > 18; this will result in scaling down the price and thus retruning a token price lower than the actual price.
ChainlinkARBOracle.consultIn18Decimals
function will return lower token price if the returned _decimal
> 18.
ChainlinkARBOracle.consultIn18Decimals function
Manual Review.
Update ChainlinkARBOracle.consultIn18Decimals
function to handle prices _decimals
> 18.
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.