Skip to content

Conversation

@AryanGodara
Copy link
Member

@AryanGodara AryanGodara commented Nov 17, 2025

Description

Add Balancer V3, Uniswap V3, and Permit2 Support for Plasma Chain

Plasma does not have Balancer V2 contracts deployed.

Changes

✅ Balancer V3

✅ Uniswap V3

  • UniswapV3QuoterV2: 0xaa52bB8110fE38D0d2d2AF0B85C3A3eE622CA455 (marked as "not official")
  • UniswapV3SwapRouterV2: 0x807F4E281B7A3B324825C64ca53c69F0b418dE40 (marked as "not official")
  • IUniswapV3Factory: 0xcb2436774C3e191c85056d248EF4260ce5f27A9D (named BulbaV3Factory, but same ABI and logic as UniswapV3Factory contract, checked manually)

✅ Permit2

📝 Updated

  • Updated all Balancer V2 contract comments to indicate they are not available on Plasma and Linea
  • Added test assertions for all Plasma deployments

🧪 Testing

  • Added test assertions in test_has_address() to verify:
    • BalancerV3BatchRouter deployment on Plasma
    • UniswapV3QuoterV2 deployment on Plasma
    • UniswapV3SwapRouterV2 deployment on Plasma
    • IUniswapV3Factory deployment on Plasma
    • Permit2 deployment on Plasma

This PR enables the solver to route trades on Plasma using both Balancer V3 and Uniswap V3 protocols.

Sources for Addresses :-

  1. Balancer V3 Contracts: https://docs.balancer.fi/developer-reference/contracts/deployment-addresses/plasma.html
  2. Uniswap Deployments on Plasma (found alt. addresses via Oku Trade):

@AryanGodara AryanGodara requested a review from a team as a code owner November 17, 2025 09:52
@AryanGodara AryanGodara self-assigned this Nov 17, 2025
@github-actions
Copy link

github-actions bot commented Nov 17, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@AryanGodara
Copy link
Member Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Nov 17, 2025
@AryanGodara AryanGodara force-pushed the aryan/balancer-v3-for-plasma branch from 29cb7af to c92dd17 Compare November 17, 2025 13:59
@AryanGodara AryanGodara changed the title Add Balancer V3 Support for Plasma Chain # Add Balancer V3, Uniswap V3, and Permit2 Support for Plasma Chain Nov 17, 2025
@AryanGodara AryanGodara force-pushed the aryan/balancer-v3-for-plasma branch from c92dd17 to db12904 Compare November 17, 2025 14:29
// not official
LENS => address!( "0xc3A5b857Ba82a2586A45a8B59ECc3AA50Bc3D0e3"),
LINEA => address!("0x31FAfd4889FA1269F7a13A66eE0fB458f27D72A9"),
PLASMA => address!("0xcb2436774C3e191c85056d248EF4260ce5f27A9D"), // Contract Name: BulbaV3Factory
Copy link
Contributor

Choose a reason for hiding this comment

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

Where does it say BulbaV3Factory? On the explorer it shows up as UniswapV3Factory for me.

Copy link
Member Author

Choose a reason for hiding this comment

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

I picked up these Uniswap v3 addresses from Okta trade's website, these are their deployments, and not actually deployed by the official uniswap team. There it mentioned the name BulbaV3Factory.
But you're right, since the explorer and the verified code sayds UniswapV3Factory, so I will remove this comment

Add deployment address for BalancerV3BatchRouter on Plasma (chain ID 9745).
Plasma only supports Balancer V3, not V2.

Changes:
- Add BalancerV3BatchRouter deployment for Plasma at 0x85a80afee867aDf27B50BdB7b76DA70f1E853062 (block 782312)
- Update all Balancer V2 contract comments to indicate unavailability on Plasma and Linea
- Add test assertion for BalancerV3BatchRouter on Plasma

Plasma does not have Balancer V2 contracts (Vault, Queries, or any pool factories).

Signed-off-by: Aryan Godara <aryangodara03@gmail.com>
Add Balancer V3, Uniswap V3, and Permit2 deployments for Plasma (9745).
Mark Balancer V2 contracts as unavailable on Plasma and Linea.

Signed-off-by: Aryan Godara <aryangodara03@gmail.com>
Rebase and move changes from alloy.rs to new location at build.rs

Signed-off-by: Aryan Godara <aryangodara03@gmail.com>
@AryanGodara AryanGodara force-pushed the aryan/balancer-v3-for-plasma branch from 70142b1 to 4e190c5 Compare November 29, 2025 09:05
@AryanGodara AryanGodara added this pull request to the merge queue Nov 30, 2025
Merged via the queue into main with commit 2ed2913 Nov 30, 2025
18 checks passed
@AryanGodara AryanGodara deleted the aryan/balancer-v3-for-plasma branch November 30, 2025 12:16
@github-actions github-actions bot locked and limited conversation to collaborators Nov 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants