Constructors
constructor
Parameters
provider: Provider
stakingInfo: any
Properties
config
Methods
claimVestedToken
- claimVestedToken(payoutTokenMint: PublicKey, vTokenMint: PublicKey, userVestingInfo: any): Promise<TransactionEnvelope>
Parameters
payoutTokenMint: PublicKey
vTokenMint: PublicKey
userVestingInfo: any
Returns Promise<TransactionEnvelope>
rebase
- rebase(): Promise<TransactionEnvelope>
Returns Promise<TransactionEnvelope>
stake
- stake(amount: u64): Promise<TransactionEnvelope>
Parameters
Returns Promise<TransactionEnvelope>
stakeAll
- stakeAll(): Promise<TransactionEnvelope>
Returns Promise<TransactionEnvelope>
toVToken
- toVToken(amount: u64): Promise<TransactionEnvelope>
Parameters
Returns Promise<TransactionEnvelope>
unstake
- unstake(amount: u64): Promise<TransactionEnvelope>
Parameters
Returns Promise<TransactionEnvelope>
unvestAll
- unvestAll(userVestingInfo: any): Promise<TransactionEnvelope>
Parameters
Returns Promise<TransactionEnvelope>
vestAll
- vestAll(userVestingInfo: any, vestMint: PublicKey): Promise<TransactionEnvelope>
Parameters
userVestingInfo: any
vestMint: PublicKey
Returns Promise<TransactionEnvelope>
Static estimatedVestingClaimable
- estimatedVestingClaimable(halfLifeDuration: number, claimAllDuration: number, vestedHolderAmount: u64, lastUpdatedTime: number, lastVestTime: number, claimableAmount: u64, updateTime: number): u64
Parameters
halfLifeDuration: number
claimAllDuration: number
vestedHolderAmount: u64
lastUpdatedTime: number
lastVestTime: number
claimableAmount: u64
updateTime: number
Returns u64