Perp baskets · Robinhood Chain

Five names.
One token.

Pick five tokenized stocks, set the weights and the leverage, ship an ERC-20 anyone can mint or redeem for USDG. The leverage has a ceiling nobody can raise, and every change whoever runs it makes lands a day later, in public, with the door open.

Stocks to pick from
·
official tokens, priced off their pools
Leverage ceiling
0
a constant, not a setting
Notice on every change
0
and redeem is never barred

Leveraged products fail in two ways.
Both are ruled out here, in the bytecode.

Either the leverage quietly goes up, or the person running the thing changes it under you. A Fivex basket is five synthetic positions, one number for how levered they are, and a manager whose every move is proposed a day before it lands. Nothing is bought, nothing is unwound through a pool, and what a holder bought is what a holder holds.


Method

Three rules do most of the work.

A basket is a claim on a book. The pools are read, never traded, and one USDG vault takes the other side of what every basket nets out to. These are the rules that keep the claim honest.

01 · The ceiling

Leverage can only ever come down.

MAX_LEVERAGE_BPS = 30_000 is a constant in the contract, not a parameter anyone holds a key to. Underneath it, every basket carries its own cap, chosen when it ships. Every proposal is checked against that cap, lowerCap is the only function that touches it, and it only goes one way.

Prices move, so a basket drifts off its target. Once any leg or the leverage itself is 10% away, anyone may put it back, for a fee on the turnover alone. That is what sells a losing basket down before it can be liquidated, and a liquidation, when it comes, closes the basket to cash rather than to zero.

What binds a basketread off the contract
Protocol ceiling
Basket's own capset at launch, only lowered
Public rebalance opens at10% drift
Liquidationequity < 7.5% of gross
After a liquidationcash, shares survive
02 · The timelock

The manager cannot move it under you.

Nothing about a basket is set directly. Legs, weights, leverage and the manager's fee go through propose, wait twenty-four hours, and land through execute, which anyone may call for the week after. Handing the basket to somebody else takes the same road.

The proposal is public state the whole time. The desk shows what is coming and the countdown to it, and since redeeming is never barred, a holder who dislikes the change leaves before it arrives. A manager can be paid, up to 2% a year streamed as shares, and cannot raise that either without the same day's notice.

A change, start to finish24h + 7d
propose execute · anyone rebalance · anyone 24 hours. Holders can see it and can leave. lapses after 7 days
Redeem during the waitnever barred
Set anything directlyno such function
Manager fee ceiling2% a year
03 · The mark

A lagging anchor is nobody's discount.

Each stock's price comes off its deepest USDG pool on Uniswap v4, and a spot read on a pool that size is a faucet, not an oracle. So each leg keeps an anchor that anyone may step toward spot by at most 1% every five minutes. Walking it 30% takes hours of holding a pool off its price while handing everyone else a standing arbitrage.

An anchor lags, and a directional product cannot pretend otherwise. Minters are entered on every leg at the worse of mark and spot, and what that costs against the anchor comes off their own share count, so nobody already inside pays for it. Redeemers are exited the same way while a leg is unstable. Adding risk waits for the anchor; leaving never does.

Spot runs 5% ahead of the anchora long leg
Minter is entered atspot, the dearer one
Who pays the gapthe minter's shares
Existing holders' share priceunchanged
Redeem on an unstable legworse of the two
Mint on an unstable legbarred until it settles
Build

Five legs, signed weights, one leverage.

Weights sum to one hundred in absolute value, and a weight can be negative: long NVDA against short SPY is a basket, five longs is a basket, a leg at zero is not. The leverage applies to the whole thing and stops at the cap you set.

Minting puts USDG in and scales every leg up by the same fraction, so nobody's exposure changes when somebody else joins. Redeeming scales every leg down and pays USDG out. The token ships in one transaction, with a name and a ticker, and opens on its first mint.

Try one2.0×
Baskets

What has shipped,
read off the chain on load.

Every row is the contract's own state: the legs, what one share is worth in USDG right now, live leverage against the target, and whether a change is on its way.

Basket Share Net assets Leverage State
Reading the chain.
Marks read off Uniswap v4, chain 4663 Share price is NAV over supply
Legs

The stocks with a real book.

Every leg is an official Robinhood stock token. It prices from its deepest USDG pool; any pool holding at least 1% of that liquidity is a rival that must agree within 10%, or there is no agreed price and the stock is not listed. Open interest per side is capped at a quarter of the deepest pool's USDG reserve.

·
Stocks listed
0
Leverage ceiling
0
Maintenance
0
Tests, all green
The counterparty

A vault that only ever holds the residual.

Longs and shorts across every basket net against each other per stock, and that matched notional costs the vault nothing. Only the skew left over is the vault's book, bounded against vault assets, so a depositor lends into a position whose worst case is a stated fraction of the pot. Nobody can withdraw below that line while baskets are open.

Funding is the skew fee alone. Per stock, the heavy side pays and the light side receives, at one rate proportional to how one-sided that stock is. The vault keeps the difference, which is the rate on exactly the risk it carries. There is no interest term, because both sides are financed in the same USDG, and no dividend term, because these are ERC-8056 tokens and the pool price already carries it.

The vault, right nowchain 4663
USDG in the vault·····
Skew it carries·····
Share price·····
Funding at full skew1.2% a day
Its share of every fee80%
Questions

The parts worth arguing with.

01Why exactly five?

Because the number is the product. A basket with one leg is a perp, and a basket with twenty is an index fund that has to be rebalanced by a keeper. Five is enough to express a view and few enough that a holder can read every position on one screen. The count is a constant, so every basket on the contract is the same shape.

02What happens when a basket loses?

As equity falls, live leverage rises. Once it is 10% over target, anyone may rebalance, which sells the basket down to target for a fee on the turnover. If a gap gets there first and equity falls through 7.5% of gross notional, anyone may liquidate: every leg is closed at the anchor, the liquidator takes half the maintenance buffer out of what is left, and the shares now hold that cash. The manager may re-lever it. Holders never owe anything; a hole beyond the collateral is the vault's loss and is written off in public.

03Can the manager run off with it?

The manager never holds the USDG; the contract does, and the only way out is redeem, which pays whoever burns the shares. What a manager can do is change what the basket holds, and only with a day's notice. The fee they can charge is capped at 2% a year and changing it takes the same day. Rebalancing by hand is rate-limited to once an hour, so a manager cannot churn fees out of holders between proposals.

04Which stocks, and why not the others?

Nineteen at the last read. A leg needs one pool deep enough that nobody can buy its mark, and every rival pool with a real share of the liquidity has to agree on the price. CRCL fails that: its pools quote $68 and $86 and nothing on the chain says which is right. SPCX is left out on purpose, being a private-company proxy with no underlying anyone can check.

05What can go wrong?

The contracts are live on Robinhood Chain and unaudited. Engine ·, oracle ·. The pools behind the legs are thin by the standards of a large venue, which is what the anchor and the open-interest caps exist to blunt. If nobody pokes the anchors for an hour a basket's legs go stale and minting stops until somebody does; the desk shows the button. Leverage does what leverage does. Nothing here is investment advice.

Your five, your weights,
your ticker.