🛣
P2E2S Model
Uesers can use Play to earn to stake to earn XWG Token.
X World Games Innovative P2E2S Flowchart

P2E2S Staking Mechanism

Rules

  1. 1.
    Staking Pools: all cards will be staked into the same staking pool.
  2. 2.
    Staking Warehouse: All cards for staking must be transferred to the Card Warehouse before they start staking
  3. 3.
    Staking Period:
    1. 1.
      Users are able to stake at any time when any pool is open and available.
    2. 2.
      Each staking pool has its own portal according to the length of the staking period
      • 7 days, 14 days, 30 days.
      • Users are allowed to stake at any time before the staking period ends.
      • Calculation of required LUCIDs fee will be based on the length of staking
    3. 3.
      Different staking periods require different amounts of LUCIDs and will have different ROI.
      • 30 days (greatest return), followed by 14 days and 7 days (least return)
      • The implementation will use the discounted hash rate approach to achieve.
    4. 4.
      Upon expiration of the staking period, the staking pool will do the reward calculation and lock all rewards for users. No more output from the staking pools.
      • The reward cannot be claimed before the staking period has expired.
    5. 5.
      After the reward calculation, users will have 7 days to claim the rewards. Unclaimed Rewards after such 7 days period will be sent to the burning pool and destroyed.
    6. 6.
      Card Redemption (Unstake).
      • Players can unstake before the staking period’s expiration, but no already-consumed LUCIDs will NOT be returned and no staking rewards will be given.
      • After the staking expiration, once players unstake the cards, the reward will be automatically claimed as well (one action).
  4. 4.
    Minimum Participation Requirements.
    • Hash Rate: the total hash rate power of the cards (DECK GROUP) must reach a minimum value in order to enter the staking pool, and such value is configurable and hot-change (can be adjusted event by event).
    • A minimum value of hash rate power per deck with the total hash rate power of 20 cards must not be less than 12,720.
    • Lucid: the amount consumed varies according to the hash rate of cards staked and the length of the staking time.
    • Rarity: No Special Requirement for Card Rarity.
    • Quantity: 20 cards per deck
    • Hero Character Requirement: No Special Requirement for Character.

Hashrate Calculation:

HashRate=nftBasePrice+experience100+(star1)50\text{HashRate}=\text{nftBasePrice}+\frac{\text{experience}}{100}+(\text{star}-1)\cdot50
Rarity
Base Hashrate
Common
48
Rare
636
Epic
1273
Legendary
3182
Mythic
6363
If the staking period is selected as 30 days, the hashrate calculation is the same as the previous hashrate calculation
Staking Hashrate=DeckHashrate\text{Staking Hashrate} = \sum \text{DeckHashrate}
If the staking period is selected as 14 days, the hashrate is the previous hashrate multiplied by 0.9
Staking Hashrate=0.9DeckHashrate\text{Staking Hashrate} = 0.9\cdot\sum \text{DeckHashrate}
If the staking period is selected as 7 days, the hashrate is the previous hashrate multiplied by 0.8
Staking Hashrate=0.8DeckHashrate\text{Staking Hashrate} = 0.8\cdot\sum \text{DeckHashrate}
If
DeckHashrate<12,720DeckHashrate < 12,720
, such deck group cannot be staked

Required Lucid Calculation

Staking Time:
tt
Base Time:
t0=30246060=2,592,000secondst_{0} = 30 \cdot 24 \cdot 60 \cdot 60 = 2,592,000 seconds
Lucid Requirement:
m=50,000 m = 50,000
Hashrate Benchmark:
H0=48H_{0} = 48
Required Lucid=mtTotal Staking Hashratet0H0\text{Required Lucid} = \frac{m \cdot t \cdot \text{Total Staking Hashrate}}{t_{0} \cdot H_{0}}
The calculation method of staking time t is the activity deadline - the time at the time of staking:
t=texpirytstaket = t_{\text{expiry}} - t_{\text{stake}}
There are 3 staking period, corresponding to 7 days, 14 days, and 30 days.
If texpirytstake,it cannot be staked to the corresponding expiration date.\text{If } t_{\text{expiry}} \geqslant t_{\text{stake}}, \text{it cannot be staked to the corresponding expiration date.}

Reward Calculation

APR constant value:
β=300\beta = 300%
Reward Output per second:
rr
Seconds in a year: 31,536,000
B0 B_{0}
The total hashrate of the current staking deck:
Htotal H_{\text{total}}
The Maximum of total hashrate:
Hmax H_{\text{max}}
APR=rB0Htotal\text{APR} = \frac{r\cdot B_{0}}{H_{\text{total}}}
An adjustment coefficient
rr
to ensure that the APR is a one constant value below a certain upper limit of hashrate
r={βHtotalB0(Htotal<Hmax)βHmaxB0(HtotalHmax)r = \begin{cases} \frac{\beta \cdot H_{\text{total}}}{B_{0}} & (H_{\text{total}} < H_{\text{max}})\\ \frac{\beta \cdot H_{\text{max}}}{B_{0}} & (H_{\text{total}} \geqslant H_{\text{max}}) \end{cases}
After the user stakes and unstakes, update
rr
value.
The Maximum of total hashrate
HmaxH_{\text{max}}
of the first phase is 32,850,000.

Staking Example

The staking period for 20 legendary cards (1 generation 1 star) is selected as 7 days, and the staking period for 20 myth cards (1 generation 1 star) is selected as 30 days, stake from the beginning:

Legendary card’s hasrate = 3,182
Myth card’s hashrate = 6,363
FirstDeckHashrate=203,182=63,640\text{FirstDeckHashrate} = 20 \cdot 3,182 = 63,640
SecondDeckHashrate=206,363=127,260\text{SecondDeckHashrate} = 20 \cdot6,363 = 127,260
Since the both deck’s hashrate > = 12,720, staking OKAY ✅
7-days staking period discount = 0.8
FirstDeckHashrate=0.863,640=50,912\text{FirstDeckHashrate} = 0.8 \cdot 63,640 = 50,912
SecondDeckHashrate=127,260\text{SecondDeckHashrate} = 127,260
DeckHashrate=FirstDeckHashrate+SecondDeckHashrate=178,172\text{DeckHashrate} = \text{FirstDeckHashrate} + \text{SecondDeckHashrate} = 178,172
The total hashrate of the current staking card
Htotal=25,000,000H_{\text{total}}= 25,000,000
Since
Htotal+DeckHashrateH_{\text{total}} + \text{DeckHashrate}
does not exceed the maximum hashrate
Hmax=32,850,000H_{\text{max}}= 32,850,000
, therefore:
r=β(Htotal+DeckHashrate)B0r = \frac{\beta \cdot (H_{\text{total}} + \text{DeckHashrate})}{B_{0}}

Staking Reward Calculation:

First 7 days
r7246060DeckHashrateHtotal+DeckHashrate=3(25,000,000+178,172)31,536,0007246060178,17225,000,000+178,17210250.99 XWGr \cdot 7 \cdot 24 \cdot 60 \cdot 60 \cdot\frac{\text{DeckHashrate}}{H_{\text{total}}+\text{DeckHashrate}} = \frac{3 \cdot (25,000,000 + 178,172)}{31,536,000}\cdot7\cdot 24\cdot60\cdot60\cdot\frac{178,172}{25,000,000 + 178,172} \cong 10250.99\ \text{XWG}
The rest of 23 days
Since no more staking for the first deck after 7 days, therefore:
DeckHashrate=127,260\text{DeckHashrate} = 127,260
Htotal=25,000,000+127,260=25,127,260<32,850,000,H_{\text{total}}=25,000,000 + 127,260 = 25,127,260 < 32,850,000,
so:
r=βHtotalB0r = \frac{\beta \cdot H_{\text{total}}}{B_{0}}
r23246060DeckHashrateHtotal=325,127,26031,536,00023246060127,26025,127,26024057.37 XWGr\cdot 23 \cdot 24 \cdot60\cdot 60\cdot\frac{\text{DeckHashrate}}{H_{\text{total}}} = \frac{3 \cdot 25,127,260}{31,536,000}\cdot23\cdot 24\cdot60\cdot60\cdot\frac{127,260}{25,127,260} \cong 24057.37\ \text{XWG}
Total staking reward = 10,250.99 XWG + 24,057.37 XWG = 34308.36 XWG

Lucid Consumption for Staking:

First Deck
mtFirstDeckHashratet0H0=50,000724606050,9122,592,00048=12,374,444 Basic Lucid\frac{m \cdot t \cdot \text{FirstDeckHashrate}}{t_{0} \cdot H_{0}} = \frac{50,000 \cdot 7\cdot 24\cdot60\cdot60 \cdot 50,912}{2,592,000 \cdot 48} = 12,374,444 \ \text{Basic Lucid}
Second Deck:
mtSecondDeckHashratet0H0=50,00030246060127,2602,592,00048=132,562,500 Basic Lucid\frac{m \cdot t \cdot \text{SecondDeckHashrate}}{t_{0} \cdot H_{0}} = \frac{50,000 \cdot 30\cdot 24\cdot60\cdot60 \cdot 127,260}{2,592,000 \cdot 48} = 132,562,500 \ \text{Basic Lucid}
Total Lucids required: 144,936,944 Basic Lucid