Skip to content
OoJaePublic

About

Curb: the market that trades when the exchange is shut. MarketClock, a graded Scorecard, an x402 API, reopen notes and depth-backed credit on X Layer.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Curb

The market that trades when the exchange is shut.

Demo video (2 min 24 s) · curb.markets · try it in 60 seconds · every transaction · submission answers. Everything below is live on X Layer mainnet (chain 196).

A tokenized Hong Kong stock on X Layer keeps trading for 141 h 20 m of every 168-hour week while its issuer caps creation and redemption at zero. For those hours the arbitrage that holds the token to the real share is switched off, but the pool keeps trading. The window is scheduled and published, yet invisible on chain unless you go looking for it. Lenders can't value those hours, and a holder who needs out has to sell into a thin book. Curb is the market for those hours. It is built from four pieces: an on-chain clock that says when the primary market is really shut, a record of Curb's own reopen prices that the chain grades, a paid API that sells both to agents over x402, and instruments that let a holder exit or borrow without dumping the stock.

(The 141 h 20 m figure is the published HKEX timetable minus the issuer's measured five-minute early cut before every period end, which held 16 of 16 times; see D-4. A US name is shut for the weekend, about 48 h, plus a five-minute gap at each session boundary.)


Try Curb in 60 seconds

Commands 1, 2 and 4 need no account and no key. Command 3 spends one cent, and needs onchainos logged in to an OKX Agentic Wallet that holds USD₮0 on X Layer.

# 1. Is Tencent's home market open right now? One free view call on MarketClock (Foundry's cast).
cast call 0x160Dc415902971a7a9B5ade7f43005b36FE5B09b "regime(address)(uint8)" \
  0x41333Df9E7639188BBfca5522dC4844398Af9f9E --rpc-url https://rpc.xlayer.tech
#    0 UNKNOWN (never attested, or stale > 30 min) · 1 CLOSED · 2 OVERNIGHT · 3 EXTENDED · 4 MARKET
#    No Foundry? The same call with curl; the last hex digit of "result" is the regime:
curl -s https://rpc.xlayer.tech -H 'content-type: application/json' --data '{"jsonrpc":"2.0","id":1,"method":"eth_call","params":[{"to":"0x160Dc415902971a7a9B5ade7f43005b36FE5B09b","data":"0x1b05a66000000000000000000000000041333df9e7639188bbfca5522dc4844398af9f9e"},"latest"]}'

# 2. Ask the paid API without paying: HTTP 402, the x402 challenge in PAYMENT-REQUIRED, a free preview in the body.
curl -si "https://api.curb.markets/v1/closure-calendar?symbol=wTCENTx"

# 3. Pay for the same answer with OKX's buyer CLI from an Agentic Wallet: $0.01 in USD₮0 on X Layer, settled by
#    the OKX Broker. `quote` reads the challenge and never signs; `pay` signs in OKX's TEE and replays the request.
onchainos payment quote "https://api.curb.markets/v1/closure-calendar?symbol=wTCENTx"
onchainos payment pay --payment-id <paymentId from the quote> --yes

# 4. Re-derive a Curb number instead of trusting it: the first Scorecard mark, from the chain and its archived
#    evidence. Needs Node >= 22.18.
npx -y curb-verify tx 0x1c839166a27d48e30a51da725b07e3b57bd00a6cc173395838e15d4b6481294e

Command 4 prints REPRODUCED and exits 0 when the evidence rebuilds what the transaction wrote, and exits 1 when it does not. The first run downloads the package and can take a minute; on an older Node, prefix it with npx -y -p node@22 -p curb-verify -- to borrow a Node 22 for the run. curb-verify is Curb's own npm package (published 25 Sep 2026, built from tools/curb-verify); npx -y github:OoJae/curb runs the same code straight from this repository. More verbs and examples: docs/VERIFY.md.

For AI agents: claude mcp add --transport http curb https://mcp.curb.markets/mcp adds six free read-only tools (the regime, the next reopen, the graded record, the credit line, corporate actions, the paid services).

What a visitor can and can't do. With no wallet, everything on curb.markets reads live from X Layer in your browser, and every number above can be checked on chain or re-derived with curb-verify. The write side of W3 and W4 is gated: bidding in a ClosedAuction, depositing or borrowing in CurbCredit, and a DepthCert that names the credit line all require an address on an EligibilityRegistry, which for this demo lists team wallets only. Minting a note needs wTCENTx while Hong Kong is shut, and a DepthCert that names no credit line is open to anyone. The full team-wallet run of both flows, with every transaction, is in docs/DEPLOYMENTS.md ("Live demo on mainnet") and in the demo video.

Why this matters now

  • Doesn't 24/7 minting solve this? Only for six US names at one issuer. Ondo turned on 24/7 minting and redemption on 25 Jun 2026 for SPYon, QQQon, CRCLon, NVDAon, TSLAon and GOOGLon (Ondo). None is a Hong Kong name. The xStocks behind the X Layer wrappers still have creation and redemption capped at zero while their home market is shut (primaryCapNow reads 0).
  • Don't oracles already publish market status? They publish the exchange calendar. Chainlink Data Streams' marketStatus reads 5 (closed) outside HKEX trading hours, including the lunch break and the closing auction (Chainlink). Pyth publishes Hong Kong equity prices only from 09:30 to 12:00 and 13:00 to 16:00 HKT on HKEX trading days (Pyth). A calendar can't see the issuer's cap, which reaches zero five minutes before every period ends (16 of 16 times, D-4). Neither oracle publishes a reopen estimate that is graded on chain afterwards.
  • How does OKX price these hours? OKX's Unified Tokenized Stocks trade 24/7, and "outside US market hours, pricing is based on the last close plus a market estimate" (OKX, 7 Sep 2026). That is the kind of number Curb commits on chain before each reopen and has the contract grade afterwards.

Live

Status as of 25 Sep 2026, 19:15Z.

what where status
Site curb.markets live since 24 Sep: the Week Ring, the live regime (the site turns to paper while Hong Kong is open), /clock, /scorecard, /api, /notes, /depth, /brand
MCP server (free, for AI agents) https://mcp.curb.markets/mcp (Streamable HTTP): six read-only tools, curb_regime, curb_next_reopen, curb_scorecard, curb_credit, curb_corporate_actions, curb_paid_services. Add it with claude mcp add --transport http curb https://mcp.curb.markets/mcp; agent skill in skills/curb/SKILL.md live since 25 Sep 02:28Z, a separate Railway project from the writers
Paid API (x402) api.curb.markets · /healthz · /.well-known/x402 live since 24 Sep
OKX AI marketplace okx.ai/agents/13869: agent #13869 "Curb", role ASP, three A2MCP services registered 24 Sep (0xe2420407…ccc7) and listed 25 Sep ("Listed — eligible for task recommendations"). The public page lists the three services and their prices
Evidence archive archive.curb.markets/index/latest.json (the bare domain serves no page; objects sit under rounds/, marks/, witness/; the index is a snapshot the backfill rebuilds, and new bundles land as they are written, see host A /healthz) object-locked since 22 Sep; host A, host B and the keeper publish every new bundle and witness statement since 24 Sep 20:32Z, and the history was backfilled after a check against the chain
MarketClock round evidence host A /healthz, /rounds/<inputRoot>.json live since 14 Sep

Contracts — X Layer mainnet (chain 196)

contract address status
MarketClock 0x160Dc415902971a7a9B5ade7f43005b36FE5B09b deployed 13 Sep, Sourcify exact_match
Scorecard v2 0x3b4076c364AbDaE93e6419CeAdEEe8CB283BEf1f deployed 21 Sep, Sourcify exact_match
Scorecard v1 (superseded) 0x0527930187a879B3D8704a92734641679567EddD kept, never recorded a row; why it was replaced is in D-10
MarketClockStatus (adapter) 0xD5EEeD33117c7B2B39EF1Dad7e0eeEDe6b9836d9 deployed 25 Sep, Sourcify exact_match: MarketClock's answer in Chainlink Data Streams' marketStatus codes (5 closed, 2 regular, 3/4 extended/overnight, 0 unknown), plus isArbitraged; guard library src/lib/MarketClockGuard.sol
EligibilityRegistry (notes) 0xd7251b562eD07374ccD2436a7EfC0bA3A28ce938 W3, deployed 24 Sep, Sourcify exact_match
ReopenPointer 0x85AB0FebdFa7201E65eA01bd3e4CC6F9c0Ac4471 W3, deployed 24 Sep, Sourcify exact_match
ReopenNote (ERC-1155 CURB-RN) 0x7B2AcB0Db3316f7B8cf1B287796a2273871F011B W3, deployed 24 Sep, Sourcify exact_match
ClosedAuction 0xAc74864d69DdB940ADfDB39E69751759a32bb80D W3, deployed 24 Sep, Sourcify exact_match
EligibilityRegistry (makers) 0xbA1aB5027e826D564EA913b3f7acb95Fd651758E W4, deployed 24 Sep, Sourcify exact_match
DepthCert 0x702b1a988765f85162F4829175EF4232197e9C6D W4, deployed 24 Sep, Sourcify exact_match
CurbCredit 0x23c778c88C3ABf0Ad750f703C5F04cB3129ee339 W4, deployed 24 Sep, Sourcify exact_match

Other addresses Curb depends on or owns:

address
X Layer Builder Code registry (ERC-721 BUILDERCODE); Curb's code is dd7u50nckt5e729f 0xd6c426f9c077358735622ae5a83468dc0510823b
USD₮0, the asset x402 payments settle in 0x779ded0c9e1022225f8e0630b35a9b54be713736
USDG, the stable in most wrapper pools (wXIAOx trades against USDC) and in W3/W4 0x4ae46a509F6b1D9056937BA4500cb143933D2dc8
Every wallet Curb controls, and its funding graph docs/WALLETS.md

The cohort MarketClock tracks (six Backed ERC-4626 wrappers):

wrapper address venue Scorecard price source
wTCENTx 0x41333Df9E7639188BBfca5522dC4844398Af9f9E XHKG 0xC89d8b547ceA7CdeAa7474E7a90B6baD01fE992f
wSHEINx 0xff637d2d435D6745Df3faf61272B1216e7e8b727 XHKG none: its only live pool has observation cardinality 1
wXIAOx 0x076CF393E701839FC7a5832D2c68AaFA235682AE XHKG 0xdc7f2F41B48cD4F482D8C900Ac2fA1B5aD058417
wMEITx 0xad1b65C8556957cf23d1B5e9accdc449b415fA97 XHKG 0x54E89e9acaFb073e7fd8471312E753A661b470C7
wNVDAx 0xa8ddb5Cd96b5222AFe198316E9A57CAA642850D5 XNAS 0x2a2B11730C2b6d99a58034A869dd810D7300a7b2
wAAPLx 0x943BF64D566c32A2Bcd41AC92FB63C111cC9De8f XNAS 0xc44bd9c8589026D28D1632d7b86b2Efb6cDc8fd2

Every transaction and verification record is in docs/DEPLOYMENTS.md.


How it works

flowchart TB
  ISS["xStocks issuer API<br/>per-asset cap, schedule, multiplier"]

  subgraph hosts["Off-chain: two providers, two continents"]
    A["attestor host A<br/>Railway, Singapore<br/>the writer"]
    B["attestor host B<br/>Tencent, Silicon Valley<br/>witness and standby"]
    K["curb-keeper<br/>Tencent VPS"]
    ASP["curb-asp<br/>api.curb.markets"]
    AR[("archive.curb.markets<br/>R2, object-locked")]
  end

  subgraph chain["X Layer mainnet, chain 196"]
    MC["MarketClock<br/>is the primary market open?"]
    SC["Scorecard v2<br/>mark before, grade after"]
    POOL["wrapper/USDG pools"]
    subgraph w3["W3: exit without selling (live 24 Sep)"]
      RP["ReopenPointer"]
      RN["ReopenNote"]
      CA["ClosedAuction"]
      ER["EligibilityRegistry"]
    end
    subgraph w4["W4: borrow against bonded depth (live 24 Sep)"]
      DC["DepthCert"]
      CC["CurbCredit"]
    end
  end

  subgraph okx["OKX"]
    BRK["OKX Broker<br/>x402 verify and settle"]
    MKT["OKX AI marketplace<br/>agent #13869"]
    BUY["buyer agent<br/>Agentic Wallet / onchainos"]
  end

  ISS --> A
  ISS --> B
  A -->|"attestBatch"| MC
  B -.->|"EIP-712 witness of every round,<br/>writes only if A goes silent"| MC
  A -.-> AR
  B -.-> AR
  K -.-> AR
  MC --> K
  POOL --> K
  K -->|"commit mark before the reopen"| SC
  MC --> SC
  POOL -->|"settle(id): the contract reads the price"| SC
  MC --> ASP
  SC --> ASP
  ISS --> ASP
  MKT --> BUY
  BUY -->|"HTTP 402, then pay"| ASP
  ASP --> BRK
  BRK -->|"USD₮0 to curb-revenue"| chain
  MC --> RP
  SC --> RP
  RP --> RN
  RN --> CA
  ER --> CA
  MC --> CC
  SC --> CC
  DC -->|"honouredDepth"| CC
  ER --> CC
Loading

Every transaction Curb's services send carries the ERC-8021 suffix for X Layer Builder Code dd7u50nckt5e729f. That covers host A, host B and the keeper since 24 Sep. The curb-desk demo wallet appends the same suffix to its W3/W4 transactions. OKLink shows the attribution next to each hash.

MarketClock (src/MarketClock.sol, MIT) says, per wrapper, whether the issuer's primary market is open: regime() and primaryCapNow() (whole USD, 0 = shut). "Shut" is economic, not a calendar flag: the issuer's per-asset order cap is zero. The contract fails closed: an attestation older than 30 minutes reads UNKNOWN with capacity 0. Host A (services/attestor, MODE=live) writes a round when the state changes, when a corporate action activates, and as a heartbeat about every 5.5 minutes. Every round commits a Merkle root of the exact issuer bytes it was derived from, under a versioned method (curb.marketclock.derive/1, /2, /3). Host B runs the same code as MODE=standby. It re-derives every round from a different provider, continent and CDN edge, and signs the result as EIP-712. It writes only when the chain shows host A has gone silent. Integration guide: docs/MARKETCLOCK.md.

Scorecard v2 (src/Scorecard.sol) is where Curb's marks get graded. When a primary market shuts, the keeper (services/keeper) commits a mark for the reopen. It does this ten minutes before capacity returns, under a versioned method, with the evidence bundle fsynced first. Rows before block 71,486,953 use curb.scorecard.mark/1: the pool's last price before the cut, moved by half of what the pool did between the cut and the commit. Later rows use curb.scorecard.mark/2, which moves the last price by what trades while Hong Kong is shut instead, and commits the exact signal bytes it used (D-13). In the lunch recess and for the US names mark/2 has no signal and falls back to mark/1's rule. Until block 76,038,603 the keeper decoded none of the pools' swaps, so that move was recorded as zero in every row (D-15). After the reopen, anyone can call settle(id). It takes no price: the contract reads the wrapper's pinned pool itself, through a manipulation guard (spot must sit within 50 ticks, about 0.5%, of the pool's own 120-second average; see Honest limits). It grades the mark against two baselines committed with it: the last print, and the pre-close price (the 15-minute closing VWAP, or the last print when nothing traded in those 15 minutes). In every row committed before block 76,038,603 the second baseline is the last print, because the keeper computed no VWAP (D-15), so skill()'s two win counts are one comparison for those rows. skill() counts strict wins only, so a tie is not a win.

curb-asp (services/asp) sells that data over x402 at api.curb.markets: closure calendar $0.01, accuracy record $0.05, discount by duration $0.10. Payment is USD₮0 on X Layer, scheme exact, verified and settled by OKX's Broker. An unpaid call returns HTTP 402 with a free preview. Every paid answer gets an immutable receipt whose id binds the settlement transaction to the sha256 of the exact bytes delivered. The service holds no key and sends no transaction. It is listed on the OKX AI marketplace as agent #13869.

W3, live since 24 Sep: sell the reopen, not the stock. ReopenPointer records each shut → open transition it observes on MarketClock, and one write-once reopen print per asset and epoch. ReopenNote (ERC-1155) escrows wrapper shares while the market is shut and delivers exactly those shares after the verified reopen, or after 10 days as a fallback. ClosedAuction sells a note through a descending-price clock that clears with a single bidder, only while the market is still shut. EligibilityRegistry is the allowlist for bidders and borrowers. Pointer, Note and Auction have no admin.

W4, live since 24 Sep: borrow against depth someone has bonded. DepthCert is a bonded firm bid with no admin: the maker posts a bid with a bond of at least 10% of its notional. If a taker delivers shares and the maker's payment fails, the fade is proved on chain in the same transaction and the whole bond goes to the taker. CurbCredit publishes ltvFor(asset). It is 0 when the clock is stale, the price is unreadable or no bonded depth exists. Otherwise it is the lower of two numbers. One is a regime cap: 60% while primary capacity is on, 30% while it is shut. The other is what the bonded bids naming the credit line would actually pay for the collateral, at the lowest bid, as a fraction of its pool value. A bid counts only if it outlives minCertExpiry(asset), which covers the next reopen plus a full 30-minute cure. While the market is open that is now + 1 h + 30 min; if the next transition is a close less than 1 h 30 min away (the Hong Kong names), it is that close + 73 h + 30 min. While the market is shut it is now + max(73 h, time to the next transition + 1 h) + 30 min. A refused borrow emits Refusal and changes nothing. A breach cure clock counts only witnessed open-market time, and liquidation needs 30 such minutes. Nobody is liquidated while MarketClock (single-signer; see Honest limits) attests the market shut, or while its attestation is stale. Anyone may fund the lending reserve, but funding issues no shares and only the admin can defund, so it is a donation. Never transfer tokens straight to a Curb contract: none of them can return tokens sent outside its own functions. Exact rules: the NatSpec in src/CurbCredit.sol. Design spec: docs/specs/W3W4-contracts.md.


Verify it yourself

Nothing here asks to be trusted. Every step below uses only public endpoints.

# Contracts: unit tests, then fork tests against live X Layer state (RPC: rpc.xlayer.tech, set in foundry.toml)
forge test --no-match-path 'test/fork/*'
forge test --match-path 'test/fork/*' -vv          # slow on the public RPC (15-25 min); one suite: --match-path test/fork/MarketClock.t.sol

# Services: Node >= 22.18 (TypeScript runs directly). Each suite runs under four host timezones.
(cd services/attestor && npm ci && npm test)
(cd services/keeper   && npm ci && npm test)
(cd services/asp      && npm ci && npm test)

# curb-verify: re-derive a Curb number from its published evidence (needs the attestor and keeper deps above)
node tools/curb-verify/src/cli.ts selftest            # two real mainnet rounds, no network
ROOT=$(curl -s https://attestor-a-production.up.railway.app/healthz | jq -r .lastRound.root)
node tools/curb-verify/src/cli.ts bundle "https://attestor-a-production.up.railway.app/rounds/$ROOT.json"
node tools/curb-verify/src/cli.ts tx <any MarketClock or Scorecard tx hash>   # starts from the chain
node tools/curb-verify/src/cli.ts range 71530190..71530220   # the three 25 Sep mark/2 rows, ~10 s (a long range scans 100 blocks per query)

# Read the chain directly
RPC=https://rpc.xlayer.tech
cast call 0x160Dc415902971a7a9B5ade7f43005b36FE5B09b "regime(address)(uint8)" \
  0x41333Df9E7639188BBfca5522dC4844398Af9f9E --rpc-url $RPC      # 0 UNKNOWN, 1 CLOSED, 2 OVERNIGHT, 3 EXTENDED, 4 MARKET
cast call 0x3b4076c364AbDaE93e6419CeAdEEe8CB283BEf1f "skill()(uint256,uint256,uint256)" --rpc-url $RPC
                                                                  # (settled, beat last print, beat closing VWAP)

# Ask the API without paying: HTTP 402, the x402 challenge in PAYMENT-REQUIRED, a free preview in the body
curl -si "https://api.curb.markets/v1/closure-calendar?symbol=wTCENTx"

curb-verify rebuilds the Merkle root, checks every leaf preimage, and re-runs the committed method on the committed inputs. It exits 0 when the evidence reproduces and 1 when it does not. Its verbs are bundle, witness, selftest, tx <hash> (start from the transaction; it finds the evidence in the archive) and range <from>..<to>. Every deployed contract is verified on Sourcify (chain 196, exact_match).


Raw xStock or ERC-4626 wrapper, path by path

What trades on X Layer is not the rebasing xStock. It is a Backed ERC-4626 wrapper whose share price already contains every corporate action ever applied (wAAPLx.convertToAssets(1e18) == AAPLx.multiplier(), asserted in test/fork/MarketClock.t.sol). The multiplier is not monotonic: splits, reverse splits and spin-offs all move it. So every Curb path states its unit:

path unit note
MarketClock keyed by wrapper; reads the raw token The issuer's cap is on the raw xStock's primary market. Each wrapper is registered with its own on-chain asset(), and the raw token's multiplier nonce drives isInMultiplierBlackout. rawToShares(wrapper, s) is convertToAssets(s).
Scorecard wrapper shares, priced from the wrapper's own pool The mark, both baselines and the settlement price are all USD per whole wrapper share, so no multiplier enters the grade.
curb-asp issuer data by raw symbol (TCENTx), reported under the wrapper (wTCENTx) Record and curve prices are wrapper-pool prices, the same as Scorecard.
ReopenNote wrapper shares, physically delivered It delivers exactly the shares escrowed. rawToShares and the nonce at mint are recorded as provenance only. Redemption is not blocked during a blackout, because the 4626 share absorbs the corporate action.
ClosedAuction USDG against the wrapper value at priceNow
DepthCert size in wrapper shares; bid in USDG per whole wrapper share
CurbCredit collateral in wrapper shares, valued at Scorecard's priceNow It never converts to raw.

Curb never holds or moves the raw rebasing token. If you compare a wrapper price to underlying spot, call rawToShares first. Otherwise you are wrong by the accrued multiplier, and that error never resets.


Honest limits

  • Every row before block 76,038,603 was marked by a keeper that saw no swaps. A decoding defect dropped every pool Swap log from the keeper's first tick on 21 Sep until 16 Nov 2026 (D-15). In those 241 rows the pool's own move was never applied (the no-drift flag is an artefact), the "closing VWAP" baseline is the last print, the last print is the pool price the keeper last read before the cut, and the swap lists in the evidence bundles are empty. The pools did trade: 15, 63 and 141 swaps in the 22–24 Sep lunch recesses alone. The rows, marks and grades stand as committed, and no row is ever re-marked. The verifier in this repository says so on each of those rows (on npm, from curb-verify 0.2.0).
  • The record so far. Read it live with skill(). As of 14 Nov 2026 (block 75,902,478) it read (232, 43, 43): 232 settled, and against the last print 43 strict wins, 134 ties and 55 losses. Its second count repeats the first, because before block 76,038,603 the closing-VWAP baseline is the last print. Every win and every loss is an overnight, weekend or holiday Hong Kong row where curb.scorecard.mark/2 applied its cross-market signal (D-13); its first three (25 Sep 01:30Z reopen) all lost, when the signal called Tencent, Xiaomi and Meituan up and HKEX opened all three down. Of the 134 ties, 131 are the 15 mark/1 rows, the lunch-recess rows and the US weekend rows, where the mark is the last print moved by the pool's drift and the drift was recorded as zero. Replayed with the missed swaps counted, the same 232 rows read 97 wins, 64 ties and 71 losses, with a mean error of 58.08 bp against 61.49 bp as committed. That is not evidence of forecasting: the Scorecard grades the pool five minutes after the reopen, a thin pool moves little in the fifteen minutes from the commit to that read, and over the whole record the replayed mark is still slightly worse than the last print (57.79 bp). One committed row (wTCENTx, reopen 28 Oct 01:30Z) was never graded: the keeper's settle transaction reverted and was not retried before the six-hour window closed (D-17). Five minutes after a reopen, when the Scorecard reads it, a pool can lag the real market (wTCENTx's pool −13 bp against 0700.HK −114 bp on 25 Sep).
  • Every demo counterparty is a team wallet, and says so. The first paid call (24 Sep, $0.01) was the team's Agentic Wallet paying the team's revenue wallet. It proves the payment rail, not demand. The W3/W4 demos run only between team wallets (curb-desk, the Agentic Wallet, the deployer). Every address and its funding path is in docs/WALLETS.md. None of it is presented as third-party usage.
  • Attestation is single-signer. MarketClock's verified NatSpec says "quorum-signed off-chain". That describes the intended design, and the deployed source can't be edited. Any one of the three enabled attestor keys (host A, host B, a cold spare) can write a round alone. Host B's signed witness is an attributable second check, not a quorum.
  • Scorecard's NatSpec calls its second baseline a VWAP. The field closingVwap is whatever the keeper commits. In every row before block 76,038,603 it is the last print (D-15). The deployed source can't be edited.
  • A settler can nudge the graded price. settle and recordPrint read the pool's spot price, refused only when it is more than 50 ticks (about 0.5%) from the pool's 120-second average, and a swap in the same block does not enter that average. Settlement is permissionless, so a caller who swaps, settles and swaps back in one transaction can move the recorded price by up to that much. Who settled each row is on chain.
  • stateOf() does not fail closed. Integrations must read regime() or primaryCapNow().
  • Coverage has gaps, deliberately. wSHEINx has no price source (cardinality-1 pool). Closures shorter than 30 minutes are not marked. A closure whose start the keeper did not witness is not marked.
  • Published errata. The first seven MarketClock rounds (14 Sep) overstated capacity 100x. Regimes were correct throughout (D-7). Every Scorecard row before block 76,038,603 was marked without the pools' swaps (D-15). Six rows of the 2 Oct and 20 Oct holiday closures commit a holiday list that no longer held the holiday, so curb-verify 0.1.0 prints NOT REPRODUCED for them; their marks and reopen times are right (D-16). One row of 28 Oct was never graded (D-17).
  • Receipts are unsigned. Round bundles, mark bundles and host B's witness statements are public and write-once in archive.curb.markets. The paid API's receipts are not: they are only as trustworthy as the API host's disk.
  • W3/W4 are small and new. The note caps are 175 wTCENTx, 220 wNVDAx and 14 wAAPLx shares, sized to depth measured on a fork (D-3). What was cut, and why, is in D-12.

Built during the 17–25 Sep build window

Curb started before the window. Dating evidence: the git history starts on 21 Sep with one initial commit (cc03fa7) that holds both earlier and in-window work. Commit dates alone therefore can't separate the two. The on-chain transactions and the Sourcify verification times can, and they are cited below. Dates are UTC.

Before 17 Sep (already existed)

date what evidence
12–13 Sep W0 measurements: the issuer's cap-to-zero definition of "closed", Chainlink Data Streams checked on X Layer, depth measured by real swaps on a fork D-1, D-2, D-3; artifacts/w0/
13 Sep 15:55 MarketClock and Scorecard v1 deployed, 6 wrappers registered tx 0xf07b183b…4524, block 70,545,887; Sourcify verified 13 Sep 15:59
14 Sep 11:46 First attestation; host A live tx 0x8e87d0f0…47e1, block 70,617,365
14 Sep 12:16 derive/2: cap unit corrected tx 0xaec29e1a…b9bd, D-7
14 Sep Host B deployed (13:47); armed 20:02 setAttestor tx 0x90f87de8…de9a, block 70,647,127

New during the window

date feature or integration evidence
18 Sep The recess rule settled. Over 15–18 Sep the issuer ended every period 300 s early, 16 of 16 times, seen from three vantage points CLOSED rounds in blocks 70,675,471 · 70,761,870 · 70,848,267 · 70,934,670; D-4
20 Sep 22:23 derive/3: cohort coherence and confirm-before-open, after a CDN race found on 17 Sep; both hosts redeployed first round tx 0x20dd8be0…df5c, block 71,173,967; D-9
21 Sep 14:27 Scorecard v2: settle(id) takes no price; pinned, write-once, cardinality-checked price sources deploy tx 0x01325c45…d30d, block 71,231,806; Sourcify verified 14:31; D-10
21 Sep 15:17 curb-keeper live: a mark committed before every eligible reopen, settled after it setKeeper tx 0xb9f80b25…37ce (14:27, block 71,231,807); services/keeper
21 Sep Liveness checks and emergency paging for all hosts docs/DEPLOYMENTS.md, "Monitoring"
21 Sep curb-verify, and checkMarkRound (a row checked against the chain, not just itself) commits 12ab284, 1467312
21 Sep Aave ARFC and LP outreach drafted commits ebcaa13, 87b75f4
22 Sep 04:50 / 05:05 First Scorecard rows committed and settled commit tx 0x1c839166…294e (block 71,283,582); settle tx 0x84b5ccb1…fb4c (block 71,284,480); commit 3e82808; D-11
22 Sep curb.markets registered; archive on R2 with indefinite object locks on rounds/, marks/, witness/ commit 3e82808
24 Sep 01:39 X Layer Builder Code dd7u50nckt5e729f minted tx 0xc3315eb4…051b, block 71,444,945; commit e4bd194
24 Sep 06:27 Builder Code attribution (ERC-8021) on every Curb transaction: host A, host B, keeper code aa0f373; first attributed round tx 0x5d3c92ab…605e, block 71,462,192; commit d3bfc40
24 Sep curb-asp: x402 API settled through the OKX Broker, live at api.curb.markets commits a8474dd, d3bfc40
24 Sep 09:44 OKX AI marketplace agent #13869: three A2MCP services, submitted for review (listed 25 Sep); priced routes answer OKX's bare-POST self-check with 402 tx 0xe2420407…ccc7, block 71,474,047; commit 474e820
24 Sep 11:56 First paid call end to end through OKX's buyer CLI: $0.01 USD₮0, team wallet to curb-revenue, with a receipt settlement tx 0xe8740458…4de7, block 71,481,945; receipt; commit b70a75f
24 Sep W3/W4 contract spec frozen; shared scaffold merged; demo wallet disclosed before its first transaction commits b70a75f, 0995f72
24 Sep curb.scorecard.mark/2: a mark that moves with the Binance perp and the US ADRs while Hong Kong is shut, with a byte-exact relay for the Binance leg; mark/1's range closes at block 71,486,953 commits c7e80b6, af68ee1; D-13
24 Sep curb-verify tx and range: start from any transaction hash; runs from this repository with npx -y curb-verify commit 08f2a11
24 Sep Corporate actions as a free read-only feed in curb-asp; a fork replay of HONx's reverse split and spin-off against MarketClock commits 5761957, 8715db2
24 Sep ~18:00 W3 on mainnet: ReopenPointer, ReopenNote, ClosedAuction, EligibilityRegistry, all Sourcify exact_match blocks 71,503,708–71,503,723; commit 424f4bf; docs/DEPLOYMENTS.md
24 Sep ~19:15 W4 on mainnet: DepthCert, CurbCredit and the maker allowlist, all Sourcify exact_match blocks 71,507,846–71,507,867; commit e0b8ae7
24 Sep curb.markets: the site, with the Week Ring (2,016 blades, one per five-minute slot of the Hong Kong week) and the live regime foundation commit 35b9854
24 Sep 19:20 / 19:24 W3 demo, cycle 1 (team wallets): note 1 minted on 0.1 wTCENTx while Hong Kong was shut, listed, and sold to the team's Agentic Wallet at 03:24 HKT for 5.595137 USDG, 35 bp under the reference mint tx 0xcf3dfa55…1c40 (block 71,508,619); bid tx 0xf23e727c…d3d3 (block 71,508,807); docs/DEPLOYMENTS.md, "Live demo on mainnet"
24 Sep 20:32 Archive publisher live on host A, host B and the keeper; history backfilled, each object checked against the chain first commit 66d7b89
24 Sep 21:30 W4 demo (team wallets): a 1.4 USDG borrow with no bonded depth emits Refusal(NoDepth) inside a successful transaction, and nothing moves tx 0x8bd873d7…5c7a (block 71,516,369)
25 Sep 01:30 W3 cycle 1 graded: the reopen witnessed on chain, the Agentic Wallet redeems note 1 for exactly 0.1 wTCENTx, and the reopen print grades what it paid: realisedDiscountBps(1) = −38 (Tencent reopened lower) redeem tx 0xd102eca8…e383 (block 71,530,833); print tx 0xce7b9189…fb66 (block 71,531,111)
25 Sep 01:30 First curb.scorecard.mark/2 rows: three marks committed before the reopen, and all three lost (see Honest limits) skill(); D-13
25 Sep 02:28 MCP server at mcp.curb.markets: six free read-only tools for AI agents, and an agent skill services/mcp, skills/curb/SKILL.md
25 Sep 04:02–05:05 W3 cycle 2 in the lunch recess: note 2 minted, auctioned and bought at 12:07 HKT, redeemed after the 05:00 reopen: realisedDiscountBps(2) = +80 bid tx 0x3a92efa7…7c31 (block 71,540,238); print tx 0x988f3e9b…aa95 (block 71,543,710)
25 Sep 05:16 W4: one bonded bid moves the LTV. A DepthCert naming CurbCredit takes ltvFor(wTCENTx) from 0 to 60%; the Agentic Wallet then borrows the 1.4 USDG it was refused the night before cert tx 0x19c80f58…bd43 (block 71,544,327); borrow tx 0x438c26de…d0a4 (block 71,544,372)
25 Sep ~05:30 A fade proved on chain: the maker's payment fails, Faded(reason ALLOWANCE) fires in the same transaction, the whole 0.2 USDG bond goes to the taker and its shares come back tx 0x6dd0bd29…f470 (block 71,545,313)
25 Sep 07:55 / 07:56 The shut, priced: the issuer's cut drops ltvFor from 60% to 30% with no transaction; flagBreach starts a cure clock that counts only open-market time, so it stays frozen until Hong Kong reopens tx 0xd598c4fb…2e57 (block 71,553,967)
25 Sep 08:12 MarketClockStatus: MarketClock's answer in Chainlink Data Streams' marketStatus codes, plus the MarketClockGuard library, so a protocol already reading Chainlink can switch with three lines tx 0xe778bcc2…f5e3 (block 71,554,818); docs/MARKETCLOCK.md
25 Sep OKX AI marketplace: agent #13869 listed okx.ai/agents/13869
25 Sep 14:22 LP outreach: three on-chain messages to live wTCENTx liquidity providers, each checked in range at send time docs/OUTREACH.md
25 Sep 14:44 curb-verify on npm (npx -y curb-verify) npmjs.com/package/curb-verify
25 Sep ~15:40 Aave governance forum: a risk framework for tokenized equities on Aave V3 X Layer, with wTCENTx as the worked example; awaiting the forum's moderator approval for new accounts docs/AAVE_ARFC.md
25 Sep Demo video youtu.be/JInFSx2d3Qk

Next: the cure clock can count again from the Monday 28 Sep 01:30Z Hong Kong reopen, and the keeper keeps marking and settling every eligible closure.


Repository layout

src/                 Solidity (MIT): MarketClock, Scorecard, ReopenPointer, ReopenNote, ClosedAuction,
                     EligibilityRegistry, DepthCert, CurbCredit
  adapters/          MarketClockStatus (Chainlink Data Streams marketStatus codes)
  examples/          ExampleLendingGuard, the three-line integration
  interfaces/ lib/   frozen interfaces, MarketClockGuard, MulDiv, SafeTransfer, ERC1155Min
test/                unit tests; test/fork/ runs against live X Layer state; test/mocks/
script/              Deploy.s.sol, DeployScorecardV2.s.sol, DeployW3.s.sol, DeployW4.s.sol
  hostb/deploy.sh    idempotent deploy of host B, the keeper and the W0 observer to the VPS
  asp/               the exact OKX marketplace listing text, services and avatar as submitted
  w0/                the issuer-API observer used for the W0 measurements
  w3/ w4/            the reopen watcher and the demo runbooks for notes, depth and credit
services/
  attestor/          MarketClock writer (host A) and witness/standby (host B)
  keeper/            Scorecard mark producer and settler
  asp/               curb-asp, the x402 API behind agent #13869
  mcp/               the free MCP server at mcp.curb.markets
skills/curb/         the agent skill (SKILL.md) for Claude Code and other MCP clients
tools/curb-verify/   the verifier CLI (published on npm as curb-verify)
tools/archive/       the archive backfill (checks every object against the chain before upload)
docs/                DECISIONS, DEPLOYMENTS, WALLETS, MARKETCLOCK, specs/, the ARFC and outreach drafts,
                     SUBMISSION, HYGIENE
artifacts/w0/        raw measurement evidence (depth curve, issuer observations)
broadcast/           Foundry broadcast records of every mainnet deploy
video/               the demo video: voiceover script, HyperFrames composition, capture tools
web/                 curb.markets: Vite MPA, three.js Week Ring, GSAP
.railway/            Railway infrastructure as code
lib/forge-std/       vendored (MIT / Apache-2.0)

Licence

MIT, for the whole repository (LICENSE): the contracts, the services, the verifier, the site and the video tooling. Every Solidity file in src/ also carries an SPDX header. MarketClock is deliberately free to read and integrate, with no key and no fee. See docs/MARKETCLOCK.md. Vendored code keeps its own licence: lib/forge-std/ is MIT or Apache-2.0.

Further reading

About

Curb: the market that trades when the exchange is shut. MarketClock, a graded Scorecard, an x402 API, reopen notes and depth-backed credit on X Layer.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages