🥩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 distribute

  • user_hold: A COC Player $PAWS token balance

  • total_supply: Total COC Players $PAWS token supply

  • user_kdh: A player KDH (Kill Damage Health) bet $PAWS

  • total_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:

Player
Token Holdings
Kill Damage Health

A

1000

5000

B

500

3000

C

1500

2000

Totals

  • total_supply = 3000

  • total_kdh = 10,000

Ratios & Weights

Player
Hold Ratio
KDH Ratio
Weight

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

User
% of Total Fees
Fee Received

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