Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TwapReader Abstract

Represents the Integral TwapReader contarct with a method for returninig pair parameters.

Hierarchy

  • TwapReader

Index

Constructors

Properties

PAIR_CODER: Interface = ...
READER_CODER: Interface = ...

Methods

  • _getPairParameters(provider: BaseProvider, chainId: ChainId, pairAddress: string): Promise<{ burnFee: any; mintFee: any; price: any; reserve0: any; reserve1: any; swapFee: any; totalSupply: any }>
  • Parameters

    • provider: BaseProvider
    • chainId: ChainId
    • pairAddress: string

    Returns Promise<{ burnFee: any; mintFee: any; price: any; reserve0: any; reserve1: any; swapFee: any; totalSupply: any }>

  • getPair(provider: BaseProvider, chainId: ChainId, currencyA: Currency, currencyB: Currency): Promise<undefined | Pair>
  • Returns the pair for given tokens.

    Parameters

    • provider: BaseProvider

      A blockchain network connection provider

    • chainId: ChainId

      Supported chains: Mainnet, Kovan

    • currencyA: Currency

      The first token in pair

    • currencyB: Currency

      The second token in pair

    Returns Promise<undefined | Pair>

    Pair