Phase 3 + Phase 3j status — EnhancedSwapRouter deployed at 0xE6Cc7643… and 3 cBTC pools wired #18

Merged
nsatoshi merged 1 commits from devin/1777459320-phase3-deployed-cbtc-wired into master 2026-04-29 10:50:37 +00:00
Owner

Summary

Phase 3k — flips the Chain-138 reference docs from "EnhancedSwapRouter pending Phase 3 deploy" to "EnhancedSwapRouter deployed at 0xE6Cc7643ae2A4C720A28D8263BC4972905d7DE0f", and records that the 11 DODO pools registered in dodoPoolAddresses[tokenA][tokenB] (8 at deploy + 3 cBTC pools added Phase 3j) are bidirectionally wired.

Stacks on top of PR #17 (Stack-A canonicalization). Diff against this PR's base shows only the deployed-state updates; once PR #17 merges to master, this PR rebases cleanly.

Files changed

  • docs/11-references/PMM_DEX_ROUTING_STATUS.md

    • Bullet "EnhancedSwapRouter is not yet deployed … Phase 3 LAN deploy command staged" → "deployed at 0xE6Cc7643… … 11 DODO pools registered bidirectionally".
    • §2.1 row "EnhancedSwapRouter | Pending deploy" → "Deployed".
    • §2.2 row "Liquidity Engine (backend) … Depends on EnhancedSwapRouter being deployed" → "EnhancedSwapRouter is now deployed; backend can resolve DODO-registered pairs through swapTokenToToken(...). Multi-provider routing (UniV3 / Balancer / 1inch) needs per-pair pool/quoter config before it engages".
    • §3 capability "Multi-provider choice (one leg) | No (router not deployed)" → "Partial — router deployed, only DODO Stack-A active".
    • §4 "DEX routing (EnhancedSwapRouter) | No" → "Partial".
    • §4 "Liquidity Engine (decision logic) | No" → "Partial".
    • §4 "Remaining" updated to reference Balancer pool ids + UniV3/1inch native pools rather than "deploy EnhancedSwapRouter".
  • docs/11-references/ADDRESS_MATRIX_AND_STATUS.md §1.6

    • Row "EnhancedSwapRouter | — | | Pending Phase 3 LAN deploy" → "0xE6Cc7643ae2A4C720A28D8263BC4972905d7DE0f | | Deployed 2026-04-22 (Phase 3, EVM Paris). UniV3 + Balancer + DODO Stack-A wired; Curve disabled; 1inch slot inert. 11 DODO pools registered bidirectionally — 8 at deploy + 3 cBTC pools (cBTC/cUSDT, cBTC/cUSDC, cBTC/cXAUC) added Phase 3j 2026-04-22 via setDodoPoolAddress(...). Balancer pool ids still pending per-pair config."

Phase 3j receipts

pair tx (base→quote) tx (quote→base)
cBTC/cUSDT 0xb40416d1…c60a0 0xb074f48a…8ebf
cBTC/cUSDC 0x291c0425…bc509 0x107c43f4…11cb3
cBTC/cXAUC 0xe3fe922b…dcbb9 0x00d8119c…755e8a

All 6 receipts: status=1, ~47.5k gas each. Post-flight dodoPoolAddresses(tokenA,tokenB) returns the pool address in both directions for all 3 pairs (verified via public RPC https://rpc.d-bis.org).

What this PR does NOT change

  • Stack-A canonicalization (handled in PR #17 — this PR stacks on top).
  • The per-pool reserve figures in §1.6 (e.g. "Live (10k cBTC / 9M cUSDT)"). The _BASE_RESERVE_(uint112) raw values returned by these pools were 1e10 (cBTC, 8 decimals → 100 cBTC at the canonical decimals), not 10k. Either the figure or the assumed decimals is off — flagging here for a separate doc-correction PR rather than mixing it into this Phase 3 status update.
  • Balancer pool id config (setBalancerPoolId(...)) and Curve / 1inch slot policy — both still flagged as follow-ups.

Validation

  • Markdown only, no scripts touched.
  • Cross-checked each updated row against the deployed router's on-chain state from https://rpc.d-bis.org (providersEnabled, dodoLiquidityProvider, all 11 dodoPoolAddresses[tokenA][tokenB] entries).
## Summary Phase 3k — flips the Chain-138 reference docs from "EnhancedSwapRouter pending Phase 3 deploy" to "EnhancedSwapRouter deployed at `0xE6Cc7643ae2A4C720A28D8263BC4972905d7DE0f`", and records that the 11 DODO pools registered in `dodoPoolAddresses[tokenA][tokenB]` (8 at deploy + 3 cBTC pools added Phase 3j) are bidirectionally wired. Stacks on top of [PR #17](https://gitea.d-bis.org/d-bis/proxmox/pulls/17) (Stack-A canonicalization). Diff against this PR's base shows only the deployed-state updates; once PR #17 merges to `master`, this PR rebases cleanly. ## Files changed - `docs/11-references/PMM_DEX_ROUTING_STATUS.md` - Bullet "EnhancedSwapRouter is **not yet deployed** … Phase 3 LAN deploy command staged" → "**deployed** at `0xE6Cc7643…` … 11 DODO pools registered bidirectionally". - §2.1 row "EnhancedSwapRouter | Pending deploy" → "Deployed". - §2.2 row "Liquidity Engine (backend) … Depends on EnhancedSwapRouter being deployed" → "EnhancedSwapRouter is now deployed; backend can resolve DODO-registered pairs through `swapTokenToToken(...)`. Multi-provider routing (UniV3 / Balancer / 1inch) needs per-pair pool/quoter config before it engages". - §3 capability "Multi-provider choice (one leg) | No (router not deployed)" → "Partial — router deployed, only DODO Stack-A active". - §4 "DEX routing (EnhancedSwapRouter) | No" → "Partial". - §4 "Liquidity Engine (decision logic) | No" → "Partial". - §4 "Remaining" updated to reference Balancer pool ids + UniV3/1inch native pools rather than "deploy EnhancedSwapRouter". - `docs/11-references/ADDRESS_MATRIX_AND_STATUS.md` §1.6 - Row "EnhancedSwapRouter | — | ⏳ | Pending Phase 3 LAN deploy" → "`0xE6Cc7643ae2A4C720A28D8263BC4972905d7DE0f` | ✅ | Deployed 2026-04-22 (Phase 3, EVM Paris). UniV3 + Balancer + DODO Stack-A wired; Curve disabled; 1inch slot inert. 11 DODO pools registered bidirectionally — 8 at deploy + 3 cBTC pools (cBTC/cUSDT, cBTC/cUSDC, cBTC/cXAUC) added Phase 3j 2026-04-22 via `setDodoPoolAddress(...)`. Balancer pool ids still pending per-pair config." ## Phase 3j receipts | pair | tx (base→quote) | tx (quote→base) | |------|------------------|------------------| | cBTC/cUSDT | `0xb40416d1…c60a0` | `0xb074f48a…8ebf` | | cBTC/cUSDC | `0x291c0425…bc509` | `0x107c43f4…11cb3` | | cBTC/cXAUC | `0xe3fe922b…dcbb9` | `0x00d8119c…755e8a` | All 6 receipts: `status=1`, ~47.5k gas each. Post-flight `dodoPoolAddresses(tokenA,tokenB)` returns the pool address in both directions for all 3 pairs (verified via public RPC `https://rpc.d-bis.org`). ## What this PR does NOT change - Stack-A canonicalization (handled in PR #17 — this PR stacks on top). - The per-pool reserve figures in §1.6 (e.g. "Live (10k cBTC / 9M cUSDT)"). The `_BASE_RESERVE_(uint112)` raw values returned by these pools were `1e10` (cBTC, 8 decimals → 100 cBTC at the canonical decimals), not 10k. Either the figure or the assumed decimals is off — flagging here for a separate doc-correction PR rather than mixing it into this Phase 3 status update. - Balancer pool id config (`setBalancerPoolId(...)`) and Curve / 1inch slot policy — both still flagged as follow-ups. ## Validation - Markdown only, no scripts touched. - Cross-checked each updated row against the deployed router's on-chain state from `https://rpc.d-bis.org` (`providersEnabled`, `dodoLiquidityProvider`, all 11 `dodoPoolAddresses[tokenA][tokenB]` entries).

Claude encountered an error —— View job


I'll analyze this and get back to you.

**Claude encountered an error** —— [View job](http://127.0.0.1:3000/d-bis/proxmox/actions/runs/223) --- I'll analyze this and get back to you.
nsatoshi changed target branch from devin/1777435956-stack-a-canonicalization to master 2026-04-29 10:49:51 +00:00
nsatoshi added 1 commit 2026-04-29 10:49:51 +00:00
docs(chain138): EnhancedSwapRouter deployed (Phase 3) + 3 cBTC pools wired (Phase 3j)
Some checks failed
AI Code Review / claude-review (pull_request) Failing after 59s
9ebb056869
Updates ADDRESS_MATRIX_AND_STATUS.md and PMM_DEX_ROUTING_STATUS.md to reflect:

- EnhancedSwapRouter is deployed at 0xE6Cc7643ae2A4C720A28D8263BC4972905d7DE0f
  on Chain 138 (2026-04-22, EVM Paris). Wired immutables: UniV3, Dodoex
  (Stack-A 0x86ADA6Ef...), Balancer, 1inch; Curve disabled. dodoLiquidityProvider
  set to Stack-A 0x3f72963....

- 11 DODO pools registered bidirectionally in dodoPoolAddresses[tokenA][tokenB]:
  8 at deploy + 3 cBTC pools (cBTC/cUSDT, cBTC/cUSDC, cBTC/cXAUC) added
  Phase 3j 2026-04-22 via setDodoPoolAddress(...).

- Multi-provider DEX routing capability summary updated from "No (router not
  deployed)" to "Partial — DODO Stack-A path live; UniV3/Balancer/1inch slots
  wired but inactive (no native pools / no pool ids)."

- Liquidity Engine and DEX routing status rows updated to reflect the partial
  activation state. Balancer pool ids per-pair via setBalancerPoolId(...) and
  native UniV3/1inch pools on Chain 138 remain follow-ups.

Stacks on top of PR #17 (Stack-A canonicalization).

Co-Authored-By: Nakamoto, S <defi@defi-oracle.io>
nsatoshi merged commit 99eafe5920 into master 2026-04-29 10:50:37 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: d-bis/proxmox#18