Autonomous LP risk desk · Hedera mainnet
The LP desk that pays its own way.
It prices pool risk, vetoes bad trades and sells what it knows.
A model proposes, eight deterministic checks decide, and every verdict lands on Hedera before anything executes.
MainnetLive execution is off until the operator turns it on, and every trade is capped by the ENS mandate. Not financial advice.
- 01Readpool vs median(kraken,coingecko) · +28 bp$0.046840 vs $0.046710
- 02Scorequant kernel · vol 190% a year47/100 elevated
- 03Proposequant only conservation · stay out of the poolHOLD
- 04Checkrisk kernel against the ENS mandate8/8 pass
- 05Anchorsha-256 to Hedera Consensus Service5bb127ef5a…0ea6f0
Connecting to the gateway…
01 · What it is for
Built for three decisions.
Each one used to be a guess or a trust exercise. Parity turns it into a number with its working shown, on Hedera.
01
Decide whether to be in the pool at all
Liquidity only pays when fee yield beats what arbitrageurs take. The desk compares the two every cycle, picks the range with the best expected value, and stays out when none has one.
02
Check a swap before you send it
An agent about to swap HBAR asks for a clearance. It gets the safe slippage, how many clips to split into, and a guarantee: if the fill slips past it, the fee comes back in USDC.
03
Judge the seller before you pay
Every forecast is on Hedera before its outcome exists, and every score after. A buyer can recompute the hit rate from the Mirror Node instead of trusting the desk's word.
Stack · Built on
Real rails, mainnet first.
Every live value on this page comes from one of these. Testnet stays selectable for development; signals always come from the liquid mainnet pool.
AuditHCS
Hedera Consensus Service
Three topics: every decision proof, every forecast and its score, and every line of the profit and loss ledger, in order and timestamped.
parity.decision.v1 · parity.track.v1 · parity.pnl.v1
VenueMainnet
SaucerSwap V2
The HBAR/USDC pool the desk reads and trades: about $2.8M of liquidity at a 0.15% fee. Read from the REST API and the pool's own sqrt price.
pool 0.0.3964804
Verification
Hedera Mirror Node
Payments, swap fills, balances and topic messages, read back to check every claim.
mainnet-public.mirrornode
Paymentsx402
Blocky402
The x402 facilitator: verifies and settles each USDC payment on Hedera.
USDC 0.0.456858
Execution
Hedera Agent Kit
Swaps through the SaucerSwap plugin, and the host for Parity's own plugin.
@parity/hedera-agent-kit-plugin
Prices
Kraken and CoinGecko
Independent reference prices. The desk uses their median, never the pool against itself.
median(kraken, coingecko)
IdentityENSv2
ENS
The mandate, the kill switch, the agent profile and payment preferences, as text records.
ENSIP-25 · 26 · 28 · 31
Registry
ERC-8004
The on-chain agent registration the ENS record points back to.
0x8004A169…a432
HookUnichain
Uniswap v4
A dynamic-fee hook that charges more when the desk scores the flow as toxic.
ParityLvrShieldHook.sol
ReasoningOptional
Any OpenAI-compatible model
Proposes actions when the treasury can afford it. The quant engine takes over when it cannot.
OPENAI_BASE_URL
Tracks
Built for ETHGlobal Agentic Markets.
- HederaMost profitable agent · smartest DeFi agent
- Uniswap Foundationv4 dynamic-fee hook
- ENSAgent identity and mandate
Parity uses these services' public APIs. Not affiliated with or endorsed by any of them; names belong to their owners.
02 · How it works
The model proposes. Code decides.
One cycle, end to end. The model is the only step that is not deterministic, and it can only suggest. Nothing executes before the verdict is on Hedera.
Each cycle the agent reads the SaucerSwap V2 HBAR/USDC pool (
0.0.3964804) from the Mirror Node and the pool's own sqrt price, then sets it against the median of Kraken and CoinGecko. Every field carries its provenance, so a value that is not live is shown asn/a, never guessed.EWMA volatility (λ 0.94), cross-venue skew and order-flow imbalance give a toxicity score from 0 to 100 and a regime: calm, elevated or toxic. Liquidity only pays when fee yield beats the arbitrage loss, σ²/8 per day, scaled by how concentrated the range is.
An LLM proposes one action (hold, rebalance the range, hedge the delta, pause) with a rationale. When the treasury is short, the desk skips the LLM and the deterministic quant engine proposes instead. Either way the proposal is only a suggestion.
Eight pure-function checks run against the live market, the ENS mandate and the treasury: mandate active, pool allowlist, notional, loan-to-value, slippage, quant agreement, positive EV, treasury survival. One failure vetoes the action.
The verdict and every input are hashed (SHA-256) and written to an HCS topic before any order is sent. Only then does an approved trade execute, capped by the mandate, and its fee is booked to the public P&L topic.
03 · Features
Built so you never have to trust it.
Each feature leaves something checkable behind: a topic message, a Mirror Node record, a text record or a contract. The readout shows sample values; the desk shows the live ones.
A track record you can recompute
Every 15 minutes the desk posts an 80% one-hour price band to HCS before the outcome exists, then scores it. The desk page recomputes the hit rate from the Mirror Node in your browser, so the gateway is not trusted.
See it live on the deskA track record you can recompute
Every 15 minutes the desk posts an 80% one-hour price band to HCS before the outcome exists, then scores it. The desk page recomputes the hit rate from the Mirror Node in your browser, so the gateway is not trusted.
A slippage guarantee, refunded on-chain
protected-execute clears a swap and promises a maximum slippage. If the paying account's swap slips further, the gateway reads the fill from the Mirror Node and refunds the fee in USDC, without anyone's say-so.
Advice priced by risk
Quotes cost more when they are worth more. Price = base × margin × regime risk × survival × credibility × endpoint weight, paid per call in USDC through the Blocky402 facilitator. No keys, no accounts.
It runs on its own money
Every fee earned and every cost paid, LLM calls and HCS gas included, goes to an HCS ledger. Runway drives the mode: as it shrinks the desk drops the LLM, slows down and stops trading, and it keeps selling quotes.
A mandate and a kill switch in ENS
Limits and a revoke flag live in ENS text records next to an ERC-8004 registration (ENSIP-25, 26, 28, 31). The agent reads them back from chain and fails closed: if it cannot read the mandate, it pauses.
An LVR shield for v4 pools
A dynamic-fee hook whose beforeSwap fee follows the desk's toxicity score, so LPs charge more when the flow is most likely informed. If the oracle goes quiet, the hook charges a safe fixed fee.
One plugin for any Hedera agent
createParityPlugin() adds three tools to a Hedera Agent Kit agent: check swap safety, get a toxicity quote, claim a guarantee. Payment is handled for it, under a hard per-call spend cap.
04 · For agents
Call it in one line.
Discovery is free. Signals are pay-per-call in USDC on Hedera. The answer tells your agent whether to trade, how much slippage is safe and how many clips to use.
GET /ucp.jsonAgent card: prices, topics, guarantee policy, track recordFreeGET /x402/toxicity-quoteScore, regime, safe slippage, split countx402POST /x402/rebalance-planEV-optimal tick range and hedgex402POST /x402/protected-executePre-trade clearance with a slippage guaranteex402POST /guarantee/claimRefund if a cleared swap slipped too farFree
Free. Identity, audit topics, live x402 prices, guarantee policy and track record in one UCP card. /agent.json is the ERC-8004 registration file.
PARITY=https://parity.mrnetwork.tech
curl -s $PARITY/ucp.json | jq '{
identity, auditTopics, trackRecord,
endpoints: .x402.endpoints
}'
# Probe a paid route: the 402 challenge says what to pay
curl -si "$PARITY/x402/toxicity-quote?pair=HBAR-USDC" | grep -i payment-requiredbash
05 · Economics
A business with public books.
The desk earns per call and pays for every model call and every byte it writes to Hedera. Runway decides how it behaves, so it never needs a top-up to stay honest.
- 01ThrivingLLM on, trading on, normal cadence.≥ 14 d
- 02ConservingQuant only, half the cycles.< 14 d
- 03SurvivalNo LLM, no trading, a quarter of the cycles.< 3 d
- 04ShutdownSpending stops. It still sells quotes.below floor
- Revenue. x402 fees for quotes, plans and protected-execute clearances, paid in USDC by other agents.
- Costs. LLM calls, Hedera fees for every HCS message and swap, swap costs and guarantee refunds.
- Honest books. Each entry is posted to an HCS topic as
parity.pnl.v1. Payments from the builder's own wallets are recorded but not counted as revenue or payers.
price = base × margin × risk × survival × credibility × weight
- 01
GET /x402/toxicity-quoteScore, regime, safe slippage, split countweight 1 - 02
POST /x402/rebalance-planEV-optimal range and hedge for a positionweight 2 - 03
POST /x402/protected-executePre-trade clearance with a slippage guaranteeweight 2.5
- Risk, by regime
- calm 1 · elevated 1.5 · toxic 2.5
- Credibility, from the track record
- 0.8 to 1.2
- External revenue so far
- n/a
- External payers
- n/a
06 · Guardrails
A model with money needs firm limits.
The worst a bad proposal can do is be refused. Same inputs, same verdict, same SHA-256 hash, and anyone can replay it.
- Fail closed. If the ENS mandate cannot be read, or is revoked, the desk pauses. There is no default that trades.
- Capped twice. The mandate caps each trade, and a hard per-trade cap in the agent applies on top of it.
- Off by default. Live execution needs
LIVE_EXECUTION=true. Until then the desk decides, proves and sells, but does not trade. - The model cannot override. An LLM proposal that the quant model does not also recommend becomes a hold.
- Evidence, not advice. Parity scores risk with fixed rules and publishes how well it did. It is not financial advice.
- 01ENS mandate activeRead from chain, not revoked, ENSIP-25 link verified. Unreadable means paused.fail closed--
- 02Pool allowlistOnly pools listed in the mandate can be touched.mandate--
- 03Notional capThe trade or hedge size, never the whole position.mandate--
- 04Loan-to-valueProjected after any hedge.mandate--
- 05Slippage ceilingProposed slippage within the mandate; the executor also refuses a worse quote.mandate--
- 06Quant agreementAn LLM may only pick a trade the quant model also recommends, or hold.LLM ⊆ quant--
- 07Positive EVExpected 24 h net value after friction and LVR clears the floor.mandate--
- 08Treasury survivalIn survival or shutdown no trade passes, whatever was proposed.runway--
0/8 checkedSHA-256 proof to HCS
07 · Get started
See every number for yourself.
The desk shows the market, the verdicts, the books and the forecasts, each with a link to the chain.
- 1
Read-only, no keys. Start the gateway and the agent and the desk reads the mainnet pool and the reference prices, scores the flow and runs the kernel. Nothing is signed.
- 2
Add keys to make it a business. A funded Hedera account and three HCS topics for the proofs and the books, a Blocky402 key to settle payments, and an ENS name for the mandate.
- 3
Everything else is in the docs. Environment, endpoints, the kernel and the limits are in the documentation.
- Is it real money?
- Mainnet by default. Trading stays off until you turn it on, and the mandate caps it.
- Do I need an account?
- No. Agents pay per call with x402; reading the desk is free.
- Can I check its record?
- Yes. Forecasts and scores are HCS messages; the desk recomputes the hit rate from the Mirror Node.