-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Withdrawing active stake (for user withdrawals) #93
Comments
I just realized, if we withdraw active stake, then the rewards for that stake earned over the epoch all go to the withdrawer. If you withdraw early in an epoch that sounds fair, because you held the active stake during most of the epoch. But if you withdraw late in the epoch, that sounds unfair; you get a bonus on top of your withdrawal, and Lido misses out on rewards. See also #136. |
On the other hand, if you withdraw late in the epoch, sure you get a bonus, but if you waited until after the epoch boundary, you could have withdrawn more SOL for the same stSOL. You don’t pay the Lido fee if you withdraw earlier, so get more SOL, but on the other hand you now have an active stake account with a single validator, no longer with a pool ... so you take on the higher risk and get the higher reward, that sounds reasonable actually. |
Summary of off-channel discussion with @enriquefynn:
So withdrawals may be a lot simpler than we expected! |
I wrote a summary of how staking on Solana works, how we propose to do withdrawals in Solido, and the concerns I could think of. It also goes over the Eth2 concerns linked in #136 (comment). Feedback is welcome. https://docs.google.com/document/d/19SGw6EUNdbcagjaLtGEV-v8Q2-WYAaI2_HTALD_ZZXU/edit |
An idea by Anatoly in the weekly meeting: it’s fine if withdrawals withdraw an activated stake account. That way the user immediately has custody of their funds, and it doesn’t make the user experience worse with respect to the earlier withdrawal note idea, because withdrawals are always going to be a two-step process due to the deactivation period. (Although now that I’m writing this down, with withdrawal notes you could have a bot make a final transfer, so it’s one step + wait for the user, assuming somebody else operates the bot.)
If withdrawals can return an activated stake account, that simplifies things tremendously for us, because we no longer have to track the deactivation process, we can return the stake account right from the stake pool to the user.
The text was updated successfully, but these errors were encountered: