SPL stake pools only accept:
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