We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7260821 commit 007d2c5Copy full SHA for 007d2c5
1 file changed
aggregation_mode/src/backend/mod.rs
@@ -204,15 +204,15 @@ impl ProofAggregator {
204
&self,
205
time_elapsed: Duration,
206
monthly_eth_budget: f64,
207
- gas_price_in_wei: U256,
+ network_gas_price: U256,
208
) -> bool {
209
// We assume a fixed gas cost of 300,000 for each of the 2 transactions
210
const ON_CHAIN_COST_IN_GAS_UNITS: u64 = 600_000u64;
211
212
let on_chain_cost_in_gas: U256 = U256::from(ON_CHAIN_COST_IN_GAS_UNITS);
213
let max_to_spend_in_wei = Self::max_to_spend_in_wei(time_elapsed, monthly_eth_budget);
214
215
- let expected_cost_in_wei = gas_price_in_wei * on_chain_cost_in_gas;
+ let expected_cost_in_wei = network_gas_price * on_chain_cost_in_gas;
216
217
expected_cost_in_wei <= max_to_spend_in_wei
218
}
0 commit comments