Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Payroll

Index

Constructors

constructor

  • new Payroll(famineTs: BN, lastCheckpointTs: BN, annualRewardsRate: BN, rewardsPerTokenStored: BN, totalTokensDeposited: BN): Payroll

Properties

Readonly annualRewardsRate

annualRewardsRate: BN

Readonly famineTs

famineTs: BN

Readonly lastCheckpointTs

lastCheckpointTs: BN

Readonly rewardsPerTokenStored

rewardsPerTokenStored: BN

Readonly totalTokensDeposited

totalTokensDeposited: BN

Methods

calculateRewardPerToken

  • calculateRewardPerToken(current_ts: BN): BN

calculateRewardsEarned

  • calculateRewardsEarned(currentTs: BN, tokensDeposited: BN, rewardsPerTokenPaid: BN, rewardsEarned: BN): BN
  • Calculates the amount of tokens that this user can claim.

    Parameters

    • currentTs: BN
    • tokensDeposited: BN
    • rewardsPerTokenPaid: BN
    • rewardsEarned: BN

    Returns BN

Generated using TypeDoc