ChorusOne / solido

Lido for Solana is a Lido-DAO governed liquid staking protocol for the Solana blockchain.
https://chorusone.github.io/solido/
GNU General Public License v3.0
101 stars 43 forks source link

Withdraw inactive stake before unstaking #583

Open enriquefynn opened 2 years ago

enriquefynn commented 2 years ago

When the validator is flagged as inactive, we try to unstake everything from it, but we accumulate some inactive stake when we merge stake accounts, this needs to be withdrawn even if it does not exceed the MINIMUM_WITHDRAW_AMOUNT.

kkonevets commented 2 years ago

please take a look (https://github.com/lidofinance/solido/commits/v1_compute_budget) at commits starting at 22f3db7 and to the end. This is a cumulative update of v1 maintainer that includes lots of recent bug fixes also the one that caused a crash after validator deactivation - we need it to be deployed to be able to migrate to v2