We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3dc5c9 commit ec122b9Copy full SHA for ec122b9
apps/fortuna/src/keeper.rs
@@ -434,8 +434,10 @@ pub async fn process_event_with_backoff(
434
multiplier,
435
e
436
);
437
+ // Calculate new multiplier with backoff, capped by backoff_gas_multiplier_cap_pct
438
+ let new_multiplier = multiplier.saturating_mul(backoff_gas_multiplier_pct) / 100;
439
current_multiplier.store(
- multiplier.saturating_mul(backoff_gas_multiplier_pct) / 100,
440
+ std::cmp::min(new_multiplier, chain_state.backoff_gas_multiplier_cap_pct),
441
std::sync::atomic::Ordering::Relaxed,
442
443
},
0 commit comments