Methods
isActive
- isActive(now: BN): boolean
Parameters
Returns boolean
Static create
- create(rewardsProgram: Program<RewardsIdl>, provider: AnchorProvider, targetAccount: PublicKey, tokenMint: PublicKey, params: DistributionCreateParams): Promise<string>
Parameters
rewardsProgram: Program<RewardsIdl>
provider: AnchorProvider
targetAccount: PublicKey
tokenMint: PublicKey
params: DistributionCreateParams
Returns Promise<string>
Static createForStakePool
- createForStakePool(rewardsProgram: Program<RewardsIdl>, provider: AnchorProvider, distributionTarget: StakePool, params: DistributionCreateParams): Promise<void>
Parameters
rewardsProgram: Program<RewardsIdl>
provider: AnchorProvider
distributionTarget: StakePool
params: DistributionCreateParams
Returns Promise<void>
Static derive
Parameters
Parameters
seed: number[]
seedLen: number
Static estimateCombinedYield
Parameters
totalDeposits: number
totalShares: number
usersShares: number
Static estimateYield
Parameters
totalDeposits: number
totalShares: number
usersShares: number
Static use
Parameters
rewardsProgram: undefined | Program<RewardsIdl>
seed: string
Creates an instance of Distribution.
Distribution