mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
2.6 KiB
2.6 KiB
@oceanprotocol/lib / Exports / Operation
Interface: Operation
Table of contents
Properties
- amountsIn
- amountsOut
- exchangeIds
- marketFeeAddress
- maxPrice
- operation
- source
- swapMarketFee
- tokenIn
- tokenOut
Properties
amountsIn
• amountsIn: string
| number
when swapExactAmountIn is EXACT amount IN expressed in Wei
Defined in
amountsOut
• amountsOut: string
| number
when swapExactAmountIn is MIN amount OUT expressed in Wei
Defined in
exchangeIds
• exchangeIds: string
used for FixedRate or Dispenser
Defined in
marketFeeAddress
• marketFeeAddress: string
market fee address to receive fees
Defined in
maxPrice
• maxPrice: string
| number
max price (only for pools) expressed in Wei
Defined in
operation
• operation: number
operation: 0 - swapExactAmountIn 1 - swapExactAmountOut 2 - FixedRateExchange 3 - Dispenser
Defined in
source
• source: string
pool Address
Defined in
swapMarketFee
• swapMarketFee: string
swap fee amount
Defined in
tokenIn
• tokenIn: string
token in address
Defined in
tokenOut
• tokenOut: string
token out address