1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00
ocean.js/docs/interfaces/Operation.md
2023-05-02 18:18:30 +01:00

2.6 KiB

@oceanprotocol/lib / Exports / Operation

Interface: Operation

Table of contents

Properties

Properties

amountsIn

amountsIn: string | number

when swapExactAmountIn is EXACT amount IN expressed in Wei

Defined in

@types/Router.ts:31


amountsOut

amountsOut: string | number

when swapExactAmountIn is MIN amount OUT expressed in Wei

Defined in

@types/Router.ts:42


exchangeIds

exchangeIds: string

used for FixedRate or Dispenser

Defined in

@types/Router.ts:6


marketFeeAddress

marketFeeAddress: string

market fee address to receive fees

Defined in

@types/Router.ts:58


maxPrice

maxPrice: string | number

max price (only for pools) expressed in Wei

Defined in

@types/Router.ts:48


operation

operation: number

operation: 0 - swapExactAmountIn 1 - swapExactAmountOut 2 - FixedRateExchange 3 - Dispenser

Defined in

@types/Router.ts:20


source

source: string

pool Address

Defined in

@types/Router.ts:11


swapMarketFee

swapMarketFee: string

swap fee amount

Defined in

@types/Router.ts:53


tokenIn

tokenIn: string

token in address

Defined in

@types/Router.ts:25


tokenOut

tokenOut: string

token out address

Defined in

@types/Router.ts:36