Function fetchReservePrice

  • fetches the onchain price of Reserve in USD

    Returns

    reserve price as seen by the oracle

    Parameters

    • reserve: helpers.TReserve

      reserve account data

    • connection: Connection

      to the cluster

    • Optional devnet: boolean

      flag to determine if devnet or mainnet

    Returns Promise<any>

Generated using TypeDoc