implement stringent parameter validations within the constructor of a contract
Assure Order Correspondence
Validate Chainlink Price Feed Existence
There should add
Assure Order Correspondence: Confirm that the order of tokenAddresses and priceFeedAddresses corresponds correctly. Misalignment or discrepancy between these two arrays can lead to improper mapping of tokens to their respective price feeds, potentially compromising the accuracy and reliability of your contract's financial computations.
Validate Chainlink Price Feed Existence: Prior to utilizing a token within the contract, assert that the tokenAddress is associated with a valid Chainlink price feed.
compromising the accuracy and reliability of your contract's financial computations. Let the invariant fail.
manually reviewed
Solution 1: use chainlink Feed Registry API, get the price feed by using this method
Solution 2: call the OracleLib.staleCheckLatestRoundData
in the contractor, and check if all price feed works and has returned the right value, if not revert the transaction.
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.