Skip to content

feat: classify Curve/Balancer fee burners and CoW AMM as named order types (COW-1006)#92

Closed
lgahdl wants to merge 1 commit into
developfrom
luizhatem/cow-1006-identify-and-classify-unknown-handler-addresses-1925
Closed

feat: classify Curve/Balancer fee burners and CoW AMM as named order types (COW-1006)#92
lgahdl wants to merge 1 commit into
developfrom
luizhatem/cow-1006-identify-and-classify-unknown-handler-addresses-1925

Conversation

@lgahdl

@lgahdl lgahdl commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Identifies and classifies the top unknown handler addresses. 5 of 9 top addresses classified; 4 remain Unknown pending source verification.

Newly classified

Address Chain Generators Type
0xc0fc3ddfec95ca45a0d2393f518d3ea1ccf44f8b mainnet 613 CurveCowSwapBurner — Curve Finance fee-burn handler
0x9958317b80ee5f10457017d54c2484d722059157 mainnet 578 BalancerCowSwapFeeBurner — Balancer v3 fee burner v2
0xb148f40fff05b5ce6b22752cf8e454b556f7a851 gnosis 110 CowAmmConstantProduct — CoW AMM pool (verified)
0x254f3a2974b97dc2e675f6115c845567c55f83b0 gnosis 80 BalancerCowSwapFeeBurner — Balancer v3 fee burner v2
0x0e800d8d2e8b4694610aedc385aa6d763492b106 mainnet 30 BalancerCowSwapFeeBurner — Balancer v3 fee burner v1 (deprecated)

Remaining Unknown (4 addresses, ~166 generators)

Address Chain Generators Notes
0x83cd6c9be42e65ef403a656590cf9675991454ef gnosis 63 Unverified proxy; likely CoW AMM but "Set Exchange Rate" method absent from ConstantProduct.sol
0xafcdd60d97a957545bc2713c30ff74b7bc948992 mainnet 36 Unknown deployer, not in any public registry
0x99b989b97508e5babde15e0c0be0953e098a1ed1 mainnet 36 Same unknown deployer
0xb4097271885cb51f68729ac242b6438de201edd1 gnosis 31 Unverified proxy, same pattern as 0x83cd6c

Notes on CoW AMM

Each ConstantProduct pool IS its own handler — the pool address equals the handler address. Only the one verified address is classified. Factory-level detection (all pools from ConstantProductFactory) is out of scope here.

Test plan

  • pnpm typecheck — passes
  • pnpm test — 66/66 pass
  • After reindex: verify Curve/Balancer/CoW AMM generators are no longer Unknown in DB

Closes COW-1006

🤖 Generated with Claude Code

…types (COW-1006)

Identifies and classifies 5 of the top 9 Unknown handler addresses:
- 0xc0fc3d (mainnet, 613 generators): Curve CowSwapBurner
- 0x995831 (mainnet, 578): Balancer v3 CowSwapFeeBurner v2
- 0x0e800d (mainnet, 30): Balancer v3 CowSwapFeeBurner v1 (deprecated)
- 0x254f3a (gnosis, 80): Balancer v3 CowSwapFeeBurner v2
- 0xb148f4 (gnosis, 110): CoW AMM ConstantProduct pool (verified)

Remaining 4 addresses stay Unknown: two unverified gnosis proxies (likely CoW AMM
but unconfirmed) and two unverified mainnet handlers from an unknown deployer.

All new types are non-deterministic. They are added to NON_DETERMINISTIC_TYPES
so C4 backfills them via /account/{owner}/orders at live-sync start.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Jun 9, 2026

Copy link
Copy Markdown

COW-1006

@lgahdl lgahdl marked this pull request as ready for review June 10, 2026 13:24
lgahdl added a commit that referenced this pull request Jun 10, 2026
@jeffersonBastos

Copy link
Copy Markdown
Contributor

Superseded by #102 (final-qadevelop). Verified that this PR's changes (COW-1006) are fully contained in the consolidated final-qa branch. Closing to merge everything through the single QA branch per the agreed plan — no work is lost.

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