MMashDiv

Exchange Engine 6.6.3

Latest

25 November 2026

CUSTODYCONSOLIDATIONLIQUIDITYWITHDRAWALSORDERSCONVERT

Ecosystem v6.6.3

Release Date: November 25, 2026 Tags: CUSTODY, CONSOLIDATION, LIQUIDITY, WITHDRAWALS, ORDERS, CONVERT

Overview

Automated custody consolidation sweeps across EVM, Solana, TRON, and legacy Monero wallets, non-leaking per-chain withdrawal liquidity checks, expanded pooled house payouts for multi-chain balance conversion, SuperAdmin stuck-order Cancel & Remove, and buried OPEN order recovery. Multi-chain pooled tokens and Monero (XMR) can now participate smoothly alongside customer withdrawals backed by real per-chain custody capacity, while operators gain direct single-order recovery and sweep observability across Node and Rust custody services.

Requires Core v6.9.0 (ecosystem_consolidation_sweep schema/migration 0943_s014_ecosystem_consolidation_sweep, ecosystemConsolidationSweep cron registration, and /admin/ecosystem/custody/sweeps UI). Pairs with Instant Convert v6.0.6, Monero v6.2.6, Solana v6.1.6, Tron v6.1.8, and Hummingbot Connector v6.2.6.

Update Instructions

pnpm updator

Database schema sync creates ecosystem_consolidation_sweep (Rust installs run migration 0943_s014_ecosystem_consolidation_sweep), seeds consolidation permissions, rebuilds the frontend, and restarts the backend and cron processes.


Added

Automated Custody Consolidation Sweeper

  • Added a background Custody Consolidation Sweeper (ecosystemConsolidationSweep, scheduled every 5 minutes in Core v6.9.0 cron and implemented across both Node consolidation-sweeper.ts and Rust custody loops::sweeper) to sweep funded customer deposit addresses on EVM, Solana, TRON, and legacy Monero wallet files into each chain's active master wallet without altering any customer ledger balance.
  • Added five platform consolidation settings (consolidationEnabled, consolidationIntervalMinutes, consolidationMinUsd, consolidationMaxFeeRatio, consolidationMaxPerRun) and Admin → Ecosystem → Custody Sweeps (/admin/ecosystem/custody/sweeps), backed by GET /api/admin/ecosystem/custody/sweeps and POST /api/admin/ecosystem/custody/sweeps/run (access.ecosystem.master.wallet).

Non-leaking per-chain withdrawal liquidity gating

  • Added live per-network spendableOnChain evaluation (chain-liquidity.ts) across GET /api/ecosystem/withdraw/max and POST /api/ecosystem/withdraw in both Node and Rust for multi-chain pooled tokens, native EVM coins, Solana (SOL / SPL), and Monero (XMR).
  • Withdrawals exceeding what the chosen network's master/pooled custody can settle return chainLiquidityLimited without disclosing internal house or master wallet balances, prompting users to select another network or a smaller amount. See Withdrawing On-Chain.

Expanded pooled house payouts (SEND_SOURCE_VERSION = 5)

  • Added SEND_SOURCE_VERSION = 5 and expanded HOUSE_POOL_FAMILIES (native_evm, sol, spl, xmr) with Monero master_wallet Account 0 house payouts (house-send.ts and Rust house_send.rs) powering Instant Convert v6.0.6's XMR Convert & Send and Accountless Guest Swap payouts.

SuperAdmin stuck-order Cancel & Remove and buried OPEN order recovery

  • Added a SuperAdmin-only Cancel & Remove Order action (DELETE /api/admin/ecosystem/order/{id}, delete.ecosystem.order) in Admin → Finance → Orders → Ecosystem (/admin/finance/order/ecosystem) that atomically cancels open user orders with release-only hold recovery, removes stale bot/market-maker orders without mutating customer wallets, or purges corrupted ghost rows, while refusing already-terminal rows (400). See Orders.
  • Added recoverOpen single-partition filtered OPEN recovery in getOpenOrdersByUserId (scylla/queries.ts) so high-volume accounts and bots with >100k historical closed orders still surface buried open orders on order panels and emergency cancels.

Fixed

Bot and failed-wallet cancellation hold safety

  • Fixed cancelEcosystemOrder so orders carrying marketMakerId or botId (isBotOrder) cancel with zero customer wallet.inOrder mutation rather than attempting wallet refunds.
  • Fixed error handling when opening a customer wallet during order cancellation so an existing-but-unopenable wallet refuses cancellation (throw instead of cancelling in Scylla and stranding inOrder), reserving zero-refund cancellation strictly for definitively absent deleted accounts.