Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIP-21 -- Implement FIO staking. #124

Merged

Conversation

edrotthoff
Copy link
Contributor

This PR is preliminary and intended to provide developers and other interested parties visibility into the progress of the staking coding effort.

this is DRAFT only until a code review, and security review are performed.

ALL FEEDBACK IS WELCOMED!!!! please add comments or feel free to contact me on telegram or discord.

this PR implements the detailed development specification at

https://fioprotocol.atlassian.net/wiki/spaces/FD/pages/91127818/FIP-21+FIO+Staking+Development+Spec

please refer to the FIP

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

final review of modified FIP, first coding iteration, add global staking state and constants.
@edrotthoff edrotthoff marked this pull request as draft March 29, 2021 20:55
Ed Rotthoff and others added 28 commits March 29, 2021 15:11
comment
add table for accountstake, holding staking info used to compute rewards for each FIO account
fix singleton definition
refactor staking into its own contract.
comments
implement actions called by system
implement fio staking in the staking contract
constant
print
implement all logic of unstakefio, except the locking.
make fio address parameter to be optional
add adapting of existing general locks.
allow genesis locks and general locks to co exist
fix computation of srp to claim
add staking rewards collection, minting of staking rewards
clean up prints
set the locking periods to be shortened
main net locks to 2 minutes for automated tests
mod the locks to pay out completely during last unlock, address rounding and resolution issues while adapting locks during unstaking
address rounding issues.
on unstake remove expired periods, use period in this same day for unstaking period.
changes to general locks to use amount instead of percetn
Merge develop into dev branch
fix indexing error on order check
change table def fix devnet issue
code brush up handle auto proxy
0xCasey and others added 5 commits June 23, 2021 13:43
fix bug when no tpid specified.
add return status for use with typescript sdk
set to production settings for genesis locking
@ericbutz ericbutz marked this pull request as ready for review July 13, 2021 16:34
@ericbutz ericbutz merged commit e8dc9fb into develop Jul 13, 2021
@ericbutz ericbutz deleted the feature/FIP-21-Staking-fio-contracts-develop-03212021 branch February 1, 2023 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants