Options
All
  • Public
  • Public/Protected
  • All
Menu

An implementation of a math behind constant product pools.

Hierarchy

  • ConstantProductCalculator

Implements

Index

Constructors

Properties

pool: Pool

Methods

  • getMintedLiquidityTokens(addedLiqA: bigint, addedLiqB: bigint): bigint
  • getPrice(decimalLiqA: number, decimalLiqB: number): number
  • getSwapAmountDeposited(liqA: bigint, liqB: bigint, grossAmountReceived: bigint): bigint
  • getSwapGrossAmountReceived(liqA: bigint, liqB: bigint, amountDeposited: bigint): bigint

Generated using TypeDoc