-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: CNS-daily restaking credit (#1794)
* added credit and credit timestamp to delegations * fix nil deref and edge cases where delegation is in the future * added delegation credit to rewards distribution * fix delegate set to account for existing delegation * wip on tests * unitests wip * normalized provider credit too if he wasnt staked for a month, finished unitests for credit * lint * adding unitests * fix ctx * finished delegation set with credit unitests * wip fixing tests * fix a test * fix last test * add unitest - wip * push unitests wip * finished delegation partial test * adapted new sub tests to trigger only on the new flow * fix date add bug using months instead of days * add migrator * PR comments --------- Co-authored-by: Yaroms <103432884+Yaroms@users.noreply.github.com>
- Loading branch information
1 parent
00d0c46
commit 4322087
Showing
17 changed files
with
920 additions
and
98 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
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.