Versions Compared

Key

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

This document contains design information relating to both FIP-6 and FIP-21

https://github.com/fioprotocol/fips/blob/master/fip-0006.md

https://github.com/fioprotocol/fips/blob/master/fip-0021.md

...

https://fioprotocol.atlassian.net/secure/RapidBoard.jspa?rapidView=2&projectKey=BD&modal=detail&selectedIssue=BD-2240&assignee=5b1708cb73c23f253a5f8692

Design:

FIP-6:

for FIP-6 There are several important factors

  1. Establish tables to be used to record and account the new locked token model (these are called general locked tokens in this design).

  2. integrate the new tables into the locked token accounting for voting and transferring of tokens. This task is relatively easy as we can use the same pattern of development as the genesis grants, and we can add logic for general locks in the places where the genesis locks are integrated, but we can do this in a way that will NOT impact the genesis locks. (IE: we will make new methods to handle the general locks, and leave the genesis locks untouched).

  3. provide new actions for creating these new locks, this will require 2 new actions, one in the token contract, and one in the system contract (trnsloctoks, and addgenlocked)

  4. integrate the new locking logic into the token contract and the system contract

    1. make can transfer, and computegenerallockedtokens similar to the genesis token accounting, implement the logic specific for the general locks.

    2. integrate the calls to these new methods throughout the token contract and system contract as necessary to ensure voting and transfer update the accounting as expected.

FIP-21:

There are 2 important aspects of the staking incentives being proposed:

...