Skip to main content

Pool

constructor(pair: Pair)

Example

const pool = new Pool(PAIR_VHPKOIN)

Properties

pair

pair: Pair

Methods

addLiquidity

addLiquidity(token: Currency, amount: BigNumber, percent: Percent): AddLiquidity

removeLiquidity

removeLiquidity(shares: BigNumber, percent: Percent): RemoveLiquidity

addInitialLiquidity

addInitialLiquidity(tokenA: Currency, amountA: BigNumber, tokenB: Currency, amountB: BigNumber, percent: Percent)