How It Works
The XPower protocol orchestrates six smart contracts through a pipeline that transforms computational work into time-weighted store-of-value tokens.
1. Mine XPOW
The entry point is proof-of-work mining. A miner iterates over random nonces, computing:
When the result has
2. Deposit into XPowerNft
XPOW holders deposit tokens into the XPowerNft contract to mint tiered ERC-1155 NFTs. Each NFT has:
- Level
— must be a multiple of 3 - Denomination
— the XPOW value locked per NFT - ID
— encodes both mint year and level - Maturity year
— the earliest year the NFT can be redeemed
Higher levels concentrate more XPOW into fewer NFTs, proportional to
3. Stake in NftTreasury
To earn rewards, XPowerNft holders stake their NFTs in the NftTreasury contract. This:
- Transfers the XPowerNft to the treasury
- Mints an APowerNft to the staker — a staking receipt that tracks accumulated age and per-level shares
- Refreshes the MoeTreasury rate calculations
APowerNfts are transferable (with reward refresh on transfer) and can only be minted or burned by the NftTreasury.
4. Accrue Rewards
While staked, rewards accumulate continuously based on two polynomial rate functions:
- APR (Annual Percentage Rate) — determined by NFT level via polynomial evaluation. Default: linear scaling at 1.125% per level.
- APB (Annual Percentage Bonus) — determined by stake age via polynomial evaluation. Default: 0.1% per year of stake duration.
The reward formula for a staked NFT is:
where
An integrator mechanism computes duration-weighted arithmetic means of rate changes, preventing flash-stake manipulation. A dynamic scalar redistributes rewards based on per-level share distribution — under-staked levels receive bonus multipliers; over-staked levels receive penalty divisors.
5. Claim APOW
Accumulated rewards can be claimed at any time via MoeTreasury.claim(). This mints APOW tokens at a rate-limited pace — the mean minting rate targets approximately 1 token per minute, enforced through a moving average with square-root smoothing. Unclaimed rewards continue accruing; there is no penalty for infrequent claiming.
6. Unstake / Upgrade / Migrate
The staking lifecycle supports multiple exit paths:
- Unstake: Burn APowerNft → receive XPowerNft back. Any pending rewards must be claimed first.
- Upgrade: Burn 1,000 XPowerNfts at level
→ mint 1 XPowerNft at level . This 1000:1 ratio preserves the 10× denomination increment. - Redeem: After the maturity year, burn XPowerNft → receive the locked XPOW back.
- Migrate: Legacy v9.x contracts support full token and NFT migration with ~4-year deadlines.