Graphscan.io by Ryabina. Formulas behind Rewards Calculator.

Ryabina.io
3 min readMar 27, 2021

Beside the other exiting features Graphscan.io allows users to estimate their future income on planned delegation. The calculations are made on the assumption that the proposed delegation will be added to the allocation by the Indexer according to the current ratios. No query fees are included in these calculations.

Note! These calculations are only a criterion for the indexer’s performance at the moment based on current active allocations. We don’t guarantee that delegators will get that exact percentage of rewards.

Subgraph total daily rewards (SDR)

DR — network daily rewards 
STS — subgraph total signal amount
TS — network total signal amount

Allocation Daily Rewards (ADR):

A  - indexer allocation
TA - total network allocated tokens

Total indexer allocations daily reward (TADR)

TADR is equal to the sum of the daily rewards of all the indexer allocations

Current Indexer APR:

TD — total indexer delegation pool
YDays — days in the year (~365)
IndexerCut — indexer indexing reward cut applied to the delegation pool

To calculate the APR with potential delegation (PD) we take this delegation into the delegation pool proportionally for all allocations and the ADR formula looks like this:

Historical APY:

Calculator also displays how much the indexer has earned for its delegators for the last N days. The formula for calculating the APY looks like this:

History Rewards for the last N days:

a — the number of allocations in the last N days
DR — Delegation Rewards issued after the close of the allocation
DP — Delegation Pool at the moment of allocation closure

About Ryabina

Ryabina is a validator and blockchain software developer. Launched in 2019, it has extended its activities to various Substrate-based, Tendermint-based and Ethereum-based networks. From the very beginning our team included professional builders, developers, DevOps engineers and project managers. As a validator, Ryabina runs a 100+ nodes in 17+ networks including Band, Kava, ETH 2.0, Polkadot, Celo, The Graph with fair rates and continued support to the community.

We are always open to conversation and happy to help the community:

Unlisted

--

--