mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Update to May's nightly
Doesn't use the PR due to the needed changes.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user