Open hats-bug-reporter[bot] opened 1 year ago
In case validator's full balance is slashed, every share in the vault will be worth much less ETH. The liquidator has to wait for the share price to be updated and ETH land back to the vault to execute the liquidation.
Github username: @JeffCX Submission hash (on-chain): 0x3a60d8941d78311d9f5fa154b75502db73d94e823f42865e221f5e1578b61716 Severity: medium
Description: Description\
Fund can be locked if the validator get slashed
Attack Scenario\
When a new vault is deployed, the deployer can set a capacity,
the capacity needs to be more than 32 ETH
if there are more than 32 ETH in the vault
validator can be registered and 32 ETH is deposited into beachain
but if the validator get slashed,
the build-in liquidation mechanism is not sufficient to protect user from locking their fund
https://docs-v3.stakewise.io/protocol-overview-in-depth/oseth#peg-stability
but the slashing in theory can slash all the validatar staked balance, which is user's fund
https://ethereum.org/en/developers/docs/consensus-mechanisms/pos/rewards-and-penalties/#slashing
because in the case of slashing and if the validator cannot return the 32 ETH back or a few validator cannot return their 32 ETH back to the pool
liqudation and redemption is likely to revert in this check
because there are just not enough withdrawableAssets() left for user
Attachments
Described above