Properties
label
outputToken
outputToken: PublicKey
Methods
canAcceptStakeAccount
Parameters
Returns boolean
createCleanupInstruction
Parameters
Returns TransactionInstruction[]
createSetupInstructions
Parameters
Returns TransactionInstruction[]
createSwapInstructions
Parameters
Returns TransactionInstruction[]
getAccountsForUpdate
- getAccountsForUpdate(): PublicKey[]
Returns PublicKey[]
getQuote
Parameters
update
- update(accountInfoMap: AccountInfoMap): void
Parameters
accountInfoMap: AccountInfoMap
Returns void
A StakePool in this context is any on-chain entity that accepts stake accounts in return for tokens
Classes that implement this should cache relevant on-chain accounts, none of the methods here should perform any rpc calls