Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests pendingUnlockAmount and totalAmountLocked (#141)
* 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