Browse guides
DEX execution boundary
Trace the private operator path and see which mainnet, local-chain and exchange artifacts are available.
On this page
Where orders execute
The public Workspace, including its running market sessions, uses paper balances. Quoting a HashKey block through the dashboard reads public chain data. The separate private runner can sign a swap with an operator-controlled key and manage the corresponding spot hedge.
What each environment proves
| Environment | Evidence |
|---|---|
| Hosted demo | Mainnet pool identity and exact-size quotes, public Global books, simulated fills, P&L and faults replayed in the ledger. |
| Local Anvil | Executor deployment, keystore signing, bounded swaps, emitted events and confirmed local receipts. Exchange integration tests use controlled responses. |
| Funded operator | Requires an authorized team deployment and funded accounts. Publishing a reconciled live pair requires its deployment address, swap receipt, spot order, fills and venue inventory changes. These production artifacts are pending. |
Understand the funded controls
Each FlowShield executor is bound to its chain, router, token pair, fee tier and treasury. Buys use exact output with a maximum quote input. Sells use exact input with a minimum output. The contract enforces the operator, caps, deadline, pause state and a single-use execution ID.
The private auto path accepts one eligible, current AI decision from a running live-feed PAPER journal. It independently checks the source block, exact quantity, fresh prices, inventories and operator limits. The signed hash and CEX client order ID are stored before their respective external submissions. The hedge follows a verified DEX outcome and uses a Global limit immediate-or-cancel order.
A partial hedge changes the remaining base exposure. The journal tracks actual fill quantities and fee units, including fees in the base token and dust below the venue minimum. Unknown receipts, missing order evidence and unresolved residuals can require operator reconciliation. The journal records native gas and uses an operator-supplied HSK/USDT bound for its USDT valuation.
Verify the interfaces locally
With Foundry, Anvil and the locked Python environment available, run the contract and execution tests from the repository root.
forge test
uv run --locked pytest -q tests/test_dex_execution.py tests/test_v3_live.py
uv run --locked python -m flowshield.v3_live --help
The repository's docs/v0.3-live.md lists the private operator configuration, preflight checks, execution limits and recovery procedure. For the public demonstration, open the synthetic lab and inspect a partial hedge or timeout in Decision ledger. Hedge lab
Inspect funded evidence
Open Funded results for the operator's latest verified settlements. Expand a trade to inspect its source, swap transaction, IOC fees, remaining base and native HSK gas. P&L after gas uses the reported gas valuation bound. The publication timestamp identifies when the private verifier last checked both venues. Ask Workspace Show funded P&L to query the same data. Before the first publication the page reports that no evidence has been published.