When calculating the price of WSETH, the protocol utilizes the wrong price ETH/USD
to return the price.
ETH
has a USD value greater than STETH
.
Reference:
https://data.chain.link/feeds/ethereum/mainnet/steth-usd
https://data.chain.link/feeds/ethereum/mainnet/eth-usd
https://data.chain.link/feeds/ethereum/mainnet/steth-eth
LibWstethUsdOracle
-> getWstethUsdPrice
Protocol will always return a wrong and greater price in assets than it should.
This will impact all features that use the Oracle price like Fertilizer, LibWell, Sop calculation, etc.
Manual Review
The correct price feed to be used when converting the WSETH price to USD should be from the STETH/USD
.
https://data.chain.link/feeds/ethereum/mainnet/steth-usd
Create a lib similar to LibEthUsdOracle
(or refactor it and include another function for stETH/USD price) and then use the STETH/USD
price feed.
On the getWstethUsdPrice
use the new lib to convert the price using the correct feed.
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.