@@ -475,10 +475,10 @@ mod tests {
475475 // gas_price * 600_000 <= (seconds_elapsed) * (monthly_eth_budget / (30 * 24 * 60 * 60))
476476
477477 // Case 1: Base case -> should return true
478- // Monthly Budget: 0.15 ETH -> 0.5 ETH per day -> 0.000058 ETH per hour
478+ // Monthly Budget: 0.15 ETH -> 0.005 ETH per day -> 0.000000058 ETH per hour
479479 // Elapsed Time: 24 hours
480480 // Gas Price: 1 Gwei
481- // Max to spend: 0.000058 ETH/hour * 24 hours = 0.005 ETH
481+ // Max to spend: 0.000000058 ETH/hour * 24 hours = 0.005 ETH
482482 // Expected cost: 600,000 * 1 Gwei = 0.0006 ETH
483483 // Expected cost < Max to spend, so we can send the proof
484484 assert ! ( aggregator. should_send_proof_to_verify_on_chain(
@@ -488,10 +488,10 @@ mod tests {
488488 ) ) ;
489489
490490 // Case 2: Slightly Increased Gas Price -> should return false
491- // Monthly Budget: 0.15 ETH -> 0.5 ETH per day -> 0.000058 ETH per hour
491+ // Monthly Budget: 0.15 ETH -> 0.005 ETH per day -> 0.000000058 ETH per hour
492492 // Elapsed Time: 24 hours
493493 // Gas Price: 10 Gwei
494- // Max to spend: 0.000058 ETH/hour * 24 hours = 0.005 ETH
494+ // Max to spend: 0.000000058 ETH/hour * 24 hours = 0.005 ETH
495495 // Expected cost: 600,000 * 8 Gwei = 0.0048 ETH
496496 // Expected cost < Max to spend, so we can send the proof
497497 assert ! ( aggregator. should_send_proof_to_verify_on_chain(
@@ -501,10 +501,10 @@ mod tests {
501501 ) ) ;
502502
503503 // Case 3: Increased Gas Price -> should return false
504- // Monthly Budget: 0.15 ETH -> 0.5 ETH per day -> 0.000058 ETH per hour
504+ // Monthly Budget: 0.15 ETH -> 0.005 ETH per day -> 0.000000058 ETH per hour
505505 // Elapsed Time: 24 hours
506506 // Gas Price: 10 Gwei
507- // Max to spend: 0.000058 ETH/hour * 24 hours = 0.001392 ETH
507+ // Max to spend: 0.000000058 ETH/hour * 24 hours = 0.005 ETH
508508 // Expected cost: 600,000 * 10 Gwei = 0.006 ETH
509509 // Expected cost > Max to spend, so we cannot send the proof
510510 assert ! ( !aggregator. should_send_proof_to_verify_on_chain(
@@ -514,7 +514,7 @@ mod tests {
514514 ) ) ;
515515
516516 // Case 4: Slightly Reduced Time Elapsed -> should return true
517- // Monthly Budget: 0.15 ETH -> 0.5 ETH per day -> 0.000000058 ETH per hour
517+ // Monthly Budget: 0.15 ETH -> 0.005 ETH per day -> 0.000000058 ETH per hour
518518 // Elapsed Time: 2 hours
519519 // Gas Price: 1 Gwei
520520 // Max to spend: 0.000000058 ETH/hour * 3 hours = 0.000625 ETH
@@ -527,7 +527,7 @@ mod tests {
527527 ) ) ;
528528
529529 // Case 5: Reduced Time Elapsed -> should return false
530- // Monthly Budget: 0.15 ETH -> 0.5 ETH per day -> 0.000000058 ETH per hour
530+ // Monthly Budget: 0.15 ETH -> 0.005 ETH per day -> 0.000000058 ETH per hour
531531 // Elapsed Time: 1.2 hours
532532 // Gas Price: 1 Gwei
533533 // Max to spend: 0.000000058 ETH/hour * 1.2 hours = 0.00025 ETH
0 commit comments