Skip to content

Commit a211e3f

Browse files
Minor fixes in test case comments
1 parent 6e67363 commit a211e3f

File tree

1 file changed

+3
-3
lines changed
  • aggregation_mode/proof_aggregator/src/backend

1 file changed

+3
-3
lines changed

aggregation_mode/proof_aggregator/src/backend/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ mod tests {
477477

478478
const BUDGET_PER_MONTH_IN_ETH: f64 = 0.15;
479479
const ONE_DAY_SECONDS: u64 = 24 * 60 * 60;
480-
let gas_price = U256::from(1_000_000_000u64); // 10 GWEI
480+
let gas_price = U256::from(1_000_000_000u64); // 1 Gwei
481481

482482
// Case 1: Base case -> should return true
483483
// Monthly Budget: 0.15 ETH -> 0.005 ETH per day -> 0.000000058 ETH per hour
@@ -495,14 +495,14 @@ mod tests {
495495
// Case 2: Slightly Increased Gas Price -> should return false
496496
// Monthly Budget: 0.15 ETH -> 0.005 ETH per day -> 0.000000058 ETH per hour
497497
// Elapsed Time: 24 hours
498-
// Gas Price: 10 Gwei
498+
// Gas Price: 8 Gwei
499499
// Max to spend: 0.000000058 ETH/hour * 24 hours = 0.005 ETH
500500
// Expected cost: 600,000 * 8 Gwei = 0.0048 ETH
501501
// Expected cost < Max to spend, so we can send the proof
502502
assert!(aggregator.should_send_proof_to_verify_on_chain(
503503
Duration::from_secs(ONE_DAY_SECONDS), // 24 hours
504504
BUDGET_PER_MONTH_IN_ETH, // 0.15 ETH monthly budget
505-
U256::from(8_000_000_000u64), // 10 Gwei gas price
505+
U256::from(8_000_000_000u64), // 8 Gwei gas price
506506
));
507507

508508
// Case 3: Increased Gas Price -> should return false

0 commit comments

Comments
 (0)