Skip to content

Commit 329c65d

Browse files
Show the monthly budget on eth instead of wei
1 parent 8ae4e77 commit 329c65d

File tree

1 file changed

+7
-5
lines changed
  • aggregation_mode/src/backend

1 file changed

+7
-5
lines changed

aggregation_mode/src/backend/mod.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ impl ProofAggregator {
6060
let wallet = EthereumWallet::from(signer);
6161

6262
// Check if the monthly budget is non-negative to avoid runtime errors later
63-
let monthly_budget_in_wei = parse_ether(&config.monthly_budget_eth.to_string())
63+
let _monthly_budget_in_wei = parse_ether(&config.monthly_budget_eth.to_string())
6464
.expect("Monthly budget must be a non-negative value");
6565

66-
info!("Monthly budget set to {} wei", monthly_budget_in_wei);
66+
info!("Monthly budget set to {} eth", config.monthly_budget_eth);
6767

6868
let rpc_provider = ProviderBuilder::new().connect_http(rpc_url.clone());
6969

@@ -157,9 +157,11 @@ impl ProofAggregator {
157157
// We add 24 hours because the proof aggregator runs once a day, so the time elapsed
158158
// should be considered over a 24h period.
159159

160-
let gas_price = match self.rpc_provider.get_gas_price().await.map_err(|e| AggregatedProofSubmissionError::GasPriceError(
161-
e.to_string(),
162-
))?;
160+
let gas_price = self
161+
.rpc_provider
162+
.get_gas_price()
163+
.await
164+
.map_err(|e| AggregatedProofSubmissionError::GasPriceError(e.to_string()))?;
163165

164166
if self.should_send_proof_to_verify_on_chain(
165167
time_elapsed,

0 commit comments

Comments
 (0)