Skip to main content

Router

constructor(pairs: Pair[], input: Currency, output: Currency)

Example

const router = new Router([PAIR_VHPKOIN], vhp)

Properties

public readonly pairs: Pair[] public readonly path: Currency[] public readonly input: Currency public readonly output: Currency

pairs

pairs: Pair[]

path

path: Currency[]

input

input: Currency

output

output: Currency

Methods

tradeExactOut

tradeExactOut(amount: BigNumber, percent: Percent): TradeExactOut

tradeExactIn

tradeExactIn(amount: BigNumber, percent: Percent): TradeExactIn