1inch optimizoors provides calldata-optimized routers for 1inch Network, providing significant gas savings when deployed on Optimism or Arbitrum. There are two optimized routers. One that wraps 1inch's V4 aggregation router and another that wraps their V5 aggregation router. This work was funded by an Ethereum Foundation grant. Read our blog post to learn more about how we optimize gas usage for protocols on L2s.
To get started, clone this repo, then follow the below instructions:
# run these commands from the workspace root!
cp .env.example .env
# Run tests
forge test
# Build smart contracts
forge build
Documentation for the contracts can he found here.
Name | Address |
---|---|
1inch Router Factory | 0xDfb453656A14c8e9ad3F4095483CE3328977eb47 |
We have a router factory which deploys calldata optimized AggregationRouter
contracts.
Currently, we have two types of optimized routers. One for the V5 aggregation router and another
for the v4 aggregation router.
There will be one deployed optimized router per sell token. For example if a user is swapping USDC for WETH they will call the USDC optimized router.
This project is available under the MIT license.
Copyright (c) 2023 ScopeLift