docs: Fix swap without permit2 doc
- We changed this to use a transferFrom
This commit is contained in:
@@ -111,8 +111,7 @@ contract TychoRouter is AccessControl, Dispatcher, Pausable, ReentrancyGuard {
|
|||||||
/**
|
/**
|
||||||
* @notice Executes a swap operation based on a predefined swap graph, supporting internal token amount splits.
|
* @notice Executes a swap operation based on a predefined swap graph, supporting internal token amount splits.
|
||||||
* This function enables multi-step swaps, optional ETH wrapping/unwrapping, and validates the output amount
|
* This function enables multi-step swaps, optional ETH wrapping/unwrapping, and validates the output amount
|
||||||
* against a user-specified minimum. This function expects the input tokens to already be in the router at
|
* against a user-specified minimum. This function performs a transferFrom to retrieve tokens from the caller.
|
||||||
* the time of calling.
|
|
||||||
*
|
*
|
||||||
* @dev
|
* @dev
|
||||||
* - If `wrapEth` is true, the contract wraps the provided native ETH into WETH and uses it as the sell token.
|
* - If `wrapEth` is true, the contract wraps the provided native ETH into WETH and uses it as the sell token.
|
||||||
|
|||||||
Reference in New Issue
Block a user