Craygent
Autonomous agents,
on-chain.
Craygent runs AI agents that plan, act and settle on Elysium — every step signed, every result verifiable on-chain.
Craygent
Craygent runs AI agents that plan, act and settle on Elysium — every step signed, every result verifiable on-chain.
↑ Swipe up to enter
Swap
No markets match your search.
Priced at the Hyperliquid HYPE-PERP mark plus a transparent spread. No MEV, no pool-ratio slippage. Larger sizes get a firm signed RFQ quote priced against Hyperliquid depth.
Holders
Buy CRAYGENT on Montra and hold it — then claim your Hyperliquid perp position here.
Connect your wallet to check whether you can claim.
Verified from on-chain Montra swaps; transferred-in tokens don't count.
Market
Spread vs trade size
base 8 bps + skew 40 bps × inventory pressure, capped 150 bps. Per-trade cap $5,000, inventory cap ±$25,000.
On-chain
No swaps in the last ~2000 blocks
Provide liquidity
Deposit USDC (or any listed market token in-kind) for cLP shares. Every market's inventory is hedged with its Hyperliquid perp; LPs keep 80% of every spread.
USDC deposits mint cLP at the current share price. No deposit fee.
Wallet
Connect a wallet to see your cLP balance, value and share of pool.
Pool
Each market's inventory is hedged with its Hyperliquid perp. See the Markets page for live inventory per market.
Read before depositing
Options
Cash-settled European options written by the pool and delta-hedged on Hyperliquid. Each token carries a hedged perp position with no margin, no liquidation and max loss equal to the premium.
Series · nearest expiry
Ask per unit (bid below) · Δ · open interest. Prices are Black-Scholes marks off the live HYPE mid. Select a call or put in the ladder to open a ticket with a firm quote, breakeven and payoff chart.
| Strike | Call ask | Call Δ | Put ask | Put Δ | Open interest |
|---|
ERC-1155 balances
Connect a wallet to see your options. Balances across active and recently settled series, mark value and payout previews appear here.
Markets
Data-driven markets: each row is an on-chain Market struct priced off its Hyperliquid perp and hedged 1:1 by the operator. Click a market to trade it.
| Market | Token | HL perp | Base | Skew | Max spread | Inventory cap | Trade cap |
|---|---|---|---|---|---|---|---|
| WHYPE / USDC | Wrapped HYPE | HYPE-PERP #159 | 8 bps | 40 bps | 150 bps | ±$25,000 | $5,000 |
| UBTC / USDC | Unit Bitcoin | BTC-PERP #0 | 8 bps | 40 bps | 150 bps | ±$25,000 | $5,000 |
| UETH / USDC | Unit Ethereum | ETH-PERP #1 | 8 bps | 40 bps | 150 bps | ±$25,000 | $5,000 |
| USOL / USDC | Unit Solana | SOL-PERP #5 | 8 bps | 40 bps | 150 bps | ±$25,000 | $5,000 |
| PURR / USDC | Purr | PURR-PERP #152 | 8 bps | 40 bps | 150 bps | ±$25,000 | $5,000 |
Spreads are base + skew × inventory pressure, capped at max spread. Token amounts always use the token's own decimals — UBTC has 8 and USOL 9, so never assume 18.
Transparency
Everything the pool, oracle and hedger are doing, readable on-chain. If a number here disagrees with the contract, the contract wins.
Status
Accrued protocol fees are claimable to treasury by anyone via claimProtocolFees().
CraygentOracle
Hyperliquid
The operator reports HL positions and account equity via reportHedge. Every market is hedged against its own Hyperliquid perp; net delta = inventory delta + hedge size × mid. Verify the account independently on Hyperliquid.
CraygentRFQ · signed quotes for size
The quoter signs EIP-712 quotes off-chain after walking the Hyperliquid book for the hedge size. fill checks expiry, nonce, signer and taker; the pool then requires the price to sit within the on-chain bounds at the current oracle mid.
CraygentTreasury
Policy. 20% of every spread (protocolShareBps) accrues to the protocol treasury; anyone can call claimProtocolFees() to move it there. No fee is taken on deposits or withdrawals. LPs keep the remaining 80%.
CraygentTranche · cSR / cJR
CraygentOptions
CraygentRewards
Depth-aware lending opens once the pool has sustained real trading volume.
Who can do what
| Action | Operator | Guardian | Owner | Anyone |
|---|---|---|---|---|
| Post oracle prices | ✓ | |||
| Report hedge size & HL equity | ✓ | |||
| Pause pool / market direction | ✓ | ✓ | ||
| Unpause | ✓ | |||
| Add market / set spreads & caps | ✓ | |||
| Move USDC to HL margin (≤ 30% NAV) | ✓ | |||
| Return USDC from HL margin | ✓ | |||
| Claim protocol fees → treasury | ✓ | |||
| Withdraw LP USDC | — | — | — | — |
| Rescue non-pool tokens | ✓ |
Chain 99901 · Elysium
Documentation
Hyperliquid liquidity, on-chain. Spot, RFQ, options and structured yield on Elysium — every unit hedged on Hyperliquid.
Classic constant-product AMMs price from their own reserves, which means LPs sell winners and buy losers (impermanent loss) and pay arbitrageurs to keep the pool in line with the market. Craygent takes the other route: one USDC pool quotes several spot markets against USDC — WHYPE, UBTC, UETH, USOL and PURR today, more as they are listed — at the live Hyperliquid perp mark plus a transparent spread, and the hedger immediately neutralises whatever exposure the pool takes on with the opposite position in that market's perp on Hyperliquid. Elysium gets Hyperliquid's depth and price; LPs earn spread and premium with near-zero directional exposure.
Everything else is built on that one pool and that one hedge:
CraygentRFQ under the same on-chain bounds.CraygentTranche splits cLP into cSR (target rate first) and cJR (residual, first loss), so depositors choose their own risk.CraygentOracle keeps a ring buffer of posted Hyperliquid marks and serves twap(perpIndex, windowSec) to any contract on Elysium; it is also the options settlement price.Markets are data-driven: each is an on-chain Market struct { token, decimals, perpIndex, baseSpreadBps, skewSpreadBps, maxSpreadBps, maxInventoryUsdE6, maxTradeUsdE6, targetInventory, enabled, buyPaused, sellPaused }. Each market is hedged against its own Hyperliquid perp:
| Market | Token | Decimals | Hyperliquid perp |
|---|---|---|---|
| WHYPE / USDC | Wrapped HYPE | 18 | HYPE-PERP (#159) |
| UBTC / USDC | Unit Bitcoin | 8 | BTC-PERP (#0) |
| UETH / USDC | Unit Ethereum | 18 | ETH-PERP (#1) |
| USOL / USDC | Unit Solana | 9 | SOL-PERP (#5) |
| PURR / USDC | Purr | 18 | PURR-PERP (#152) |
Token amounts always use the token's own decimals — UBTC has 8 and USOL 9, so never assume 18.
All prices are E8 (USD per whole token × 1e8); USD amounts are E6. Let mid be the oracle price for the market's perp index.
inv = tokenBalance − targetInventory // signed, token units
invUsd = inv × mid
dir = +1 when you SELL token to the pool (inventory rises)
−1 when you BUY token from the pool (inventory falls)
invAfter = invUsd + dir × tradeUsd
revert InventoryLimit if |invAfter| > maxInventoryUsdE6
revert TradeTooLarge if tradeUsd > maxTradeUsdE6
pressure = clamp(dir × invAfter / maxInventoryUsdE6, 0, 1)
spreadBps = min(baseSpreadBps + skewSpreadBps × pressure, maxSpreadBps)
Only the side that pushes inventory away from target gets widened; the side that brings it back trades at the base spread. Then:
amountOut = usdcIn / (mid × (1 + spread))amountOut = tokenIn × mid × (1 − spread)Protocol fee: protocolFeeUsdE6 = tradeUsd × spreadBps × protocolShareBps / 1e8 is book-kept inside the pool as protocolFeesAccrued (excluded from NAV) until anyone calls claimProtocolFees(). The remaining spread stays in NAV for LPs.
Parameters are set per market (the Markets page shows the live values). WHYPE launched with base 8 bps, skew 40 bps, max 150 bps, inventory cap ±$25,000, per-trade cap $5,000. swapExactIn additionally enforces minAmountOut (your slippage) and deadline.
CraygentOracle routes between two sources per perp index:
post(perpIndex[], pxE8[], hlTimestampMs[])) every ~15 s or whenever the mark moves more than 5 bps. Stale after maxAgeSec (default 45 s).If both are fresh and disagree by more than maxDeviationBps (default 1%), getPrice reverts PriceDisagreement and the pool fails closed: no quotes, no swaps, until the sources converge. If the posted price is stale and no native source is live, it reverts StalePrice.
The pool holds token inventory in each market whenever traders net-sell to it. The hedger (operator) keeps, per market, a short position in that market's Hyperliquid perp equal to the pool's token balance, so the combined book is delta-neutral:
target hedge = −tokenBalance (coin units)
gap = target − currentHlPosition
if |gap| × mid ≥ HEDGE_MIN_USD → IOC limit order, slippage-capped (30 bps default)
The hedger runs every 1.5 s and on every Swap event, then calls reportHedge(ids, hedgeSizes, hedgeEquityUsdE6) roughly every 30 s with the HL account value and per-market position sizes. The frontend shows net delta (inventory + hedge, in USD) and the age of the last report. If the report is older than hedgeStaleSec (default 600 s) the pool flags hedgeIsStale() and the UI shows a warning; deposits and withdrawals keep working.
Margin for the hedge is funded by the owner moving USDC out of the pool with moveToHedge (capped at maxHedgeCapitalBps, default 30% of NAV, tracked as hedgeCapitalOutUsdE6). Anyone can return it with returnFromHedge.
Between a trade and the next reportHedge the pool is unhedged by that trade's size. The contract, not the bot, decides how much of that gap is acceptable:
struct RiskPolicy { uint128 maxNetDeltaUsdE6; uint16 breachSpreadBps; bool enforce; }
netDeltaUsd(id) = (tokenBalance + hedgeSize) × mid
riskMode() = reduce-only if enforce && (hedgeIsStale() || max_i |netDeltaUsd(i)| > maxNetDeltaUsdE6)
= normal otherwise
In reduce-only mode quote, swapExactIn, swapRFQ and depositToken accept a trade only if it shrinks that market's |net delta|; anything else reverts ReduceOnly. Delta-reducing trades in reduce-only mode pay spread + breachSpreadBps (still capped at maxSpreadBps). Defaults: cap $10,000, breach spread 10 bps, enforced. The hedger only executes; the limit lives in the contract.
The AMM caps each trade at maxTradeUsdE6 and widens with inventory skew because it cannot see Hyperliquid depth. For larger sizes the pool accepts signed quotes through CraygentRFQ:
POST /rfq/quote { tokenIn, tokenOut, amountIn, taker? }. It walks the Hyperliquid l2Book for the hedge size to get VWAP slippage and prices the spread at the current posted mid. The quote expires after ~30 s and carries a random 256-bit nonce.Quote { taker, tokenIn, tokenOut, amountIn, amountOut, spreadBps, expiry, nonce } (domain "Craygent RFQ", version "1") with the key set as CraygentRFQ.quoter.tokenIn to CraygentRFQ (not the pool) and calls fill(quote, signature). The contract checks expiry (QuoteExpired), taker (WrongTaker), nonce (NonceUsed) and signer (BadSigner), pulls amountIn and calls pool.swapRFQ.swapRFQ applies no skew but enforces the spread bounds, tradeUsd ≤ rfqMaxTradeUsdE6 (default $50,000), the inventory cap and the reduce-only rule, and bounds the price at the current oracle mid. The taker can never receive more than the stated spread implies.On the Trade page the AMM | RFQ toggle switches to RFQ automatically when the AMM reverts TradeTooLarge; the firm output, spread, book slippage and a countdown to expiry are shown.
totalAssets = freeUsdc
+ Σ tokenBalance_i × mid_i // marked inventory
+ max(hedgeEquityUsdE6, 0) // last reported HL account value
sharePriceE18 = 1e18 × totalAssets / totalSupply // 1e18 when supply is 0
cLP is an ERC-4626-style share with OpenZeppelin's virtual-offset protection (_decimalsOffset = 12, so 1 USDC ≈ 1e18 shares at genesis). Deposits and withdrawals:
deposit(assets) — USDC in, shares = previewDeposit(assets).depositToken(token, amount) — in-kind deposit of any market token (WHYPE, UBTC, UETH, USOL, PURR), valued at mid × (1 − baseSpread) so depositors pay the same half-spread a seller would.withdraw(assets) / redeem(shares) — USDC out, bounded by maxWithdraw(owner) = min(ownerAssets, freeUsdc). If much of NAV sits in inventory or HL margin, you may need to withdraw in pieces while the hedger recycles capital.The Pool page estimates APR from recent Swap events: LP share of spread revenue over the sampled window ÷ NAV × 365 / days. It is a backward-looking approximation and ignores funding paid or earned on the hedge.
CraygentTranche holds cLP on behalf of two ERC-20 claims, cSR (Craygent Senior) and cJR (Craygent Junior), both 18 decimals. All accounting is in USD E6 via pool.convertToAssets:
seniorRateBps (default 800 = 8% APR, max 30%); senior deposits add principal, senior withdrawals subtract pro-rata.juniorValue / totalValue must stay ≥ minJuniorBps (default 2000 = 20%), otherwise the call reverts JuniorTooThin.depositSenior/Junior(assets, receiver) pull USDC, deposit into the pool and mint shares. withdrawSenior/Junior(shares, receiver) pay USDC by redeeming cLP; they revert InsufficientLiquidity when the pool has no free USDC.CraygentOracle keeps, per perp index, a ring buffer of up to 512 (timestamp, pxE8) observations appended on every post. Anyone can read a time-weighted average over a configurable window:
twap(perpIndex, windowSec) → (pxE8, coveredSec)
The last observation is carried forward to now; partial coverage is allowed and reported in coveredSec. If the buffer does not reach back at least windowSec / 2 the call reverts InsufficientHistory. The Transparency page shows the 1 h and 24 h TWAP next to the spot oracle price. Other Elysium contracts can use this as a free, manipulation-resistant reference price.
| Role | Can | Cannot |
|---|---|---|
| Owner (Ownable2Step, intended multisig) | add markets, set spreads/caps, set roles, set protocol share (≤ 50%), move ≤ 30% NAV to HL margin, pause/unpause, rescue non-pool tokens | withdraw LP USDC, change the pricing formula |
| Operator (hedger) | post oracle prices, report hedge size & HL equity | move funds, change parameters |
| Guardian | pause the pool or a market direction | unpause, move funds |
| Anyone | claim protocol fees to treasury, return USDC from HL margin | — |
skill.md — a machine-readable skill file describing every Craygent flow (trade, pool, options, tranches) so agents can operate the protocol end-to-end.
MCP endpoint — the same surface exposed as MCP tools: quote, swap_calldata, pool, tranche, oracle and more, returning live state and ready-to-sign calldata.
REST API — GET /api/markets, GET /api/quote, GET /api/risk, GET /api/oracle, GET /api/tranche, POST /api/rfq/quote and GET /api/rfq/info mirror what the app shows, straight from the contracts.
Contract addresses are listed in the footer of every page and on the Transparency page.