Skip to content

Sepolia v6: addresses, margin ABI, marginSwap223 minimum output - #427

Merged
rroland10 merged 1 commit into
masterfrom
feat/sepolia-v6
Nov 8, 2026
Merged

rroland10 merged 1 commit into
masterfrom
feat/sepolia-v6

Conversation

@rroland10

Copy link
Copy Markdown

Problem

test-app ran on Sepolia v4. The v6 deployment of 2026-11-07 carries everything merged through Dex223-contracts #200, and its margin module changes the ABI: marginSwap223 takes the owner's minimum output (#198).

Change

  • sdk_bi/addresses.ts, Sepolia: factory 0xbdC7…1A86, router 0x6812…E71b, position manager 0x461A…A4D0, core and free autolistings, margin module 0x0586…1D18, oracle 0x4859…4354, fee collector 0x44f9…5C90, pool init code hash 0x594484e1…ac60 (Dex223-contracts deployments/sepolia-v6.json).
  • config/abis/marginModule.ts regenerated from the v6 build. isOrderOpen and predictTokenListsID are gone (no callers); orderSetLenderProtection, orderMaintenanceMarginBps, orderLiquidationKeeper and positionUnderwaterSince are added.
  • useMarginSwap.ts: the ERC-223 path passes minimumAmountOut to marginSwap223, so the "minimum received" shown to the user is now enforced on-chain (MM21 below it). Test updated.

Verification

tests/marginSwap.test.cjs 6 passing, apiProxies 13, swapReceipt 20. ESLint clean on the changed files; tsc shows only the pre-existing trading-chart errors from the local node_modules.

Open

  • The Sepolia subgraphs already serve v6 (dex-223-v-1-sepolia and dex-223-margin-sepolia version v6-20261107); the exchange subgraph is still replaying from block 8468334.
  • Mainnet is unchanged: it still has no margin module address in the UI.

test-app moves to the Sepolia v6 deployment of 2026-11-07: factory, router, position manager, both
autolistings, margin module, oracle, fee collector and the pool init code hash 0x5944…. The margin
ABI is regenerated from the v6 build: marginSwap223 takes the owner's minimum output (contracts
#198), so the ERC-223 swap now passes minimumAmountOut; isOrderOpen and predictTokenListsID are gone
(no callers); lender-protection functions from #182 are added.
@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
dex223-ui-blog Ready Ready Preview Nov 7, 2026 8:15pm UTC
dex223-ui-web Ready Ready Preview Nov 7, 2026 8:15pm UTC

Request Review

@rroland10
rroland10 merged commit 9bcdbcf into master Nov 8, 2026
5 checks passed

This branch was successfully deployed

2 active deployments
Preview – dex223-ui-web — a6b7486d Deployed Nov 7, 2026 by vercel[bot]
Preview – dex223-ui-blog — a6b7486d Deployed Nov 7, 2026 by vercel[bot]
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.

1 participant