Swap class
Methods
-
getSwapIn(String pairAddress, BigInt amountOut, bool swapForY)
→ Future<(BigInt, BigInt)>
-
getSwapIn evaluates the input amount of coin and fee needed to obtain the given output amount of coins
-
getSwapOut(String pairAddress, BigInt amountIn, bool swapForY)
→ Future<(BigInt, BigInt)>
-
getSwapOut evaluates the output amount of coin and fee needed to obtain the given input amount of coins
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
swapExactMASForTokens(BigInt amountIn, BigInt amountOut, List binSteps, List tokenPath, String toAddress, int deadline)
→ Future<(String, bool)>
-
swapExactMASForTokens swaps exact amount of input MAS coins to a specified output token
-
swapTokensForExactMAS(BigInt amountIn, BigInt amountOut, List binSteps, List tokenPath, String toAddress, int deadline)
→ Future<(String, bool)>
-
swapTokensForExactMAS swaps specified input amount of coins to an exact output ammount of MAS coins
-
toString()
→ String
-
A string representation of this object.
inherited
-
unwrap(double amount)
→ Future<(String, bool)>
-
wrap wraps MAS coin to WMAS
-
wrap(double amount)
→ Future<(String, bool)>
-
wrap wraps MAS coin to WMAS