Skip to content

Commit

Permalink
Replace gas price with erc-20 value
Browse files Browse the repository at this point in the history
  • Loading branch information
fkrause98 committed Dec 22, 2023
1 parent f5e431a commit 0eae669
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/zksync_core/src/api_server/tx_sender/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,8 @@ impl<G: L1GasPriceProvider> TxSender<G> {
}

pub fn gas_price(&self) -> u64 {
let gas_price = self.0.l1_gas_price_source.estimate_effective_gas_price();
// let gas_price = self.0.l1_gas_price_source.estimate_effective_gas_price();
let gas_price = self.0.l1_gas_price_source.estimate_erc_20_gas_price();
let l1_gas_price = (gas_price as f64 * self.0.sender_config.gas_price_scale_factor).round();
let (base_fee, _) = derive_base_fee_and_gas_per_pubdata(
l1_gas_price as u64,
Expand Down

0 comments on commit 0eae669

Please sign in to comment.