The protocol assumes that all Chainlink price feeds mapping a coin to USD have exactly 8 decimals, but this is not always the case. For example, the PEPE price feed on Arbitrum has 18 decimals, which could lead to incorrect price calculations.
Currently, all supported tokens have 8-decimal price feeds, so the issue does not immediately impact the protocol. However, as new tokens with different decimal configurations are added, this assumption may cause calculation errors or incorrect asset valuations.
The system expects all price feeds to have 8 decimals, leading to miscalculations if a feed has a different decimal count.
Incorrect Pricing: The system may misinterpret price feed data, leading to incorrect token valuations.
Manual Review
Fetch Decimals Dynamically: Retrieve the correct decimal count using Chainlink’s decimals() function instead of assuming it is always 8.
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.