stETH
can be paused, so all transfers and any interactions would revert. Even the migration will revert. In beanstalk case when getWstethEthPrice
is called it calls IWsteth(C.WSTETH).stEthPerToken()
function for getting amount of stETH
for a one wstETH
so this will also revert. Because when stEthPerToken
is called it calls stETH.getPooledEthByShares
from IStETH
. For ref check this code
getWstethEthPrice
which returns the wstETH/ETH
price with the option of using a TWA lookback will always revert.
Migration will also be effected when getTokenPrice
is called in beginBarnRaiseMigration
by oracle LibUsdOracle
.
Add the following check where the stETH
is used, e.g before calling IWsteth(C.WSTETH).stEthPerToken()
add below check so it will nicely revert with a proper message.
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.