Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Oracle

Index

Constructors

  • new Oracle(xDecimals: number, yDecimals: number, price: BigNumber): Oracle

Properties

decimalsConverter: BigNumber
price: BigNumber
xDecimals: number
yDecimals: number

Methods

  • depositTradeXIn(xLeft: BigNumber, xBefore: BigNumber, yBefore: BigNumber): BigNumber
  • Parameters

    • xLeft: BigNumber
    • xBefore: BigNumber
    • yBefore: BigNumber

    Returns BigNumber

  • depositTradeYIn(yLeft: BigNumber, xBefore: BigNumber, yBefore: BigNumber): BigNumber
  • Parameters

    • yLeft: BigNumber
    • xBefore: BigNumber
    • yBefore: BigNumber

    Returns BigNumber

  • tradeX(xAfter: BigNumber, xBefore: BigNumber, yBefore: BigNumber): BigNumber
  • Parameters

    • xAfter: BigNumber
    • xBefore: BigNumber
    • yBefore: BigNumber

    Returns BigNumber

  • tradeY(yAfter: BigNumber, xBefore: BigNumber, yBefore: BigNumber): BigNumber
  • Parameters

    • yAfter: BigNumber
    • xBefore: BigNumber
    • yBefore: BigNumber

    Returns BigNumber