Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StrategyInterface<T>

Type parameters

Hierarchy

  • ServiceInterface<T>
    • StrategyInterface

Index

Constructors

Properties

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

Methods

  • fetchMetadataFromApi(vaultAddresses: string[]): Promise<VaultStrategiesMetadata[]>
  • fetchMetadataFromChain(vaultAddresses: string[]): Promise<VaultStrategiesMetadata[]>
  • fetchVaultStrategiesMetadata(strategies: { address: string; name?: string }[], strategiesMetadata: StrategiesMetadata[], vaultContract: Contract, underlyingTokenSymbol: string): Promise<undefined | VaultStrategiesMetadata>
  • Parameters

    • strategies: { address: string; name?: string }[]
    • strategiesMetadata: StrategiesMetadata[]
    • vaultContract: Contract
    • underlyingTokenSymbol: string

    Returns Promise<undefined | VaultStrategiesMetadata>

  • fetchVaultsData(): Promise<VaultData[]>
  • vaultsStrategiesMetadata(vaultAddresses?: string[]): Promise<VaultStrategiesMetadata[]>

Generated using TypeDoc