-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a check in available function to return user's staked balance i… (
#1242) * Added a check in available function to return user's staked balance if staking maturity is inferior to its timestamp * Fix edge case where maturity = ts and revert with a div by 0. Added more complex test cases around partial unstaking and staking actions * Bound stake timestamp to maturity - 1 upon unstaking * Improved code readibility by allowing stake timestamp to equal the maturity and handle the case in the availability calculation
- Loading branch information
1 parent
cd34f7f
commit 05d3b4b
Showing
2 changed files
with
118 additions
and
8 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