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

Rate Limiting algorithm doesn't work under status change events #11

Closed
2 tasks
fubuloubu opened this issue Oct 14, 2020 · 1 comment · Fixed by #173
Closed
2 tasks

Rate Limiting algorithm doesn't work under status change events #11

fubuloubu opened this issue Oct 14, 2020 · 1 comment · Fixed by #173
Assignees
Labels
enhancement New feature or request p2 important

Comments

@fubuloubu
Copy link
Member

  • Emergency exit from False to Truegives the rate limit from the last block reported (which is earlier than when the reset happens)
  • reseting debt limit on a strategy back to nonzero value (following revokeStrategy) uses the last block reported (which is earlier than when the reset happens)
@fubuloubu
Copy link
Member Author

Idea: add Vault.lastGlobalEvent and Vault.StrategyParams.lastChangeEvent, and then do max of those and the last sync

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p2 important
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants