Description:
The usage of deprecated Chainlink functions, such as latestRoundData()
, might return stale or incorrect data, affecting the integrity of smart contracts. See here.
Impact:
If the price feed is inaccurate, the value for assetPriceUsd
will be inaccurate, potentially causing overpricing or underpricing of assets, leading to a loss for either the protocol or stakers.
Proof of Concept:
Tools Used:
Manual review
Recommended Mitigation Steps:
Use the latestRoundData
function to retrieve the price. Add checks on the return data with proper revert messages if the price is stale or the round is incomplete. For example:
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.