-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pseudocode * Add upgradability and ownership to FloatingToken * Add staking * Add staking to main contract * Add test setup function with both tokens * Fix some tests to work with staked voting token * Polish format * Fix proposals tests with staking * Fix all remaining tests * Bump version to 0.5.0 * Update to have contract deploy tokens upon creation * Add staking events * Use struct to store Stake, implement get_total_staked_accounted * Add more staking tests * Add even more tests and get_total_voting_power * Add test unstake before unlock * Format * Fix minting of floating token * Refactor staking contract to use DivRem for calculating amount of voting tokens * Remove unlock date in airdrop unstake
- Loading branch information
Showing
14 changed files
with
836 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.