Documentation
Dense reference for builders and counterparties. Prices and savings come from chain and routing, never from the model guessing.
Overview
GLADE is an OTC desk for large stock-token blocks on Robinhood Chain. Holders post interest, counterparties send signed quotes, and acceptance settles both legs in one transaction.
Nothing comparable exists on this chain. Pool depth cannot absorb institutional ticket sizes without double-digit damage in thin names.
Pricing math
Pool baseline (first approximation): poolCost(size) ≈ size × size / (reserve + size). Production must replace this with a live routed quote across real pools.
Consensus is liquidity-weighted across pools deeper than $50,000. Time-weighted median resists a pool push right before a quote.
Fair band = max(0.5%, half of pool cost for that size). Quotes outside the band are flagged to both sides before signing.
Atomic settlement
Signed maker order + single taker transaction that pulls both legs via allowances.
Do not build an escrow that holds one side first. That makes the desk a custodian and reintroduces the risk the product exists to remove.
Default quote TTL is 60 seconds. Expired quotes are rejected on-chain, not merely hidden in the UI.
Minimum size gate
If pool execution costs less than 1%, the desk refuses and tells the user to use the pool.
For NFLX (~$425k liquidity) that is roughly $2,000. For SPY (~$18.5M) roughly $180,000. The refusal is a feature: it keeps the tape trustworthy.
$TRYST
Product first, token later. The desk works with no token.
When launched, $TRYST stakers share a flat fee in basis points on settled notional and vote on assets and fair-band width.
Never subsidize quotes with emissions to manufacture volume. Fake tape destroys the only asset that matters.
Core modules
src/lib/pricing.ts: poolSlippage, deskIsWorthIt, fairBand, quoteFlag, twConsensus
src/lib/settlement.ts: settleAtomic with rollback when the second leg fails
src/lib/consensus.ts: spotConsensus from DexScreener deep pools
src/lib/chain.ts: TRADABLE addresses and isRealStock authenticity check
Anti-hallucination
If it is not in the context, you cannot find the answer: say you do not know. No consensus means quoting is disabled.