Repo
https://github.com/fioprotocol/fio-supply
Token Supply
See https://developers.fioprotocol.io/docs/fio-protocol/fio-token
Staking Stats
Endpoint
{base_url}/staking - returns data in FIO
{base_url}/staking/suf - returns data in SUF
Response
Group | Value | Description |
---|---|---|
staked_token_pool | ||
outstanding_srps | ||
rewards_token_pool | ||
combined_token_pool | ||
staking_rewards_reserves_minted | ||
roe | Rate of Exchange (ROE) always Double | |
activated | true - if Staking activated based on Combined Token Pool Minimum false - if Staking not Activated based on Combined Token Pool Minimum | |
historical_apr | 1day | APR calculated based on ROE change in last 1 day always Double |
7day | APR calculated based on ROE change in last 7 days always Double | |
30day | APR calculated based on ROE change in last 30 days always Double |
Historical APR calculation
Rate of exchange is fetched and recorded 24 hours after activation and then every 24 hours after that.
APR is computed as follows:
([ROE on DayX] / [ROE on DayY] - 1) * (365 / Dur) * 100
where:
Dur is duration of period, e.g. 1, 7, 365 days
DayX - Last recorded day
DayY - Last recorded day - Dur
If not enough data return null
Example
{ "staked_token_pool": 1000000, "outstanding_srps": 300, "rewards_token_pool": 100000, "combined_token_pool": 1100000, "staking_rewards_reserves_minted": 25000, "roe": 2.333333, "activated": true, "historical_apr": { "1day": 408.333333333, "7day": 508.333333333, "30day": null } }