Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ischasny committed Aug 30, 2024
1 parent 90ba6e7 commit d67c6de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/node/base_token_adjuster/src/base_token_l1_behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ impl BaseTokenL1Behaviour {
let prev_ratio = if let Some(prev_ratio) = last_persisted_l1_ratio {
prev_ratio.clone()
} else {
let prev_ratio = self.get_current_ratio_from_l1(l1_params).await?.clone();
let prev_ratio = self.get_current_ratio_from_l1(l1_params).await?;
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.clone()
prev_ratio
};

let current_ratio = BigDecimal::from(new_ratio.numerator.get())
Expand Down

0 comments on commit d67c6de

Please sign in to comment.