Closed levity closed 2 years ago
@spydermonkee and I talked about this just now & realized it's not an urgent change; things will still work as desired even if the first allowance doesn't start until mid-way through the first epoch. The cooldownInterval
won't be checked until the end of the second epoch.
I'm also curious to discuss any possible negative or security implications of this change that we may not see at first, @cesarsld
it would be for a situation where the circle has a repeating epoch, the epoch has already started, and the allowance hasn't been set yet.
you would want to set _intervalStart to match the epoch's (past) start time, and the cooldownInterval to match the epoch's repeating period, so that for the next epoch, the allowance resets at the right time.