interbtc-api

@interlay/interbtc-api / Exports / TradingPair

Interface: TradingPair

Table of contents

Properties

Properties

getOutputAmount

getOutputAmount: (inputAmount: MonetaryAmount<CurrencyExt>) => MonetaryAmount<CurrencyExt>

Type declaration

▸ (inputAmount): MonetaryAmount<CurrencyExt>

Parameters
Name Type
inputAmount MonetaryAmount<CurrencyExt>
Returns

MonetaryAmount<CurrencyExt>

Defined in

src/parachain/amm/trade/types.ts:11


pathOf

pathOf: (inputCurrency: CurrencyExt) => MultiPathElement

Type declaration

▸ (inputCurrency): MultiPathElement

Parameters
Name Type
inputCurrency CurrencyExt
Returns

MultiPathElement

Defined in

src/parachain/amm/trade/types.ts:12


reserve0

reserve0: MonetaryAmount<CurrencyExt>

Defined in

src/parachain/amm/trade/types.ts:9


reserve1

reserve1: MonetaryAmount<CurrencyExt>

Defined in

src/parachain/amm/trade/types.ts:10


token0

token0: CurrencyExt

Defined in

src/parachain/amm/trade/types.ts:7


token1

token1: CurrencyExt

Defined in

src/parachain/amm/trade/types.ts:8