Room key price playground

Visualize spot price, next-key cost, buy totals, sell returns, and fee impact from the cubic curve. Tune curve_k, supply, trade size, and fees.

Total SOL bought so far — —

Curve visualization

Spot price P(x) and cost to buy the next 1 key.

Spot SOL/key Next 1 key SOL
Spot price at supply—marginal SOL per full key
Buyer pays for Δ—depends on trade size
Trade fees for Δ—increases with trade size
Curve buy price—before fees
Curve sell return—before fees
Seller receives—after fees
Treasury accrued so far—only depends on current supply
Room accrued so far—only depends on current supply
Staker accrued so far—only depends on current supply
First key cost—curve_k / 3

Supply table

Generated from the graph-friendly formula in SOL, before fees.

Supply xSpot P(x)Next 1 keyTotal 0 → x

Formula used

P(x) = curve_k · x² / 1e9 Buy = curve_k · ((x+Δ)³ − x³) / (3 · 1e9) Sell = curve_k · (x³ − (x−Δ)³) / (3 · 1e9) Buyer pays = Buy · (1 + feeBps / 10000)

For exact settlement-style quotes, the app also calculates buy/sell with BigInt sub-units and floors to integer lamports, matching the on-chain shape.