# Stingvestors & Fangvestors

> Stingvestors on Robinhood Chain and Fangvestors on HyperEVM, each with a 5,100 cap, a curve sale, and a pot that pays its chain's revenue when an NFT is burned.

Source: https://docs.degenhive.ai/nfts

DegenHive has one NFT collection per chain: Stingvestors on Robinhood Chain (4663) and Fangvestors on HyperEVM (999). Each NFT accrues a share of its own chain's protocol revenue in a `VestorPot`, and the only way to collect it is to burn the NFT.

> [!IMPORTANT]
> The collection, pot and minter contracts are not deployed yet and not externally audited. Addresses publish at launch on [Network](https://docs.degenhive.ai/network.md).

## The two collections

| | Stingvestors | Fangvestors |
|---|---|---|
| Chain | Robinhood Chain (4663) | HyperEVM (999) |
| Cap | 5,100 | 5,100 |
| Pot asset | USDG | USDC |
| Revenue source | `nftBps` of every `BookVault` fee (at most 2,000 bps) | The 500 bps NFT lane of `HyperRevenueRouter` |
| Deployment | Live collection upgraded in place | Fresh collection on HyperEVM |
| DGV | Holders at the snapshot receive a patron DGV allocation at token launch | No DGV allocation |

Stingvestors keeps its 572 minted NFTs through the upgrade, including 111 reserve ids (11,001 to 11,111). Additional sale and treasury ids continue in mint order.

## Minting on the curve

Each collection has a `VestorCurveMinter` that sells on a linear stablecoin curve. The curve's prices are constructor inputs; the launch inputs are 4,200 NFTs from $1 to $50.

`Price of the k-th curve NFT (k from 0)`

```math
priceAt(k) = startPrice + (endPrice - startPrice) * k / (curveSupply - 1)
```

With `startPrice = 1e6`, `endPrice = 50e6` and `curveSupply = 4,200`, the whole curve raises 107,100 USDG or USDC, an average of $25.50. Payment goes straight from the buyer to the minter's `proceedsRecipient`. Each address may mint up to `walletCap`.

> **Interactive simulator (VestorCurveMinter mint price):** Position `k` (from 0) costs `startPrice + (endPrice - startPrice) * k / (curveSupply - 1)`, floored, in the chain's 6-decimal dollar token (USDG on Robinhood Chain, USDC on HyperEVM). A mint of `count` at position `sold` pays `count * startPrice + (endPrice - startPrice) * sumK / (curveSupply - 1)` with `sumK = count * (2 * sold + count - 1) / 2`, floored once. Defaults $1 to $50 over 4,200 NFTs: a sold-out curve raises $107,100. Reverts `ZeroAmount` for 0 and `CapExceeded` past the curve.

The council (Stingvestors) or owner (Fangvestors) mints the rest with `mintTreasury(to, count, receipt)`. It cannot use room the curve has not sold yet. That leaves 328 treasury NFTs for Stingvestors and 900 for Fangvestors.

**viem**

```ts
import { parseAbi } from "viem";
// pub, wallet and erc20 are set up as in /pools/liquidity; MINTER and PAY_TOKEN publish at launch.
const minterAbi = parseAbi([
  "function quote(uint256 count) view returns (uint256)",
  "function mint(uint256 count, uint256 maxTotalPrice) returns (uint256 firstId, uint256 totalPrice)",
]);
const count = 3n;
const price = await pub.readContract({ address: MINTER, abi: minterAbi, functionName: "quote", args: [count] });
await wallet.writeContract({ address: PAY_TOKEN, abi: erc20, functionName: "approve", args: [MINTER, price] });
await wallet.writeContract({ address: MINTER, abi: minterAbi, functionName: "mint", args: [count, price] });
```

`mint` reverts with `SaleNotStarted` before `startTime`, `CapExceeded` past the curve, `Slippage` if the total exceeds `maxTotalPrice`, `WalletCapExceeded` above the wallet cap, and `EnforcedPause()` while the owner has paused the minter.

## How the pot accrues

> **Figure: How a VestorPot pays each NFT.** Each flush raises the pot's index by the new revenue per circulating NFT, and burning an NFT pays the rise since its mint.
>
> Left, a staircase chart of the pot index over time; each step is one flush of amount / circulating. NFT A is minted at index 0 and burned at the end, when the index is 125, so burn(A) pays 125. NFT B is minted later, when the index is 65, and has accrued 60 by the end. Right, four boxes in order: revenue arrives as a plain transfer to VestorPot; flush() adds amount / circulating to the index; each NFT accrues the index minus the index at its mint; burn(id) pays the accrued amount. A note: new mints start at the current index, and excluded holders earn nothing.

Revenue reaches a pot by plain transfer. Anyone can call `flush()`, and the collection calls it before every mint, burn or excluded-holder move. A flush spreads the new balance over every circulating NFT through one index:

`Flush`

```math
index += amount * 1e18 / circulating
accrued(id) = frozen(id) + (index - seat(id).start) / 1e18
```

- A new NFT starts at the current index, so it earns only from later funding.
- Excluded holders do not earn. The council lists them with `setExcludedHolder`; their seats freeze what they earned so far, and they do not count as circulating. On Stingvestors the retired lootbox, which holds the reserve ids, is excluded before the pot's first funding.
- While fewer than `minLiveSeats` NFTs circulate, a flush sends the whole new balance to the pot's `fallbackRecipient`. On HyperEVM the router checks `live()` first and keeps the NFT lane in ops instead.

`accrued(id)` and `batchAccrued(ids)` include any balance not yet flushed.

## Burn to claim

`burn(uint256 id) returns (uint256 amount)` is the payout. Only the current owner can call it; an approved operator cannot. The collection flushes the pot, burns the NFT and calls `pot.redeem(id, owner)`, which pays the NFT's accrual in USDG (Stingvestors) or USDC (Fangvestors). Burned ids are never minted again, and later revenue is shared among the NFTs that remain.

**viem**

```ts
// COLLECTION publishes at launch; account is the NFT's owner.
const { result: amount } = await pub.simulateContract({
  account, address: COLLECTION, abi: parseAbi(["function burn(uint256 id) returns (uint256 amount)"]),
  functionName: "burn", args: [tokenId],
});
// amount is what the burn pays now
```

> [!WARNING]
> Burning is irreversible. The NFT is gone and its future share goes to the remaining holders.

If the stablecoin refuses the transfer, for example to a blocklisted address, the amount is booked to `unpaid[owner]`. Anyone can later call `claimUnpaid(owner)` on the pot, which pays the owner. An NFT minted or re-included in the same block as its burn forfeits the accrual since that block; the forfeited amount goes back to the other holders at the next flush.

## Royalties and transfers

Both collections implement ERC-2981. `royaltyInfo(id, price)` returns the immutable receiver and `price × royaltyBps / 10,000`, with `royaltyBps` at most 1,000. An optional ERC-721C transfer validator applies to transfers when the admin sets one. Mint and burn never reach the validator.

## The numbers

| Parameter | Value |
|---|---|
| `MAX_SUPPLY` | 5,100 per collection |
| Curve (launch inputs) | 4,200 NFTs, $1 to $50 |
| `MAX_ROYALTY_BPS` | 1,000 |
| `minLiveSeats` | 1 to 5,100, set at pot deployment |
| `INDEX_SCALE` | 1e18 |
| Stingvestors pot funding | `nftBps` of book fees, at most 2,000 bps |
| Fangvestors pot funding | 500 bps router lane, at most 2,000 bps |

## Related

- [Networks & status](https://docs.degenhive.ai/network.md) HyperEVM and Robinhood Chain deployment status.
- [Revenue](https://docs.degenhive.ai/revenue.md) The router lane that funds the Fangvestors pot.
- [Provide liquidity](https://docs.degenhive.ai/pools/liquidity.md) The book fees that fund the Stingvestors pot.
- [Token](https://docs.degenhive.ai/token.md) The Stingvestor patron allocation at token launch.
