Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EarningsInterface<C>

Type parameters

Hierarchy

  • ServiceInterface<C>
    • EarningsInterface

Index

Constructors

Properties

assetHistoricEarningsCache: CachedFetcher<AssetHistoricEarnings[]> = ...
chainId: 1 | 10 | 250 | 1337 | 42161
ctx: Context
events: Emittery<Record<string, unknown>, Record<string, unknown> & OmnipresentEventData, never>
yearn: Yearn<C>

Methods

  • accountHistoricEarnings(accountAddress: string, shareTokenAddress: string, fromDaysAgo: number, toDaysAgo?: number): Promise<AccountHistoricEarnings>
  • assetHistoricEarnings(vault: string, fromDaysAgo: number, latestBlockNumber?: number): Promise<AssetHistoricEarnings>
  • blockOffset(): number
  • blocksPerDay(): number
  • getDate(daysAgo: number): Date
  • protocolEarnings(): Promise<string>
  • deprecated

    Not able to be accurately calculated by the subgraph, this functionality will be removed in a future version

    Returns Promise<string>

  • tokensValueInUsdc(tokenAmount: BigNumber, tokenAddress: string, decimals: number): Promise<BigNumber>

Generated using TypeDoc