Skip to main content

Moony’s primary price discovery mechanism is an onchain pricing curve, a deterministic exponential function encoded within the Moony Reserve smart contract. Unlike traditional market-based price discovery that relies on order books or liquidity pools, the pricing curve calculates the price of MNY based solely on the current circulating supply. As tokens enter circulation through acquisition from the Reserve, the price rises along a mathematically defined trajectory. As tokens are redeemed and removed from circulation, the price falls along the same curve in reverse.

Spot Price

The spot price represents the instantaneous price per MNY token at any given circulating supply level. It is a continuous mathematical function with no bid-ask spread and no dependence on external liquidity. It is defined by an exponential equation with three immutable constants:

P(S)=a×b×ec×SP(S) = a \times b \times e^{c \times S}
  • P(S) - spot price in USDF at supply level S
  • S - current circulating supply of MNY tokens
  • e - Euler’s number (~2.71828), the base of the natural exponential function

The exponential form ensures that the rate of price change is proportional to the current price itself, creating smooth, continuous price adjustment without discontinuities at any supply level.

Constants

Three immutable constants parameterize the curve to produce an initial price of ~0.01 USDF and a terminal price of 1,000,000 USDF at maximum supply (21M MNY):

a = 11400.230149967394933471

Amplitude constant. Scales the curve to reach $1,000,000 USDF at maximum supply.

b = 0.000000877175273521

Initial price coefficient. Sets the starting price at a × b ≈ $0.01 USDF when supply is near zero.

c = 0.000000877175273521

Growth rate. Controls how rapidly price increases with supply. Note: c = b by design, which simplifies integral calculations.

Price at Supply Milestones

Reference prices at key supply milestones, computed directly from the spot price formula:

Circulating SupplySpot Price (USDF)
00.01
1,000,0000.024
5,000,0000.80
10,000,00064.50
15,000,0005,180
20,000,000416,000
21,000,0001,000,000

Full distribution of the 21 million MNY supply would require approximately $1.14 trillion in cumulative capital committed to the Reserve. This value is derived from the definite integral of the pricing curve across the entire supply range and is encoded onchain as a protocol constant.

Transaction Formulas

The spot price tells you the current price per token, but you cannot simply multiply it by the quantity you want, because each token you buy slightly increases the price of the next one. Instead, the total cost is computed by integrating the spot price function across the full range of the transaction. The formulas below handle this automatically: two for buying (cost and tokens received) and one for selling (value received).

Cost to Buy Tokens

Given a token quantity to acquire, this formula computes the total USDF cost by evaluating the definite integral from current supply to new supply:

Cost=abc(ecS1ecS0)Cost = \frac{a \cdot b}{c} \cdot \left( e^{c \cdot S_1} - e^{c \cdot S_0} \right)
  • S₀ - circulating supply before the purchase (currentSupply)
  • S₁ - circulating supply after the purchase (S₀ + tokensToBuy)
  • Since b = c by design, the coefficient (a · b / c) simplifies to a

The computed cost always exceeds (spot price × quantity) because each successive token in the transaction is priced marginally higher than the previous. This price impact is an inherent property of pricing curves and scales with transaction size relative to total supply.

Tokens Bought for Value

When participants specify a USDF amount to spend (the typical case), this inverse function determines the exact quantity of MNY received:

T=ln(Va+ecS0)cS0T = \frac{\ln\left(\frac{V}{a} + e^{c \cdot S_0}\right)}{c} - S_0
  • T - tokens received (tokensBought)
  • V - USDF amount the participant wishes to spend
  • S₀ - circulating supply before the purchase
  • ln - natural logarithm, the inverse of exponentiation (e^x)

The logarithmic term arises from inverting the exponential cost function. Because the natural log is the inverse of e^x, this formula algebraically solves for the supply endpoint that yields exactly the specified cost when integrated from S₀.

Value from Selling Tokens

The same logic applies in reverse when redeeming tokens. Tokens return to the Reserve, supply decreases, and USDF is released:

Value=abc(ecS0ecS1)Value = \frac{a \cdot b}{c} \cdot \left( e^{c \cdot S_0} - e^{c \cdot S_1} \right)
  • S₀ - circulating supply before the redemption
  • S₁ - circulating supply after the redemption (S₀ - tokensToSell)
  • Returns the gross redemption value before protocol fees are applied
Redemptions are subject to a fee (in basis points) deducted from the gross value. See the Fee Model section for details.

Onchain Implementation

All curve values are precomputed at fixed supply intervals and embedded in the smart contract as lookup tables. Transaction pricing reduces to table lookups with flat step pricing, producing identical results every time.

Precomputed Tables

The implementation maintains two parallel data structures, each precomputed from the continuous formulas at fixed supply intervals:

Discrete Pricing Table

Spot price P(S) evaluated at each discrete supply level. Used for displaying current market price.

Discrete Cumulative Value Table

The integral of P(S) from 0 to each supply level. Enables efficient transaction cost computation by subtracting values at transaction boundaries.

Arithmetic and Precision

The lookup tables are configured to balance storage efficiency against pricing accuracy:

Step size: 100 tokens

Each table entry represents the curve value at supply S = i × 100. Within each step, price is held constant. Cumulative table subtraction handles complete steps exactly.

Fixed-point arithmetic

Internal calculations use 128-bit integers with 18 decimal scaling for precision. The MNY token uses 10 decimal places.

Total entries: 210,001 per table

Covers all supply levels from 0 through the 21,000,000 MNY maximum in 100-token increments.

These tables are fully deterministic and independently verifiable. Any implementation can regenerate the complete table contents from the constants and formulas documented above and verify equivalence with the onchain contract data.

Price Integrity and Secondary Markets

When price discovery is separated from actual ownership, price can move without any change in who holds the asset. Derivative markets allow leveraged participants to influence price without ever holding the underlying asset. Cascading liquidations and synthetic positions can drive price collapses that have no relationship to real demand or supply.

The Moony Reserve eliminates this class of vulnerability by design. Because the Reserve is the sole mechanism through which MNY enters and exits circulation, the Reserve price changes only when capital is committed or withdrawn. There are no external order books, no leveraged positions, and no derivative markets capable of influencing the Reserve’s deterministic pricing.

Secondary markets for MNY may exist, but they cannot alter the Reserve’s deterministic pricing. Any divergence between secondary market prices and the Reserve creates an arbitrage opportunity that naturally drives convergence:

Secondary Price > Reserve Price

Arbitrageurs acquire MNY from the Reserve at the lower curve price, then sell on the secondary market at the elevated price. This increases circulating supply (raising the curve price) while adding sell pressure to the secondary market (lowering its price), converging the two.

Secondary Price < Reserve Price

Arbitrageurs purchase MNY on the secondary market at the discounted price, then redeem at the Reserve for the higher curve value. This adds buy pressure to the secondary market (raising its price) while decreasing circulating supply (lowering the curve price), converging the two.

This arbitrage mechanism establishes the Reserve as both a price floor and ceiling for external markets. Any price gap exceeding transaction costs creates an incentive for arbitrageurs to restore equilibrium, anchoring all external pricing to the Reserve.