OracleLib.TIMEOUT is hardcoded and can't handle all tokens
DSCEngine contract can have any amount of different tokens as collateral. Price of this tokens are taken from chainlink price feed and is checked inside OracleLib
.
Library check if price is fresh. It uses same timeout for each token, which is incorrect and can't handle all price feeds, as some feeds should be updated often(volatile), while another can be updated rarely(stable).
Such timeout can't work good for all tokens.
VsCode
Owner should have ability to provide timeout for each token separately.
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.