addSwapV2Output method
int
addSwapV2Output(
- dynamic fromToken,
- dynamic from,
- int fromAmount,
- dynamic toToken,
- dynamic to,
- int maxPrice,
- int maxPricefraction,
- 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;
}