Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Item

Content

Page URL

/token/staking

Page Title

FIO Protocol - Staking

Design

https://www.figma.com/file/n33HwJfIuwy068A7G0Bdpg/FIO-Website?type=design&node-id=889-15123

Section Content

Stats

Dynamic Content

Content element

Endpoint

Request

Response

Staked

Same as https://fioprotocol.atlassian.net/wiki/spaces/DAO/pages/699957251/Home+Page#Dynamic-Content

Current APY

...

GET https://services-external.fioprotocol.io/staking

N/A

Use:

  • historical_apr30day

  • historical_apr7day

  • historical_apr1day

Code Block
{
  "staked_token_pool": 81362017.67272668,
  "outstanding_srps": 132751309.12573518,
  "rewards_token_pool": 8938773.922297876,
  "combined_token_pool": 92742285.03743973,
  "staking_rewards_reserves_minted": 6261266.063125846,
  "roe": 0.6986167266312909,
  "active": true,
  "historical_apr": {
    "1day": 9.819462831115345,
    "7day": 13.53748584592391,
    "30day": 11.539668834782017
  }
}

  • FIO Tokens Staked: N/A

  • Current APY

    • Based on last 30 days: 10.47%N/A

    • Based on last 7 days: 10.18%N/A

    • Based on last 1 day: 9.8%

Action

  • If you are staking tokens, you can look-up the amount of FIO Rewards accrued by FIO Handle: bring this to site:
    • : N/A

Staking Calculator

Step

Endpoint

Request

Response

User enters FIO Handle and clicks Lookup Now!

Get FIO Public Key

POST https://fio.blockpane.com/v1/chain/get_pub_address

Code Block
{
    "fio_address": "FIO Handle entered by user",
    "chain_code": "FIO",
    "token_code": "FIO"
}

Use public_address in next step

Code Block
{
    "public_address": "FIO81t9wb3849tiEBeTK1GgMqjvvwuFtZ5C6mWT6k1k2RWuQXSXcR"
}

Get Balances

POST https://fio.

...

...

chain/get_fio_balance

Code Block
{
  "fio_public_key": "FIO81t9wb3849tiEBeTK1GgMqjvvwuFtZ5C6mWT6k1k2RWuQXSXcR"
}
  • Use staked as Staked FIO

  • Compute Total Rewards Earned:

    • ((srps*roe)-staked)/1000000000

Code Block
{
    "balance": 5279742532709,
    "available": 4979742532709,
    "staked": 300000000000,
    "srps": 600000000000,
    "roe": "0.709415045213715"
}

If no valid response or staked is 0 display “Nothing to Display”

Staking Overview

  • To incentivize governance participation, FIO Token can be staked.

  • Token holders who vote or proxy their FIO Tokens can choose to stake any amount of tokens held in their account.

  • The staked tokens never leave user’s account, but are locked and cannot be spent.

  • When tokens are staked, they accrue Staking Rewards.

  • When the token holder unstakes their tokens, they receive the accrued Staking Rewards and their staked tokens remain locked for an additional period of 7 days after unstaking.

...