You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider move this base logic (not code) into a separate function, is used by checkMainTransfer and by checkSpenderTransfer
uint actualDay = now / 86400; //Number of days since Jan 1, 1970 (UTC Timezone) fractional remainder discarded
uint actualTime = now % actualDay; //Number of seconds since midnight (UTC Timezone)
if (actualTime < spender.openingTime) actualDay--; // adjusts day to start at `mainopeningTime`
uint timeSinceOpening = now - (actualDay * 86400 + spender.openingTime);
uint windowTimeLength = spender.closingTime >= spender.openingTime ?
spender.closingTime - spender.openingTime :
The text was updated successfully, but these errors were encountered:
Consider move this base logic (not code) into a separate function, is used by
checkMainTransfer
and bycheckSpenderTransfer
The text was updated successfully, but these errors were encountered: