Method
How a deal is accepted or refused.
Every rule on this page runs in the terminal and, where it touches money, again in the settler contract. Same numbers, same bits.
Mandates and matching
A mandate is a side (sell or buy), an asset, a quote token, an exact full-fill amount, a hard limit in quote units and an expiry, plus an optional fee to your own recipient and an optional counterparty lock. The seller's limit is the minimum it receives after its fee; the buyer's is the maximum it pays including its fee.
Two mandates match when they are one seller and one buyer, name the same asset, quote and amount, come from different makers, are unexpired, accept each other's address and have fees within 0.50 %. Their zone of agreement runs from the seller's minimum gross to the buyer's maximum gross; when the zone is empty the terminal says so before any agent runs. Partial fills are not supported in v1.
Net math
fee = floor(gross × bps / 10,000) · seller net = gross − seller fee · buyer total = gross + buyer fee
Minimum gross for a seller net m: ((m − 1) × 10,000) / (10,000 − bps) + 1. Maximum gross for a buyer total M: ((M + 1) × 10,000 − 1) / (10,000 + bps). Both are tight: one unit less (or more) breaks the limit. They are fuzz-tested in Solidity and swept in TypeScript.
Example: 1,000 USDG gross with a 20 bps seller fee nets 998.000000, so a 1,000 floor refuses it; the smallest gross that clears it is 1,002.004008. Amounts are integers in each token's own decimals; nothing is rounded through floating point.
The agent
Deterministic code, not a language model. Each side's agent knows only its own bound and the other side's last offer.
- Opening: with a Chainlink price for the asset, the seller asks the reference + 1.5 % and the buyer bids reference − 1.5 %; without one, each opens 1.5 % outside its own bound. Clamped to the bound.
- Each round the seller, then the buyer, moves 40 % of the gap toward the other, never past its bound.
- A bid that reaches the ask is accepted at the ask; an ask that reaches the bid at the bid. Under a 0.05 % gap, the side whose limit allows it accepts.
- Both at their bounds without crossing, or 12 rounds: no agreement, and it says why.
It proposes; it never signs. A test runs 2,000 random limit pairs and checks that no offer ever crosses a bound and that every overlapping pair agrees.
Orders and signatures
When both sides accept, each wallet signs an EIP-712 order (domain "Parvex Mandate Settler", version 1, the chain id and the settler address):
Order(address maker,uint8 side,address base,address quote,uint256 baseAmount,uint256 quoteGross,uint256 limitQuote,uint16 feeBps,address feeRecipient,address counterparty,uint64 expiry,uint256 nonce)
The signed limit is, by default, the deal's own number for that side (the seller's exact net, the buyer's exact total), so your wider private limit never leaves your device. The other maker is locked as counterparty when known. Nonces are time-based. A contract wallet can approve an order by transaction instead (ERC-1271 signatures are also accepted). Orders move between two devices through the order board, or as a small JSON file you export and import.
Reason bits (checkDeal)
checkDeal returns a bitmask; 0 means settle() goes through unless a token misbehaves during the transfer. The terminal shows the same rules before anything is signed.
| Bit | Name | Meaning |
|---|---|---|
| 0 | R_SIDE | Sides are wrong. One order must sell the asset and the other must buy it. |
| 1 | R_TOKENS | Tokens do not line up. Both orders must name the same asset and quote token, two different tokens that are contracts. |
| 2 | R_AMOUNT | Amounts differ. Both orders must sign the same full-fill amount (above zero, below 2^128). |
| 3 | R_PRICE | Prices differ. Both orders must sign the same gross price (above zero, below 2^128). |
| 4 | R_SELF_MATCH | Same wallet on both sides. A maker cannot trade with itself. |
| 5 | R_SELL_EXPIRED | Seller order expired. The chain's clock is past the seller's expiry. |
| 6 | R_BUY_EXPIRED | Buyer order expired. The chain's clock is past the buyer's expiry. |
| 7 | R_SELL_COUNTERPARTY | Seller locked to someone else. The seller named a different counterparty. |
| 8 | R_BUY_COUNTERPARTY | Buyer locked to someone else. The buyer named a different counterparty. |
| 9 | R_SELL_NONCE | Seller order used or cancelled. Its nonce was settled before, cancelled, or is below the seller's cancel-all line. |
| 10 | R_BUY_NONCE | Buyer order used or cancelled. Its nonce was settled before, cancelled, or is below the buyer's cancel-all line. |
| 11 | R_SELL_SIGNATURE | Seller has not authorized these terms. No valid signature (or on-chain approval) from the seller over exactly these terms. |
| 12 | R_BUY_SIGNATURE | Buyer has not authorized these terms. No valid signature (or on-chain approval) from the buyer over exactly these terms. |
| 13 | R_SELL_FEE | Seller fee not allowed. Above 0.50 %, or paid to nobody, to the seller or to the buyer. |
| 14 | R_BUY_FEE | Buyer fee not allowed. Above 0.50 %, or paid to nobody, to the buyer or to the seller. |
| 15 | R_SELLER_NET | Seller net below minimum. After the seller's fee, the price leaves the seller less than the signed minimum. |
| 16 | R_BUYER_TOTAL | Buyer total above maximum. With the buyer's fee, the price costs the buyer more than the signed maximum. |
| 17 | R_SELLER_BALANCE | Seller lacks the asset. The seller's balance of the asset is below the amount. |
| 18 | R_SELLER_ALLOWANCE | Seller allowance too low. The seller has not approved the settler for the amount. |
| 19 | R_BUYER_BALANCE | Buyer lacks the quote token. The buyer's quote balance is below the total to pay. |
| 20 | R_BUYER_ALLOWANCE | Buyer allowance too low. The buyer has not approved the settler for the total. |
Settlement
settle(sell, sellSig, buy, buySig) may be sent by anyone, because both signatures fix every term. It re-runs checkDeal, spends both nonces, then moves the asset seller → buyer, the net buyer → seller and each signed fee buyer → its recipient, all with transferFrom under the makers' own allowances. Every leg is measured by the receiver's balance change: fee-on-transfer and rebasing tokens revert the whole deal. Tokens that return nothing are accepted; tokens that return false are refused. A reentrancy guard blocks a token from settling another pair mid-transfer.
Gas, measured: the deploy transaction 1,733,680 (E2E chain, id 4663); settle() of real NVDA stock tokens against USDG with a seller fee 226,696 inside the call on a Robinhood Chain fork (plus the transaction base cost). Paid in ETH.
The two events Settled and SettledAmounts are the proof of settlement; the dashboard reads them with explorer links.
Live sources
Read live through this site's relay (its RPC budget is rate limited) or the public endpoints; every number shows its age.
- Robinhood Chain (4663) head block and gas; Chainlink ETH/USD 0x78f3556b67e17df817d51ef5a990cdaf09e8d3a9.
- Stock tokens: candidates from the beacon's logs, each proven on chain on every refresh: proxy code hash 0x6c1fdd40002dcb44…, beacon slot = 0xe10b6f6b275de231345c20d14ab812db62151b00, minted supply above zero. Prices from the matching Chainlink stock feeds (heartbeat 24 h, stale outside market hours). Stock tokens are tokens on Robinhood Chain, not the shares themselves.
- Quote tokens: USDG 0x5fc5360d0400a0fd4f2af552add042d716f1d168 and WETH 0x0bd7d308f8e1639fab988df18a8011f41eacad73, symbol and decimals read on chain. USDG is valued at 1 USD for the reference price only.
- Robinhood Chain Testnet (46630): RPC https://rpc.testnet.chain.robinhood.com, explorer https://explorer.testnet.chain.robinhood.com (both answered from this build machine on 25 Nov 2026). No stock tokens are proven there; paste any token address.
- ParvexMandateSettler: mainnet 0x71f84ce6cb069aeb4eb2627dbaa2a2e30cceea1f; testnet not deployed yet.
What was checked, and what was not
The settler has unit tests for every reason bit, hostile tokens (no-return, false-returning, fee-on-transfer, reentrant, reverting or gas-burning views), ERC-1271 wallets and on-chain approvals; fuzz tests of the net math and of settlement; invariants (the settler never holds a token, supply is conserved, a nonce never settles twice); and fork tests on Robinhood Chain with real NVDA and USDG. It has a written self-review. It has had no outside security review yet: start on the testnet, then small amounts.
Stock tokens can be paused or blocked by their issuer; a blocked address makes the transfer fail and the whole deal revert.
Order relay board
Signed orders can be posted to an open board instead of passing files. Anyone can read it and take an order into their book. Before listing, the server checks the order: this site's settler and chain, a valid EIP-712 signature from the maker (EOA), not expiring within a minute, nonce neither used nor cancelled on chain. On every read, expired orders and orders whose nonce the chain reports used (settled) or cancelled are removed. A counter-offer carries the id of the order it answers.
Limits, all on the server: live orders per wallet (free 3, holder 25), a per-network posting budget, a per-IP rate limit and a cap of 2,000 live orders per network; a full board refuses new posts and never drops existing ones. Storage: the configured KV store, else this server's memory (the page says so: data may be lost on restart).
Holder tier
A wallet is a holder when balanceOf(wallet) × 1,000 ≥ totalSupply() of $PARVEX, both read on Robinhood Chain at each holder action (kept at most 30 s). The session is one EIP-4361 sign-in message (no gas, at most 4 h) checked on every request against a fixed domain list (never the request's Host header), chain 4663 and its expiry; Sign out revokes its nonce. No server secret exists. Before the token launches the tier shows "Unlocks at launch" and the free tier works fully.
Alerts
Level 1: the bell lists, for the connected wallet, settled deals (Settled events), board orders that match yours, counter-offers, and your orders expiring within 15 minutes, unread since your last look. Level 2: browser notifications while a Parvex tab is open, after you click Enable. Free for everyone and web only: no email, no Telegram, no push service; computed in your browser from public data.
Planned, not built
- Partial fills and multi-asset baskets.
- ERC-1271 (contract wallet) sign-in for the holder session.
Does Parvex hold my tokens?
No. Tokens stay in your wallet. The settler contract moves them only inside the one transaction that settles a deal, with transferFrom under the allowance you gave it, and it never keeps a balance. It has no owner, no admin, no upgrade and no payable function.
What is the agent?
A deterministic, rule-based assistant written in plain code, not a language model. Each side's agent sees only its own limit and the other side's last offer, opens near the Chainlink price when one exists, moves 40 % of the gap per round and stops at its limit. It proposes numbers; it never signs anything.
Why is the seller's limit a net number?
Because a price that looks right can still leave the seller short after fees. The seller enters the least they will receive after their own fee; the terminal and the contract both check gross minus fee against it, in the token's own integer units.
What does Parvex charge?
Nothing. Each side may sign a fee of up to 0.50 % to its own recipient (a broker or desk), shown in every review. The contract has no fee for Parvex and no switch to add one.
What happens when a deal is refused?
A transaction that reverts leaves no event. That is why the terminal asks the contract's checkDeal view first and shows every failing reason with its numbers before any wallet opens, and the dashboard keeps those refusals in this browser.
How do alerts work?
The bell in the header lists, for your connected wallet, deals of yours that settled (read from the settler's events), board orders that match yours, counter-offers to your orders and your orders about to expire. Enable browser notifications to get them while a Parvex tab is open. Free for everyone, web only: no email, no push service, nothing stored on a server.
Mainnet or testnet?
Both. Robinhood Chain (4663) and Robinhood Chain Testnet (46630) are selectable; the settler must be deployed on the network you pick. Practice mode needs neither: it runs on sample mandates in your browser.
Do I need the $PARVEX token?
No. Everything works without it, including the order board and alerts. Holding at least 0.1 % of the supply (read live on chain after a gas-free sign-in) raises two quotas: live orders on the board (3 to 25) and saved counterparties (5 to 100). No rewards, discounts or value of any kind are promised.
Is Parvex connected to Robinhood?
No. Parvex is an independent prototype that uses public contracts on Robinhood Chain. Stock tokens are tokens on Robinhood Chain, not the shares themselves. Nothing here is investment advice.