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

feat: add rebalance interval #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexandre-abrioux
Copy link
Contributor

@alexandre-abrioux alexandre-abrioux commented Feb 15, 2022

Description of the changes

This PR adds a new—very simple—strategy to manage how often rebalance() calls are made by the node while it is running.
This strategy could be the first of many to manage rebalance calls. My goal here was to get a quick working prototype.

The rebalance minimum interval can be configured with the REBALANCE_INTERVAL configuration. The flaw of current implementation is that the counter resets on node restart. This could be improved by fetching the last time a rebalance call happened on the blockchain on node startup.

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.

None yet

1 participant