Function calculatePrice

  • Calculates a price given an arbitrary base and quote amount (they must have the same precision)

    Returns

    price : Precision PRICE_PRECISION

    Parameters

    • baseAssetReserves: BN
    • quoteAssetReserves: BN
    • pegMultiplier: BN

    Returns BN

Generated using TypeDoc