🥩Fee Allocation
How to distribute Fee Fairly in COC Game?
Balancing Kill Damage Health and Token Holdings.
Here’s a system that rewards contribution and commitment — measured through Kill Damage Health (KDH) and % of Total Token Supply Hold — to calculate each player’s fair share of fees.
The Core Idea
We combine two core factor:
Kill Damage Health (KDH): How much impact a player had in the game (total damage dealt).
Token Holdings: How much of the total token supply a player owns.
The formula makes sure that:
The more damage you do, and the more tokens you hold, the more fees you earn.
The Fee Allocation Formula
Let’s define the key variables:
fees_total: Total $PAWS fees to distributeuser_hold: A COC Player $PAWS token balancetotal_supply: Total COC Players $PAWS token supplyuser_kdh: A player KDH (Kill Damage Health) bet $PAWStotal_kdh: The sum of all players KDH
Step 1: Compute Ratios
Step 2: Calculate Player Weight
Step 3: Distribute Fees
Allocation Example
Let’s say we have 3 players and a total of 100,000 $PAWS fees to split:
A
1000
5000
B
500
3000
C
1500
2000
Totals
total_supply = 3000total_kdh = 10,000
Ratios & Weights
A
0.3333
0.5
0.1667
B
0.1667
0.3
0.0500
C
0.5
0.2
0.1000
Total weight = 0.3167
Final Fee Distribution
A
52.66%
~52660
B
15.78%
~15780
C
31.56%
~31560
Why this makes sense?
This dual-metric system ensures:
High KDH → You played hard, you get rewarded
High token holdings → You took financial risk, you get rewarded
Multiplying them → We only reward real contributors who are also committed
Customization bonus weight
We maybe reset weights at the start of each epoch, based on in-game activity and strategy — inspired by COC mechanics.
Currently, the formula uses 1:1 weight ratio between token holdings and Kill Damage Health.
That means: Holding tokens and dealing damage are equally important.
Use exponents:
For example:
α = 2,β = 1→ favors token holders moreα = 1,β = 2→ rewards COC players more
When are fee distributed?
Fee are distributed at the end of each epoch.
At the end of each epoch, the RIP system calculates:
Total KDH from all players during the epoch
Each player token holdings snapshot
The weighted contribution of each player
Based on the formula described above, the RIP system automatically allocates fees to players proportionally.
Last updated