Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VisionService

VisionService provides access to off chain apy calculations for yearn products.

Hierarchy

  • Service
    • VisionService

Index

Constructors

Properties

Methods

Constructors

Properties

chainId: 1 | 10 | 250 | 1337 | 42161
ctx: Context
events: Emittery<Record<string, unknown>, Record<string, unknown> & OmnipresentEventData, never>

Methods

  • apy<T>(addresses?: T[]): Promise<ApyMap<T>>
  • apy(address: string): Promise<undefined | Apy>
  • Fetch APY from a list of yearn's vault addresses (or all of them is address is not provided).

    Type parameters

    • T: string

    Parameters

    • Optional addresses: T[]

    Returns Promise<ApyMap<T>>

  • Fetch API for a specific yearn's vault address.

    Parameters

    • address: string

    Returns Promise<undefined | Apy>

Generated using TypeDoc