File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
aggregation_mode/src/backend Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -204,15 +204,15 @@ impl ProofAggregator {
204204 & self ,
205205 time_elapsed : Duration ,
206206 monthly_eth_budget : f64 ,
207- gas_price_in_wei : U256 ,
207+ network_gas_price : U256 ,
208208 ) -> bool {
209209 // We assume a fixed gas cost of 300,000 for each of the 2 transactions
210210 const ON_CHAIN_COST_IN_GAS_UNITS : u64 = 600_000u64 ;
211211
212212 let on_chain_cost_in_gas: U256 = U256 :: from ( ON_CHAIN_COST_IN_GAS_UNITS ) ;
213213 let max_to_spend_in_wei = Self :: max_to_spend_in_wei ( time_elapsed, monthly_eth_budget) ;
214214
215- let expected_cost_in_wei = gas_price_in_wei * on_chain_cost_in_gas;
215+ let expected_cost_in_wei = network_gas_price * on_chain_cost_in_gas;
216216
217217 expected_cost_in_wei <= max_to_spend_in_wei
218218 }
You can’t perform that action at this time.
0 commit comments