Update `calculatePenalty` function
Closed this issue · 0 comments
matjazv commented
Description
The current penalty function implementation:
0.5 * lockedAmount * (remainingLockingDurationInDays / maximumLockingDuration)
can be replaced by:
0.5 * lockedAmount * ((remainingLockingDurationInDays - 3) / maximumLockingDuration)
i.e., subtracting 3 days from the remaining locking duration as for the emergency unlock the user still has to subsequently wait for 3 days.
Acceptance Criteria
calculatePenalty
function is updated according to above proposal- new unit test(s) are implemented