Skip to content

feat: add Alien Base V3 encoder for Base#335

Open
Haikane wants to merge 2 commits into
mainfrom
feat/alienbase-v3
Open

feat: add Alien Base V3 encoder for Base#335
Haikane wants to merge 2 commits into
mainfrom
feat/alienbase-v3

Conversation

@Haikane

@Haikane Haikane commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Register alienbase_v3 protocol system with UniswapV3SwapEncoder in the encoder registry
  • Add executor address for alienbase_v3 on Base chain (reuses existing V3 executor 0x647bffbf8bd72bf6341ecba8b0279e090313a40d)
  • Alien Base V3 uses stock Uniswap V3 core contracts, so no new encoder or executor needed

Changes

  • swap_encoder_registry.rs: Add "alienbase_v3" to the pancakeswap_v3 match arm (both are V3 forks)
  • executor_addresses.json: Add alienbase_v3 entry for base chain

Verification

  • All 148 tests pass (3 ignored)
  • cargo check and cargo clippy clean
  • Differential testing confirms identical swap math to Uniswap V3 (0-2 wei rounding)

Related PRs

  • tycho-protocol-sdk: propeller-heads/tycho-protocol-sdk (feat/alienbase-v3) - substreams config

Test plan

  • cargo check passes
  • All unit tests pass (148 pass, 3 ignored)
  • Differential swap verification on Base (WETH/USDC: exact match, ALB/WETH: 2 wei)

🤖 Generated with Claude Code

Register alienbase_v3 protocol system with UniswapV3SwapEncoder,
reusing the existing V3 executor on Base. Alien Base V3 uses
stock Uniswap V3 core contracts, so the same executor and encoder
work without modification.

Differential testing confirms identical swap math (0-2 wei
rounding on WETH/USDC and ALB/WETH pools).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add alienbase_v3 to CALLBACK_CONSTRAINED_PROTOCOLS (bug fix: V3
forks use callback-based token transfers, without this multi-hop
routes would have incorrect transfer handling). Add comment to
shared match arm explaining why pancakeswap_v3 and alienbase_v3
share the UniswapV3SwapEncoder.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Haikane Haikane changed the title Add Alien Base V3 encoder for Base feat: add Alien Base V3 encoder for Base Feb 19, 2026

@dianacarvalho1 dianacarvalho1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! If everything looks (sdk tests) then you can go ahead and deploy the executor (you need to set the correct factory and etc). Then we can set it and record the real address in config/executor_addresses.json. Then we need to set it in the router

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants