-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Fixed interruption in route_base_rewards (#35)
There was an issue in the BaseRewardRouter where if max_iterations was hit, it would not carry over the `rewards_to_process` meaning when the instruction ran again, it would go off of the new pre-routed value. Say we had 10 operators and 5 max_iterations with 10_000 rewards to split: ``` op0: 1000 op1: 1000 op2: 1000 op3: 1000 - Iterations Hit - op4: 600 op5: 600 op6: 600 op7: 600 op8: 600 op9: 600 ``` The fix was to save the `last_rewards_to_process` like we do in route_ncn_rewards;
- Loading branch information
1 parent
25f43df
commit 984cd00
Showing
5 changed files
with
500 additions
and
10 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
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
Oops, something went wrong.