Relay Mining Estimation & Parameters
A gentle high-level introduction to token minting and burning, intended to understand the different variables involved and how they interact.
Mathematic Representation
Claim.NumRelays = scaleDown(RelayMiningDifficulty, ActualNumberOfRelays)
ClaimedComputeUnits = Claim.NumRelays × ComputeUnitsPerRelay
EstimatedOffchainComputeUnits = scaleUp(RelayMiningDifficulty, ClaimedComputeUnits)
uPOKT = EstimatedOffchainComputeUnits × ComputeUnitsToTokenMultiplier / ComputeUnitCostGranularity
Relay Mining Parameters & Function
RelayMiningDifficulty
Dynamic Parameter
Service Specific
Onchain protocol business logic
The probability that a relay is reward applicable
ComputeUnitsPerRelay
Static Parameter
Service Specific
Service Owner
Number of compute units each reward applicable relay accounts for
ComputeUnitsToTokenMultiplier
Static Parameter
Network Wide
Network Authority
Number of onchain tokens minted/burnt per compute unit
ComputeUnitCostGranularity
Static Parameter
Network Wide
Network Authority
Enable more granular calculations for the cost of a single relay (i.e. less than 1 uPOKT)
scaleDown
Offchain procedure
Service Specific
RelayMiner & Onchain Params
A methodology to ensure RelayMiner scalability
scaleUp
Onchain procedure
Service Specific
Validator & Onchain Business Logic
A methodology to ensure fair token distribution
Claim & Relay Estimation Flow
(Workflow elements referenced: Sparse Merkle Sum Trie root sum of reward-applicable relays, RelayMiner co-processor, Service.RelayMining Difficulty, Session.Cost in uPOKT, Service.ComputeUnitsPerRelay, Claim.NumRelays.)
💰 Example with Numbers
Assume the following Offchain market driven numbers:
POKT price: $0.1/POKT
Market rate: $5M for 1M relays
Session: Num actual offchain relays between App (User) & Supplier (Operator)
1,000,000
Baseline values
1.0
1.0
50
1
1,000,000 × 1 × 1 = 1,000,000
1,000,000 × 50 / 1 = 50,000,000 uPOKT = 50 POKT
$5.00
1,000,000
High multiplier / High granularity
1.0
1.0
50,000,000
1e6
1,000,000 × 1 × 1 = 1,000,000
1,000,000 × 50,000,000 / 1,000,000 = 50,000,000 uPOKT = 50 POKT
$5.00
1,000,000
High compute units per relay
1.0
5.0
50
1
1,000,000 × 1 × 5 = 5,000,000
5,000,000 × 50 / 1 = 250,000,000 uPOKT = 250 POKT
$25.00
10,000,000
Adjusted relay mining difficulty
0.1
1.0
50
1
1,000,000 × (0.1 / 0.1) × 1 = 1,000,000
1,000,000 × 50 / 1 = 5,000,000 uPOKT = 5 POKT
$5.00
FAQ
Was this helpful?
