`totalEarnings` is incorrect when withdrawing after ending which will withdraw too many funds leaving the `Vault` insolvent
The protocol fee is stored as a flat ETH amount rather than in stETH shares, so when the stETH share price rises, the fee is undervalued and total earnings are overstated. This lets early withdrawers take more than their fair share, potentially leaving the vault insolvent for later users.
Saffron Lido Vaults
High