XenBurner v1.0: Technical Whitepaper
What Is XenBurner?
Last updated
What Is XenBurner?
Last updated
XenBurner is an EVM protocol designed to enhance the XEN ecosystem through a sophisticated deflationary mechanism that leverages NFT-based time-locked positions. Version 1.0 introduces the XLOCK NFT system, amplifier mechanics, and an improved reward structure to create a sustainable economic model that benefits both short and long-term participants.
This whitepaper outlines the technical specifications, mathematical models, contract interactions, and economic principles that form the foundation of the XenBurner ecosystem.
XenBurner v1.0 consists of two primary smart contracts that work in tandem:
XBurnMinter: The main contract responsible for burning XEN, minting XBURN, tracking user statistics, and managing the swap mechanism.
XBurnNFT (XLOCK): An ERC-721 contract that represents time-locked burning positions as tradable NFTs, with on-chain generated SVG images.
The XenBurner protocol operates on a burn-to-earn model with a time-preference component:
Base Ratio: 1,000,000 XEN = 1 XBURN (base)
Initial Supply: 1,000,000 XBURN (allocated for liquidity)
Supply Dynamics: Deflationary for both XEN and XBURN through systematic burning
When users burn XEN tokens, the amount is divided:
80% is burned directly through the XEN contract's burn function
20% is accumulated in the XenBurner contract for future swap operations
This split approach ensures immediate supply reduction while providing resources for the ongoing swap-and-burn cycle.
The amplifier is a time-based multiplier that rewards early participation:
Starting Value: Xen's Amp on Launch Day
Decay Rate: Decreases by 1 each day
Minimum Value: 1 (reached after 2999 days)
Formula: CurrentAmplifier = MAX(AMP_START - daysSinceLaunch, AMP_END)
For transparency, the current amplifier value is accessible through the getGlobalStats()
function.
Users can lock their positions for varying durations:
Minimum Term: 1 day
Maximum Term: 3650 days (~10 years)
Term Bonus: Calculated as a percentage of the 365-day period
XBURN rewards are determined by a formula that considers three key factors:
This formula creates a balanced reward system where:
Burning more XEN increases the base reward linearly
Longer lock periods increase rewards up to 100% (at 365 days)
Earlier participation (higher amplifier) increases rewards up to 100% (at 3000 amplifier)
Maximum possible bonus is 100% (double the base amount)
Each burning position is represented by an NFT that contains:
Amount of XEN burned
Lock duration and maturity timestamp
Amplifier value at lock creation
Base and total reward amounts
Dynamic on-chain generated SVG image
Creation: When a user burns XEN, an NFT is minted to their wallet
Maturity: After the lock period expires, the NFT becomes claimable
Claiming: User claims the XBURN reward, and the NFT is burned
Emergency End: User can choose to exit early with just the base reward
XLOCK NFTs are transferable until claimed, allowing for:
Secondary market trading of lock positions
Transfer of positions between wallets
Potential price discovery for time-locked XBURN
After claiming, the NFT is burned and cannot be transferred.
XEN tokens accumulate in the contract from the 20% portion of all burns.
When accumulated XEN reaches the threshold (100,000 XEN), the swap function becomes available.
Any user can trigger the swap function, which:
Rewards the caller with 5% of the accumulated XEN
Swaps the remaining 95% XEN for XBURN through Uniswap
Burns 100% of the received XBURN, reducing supply
This creates a self-perpetuating cycle of deflation:
XEN burns create XLOCK positions
Accumulated XEN is swapped for XBURN
The swapped XBURN is burned
Both tokens continuously decrease in supply
Key functions in the XBurnMinter contract:
Key functions in the XBurnNFT contract:
XenBurner v1.0 incorporates multiple layers of security:
Reentrancy Protection: All state-changing functions use OpenZeppelin's ReentrancyGuard
Safe ERC20 Transfers: Uses SafeERC20 for protection against non-compliant tokens
Access Control: Functions restricted by appropriate modifiers (onlyOwner, onlyMinter)
Error Handling: Custom errors with descriptive messages for better debugging
Gas Optimization: Functions split to reduce stack depth and batch operations limited to prevent gas limits
Checks-Effects-Interactions Pattern: State variables updated before external calls
Input Validation: Extensive parameter checking with appropriate error messages
Long-term Holders: Maximize rewards by locking for longer periods
Early Adopters: Benefit from higher amplifier values
Arbitrageurs: Trade XLOCK NFTs based on time value
Swap Initiators: Earn 5% of accumulated XEN by triggering swaps
Continuous Deflation: Both XEN and XBURN decrease in supply
Liquidity Deepening: Swap operations strengthen liquidity pools
Reduced Sell Pressure: Time-locked rewards distribute selling over time
Self-Sustaining Economics: No external subsidies or emissions required
Base Ratio: 1,000,000 XEN = 1 XBURN
Initial Supply: 1,000,000 XBURN
Swap Threshold: 500,000,000 XEN
Amplifier Start: Xen's Amp
Amplifier End: 1
Minimum Term: 1 day
Maximum Term: 3650 days
Caller Reward: 5% of swapped XEN amount
XenBurner v1.0 represents a significant evolution in token burning mechanics, combining time-preference economics, NFT technology, and automated market operations. By creating a system where users can choose their commitment level and receive proportional rewards, the protocol establishes a balanced economy that benefits participants across different time horizons.
The XLOCK NFT system adds a new dimension to traditional burning mechanisms by making time-locked positions tradable, creating secondary markets and price discovery for future XBURN rewards. Meanwhile, the automated swap and burn cycle ensures continuous deflation of both tokens without requiring ongoing management.
Through careful economic design and robust technical implementation, XenBurner v0.2 aims to create long-term value for the XEN ecosystem while providing transparent and flexible participation options for users at all levels.