Status: Part A ✅ built for 1.9.0. Part B ⬜ not built, its gate answered on chain after Part A’s PR opened (backlog.md). The owner, 2026-11-09: “write a chunk for the 1.9.0 work for the new stuff”, after Minswap announced three additions to its aggregator, then “lets get this setup right and do it right now”. Their standing call from 2026-10-07 was to add SundaeSwap V4 “only when Minswap’s router handles it”: it does now.
Branch web-wallet/minswap-new-routes from main. What was built is at the end.
| Addition | What it is to the wallet |
|---|---|
| SundaeSwap V4 in the aggregator, and cancelling V4 orders from Minswap | Part A. The route needs the wallet to read and cancel V4’s orders itself. Minswap’s cancel is never used: Stop builds every cancel itself (chunk 24) |
| A route swaps on Dano first, then places the next hop as an order on another DEX, in one transaction | Part B. The wallet asks for direct routes only, and outOfPlace refuses a Danogo swap beside anything else |
| Dano trades on Minswap’s Orders page | Nothing. That’s Minswap’s site. The wallet finds its orders on chain and never asks Minswap for an account’s orders (keys-and-accounts.md) |
Where it starts from. The PR that added this plan stopped sending ChakraBondingCurve, whose refusal failed every quote, and left SundaeSwapV4 out of routing on both networks (excludedProtocols, NOT_READ_YET in minswap.ts). routeOf now asks once more without a DEX the wallet doesn’t check. So V4 stays out until Part A puts it in.
| Fact | Where from |
|---|---|
Minswap’s API takes SundaeSwapV4, on both networks |
Live |
Mainnet’s order script is 07eb2fb09d9dd6603870ce6f84c8f8506249152173ddf0c77f1f07ec |
api.sundae.fi/graphql, protocols. Its V3 hash there is the one SUNDAE_V3 pins |
Its reference is c1ecddd68eaa61a3fb4c7af2fac6388d7c8fe0065da359943bdfb976e0f4be9a#0: unspent, Plutus V3, 3,128 bytes, of that hash |
Koios utxo_info |
The datum is [owner, destination, service_budget, max_per_execution, config_token, constraints, extension]. owner is a MultisigScript. destination is Fixed { address, datum: Option } or Self |
sundae-sdk, Contract.v4.ts |
A cancel spends the order with redeemer Constr 0 [] (as Splash’s, where every other DEX’s is Constr 1 []), by reference script, signed by the owner |
sundae-sdk, TxBuilder.V4.class.ts, cancel |
Six of Minswap’s market orders for V4, among the last 30 transactions at the script: under the sender’s own staking part (header 0x11), unlike V3’s fixed one; owner Signature of the sender’s stake key; five pay Fixed to the sender with no datum, and one pays a script with a datum (a chained first leg) |
Koios, read from chain |
In all ten Minswap orders seen, service_budget = max_per_execution = 1,280,000, and the two constraints are basic_order.withdraw (30f1fac0…) and fee_constraint.withdraw (267eabb9…) |
Koios, datum_info |
“A basic order settles single-shot to a Fixed destination (no partial fills)”. V4’s default budget, unlike Minswap’s, funds a partial fill |
sundae-sdk, TxBuilder.V4.class.ts |
| 1,000+ transactions at the script since 2026-10-09 (one Koios page), two open orders. Minswap’s were USDR → USDCx | Koios |
| Sundae’s API lists 32 V3 and 18 V1 ADA pools and no V4 one. With V4 allowed, ADA → SUNDAE and ADA → MIN didn’t take it | api.sundae.fi/graphql, Minswap’s estimate |
Not known. V4’s validators aren’t public: the SDK cites a sundae-v4 repository that isn’t among SundaeSwap-finance’s public ones. Sundae’s July announcement said the audit was nearly finished, and no result turned up. Whether preprod has V4 at all.
Two traps. Excluding every DEX but V4 doesn’t isolate it: Minswap’s own pools came back anyway. And Koios’s tx_info gave these orders no inline datum bytes, while datum_info by the output’s hash did.
orders.json, the reference re-checked on chain 2026-11-09. Preprod has none to pin: two stray transactions at Sundae’s test deployment’s script, last in September, and no reference UTxO. excludedProtocols("preprod") keeps the name out (PREPROD_NOT_PINNED).orders.rs). Protocol::SundaeSwapV4, with the Constr 0 [] cancel and signs_with_stake. Owner is Signature of the key, destination Fixed with None. Any other MultisigScript, Self or a Some datum doesn’t read, so the chained first leg is refused here.basic_order.withdraw then fee_constraint.withdraw, by hash. The SDK says a basic order “settles single-shot”. Of the last 350 transactions at the script, 174 were fills and none left an order behind, 33 of those with a budget of 3 ₳ against a 1.28 ₳ cap, so equal budgets would have refused good orders. One order in the sample named another module (35a9eebb…): that form doesn’t read.MAINNET_PROTOCOLS. checkOrder’s staking rule took the session’s own part already, and a session without its own stake key is already refused.checkOrderCancels runs V4’s script. liveOrders and the restore scan go by orders.json, and the data layer names no order script. withinFunding holds: Minswap quotes V4 at a 1.28 ₳ fee and a 2 ₳ deposit, the 3.28 ₳ a real order holds (USDCx → USDr, 2026-11-09).8dc9ee14…), now in order_cancels.json, so every test over the fixtures runs it: Rust’s, and Vitest’s through the real runner. Variants for another owner or destination, a chained leg, Self, every other MultisigScript, another module, a missing or third constraint.V4’s cancel reads the owner alone: an extra datum field and a budget written as bytes both still cancelled, so nothing else in the datum can stop one.
Done means: a mainnet quote can route through V4 on its own, and Stop brings back any V4 order the session placed.
allow_multi_hops is false on every request, and it’s tested. DIRECT_CHECKED keeps Danogo alone, because “an order beside it would be filled later, under a minimum the check never reads”.read already takes that shape, so Stop could cancel it, bringing back the middle token.outOfPlace refuses this too, and a Stop leaves no middle token.Two of the four pairs, quoted again with multi-hop allowed, came back direct (ADA → HOSKY through VyFinance, STRIKE → ADA through SundaeSwapV3), so Dano first only wins sometimes. Still unseen: a build-tx of one, unsigned, and what its minimum is. Nothing below was built.
estimate per quote, multi-hop allowed, taken only when it’s exactly [DanogoCLMMV1, X], X is a DEX the wallet reads, and it beats the direct route by the margin of question 2.outOfPlace allows that one shape and nothing else.inspect). directSpends holds. checkDirect says “No order” today, and needs the order’s outputs. checkProceeds doesn’t apply, as the proceeds go into the order, so the wallet must read the order’s minimum itself: new per DEX. Start with one X, whichever step 1 shows most.againstPools today means filled in the swap itself (sessions.ts: order, and the Stop and return paths reading againstPools). This shape is half that: Stop is possible, and brings back the middle token, not what was funded. The return handles that token, through Lovejoin where it can..warn., back-translated.Done means: a route that is Dano then an order goes through when it’s better, is checked as tightly as each half is today, and Stop returns what’s left.
estimate per quote, the same fields to the same service, so no new data. Its privacy notes extend Danogo’s in privacy.md: Minswap’s collateral and note tie the account to the aggregator, as now. If a build shows anything new reaching Minswap, it needs a dated entry in the privacy policy.Part A, in the PR that archived this plan, for 1.9.0: V4 pinned, read, routed and tested on mainnet, off preprod. Rust’s order tests went from 24 to 26 with V4’s real order running through every test over the fixtures, and Vitest’s real-order list gained it, through the runner.
Left open: V4’s first live mainnet swap and Stop (no test spend asked of the owner), and Part B (backlog).