# Lintel
Caps and floors on Hyperliquid's hourly funding (HYPE, BTC, ETH), settled in USDC (0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65, 6 decimals) on Elysium (chain 99901).

## The product
- A cap pays max(print - K, 0) x notional for every hourly print until maturity; a floor pays max(K - print, 0) x notional.
- The buyer pays a premium once. No margin, no liquidation: the premium is the most a buyer can lose.
- Prints are clamped to +-0.01% per hour, so payouts stop there.
- Strikes (line index: kind, K per hour): 0: cap 0.00125%; 1: cap 0.00250%; 2: floor 0.00125%; 3: floor 0.00000%.
- Maturities: any 00:00 UTC from 1 to 31 days out. Minimum notional 10 USDC.
- One USDC pool per market writes every position, keeps 80% of each premium (20% to the protocol) and must keep NAV >= sum of every remaining print at the clamp. LP deposits lock for 24 h.

## The oracle
- A keeper proposes each settled hourly print (Hyperliquid fundingHistory) to LintelOracle, one per market per hour, in order. A print becomes final after 10 minutes unless one of at least two guardians disputes it; a disputed print never enters the index.
- For each strike the oracle keeps a cumulative payoff index; payout = notional x (index now - index at open) / 1e18.
- Opens and deposits wait for the latest top-of-hour print to be final. Claims and withdrawals never wait. After 24 h without a final print anyone may freeze a feed; everything settles on the last good index.

## Read (keyless, JSON, CORS open)
- GET https://lintel.market/api/markets — last 168 prints, running estimate, per-strike price, 30-day backtest, pool state.
- GET https://lintel.market/api/protect?address=0x... — a Hyperliquid account's perps, funding over 7 days, and the line that protects each.
- https://lintel.market/guardian.mjs — run an independent guardian.

## Contracts (Elysium 99901)
- Not deployed yet.
- Writes: approve USDC to the market, then open(line, notional, days, maxPremium); claim(id) pays the owner; deposit(assets) / withdraw(shares) for LPs. quote(line, notional, days) returns (premium, rate, startHour, maturityHour, maxPayout, covered).
- Rates are fractions per hour scaled 1e18. USDC amounts in base units (6 decimals).

Unaudited. Not investment advice.
