Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TwapOracle Abstract

Represents the Integral TwapOracle contarct with a method for returning token decimals.

Hierarchy

  • TwapOracle

Index

Constructors

Properties

Methods

Constructors

Properties

ORACLE_CODER: Interface = ...

Methods

  • getTokensDecimals(provider: BaseProvider, chainId: ChainId, oracleAddress: string): Promise<[number, number]>
  • Returns decimals for token0 and token1 from TwapOracle contract

    Parameters

    • provider: BaseProvider

      A blockchain network connection provider

    • chainId: ChainId

      Supported chains: Mainnet, Kovan

    • oracleAddress: string

      TwapOracle contract address

    Returns Promise<[number, number]>

    Decimals for token0 and token1