Skip to content
Semvio
CA$SEMVIO · TBA

Method

What runs, what is checked, what is not.

Everything on this page is true of the site and the contract as built. Where something is planned, it says Concept.
  1. 01 RequestYou choose buy or sell, the asset, the amount, your price limit and how long the request stands. The limit stays with your agent.
  2. 02 MatchCounterparties on the other side are tested for size and price overlap after the fee; each one gets a reason in numbers.
  3. 03 RevisionsThe agents (or the people) propose terms. Each proposal is revision n with hash H(n) = keccak(tag, H(n-1), deal, n, proposer, side, price, fee, recipient, expiry, note hash); revision 1 chains from the deal's own hash.
  4. 04 ChecksBuyer budget: gross ≤ max gross. Seller minimum: gross − fee ≥ min net. Plus expiry, balances and allowances. checkDeal() returns them as bits.
  5. 05 ApprovalSeller and buyer each approve one revision number and hash. Any new revision voids older approvals; either side may withdraw.
  6. 06 Settlementsettle() or approveAndSettle() moves the asset seller → buyer, net buyer → seller and fee buyer → recipient with transferFrom, in one transaction, and checks each arrival.

Fee and net

fee = ⌊gross × feeBps / 10,000⌋ · net = gross − fee

The fee is optional, at most 100 basis points (1 %), and goes to a third-party recipient named in the revision (a broker or the operator of an agent). It cannot go to the buyer or the seller. Rounding is down, so the seller never pays more than the stated rate. Semvio itself charges nothing and the room has no fee switch.

The smallest gross that leaves a seller at least a given net is computed exactly (minGrossForNet), so the agent can turn a seller's minimum net into a gross floor. The site and the contract share the same integer math; tests run fixed vectors on both.

Reason codes

One bit per reason, the same on the site and in the contract

BitNameMeaning
0No such dealThe deal number does not exist in this room.
1Deal closedThe deal was already settled or cancelled.
2Deal expiredThe deal's validity window has ended.
3Offer expiredThe current revision's own expiry has passed: propose a new revision.
4Seller has not approvedThe seller has not approved this exact revision.
5Buyer has not approvedThe buyer has not approved this exact revision.
6Seller balance too lowThe seller's wallet holds less of the asset than the deal amount.
7Seller allowance too lowThe seller has not allowed the room to move the asset amount yet.
8Buyer balance too lowThe buyer's wallet holds less of the quote token than the gross price.
9Buyer allowance too lowThe buyer has not allowed the room to move the gross price yet.
10Over the buyer's budgetThe gross price is above the buyer's maximum.
11Under the seller's minimum netAfter the agreed fee, the seller would receive less than their minimum.
12Token has no codeOne of the token addresses is not a contract on this network.
13Fee above 1 %The agreed fee may be at most 100 basis points.
14Fee recipient not validA fee needs a third-party recipient (not the buyer or the seller); no fee means no recipient.
15Zero amountAmounts must be above zero.
16Offer window not validAn offer must expire in the future and no later than the deal itself.
17Not the current revisionSomeone proposed a newer revision; review that one instead.
18Not a partyOnly the seller, the buyer or (for proposals only) their appointed agent may do this.
19Revision limit reachedA deal may collect at most 64 revisions.

A reverted transaction leaves no event, so the site runs checkDeal() and checkTerms() as free reads first and shows these bits before your wallet opens.

The contract

SemvioDealRoom (+ library SemvioFeeMath)

Robinhood Chain (4663): 0xf69e694c36535b7509c35f9a64ae63620a760e4f

Robinhood Chain Testnet (46630): not deployed yet

Data sources

What is read live, and from where

Block, gas priceJSON-RPC of each network (official endpoint first, public fallbacks), through the site's rate-limited read relay.
ETH reference priceChainlink ETH / USD on Robinhood Chain, 0x78f3556b67e17df817d51ef5a990cdaf09e8d3a9, with its update time.
Stock tokensListed only when the proxy code hash is 0x6c1fdd40…, its ERC-1967 beacon is 0xe10b6f6b…, its supply is above zero and Chainlink lists a feed for it (feed directory) that answers now. A ticker alone proves nothing. Feeds follow market hours and can be a day old on weekends; the age is always shown.
WETH / USDGWETH and USDG (Global Dollar, 6 decimals) on mainnet; on the testnet, WETH whose ETH balance is checked against its supply live.
DealsThe room's views and logs; the revision chain is re-hashed on the server and compared with what the room stores.
Practice desksSample data: six desks whose limits sit around the reference price. Labelled wherever they appear.

Board, sessions and alerts

What the server keeps, and how it checks you

Status