addSwapOutput method

int addSwapOutput(
  1. dynamic fromToken,
  2. dynamic from,
  3. int fromAmount,
  4. dynamic toToken,
  5. dynamic to,
  6. int maxPrice,
  7. int maxPricefraction,
)

Implementation

int addSwapOutput(dynamic fromToken, dynamic from, int fromAmount, dynamic toToken, dynamic to, int maxPrice, int maxPricefraction) {
  _tx!.addBaseOutputAt(DefiTransactionHelper.createPoolSwapOutput(fromToken, from, fromAmount, toToken, to, maxPrice, maxPricefraction, network), 0);
  return 0;
}