-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rebalance logic to helper function
This commit moves the logic that was previously applied whenever `can_rebalance` was set to `True` to a separate helper function to improve code readability and maintainability. Also `rebalance_reserves` was renamed to `D_rebalance` to reduce cognitive complexity.
- Loading branch information
1 parent
5776987
commit 317ea87
Showing
1 changed file
with
59 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters