Skip to content

Commit

Permalink
chore(bolt-sidecar): fix comment and assert text
Browse files Browse the repository at this point in the history
  • Loading branch information
estensen committed Dec 18, 2024
1 parent 22a34ab commit 7b70a02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bolt-sidecar/src/state/pricing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ mod tests {
let min_fee_wei =
pricing.calculate_min_priority_fee(incoming_gas, preconfirmed_gas).unwrap();

// Expected fee: ~0.61 Gwei
// Pricing model article expects fee of 0.61 Gwei
assert!(
(min_fee_wei as f64 - 613_499_092.0).abs() < 1_000.0,
"Expected ~610,000,000 Wei, got {} Wei",
"Expected ~613,499,092 Wei, got {} Wei",
min_fee_wei
);
}
Expand All @@ -130,7 +130,7 @@ mod tests {
let min_fee_wei =
pricing.calculate_min_priority_fee(incoming_gas, preconfirmed_gas).unwrap();

// Expected fee: ~1.17 Gwei
// Pricing model article expects fee of ~1.17 Gwei
assert!(
(min_fee_wei as f64 - 1_189_738_950.0).abs() < 1_000.0,
"Expected ~1,189,738,950 Wei, got {} Wei",
Expand Down

0 comments on commit 7b70a02

Please sign in to comment.