Skip to content

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.

1 participant