DexAggregatorUManager
Inherits: UManager
Required Merkle Root Leaves
ERC20 approves with
router
spender.AggregationRouterV5.swap, with all desired addresses.
State Variables
MAX_SLIPPAGE
allowedSlippage
Slippage check enforced after swaps.
router
The 1Inch Router.
priceRouter
The PriceRouter contract used to check slippage.
Functions
constructor
setAllowedSlippage
Sets the maximum allowed slippage during a swap.
Callable by MULTISIG_ROLE.
swapWith1Inch
Performs a swap using the 1inch Router, and enforces a slippage check.
Callable by STRATEGIST_ROLE.
Parameters
Name | Type | Description |
---|---|---|
|
| 2 manage proofs, the first one for the ERC20 approval, and the second for the router swap call |
|
| 2 DecodersAndSanitizers one that implements ERC20 approve, and one that implements AggregationRouterV5.swap |
|
| |
|
| |
|
| |
|
|