-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: bug in snapshot time in the presence of low rps (#220)
* fix: discrepancy in time value during withdrawAt test: lower rps bound in Utils fix: precision loss in time due to denormalization in ongoing debt test: consistencies in assert messages in fork tests testL fix bugs in fork tests refactor: remove redundant internal functions perf: check the corrected time is less than snapshot time test: add an invariant that snapshot debt should always increase if updated chore: fix typos refactor: remove unneeded struct refactor: remove redundant correctedTime checks fix fuzz tests rename originalTime to time fix bug in depletion time docs: polish chore: remove SafeCast from Helpers Co-authored-by: Andrei Vlad Birgaoanu <99738872+andreivladbrg@users.noreply.github.com> * test: declare struct to fix stack too deep error * refactor: rename vars * docs: polish * docs: polish natspec for _ongoingDebt Co-authored-by: Paul Razvan Berg <prberg@proton.me> * docs: polish natspec in depletionTimeOf Co-authored-by: Andrei Vlad Birgaoanu <99738872+andreivladbrg@users.noreply.github.com> * fix: return ongoing debt as 0 when renormalizedOngoingDebt < ratePerSecond Co-authored-by: Andrei Vlad Birgaoanu <99738872+andreivladbrg@users.noreply.github.com> --------- Co-authored-by: Andrei Vlad Birgaoanu <99738872+andreivladbrg@users.noreply.github.com> Co-authored-by: Paul Razvan Berg <prberg@proton.me>
- Loading branch information
1 parent
ac0470c
commit a0dab5b
Showing
23 changed files
with
358 additions
and
218 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.