Rebase How It Works: The Smart Contract Mechanics Explained
A rebase is a smart contract function that programmatically adjusts the total token supply to maintain a target price peg. This process changes the number of tokens in every holder's wallet proportionally, without altering the overall value of their holdings. Understanding this mechanism is key for creators considering tokenomics with price stability features.
Key Points
- 1A rebase is an on-chain function that changes the total token supply based on price deviation from a target.
- 2Every holder's wallet balance increases or decreases proportionally during a rebase, keeping their share of the market cap constant.
- 3Rebases typically occur on a set schedule (e.g., every 8 hours) and are calculated by a pre-defined formula in the contract.
- 4The goal is to create an elastic supply that encourages price stability without needing a liquidity pool reserve.
The Core Mechanism: Supply Elasticity
How does a token's supply automatically grow and shrink?
At its heart, a rebase works by making token supply elastic. Instead of a fixed number of tokens, the total supply can expand or contract. This is controlled entirely by the token's smart contract, which follows a predefined set of rules. Think of it like a central bank for a single token, but fully automated and transparent on the blockchain.
The contract is typically connected to a price oracle (like Pyth or Chainlink) to get the current market price. It compares this price to a target price, often $1.00. If the market price is above the target, the contract triggers a positive rebase, minting new tokens and distributing them to all holders. If the price is below the target, it triggers a negative rebase, burning tokens from every wallet. The key is that your percentage ownership of the total supply never changes, only the raw token count.
Step-by-Step: What Happens During a Rebase
Here is the typical sequence of events for a rebase token like Ampleforth, executed entirely by its smart contract.
A Concrete Wallet Example
What do the numbers in your wallet actually do?
Let's use specific numbers to illustrate the effect on a holder. Assume a rebase token with a $1.00 target peg.
Scenario: You hold 1,000 tokens.
- Total Supply: 1,000,000 tokens
- Your Share: 0.1% of the total supply (1,000 / 1,000,000)
- Market Price: $1.20 (20% above peg)
During the Rebase:
- The contract calculates a +20% supply increase.
- New Total Supply = 1,000,000 * 1.20 = 1,200,000 tokens.
- Your new balance = Your Share (0.1%) * New Total Supply = 1,200 tokens.
Result: Your balance increased from 1,000 to 1,200 tokens. However, the market price is expected to move back toward $1.00 due to the increased supply. Your value pre-rebase was 1,000 tokens * $1.20 = $1,200. Post-rebase, it's 1,200 tokens * ~$1.00 = ~$1,200. The dollar value remains similar; the unit count changed. This is the fundamental principle of a rebase.
Rebase vs. Traditional Algorithmic Stablecoins
How is this different from an algorithmic stablecoin?
It's easy to confuse rebase tokens with algorithmic stablecoins like Terra's UST (which failed) or newer models. The difference is in the stabilization mechanism and risk profile.
| Feature | Rebase Token (e.g., Ampleforth) | Traditional Algo-Stablecoin (e.g., UST) |
|---|---|---|
| Stability Mechanism | Adjusts supply in all wallets. | Uses a secondary volatile token (LUNA) to absorb price shocks via mint/burn. |
| Holder Impact | All holders' token counts change. Value share is constant. | Only arbitrageurs and the protocol treasury mint/burn the backing asset. |
| Collateral | No collateral. Pure supply elasticity. | Often requires over-collateralization or a seigniorage share model. |
| Failure Mode | Price can drift from peg if demand/supply equation breaks; wallet balances become volatile. | Death spiral if the backing asset crashes and breaks the mint/burn arbitrage loop. |
| Creator Use Case | Can embed into a token for experimental stability or reward distribution. | Difficult to implement as a feature of a new token; usually a standalone stablecoin project. |
For a crypto creator, a rebase mechanism is a modular smart contract function you can potentially add to your token. A full algorithmic stablecoin is a massive, separate protocol. Learn about tokenomics basics for more context.
Verdict: Should You Use a Rebase Mechanism?
Is this the right tool for your token launch?
For most creators launching a standard community or utility token on a platform like Spawned, a rebase mechanism adds unnecessary complexity and potential user confusion.
Consider a rebase IF: Your token's core utility requires a stable unit of account within your ecosystem, and you are prepared for the technical complexity and user education required. It's a highly experimental feature.
Avoid a rebase IF: You are launching a typical meme, community, or governance token. Your holders will likely prefer predictable token counts in their wallets. The volatility of unit count can be mistaken for volatility in value, causing support issues.
A better alternative for reward distribution: Instead of a price-triggered rebase, consider a reflection mechanism that distributes fees directly to holders in the native token. This provides ongoing rewards without altering wallet balances unpredictably. Spawned's standard tokenomics include a 0.30% holder reward on every trade, which is a simpler and more predictable incentive. Explore our launchpad features.
Key Technical Considerations for Implementation
The practical challenges of building a rebase token.
If you decide to proceed, here are the specific technical hurdles you must solve.
- Oracle Security: Your contract must trust a price feed. A malicious or inaccurate oracle can trigger incorrect rebases, damaging the token.
- Wallet Compatibility: Not all wallets display rebase-adjusted balances correctly in their UI. Users may need to check a block explorer.
- Contract Pausing: You need emergency functions to pause rebases if a bug or market attack is detected.
- Gas Costs: Executing the rebase function and updating all balances in a single transaction can be extremely gas-intensive on some blockchains. Solana's low fees make this more feasible.
- Tax Implications: The continuous minting and burning of tokens in a user's wallet may create complex taxable events in some jurisdictions.
- Integration Difficulty: Exchanges and DeFi protocols must specifically support the rebase token standard, or user balances will not update correctly on those platforms.
Launch Your Token with Clear, Simple Tokenomics
Forget the complexity of rebases. Launch a token with straightforward, attractive tokenomics that holders understand immediately.
With Spawned, you get:
- Holder Rewards: A built-in 0.30% distribution on every trade to all holders, no complex rebasing needed.
- AI Website Builder: Create a professional homepage for your token in minutes, included for free.
- Graduation Path: Move seamlessly to a permanent Token-2022 contract with 1% protocol fees.
- Low Cost: Launch for just 0.1 SOL (~$20).
Build a community around clear value, not confusing mechanics. Start your launch on Spawned today.
Related Terms
Frequently Asked Questions
Not in terms of your percentage share of the project. A negative rebase burns tokens from your wallet when the price is below the target. Your token count decreases, but if the mechanism works, the price per token should increase proportionally, aiming to keep your total held value similar. However, if market demand doesn't respond, the price may not recover, leading to a loss.
The frequency is set in the smart contract code. Common intervals are every 8 hours, 12 hours, or 24 hours. The contract uses the price at the moment of the rebase call to calculate the required supply adjustment. This scheduled approach prevents constant, gas-intensive calculations.
Technically, the rebase is a transaction that executes at a specific block. If you transact in the same block, it could lead to unexpected results. Most contracts implement a brief pause on transfers during the rebase execution to prevent this. It's generally advised to avoid transacting in the minutes surrounding a scheduled rebase time.
No. Centralized exchanges (CEXs) often do not support automatic balance updates from rebases. Your balance on the exchange may become incorrect. Some DeFi platforms also may not integrate correctly. Always check if an exchange or platform has explicit support for the specific rebase token you are using.
Both distribute tokens to holders. A **rebase** changes all wallet balances proportionally based on a price target, often leaving the number of tokens in a liquidity pool unchanged. **Reflection** (like SafeMoon's model) takes a fee from each transaction and distributes it as new tokens to holders, which continuously increases their balance. Reflection is transaction-based, while rebase is schedule and price-based.
From an investment perspective, rebase tokens are highly speculative and experimental. Their value depends entirely on the market's belief in the stability mechanism. They can experience extreme volatility in both price and token count. They are better understood as a technological experiment in elastic money rather than a traditional investment asset.
The standard token contract deployed via Spawned does not include a rebase function due to its complexity and potential for user confusion. Implementing it would require a fully custom, audited smart contract, which is beyond the scope of the standard launchpad flow. We recommend focusing on proven incentives like our built-in 0.30% holder rewards. [See our token standards](/docs/token-standards).
Explore more terms in our glossary
Browse Glossary