Technical brief
Portfolio intent clearing.
Design notes from the November 2026 QMSOptify proposal. The first prototype would test whether matching users within a batch improves their final execution after costs.
Intent constraints
A user specifies the assets they allow, the weights they want to reach, the minimum output they will accept, a slippage limit, and a deadline. The wallet signs a typed EIP-712 message. A nonce identifies the instruction so it can be cancelled or invalidated after use.
One intent, from signature to settlement
Suppose a portfolio holds 10 A and the owner wants to hold only B. At the reference price of 2 B per A, the expected output is 20 B.
- Sign the limits. Allow only A and B, sell up to 10 A, and receive at least 19.8 B after fees for the full order. That allows 1% slippage. The instruction expires in 15 minutes and carries an unused nonce.
- Match the opposing order. Another seller offers 12 B for 6 A. Matching those orders uses 6 of the original 10 A and leaves 4 A for an outside venue.
- Check the final amount. If the venue returns 7.9 B after fees, the seller receives 19.9 B in total. The proposed contract could settle while the signature, deadline, nonce, and other constraints remain valid.
- Reject an insufficient fill. If the venue returns only 7.7 B, the total falls to 19.7 B. That misses the signed minimum, so the proposed contract would reject the batch.
Clearing architecture
- Intent API and coordinator
- Collect time-limited intents and group eligible orders into a batch.
- Clearing engine and solver
- Find opposite asset flows and calculate what can be matched. The proposed Python service uses a deterministic baseline before comparing alternative solvers.
- Independent validator
- Check that a proposed plan respects each user's constraints before it reaches settlement.
- Settlement and venue adapters
- Enforce signed limits onchain and restrict external execution to approved venues. QWAP is a candidate pending confirmation of its interfaces.
Settlement safeguards
The proposed registry checks signatures, expiry, nonces, and cancellation state. The settlement contract would enforce token allowlists, minimum outputs, bounded fees, and batch consistency. Solvers propose routes with no unrestricted token-transfer authority.
The test plan covers stale quotes, partial failures, hostile token behaviour, and price movement between preview and settlement.
Execution benchmark
The baseline executes the orders as separate swaps. The comparison uses the same orders and limits in a netted batch, then records actual outputs, gas, fees, slippage, completion rate, and solver runtime. Reports would distinguish submitted value, internally matched value, and external volume.
Experiments with quadratic unconstrained binary optimisation (QUBO) would focus on discrete matching or route choices. A future QMS useful-work integration depends on documented job submission, verification, and reward interfaces.
Wallet names on QMS Network
QMSOptify plans to support readable names for wallet addresses, with .qms as the proposed suffix. For example, Alice could share alice.qms. A sender could enter that name in a supported wallet, review the QMS Network address it resolves to, and confirm the transfer.