Closed hippocampus-web3 closed 1 month ago
[!CAUTION]
Review failed
The pull request is closed.
The changes introduce multiple enhancements across several smart contracts. A new internal function _swapMultihop
is added to the BaseUniRouter
for complex token swaps. The ISwapRouter
interface is updated with a new structure and function to support these swaps. A new contract, UniswapV3ViaRouterGoodle
, is created to facilitate token swaps using Uniswap V3. Modifications are made to existing contracts to adjust parameter orders and visibility. Additionally, treasury management features are introduced in MergeWithMarket
, and updates to module addresses and vesting periods are made in related TypeScript files.
File | Change Summary |
---|---|
contracts/core/adaptors/BaseUniRouter.sol |
Added function _swapMultihop for multihop token swaps. |
contracts/core/adaptors/IUniswapV3.sol |
Added ExactInputParams struct and exactInput function to ISwapRouter . |
contracts/core/adaptors/UniswapV3ViaRouterGoodle.sol |
Introduced UniswapV3ViaRouterGoodle contract with sell and buy functions for token swaps. |
contracts/core/adaptors/UniswapV3ViaRouterIM.sol |
Modified parameter order in buy , sell , and sellAndBuy methods. |
contracts/core/merge/Eater.sol |
Changed calculation of weweToTransfer in _merge function. |
contracts/core/merge/GenericMerge.sol |
Updated mergeAll and merge functions to be virtual . |
contracts/core/merge/MergeWithMarket.sol |
Added treasury variable and setTreasury function; introduced new mergeAll and merge functions that revert. |
ignition/modules/MergeWithMarket.ts |
Updated GOODLE_ADDRESS and changed vestingPeriod from 14 to 7 days. |
ignition/modules/UniAdaptorGoodle.ts |
Added new module UniswapV3ViaRouterGoodleModule . |
_swapMultihop
function in the BaseUniRouter
contract, which is directly related to the multihop swap functionality in the main PR.eat-all-the-tokens
🐇 In the garden of swaps, where tokens play,
A new path unfolds, brightening the day.
With multihops and treasures, oh what a sight,
Our contracts now dance in the soft moonlight.
So gather 'round, friends, let the trades begin,
For in this new world, we all stand to win! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
GenericMerge
contract to reflect changes in token consumption logic.Chores