Skip to content

Latest commit

 

History

History
111 lines (63 loc) · 1.75 KB

Swap.md

File metadata and controls

111 lines (63 loc) · 1.75 KB

Class: Swap

Table of contents

Properties

Methods

Constructors

Properties

DEFAULT_FEE

Static Readonly DEFAULT_FEE: 0.003

Methods

getAmountIn

Static getAmountIn(params): BigNumber

Parameters

Name Type
params GetAmountInParams

Returns

BigNumber


getAmountMin

Static getAmountMin(params): BigNumber

Parameters

Name Type
params GetAmountMinParams

Returns

BigNumber


getAmountOut

Static getAmountOut(params): BigNumber

Parameters

Name Type
params GetAmountOutParams

Returns

BigNumber


getPriceImpact

Static getPriceImpact(params): BigNumber

Parameters

Name Type
params GetPriceImpactParams

Returns

BigNumber


getTokenPaths

Static getTokenPaths(params): PathList

Parameters

Name Type
params GetTokenPathsParams

Returns

PathList

Constructors

constructor

new Swap()