Developer Rewards

Points Calculation

Points incentivize developers and operators for platform usage and performance.

Developer Points

All the developers will get points equivalent to the computation cost.

Example

Let's calculate the total TriggerGas (TG) and fees for a task with the following parameters:

Task Parameters

  • Execution Time: 5 seconds

  • Memory Usage: 256 MB

  • Static Complexity Size: 2048 KB

  • Number of Validator Nodes: 3

Step-by-Step Calculation

1. Execution Time

Execution Time TG = 5 seconds × 2
Execution Time TG = 10 TG

2. Memory Usage

Memory Usage TG = (256 MB / 128) × 1
Memory Usage TG = 2 TG

3. Static Complexity

Static Complexity TG = (2048 KB / 1024) × 1
Static Complexity TG = 2 TG

4. Transaction Simulation

Transaction Simulation TG = 1 TG

5. Fixed Cost

Fixed Cost TG = 1 TG

6. Computation Cost

Computation Cost = (Execution Time × 2) + (Memory Usage MB / 128 × 1) + (Static Complexity KB / 1024 × 1)
Computation Cost = 10 + 2 + 2
Computation Cost = 14 TG

Developer Points

Developer Points = Computation Cost
Developer Points = 14 points

Last updated