Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Pair

Index

Constructors

Properties

address: string
inverted: boolean
oracle: Oracle

Methods

  • getBurnFee(): BigNumber
  • getChainId(): undefined | ChainId
  • getDepositAmount0In(amount0: BigNumber, updatedReserve0: BigNumber, updatedReserve1: BigNumber): BigNumber
  • Parameters

    • amount0: BigNumber
    • updatedReserve0: BigNumber
    • updatedReserve1: BigNumber

    Returns BigNumber

  • getDepositAmount1In(amount1: BigNumber, updatedReserve0: BigNumber, updatedReserve1: BigNumber): BigNumber
  • Parameters

    • amount1: BigNumber
    • updatedReserve0: BigNumber
    • updatedReserve1: BigNumber

    Returns BigNumber

  • getDepositReservesFraction(firstTokenPrice?: TokenPrice, secondTokenPrice?: TokenPrice): undefined | BigNumber
  • getEstimatedSwapFee(input: BigNumber): BigNumber
  • getExtraLiquidity(amount0: BigNumber, amount1: BigNumber, reserve0: BigNumber, reserve1: BigNumber, liquidity: BigNumber): { extraLiquidity: BigNumber; swapDeposit0Amount: BigNumber; swapDeposit1Amount: BigNumber }
  • Parameters

    • amount0: BigNumber
    • amount1: BigNumber
    • reserve0: BigNumber
    • reserve1: BigNumber
    • liquidity: BigNumber

    Returns { extraLiquidity: BigNumber; swapDeposit0Amount: BigNumber; swapDeposit1Amount: BigNumber }

    • extraLiquidity: BigNumber
    • swapDeposit0Amount: BigNumber
    • swapDeposit1Amount: BigNumber
  • getInitialRatio(): BigNumber
  • getMintFee(): BigNumber
  • getPrice(): BigNumber
  • getRatio(amount0: BigNumber, amount1: BigNumber, reserve0: BigNumber, reserve1: BigNumber): { ratio: BigNumber; ratio0: BigNumber; ratio1: BigNumber }
  • Parameters

    • amount0: BigNumber
    • amount1: BigNumber
    • reserve0: BigNumber
    • reserve1: BigNumber

    Returns { ratio: BigNumber; ratio0: BigNumber; ratio1: BigNumber }

    • ratio: BigNumber
    • ratio0: BigNumber
    • ratio1: BigNumber
  • getSwapAmount0In(amount1Out: BigNumber): BigNumber
  • getSwapAmount0Out(amount1In: BigNumber, updatedReserves?: [BigNumber, BigNumber]): BigNumber
  • Parameters

    • amount1In: BigNumber
    • Optional updatedReserves: [BigNumber, BigNumber]

    Returns BigNumber

  • getSwapAmount1In(amount0Out: BigNumber): BigNumber
  • getSwapAmount1Out(amount0In: BigNumber, updatedReserves?: [BigNumber, BigNumber]): BigNumber
  • Parameters

    • amount0In: BigNumber
    • Optional updatedReserves: [BigNumber, BigNumber]

    Returns BigNumber

  • getSwapFee(): BigNumber
  • getToken0Address(): string
  • getToken0Symbol(): string
  • getToken1Address(): string
  • getToken1Symbol(): string
  • getTotalSupply(): BigNumber
  • initialDeposit(ratio: BigNumber): BigNumber[]
  • isEmpty(): boolean
  • swapDeposit0(amount0: BigNumber, updatedReserve0: BigNumber, updatedReserve1: BigNumber): BigNumber[]
  • Parameters

    • amount0: BigNumber
    • updatedReserve0: BigNumber
    • updatedReserve1: BigNumber

    Returns BigNumber[]

  • swapDeposit1(amount1: BigNumber, updatedReserve0: BigNumber, updatedReserve1: BigNumber): BigNumber[]
  • Parameters

    • amount1: BigNumber
    • updatedReserve0: BigNumber
    • updatedReserve1: BigNumber

    Returns BigNumber[]