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 supplymarginal SOL per full key
Buyer pays for Δdepends on trade size
Trade fees for Δincreases with trade size
Curve buy pricebefore fees
Curve sell returnbefore fees
Seller receivesafter fees
Treasury accrued so faronly depends on current supply
Room accrued so faronly depends on current supply
Staker accrued so faronly depends on current supply
First key costcurve_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.