Since there's no function or logic in the Steaking
contract to lock the deposited funds for sometime, users can withdraw their deposits almost immediately without waiting. with this vulnerability, there may be no liquidity
for the protocol.
according to the docs, Steak wants to bootstrap liquidity for its ERC4626 WETH vault and reward early adopters
. However, if all stakers withdraw their ETH
immediately after they deposited, then the proptocol will end up with no liquidity
and thus the main goal is defeated
no liquidity for the protocol
manual review
foundry test
reviewing of ERC4626
Write a special contract for the WethVault
contract, and in this vault contract, write withdraw
and redeem
functions to override the ERC4626::withdraw
and ERC4626::redeeem
functions respectively. in the vault contract set the duration for which the deposited ETH
should be locked in the vault and the withdraw
and redeem
functions should always check if lock
period is over
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.