When the difference between the Chainlink price and the Uniswap price is too large, the wsteth/eth price is set to 0
From above code, we can see when the difference between the Chainlink price and the Uniswap price is less than MAX_DIFFERENCE
, wstethEthPrice
will have a value. But if the difference is too large (1%), wstethEthPrice
will get 0 as default.
The wstethEthPrice will be 0 if the difference between the Chainlink price and the Uniswap price is too large.
manual
Add revert.
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.