The unstaking process explained
Staking on Solana is subject to a cooldown period. When a stake account is delegated, the stake account has to be deactivated first. Then, at the beginning of the next epoch (epochs take slightly over two days), the user holding the withdraw authority can withdraw funds from the stake account.
Users of this product always maintain ultimate power over the stake accounts and can revoke the stake authority previously granted to Marinade using most wallets.
However, Marinade splits the stake between over 100 validators to spread the risk and support well-performing validators. Therefore, It would be inconvenient for our users to revoke the stake authority, deactivate and withdraw each of the stake accounts one by one.
Marinade has thought of this, and users can use the dApp to help them with the withdrawal - Marinade will prepare the stake accounts for withdraw on your behalf.
-
Users ask for the amount of SOL they want to withdraw.
-
We deactivate stake accounts amounting to how much users want to withdraw.
-
We merge deactivated stake accounts at the beginning of the next epoch, so there is a single deactivated stake account
-
Users can withdraw funds in a single transaction
To avoid some draining attacks (as Marinade pays for deactivation, and timely merging of all the stake accounts), a small fixed fee of 0.001 SOL is applied for this service.