Function: _multiSwap(address[] path, address[] pools, uint256[] iValues, uint256[] jValues, uint256 fromAmount, uint256 toAmountMin)
Delegates the swap logic for each swap/pair to _swapEth or _swap.
Inputs
pathConstraints: No constraints.
Impact: An array of the tokens being swapped between.
poolsConstraints: No constraints.
Impact: An array of Curve pools to swap with.
iValuesConstraints: No constraints.
Impact: An array of indexes of the
fromTokenin each Curve pool.
jValuesConstraints: No constraints.
Impact: An array of indexes of the
toTokenin each Curve pool.
fromAmountConstraints: No constraints.
Impact: The amount of
fromTokento swap.
toAmountMinConstraints: No constraints.
Impact: The minimum amount of
toTokento receive from the swap.
Branches and code coverage (including function calls)
Intended branches
If any of the path is
address(0), use_swapEthfor swapping tokens; otherwise, use_swap.
Negative behavior
Revert if
amountOut == 0.