Skip to content

Commit

Permalink
Tests pendingUnlockAmount and totalAmountLocked (#141)
Browse files Browse the repository at this point in the history
* test pendingUnlockAmount and totalAmountLocked for scenario 1, 2 and 3

* refactors: defines verify_pendingUnlockAmountAndTotalAmountLocked

* refactors: renames verify_pendingUnlockAmountAndTotalAmountLocked to checkConsistencyPendingUnlockDailyUnlocked

* adds getLargestExpiryDate and consumes it

* test_scenario1_pendingUnlockAmount consumes getLargestExpiryDate

* updates: checkConsistencyPendingUnlockDailyUnlocked to use lastTrsDate instead of todayDay

* adds checks for consistency of pendingUnlockAmounts and totalAmountLocked

* Removes length parameter from getLargestExpiryDate and checkConsistencyPendingUnlockDailyUnlocked

* asserts checkConsistencyPendingUnlockDailyUnlocked(lockIDs, getLargestExpiryDate(lockIDs)
  • Loading branch information
has5aan authored May 17, 2024
1 parent 4efbd6e commit 98cfef1
Showing 1 changed file with 184 additions and 0 deletions.
Loading

0 comments on commit 98cfef1

Please sign in to comment.