Function: updatePath(IRouter.Path path, bool updatingAll)
This updates the path information used for swaps.
Inputs
pathControl: Fully controlled.
Constraints: The
toAmountMinfields inpath.BToDandpath.DToBmust be greater than zero.Impact: The new path info.
updatingAllControl: Fully controlled.
Constraints: No constraints.
Impact: If true, it will update all path info; if false, it will only update
toAmountMinand theupdatedtimestamp.
Branches and code coverage (including function calls)
Intended branches
The function updates the path info --- either all fields or just
toAmountMinandupdated.
Negative behavior
The function reverts if
toAmountMinfields inpath.BToDorpath.DToBare zero.The function reverts if
updatingAllis true and the route info or token placement is invalid.