Pricing Mechanism

HyperFun Pricing Mechanism

Overview

HyperFun uses a Bonding Curve pricing model combined with NAV (Net Asset Value) to determine token prices. This creates a dynamic pricing system where:

  • Price tracks the underlying vault value (NAV)

  • Supply/demand affects price through the bonding curve

  • Large trades have price impact (like Uniswap)


Core Concepts

1. NAV (Net Asset Value)

NAV represents the fair value of one vault token based on total assets.

NAV = (Total Assets + NAV Virtual) / (Total Supply + NAV Virtual)

Total Assets = EVM USDC + L1 Spot + L1 Perp Value - Pending Sells

NAV Virtual = Stabilizer that prevents extreme NAV when vault is small

  • Minimum floor: 1000 tokens worth

  • Scales with vault size through graduation tiers


2. Bonding Curve Ratio

The bonding curve maintains a ratio that affects price relative to NAV.

Ratio
Price vs NAV
Meaning

1.0

= NAV

Fair value

1.5

1.5x NAV

50% premium (high demand)

0.8

0.8x NAV

20% discount (low demand)


Price Formula

Spot Price

Or equivalently:

Example

Parameter
Value

Total Assets

$100,000

Total Supply

100,000 tokens

NAV

$1.00

virtualBase

5,000,000

virtualTokens

4,500,000

BC Ratio

1.111

Price

$1.11 (11% premium)


Constant Product AMM

HyperFun uses the same formula as Uniswap (x × y = k), but applied to bonding curve reserves.

Buy Formula

When user buys with USDC:

Simplified:

Sell Formula

When user sells tokens:

Simplified:


Price Impact

Formula

Where:

  • X = Trade amount (in USDC for buys, tokens for sells)

  • V = Virtual reserve (virtualBaseUsdc for buys, virtualTokens for sells)

Price Impact Table

Trade Size / Virtual Reserve
Price Impact

1%

~2%

5%

~10%

10%

~21%

20%

~44%

50%

~125%

Example

Virtual Reserve = $5,000,000

Buy Amount
Price Impact

$10,000

0.4%

$50,000

2.0%

$100,000

4.0%

$500,000

21%


Price Bounds

Prices are capped to prevent extreme deviations from NAV.

Bounded Price Range

NAV
Min Price
Max Price

$1.00

$0.50

$2.00

$1.50

$0.75

$3.00

$2.00

$1.00

$4.00


Dynamic Virtual Reserves (Graduation Tiers)

Virtual reserves scale with vault size through graduation tiers.

Current Tier Settings

Tier
Threshold
BC Virtual
Effect

Seed

$100K

500K-2M

High price protection

Growth

$1M

5M-10M

Moderate protection

Mature

$10M

10M-20M

Low protection

Graduated

$100M

100M

Near-linear pricing

Why Dynamic Reserves?

Vault Size
BC Virtual
$10K Buy Impact

Small ($10K)

500K

4%

Medium ($100K)

2M

1%

Large ($1M)

10M

0.2%

Small vaults have more price protection (higher impact) to prevent manipulation.


Squared Effect Decay

The bonding curve effect transitions from squared (high protection) to linear (tracks NAV) as the vault grows.

Tier
squaredRatioBps
Effect

Seed

90% (9000)

Strong BC effect

Growth

60% (6000)

Moderate BC effect

Mature

15% (1500)

Weak BC effect

Graduated

2% (200)

Nearly linear (≈ NAV)


BC Ratio Limits

Maximum Ratio (Cap)

Prevents price from going too high above NAV.

Minimum Ratio (Floor)

Prevents price from going below NAV.


TWAP NAV (Time-Weighted Average)

To prevent price manipulation from sudden liquidations or large trades, NAV uses a smoothed (TWAP) value.

This protects users from:

  • Flash liquidation spikes

  • Price manipulation attacks

  • Sandwich attacks


Fee Structure

Trading Fee

Exit Fee (Time-Based)

Encourages long-term holding.

Days Held
Exit Fee

< 1 day

3%

1-3 days

2%

3-7 days

1%

7-30 days

0.5%

> 30 days

0%


View Functions

Get Current Prices

Preview Trades

Get Reserves

Get NAV


Example: Complete Buy Flow


Example: Complete Sell Flow


Summary

Component
Description

NAV

Fair value based on total assets

BC Ratio

Supply/demand multiplier

Price

NAV × BC Ratio

AMM

Constant product (x × y = k)

Impact

≈ (1 + X/V)² - 1

Bounds

0.5x to 2x NAV

Tiers

Dynamic reserves by vault size

TWAP

Smoothed NAV for protection


Contract Version

Current: V44

Last updated