Update to May's nightly

Doesn't use the PR due to the needed changes.
This commit is contained in:
Luke Parker
2023-05-01 04:58:50 -04:00
parent 78c00bde3d
commit 5765d1d278
8 changed files with 7 additions and 51 deletions

View File

@@ -264,7 +264,7 @@ impl<C: Coin> Scheduler<C> {
// The above division isn't perfect
let mut remainder = diff - (per_payment * payments_len);
for mut payment in payments.iter_mut() {
for payment in payments.iter_mut() {
payment.amount = payment.amount.saturating_sub(per_payment + remainder);
// Only subtract the remainder once
remainder = 0;