See: https://github.com/everstake/solana-program-library/blob/22534fe3885e698598e92b2fe20da3a8adbfc5ff/stake-pool/program/src/state.rs#L558 Assumes this.stakePool already fetched
SPL stake pools only accept:
See: https://github.com/everstake/solana-program-library/blob/22534fe3885e698598e92b2fe20da3a8adbfc5ff/stake-pool/program/src/state.rs#L186 Assumes this.stakePool already fetched
See: https://github.com/everstake/solana-program-library/blob/22534fe3885e698598e92b2fe20da3a8adbfc5ff/stake-pool/program/src/state.rs#L186 Assumes this.stakePool already fetched
Commmon setup instructions:
Common setup instructions that are not covered:
outputToken
ATA if user does not have it yet.
Why?Create the instructions for swapping the given
stake account to outputToken
assuming setup is done
Only accepts entire stake accounts.
Assumes that the passed stake account has
passed this.canAcceptStakeAccount()
Only handles withdrawing max 1 stake account
Assumes this.stakePool is fetched
Generated using TypeDoc
Assumes this.stakePool already fetched. Returns lamportsReceived and stakePoolToken fee paid for a given stakePoolToken withdrawal