Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix daily limits reset #25

Merged
merged 1 commit into from
Oct 29, 2022
Merged

Fix daily limits reset #25

merged 1 commit into from
Oct 29, 2022

Conversation

k1rill-fedoseev
Copy link
Collaborator

The current codebase contains a bug that prevents proper daily deposit/withdrawal limit reset during a new day transition:

  1. When the new day starts with a deposit operation, only daily deposit limit would be reset
  2. When the new day starts with a withdrawal operation, only daily withdrawal limit would be reset
  3. When the new day starts with a transfer operation, none of the daily limits would be reset

This PR fixes that and adds a regression test.

@k1rill-fedoseev k1rill-fedoseev self-assigned this Oct 29, 2022
@akolotov akolotov merged commit a1ce123 into master Oct 29, 2022
@akolotov akolotov deleted the fix-limits-reset-bug branch October 29, 2022 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants