addSwapV2Output method

int addSwapV2Output(
  1. dynamic fromToken,
  2. dynamic from,
  3. int fromAmount,
  4. dynamic toToken,
  5. dynamic to,
  6. int maxPrice,
  7. int maxPricefraction,
  8. List<int> poolIds,
)

Implementation

int addSwapV2Output(dynamic fromToken, dynamic from, int fromAmount, dynamic toToken, dynamic to, int maxPrice, int maxPricefraction, List<int> poolIds) {
  _tx!.addBaseOutputAt(DefiTransactionHelper.createPoolSwapV2Output(fromToken, from, fromAmount, toToken, to, maxPrice, maxPricefraction, poolIds, network), 0);
  return 0;
}