Skip to content

fix:refactor sushi router#132

Merged
0xCardiE merged 2 commits into
mainfrom
fix/optimize_contract
Apr 29, 2026
Merged

fix:refactor sushi router#132
0xCardiE merged 2 commits into
mainfrom
fix/optimize_contract

Conversation

@0xCardiE
Copy link
Copy Markdown
Collaborator

@0xCardiE 0xCardiE commented Apr 8, 2026

  • Replace stray require() with custom error in uniswapV3SwapCallback
  • Eliminate two token0()/token1() external calls in callback (derive from path)
  • Emit actual amountIn (not maxAmountIn) in all BatchCreated/ToppedUp events
  • Add zero-address guard in constructor
  • Trim IWXDAI and ISushiV3Pool interfaces to only used methods
  • Replace byte-by-byte _skipToken loop with assembly mstore copy

0xCardiE added 2 commits April 8, 2026 15:30
…03a99de8B407A3237aaf54D1b779C

- Replace stray require() with custom error in uniswapV3SwapCallback
- Eliminate two token0()/token1() external calls in callback (derive from path)
- Emit actual amountIn (not maxAmountIn) in all BatchCreated/ToppedUp events
- Add zero-address guard in constructor
- Trim IWXDAI and ISushiV3Pool interfaces to only used methods
- Replace byte-by-byte _skipToken loop with assembly mstore copy
- Update deployment artifacts and app constant to new address
@0xCardiE 0xCardiE merged commit ccbfa6a into main Apr 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant