这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@fengtality
Copy link
Contributor

Before submitting this PR, please make sure:

  • Your code builds clean without any errors or warnings
  • You are using approved title ("feat/", "fix/", "docs/", "refactor/")

A description of the changes proposed in the pull request:

Tests performed by the developer:

Tips for QA testing:

fengtality and others added 13 commits May 8, 2025 12:04
Fix the swapERC20CallParameters error by ensuring AlphaRouter consistently uses SWAP_ROUTER_02 type, which produces compatible calldata for the SwapRouter02 contract. Added detailed logging for debugging.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
* Fixed the SwapRouter.swapERC20CallParameters error by completely removing Universal Router type
* Added direct import of getUniswapV3SmartOrderRouterAddress instead of using getSpender
* EXPLICITLY set SwapType.SWAP_ROUTER_02 in all routes
* Improved error logging for debugging purposes

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This adds implementations for methods that were being called without implementation, fixing type errors:
- getTokenBySymbol: For resolving tokens by symbol in the Uniswap class
- getV3Pool: For accessing V3 pools by token pairs and optional fee tier/pool ID
- findDefaultPool: For finding pool addresses based on configuration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Use simpler AlphaRouter implementation similar to v2.2.0
- Fix token resolution using Ethereum class
- Remove unused Universal Router dependencies
- Update package.json to remove unneeded packages
- Fix type errors in execute-swap.ts and quote-swap.ts
@fengtality fengtality marked this pull request as ready for review May 8, 2025 21:34
@fengtality fengtality merged commit 6c7fbab into core-2.6 May 8, 2025
@fengtality fengtality deleted the uniswap-router-revert branch May 8, 2025 21:34
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.

2 participants