Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update logging in cbt l1 behaviour #3149

Merged
merged 3 commits into from
Oct 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions core/node/base_token_adjuster/src/base_token_l1_behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{
};

use anyhow::Context;
use bigdecimal::{num_bigint::ToBigInt, BigDecimal, Zero};
use bigdecimal::{num_bigint::ToBigInt, BigDecimal, ToPrimitive, Zero};
use zksync_config::BaseTokenAdjusterConfig;
use zksync_eth_client::{BoundEthInterface, CallFunctionArgs, Options};
use zksync_node_fee_model::l1_gas_price::TxParamsProvider;
Expand Down Expand Up @@ -57,7 +57,7 @@ impl BaseTokenL1Behaviour {
self.update_last_persisted_l1_ratio(prev_ratio.clone());
tracing::info!(
"Fetched current base token ratio from the L1: {}",
prev_ratio.to_bigint().unwrap()
prev_ratio
);
prev_ratio
};
Expand All @@ -71,7 +71,7 @@ impl BaseTokenL1Behaviour {
"Skipping L1 update. current_ratio {}, previous_ratio {}, deviation {}",
current_ratio,
prev_ratio,
deviation.to_bigint().unwrap()
deviation
);
return Ok(());
}
Expand All @@ -98,7 +98,7 @@ impl BaseTokenL1Behaviour {
new_ratio.denominator.get(),
base_fee_per_gas,
priority_fee_per_gas,
deviation.to_bigint().unwrap()
deviation
);
METRICS
.l1_gas_used
Expand Down
Loading