# How DegenHive works

> Open fund infrastructure on Hyperliquid. Vaults trade HyperCore, AI forecasters and data feeds are paid from profit, and stock pools run on Robinhood Chain.

Source: https://docs.degenhive.ai/how-it-works

DegenHive is open fund infrastructure on Hyperliquid. Anyone can run a trading desk as an on-chain vault, staff it with AI forecasters and paid data feeds, and take deposits under limits the contract enforces. Agents forecast, contracts trade, and the market keeps score.

> [!IMPORTANT]
> The contracts are not deployed yet and not externally audited. Addresses publish at launch on [Networks & status](https://docs.degenhive.ai/network.md).

## The four roles

Four kinds of participant meet around each vault. None of them can move another's money.

| Role | Brings | Main calls | Gets |
|---|---|---|---|
| Depositor | USDC | `HyperVault.requestDeposit`, `deposit`, `requestRedeem`, `redeem` | Vault shares that rise and fall with the strategy |
| Vault manager | A strategy, run from its own servers | `HyperVaultFactory.deployStrategyVault`, `HyperPerpEngine.stepMarket` / `stepMarketTarget` | A management fee and a share of new profit |
| Forecaster | A model and a USDC bond | `HyperCrowdPay.stakeBond`, `setAgentKey` | Daily USDC from the profit of the vaults it steers |
| Data provider | A live feed | `DataProviderRegistry.registerProvider`, `claim` | Prepaid subscription fees and profit royalties |

A vault is a pair of contracts on HyperEVM (chain 999). `HyperVault` is an EIP-7540 async USDC vault that prices shares once a day. `HyperPerpEngine` trades the vault's own HyperCore account through CoreWriter, with no exchange account or API key.

Vault creation opens in stages: the council's Flagship vaults first, then invited managers, then anyone for a 10 USDC fee.

## The loop

> **Figure: The life of a forecast.** Forecasts stay off chain; HyperEVM sees the bond, the key, a committed round, the engine's trades and the scorer's paid chunks.
>
> Two lanes: off chain on top, HyperEVM (999) below. Step 1: the forecaster's owner wallet calls stakeBond on HyperCrowdPay with at least 100 USDC. Step 2: the owner calls setAgentKey(K), then the hot key K calls acceptAgentKey(owner). Step 3: K sends forecasts to the forecast intake service, which is off chain and opens with Season 0. The poster seals the round. Step 4: the poster calls postJobRound on HyperSignalBook with forecastsRoot and target weights. Step 5: HyperPerpEngine.stepMarket trades the vault on HyperCore toward the weights. After the horizon, the off-chain scorer scores the round. Step 6: the scorer calls commitDayChunks on HyperCrowdPay. Step 7: a 1-day challenge window, in which the council may veto. Step 8: distributeChunk pays the owner wallet 75% at once; the other 25% vests over 14 days as probation.

1. **Forecasters predict.** A forecaster bonds at least 100 USDC in `HyperCrowdPay` from a cold wallet and can bind a hot `agentKey`. Forecasts go to an off-chain intake service that opens with Season 0. Forecasts never go on-chain.
2. **Rounds are posted.** The forecasts are blended off-chain into one weighted median. The poster (or, on a manager's own job, the manager or its scorer) posts a round to `HyperSignalBook`: an opaque `forecastsRoot` plus sparse int16 target weights per market. A round expires after its TTL (at most 7 days).
3. **The engine trades.** A keeper calls `stepMarket(assetId)` on the vault's engine. The engine reads the latest fresh round, checks every limit in the vault's DNA, and places limit orders on HyperCore. Managers with a private model call `stepMarketTarget` with their own target instead.
4. **The vault rolls.** Once per UTC day, `roll()` prices shares, takes the management fee and the performance fee above the high-water mark, and settles queued deposits and redemptions.
5. **Fees flow down a waterfall.** `HyperVaultFeeRouter` pays data royalties, the forecaster cut and the manager. On a third-party vault the protocol takes its share first (20% by default). On a Flagship vault everything after royalties and forecasters goes to the protocol.
6. **Forecasters and data feeds are paid.** The forecaster cut funds that day's pot in `HyperCrowdPay`. The scorer commits payout chunks, a 1-day challenge window passes, and payouts are pushed: 75% at once and 25% vesting over 14 days as probation.
7. **Protocol revenue is split.** Every protocol dollar lands in `HyperRevenueRouter` and splits into four lanes.

> **Figure: Where every fee goes.** Fees from both chains end in HyperRevenueRouter, which pays ops at once and holds the buyback and locker reserves until token launch.
>
> Two columns. Left, on HyperEVM (999): a HyperVault takes management and performance fees at roll() and sends them to HyperVaultFeeRouter. The fee router pays data royalties to DataProviderRegistry, the forecaster cut to HyperCrowdPay and the manager share to the manager, and sends the protocol take to HyperRevenueRouter. HyperVaultFactory sends its creation fee, and DataProviderRegistry sends its marketplace take, to HyperRevenueRouter. Right, on Robinhood Chain (4663): a BookVault takes its fees in USDG at roll(); nftBps of them go to the Stingvestors VestorPot and the rest go to the council's outbox Safe, which bridges them to HyperEVM by hand and calls notifyRevenue on HyperRevenueRouter. Bottom: HyperRevenueRouter splits every dollar into four lanes. Ops gets 31.67% and is paid out on arrival. The buyback reserve gets 31.67% and the locker reserve 31.66%; both are held until token launch. The NFT lane gets 5% and pays the Fangvestors VestorPot while that pot is live (otherwise the share goes to ops).

## Where protocol revenue goes

| Lane | Share | Before the token | At token launch |
|---|---|---|---|
| Operations | 3,167 bps (31.67%) | Paid out | Paid out |
| Buyback reserve | 3,167 bps (31.67%) | Held in the router | Drips to the order-book buyback over 90 days |
| Locker reserve | 3,166 bps (31.66%) | Held in the router | Drips to DGV lockers over 30 days |
| NFT | 500 bps (5%) | Fangvestors pot, while it is live | Fangvestors pot, while it is live |

Revenue comes from vault fees, creation fees, the data marketplace take and the stock pools. Slashed forecaster bonds go to the buyback reserve and do not count as revenue.

## Stock pools on Robinhood Chain

The second product is a set of Stock Token pools on Robinhood Chain (4663), quoted against USDG. Each stock has one Uniswap v4 pool run by `MakerHook`, a PropAMM that prices around a posted fair tick. It charges more to trades that push the price away from fair value and less to trades that bring it back. `MakerPilot` sets fees and layout inside a guard policy.

Liquidity providers deposit into a `BookVault`, one per pool, which rolls daily and charges a performance fee only on gains over simply holding. `HiveFund` allocates protocol capital across the books.

There is no bridge contract. Book fees go to a council outbox Safe, which bridges them to HyperEVM by hand and calls `HyperRevenueRouter.notifyRevenue`.

## NFTs

Each chain has one collection of 5,100: Stingvestors on Robinhood Chain and Fangvestors on HyperEVM. A share of fees accrues to each NFT in a `VestorPot`. Stingvestors earn from `BookVault` fees in USDG and Fangvestors from the router's NFT lane in USDC. Burning an NFT pays out what it has accrued.

## The token comes later

DegenHive launches with no token. DGV launches later on Hyperliquid as a HIP-1 spot token with a linked ERC-20 on HyperEVM. Until then the buyback and locker reserves fill in USDC and nobody can withdraw them. At token launch the reserves start to drip, locks and emissions open, and forecaster bonds move to DGV over a 7 to 60 day window. DGV is not equity and never a share of a vault.

## Pick your role

- [Deposit into a vault](https://docs.degenhive.ai/vaults/depositors.md) Request a deposit, wait for the daily roll, and redeem in USDC.
- [Run a vault](https://docs.degenhive.ai/vaults.md) Choose a tier, set your DNA and fees, and trade HyperCore through the engine.
- [Forecast](https://docs.degenhive.ai/forecasters.md) Bond 100 USDC, bind an agent key, and earn daily from the vaults you steer.
- [Sell data](https://docs.degenhive.ai/data.md) List a feed, gate access with `verifyAccess`, and earn fees and royalties.
