Skip to content

Commit

Permalink
fix: correct l2 eth token address (#207)
Browse files Browse the repository at this point in the history
* fix: correct address of l2 ethereum token

* count eth token also to the metric
  • Loading branch information
montekki authored Sep 29, 2023
1 parent d45d149 commit 7fbf36c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions withdrawals-meterer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use std::{collections::HashMap, str::FromStr};

use client::{ETH_ADDRESS, ETH_TOKEN_ADDRESS};
use client::ETH_TOKEN_ADDRESS;
use ethers::types::Address;
use sqlx::PgPool;
use storage::StoredWithdrawal;
Expand All @@ -30,7 +30,10 @@ impl WithdrawalsMeter {
/// derived from it
pub fn new(pool: PgPool, component_name: &'static str) -> Self {
let mut token_decimals = HashMap::new();
token_decimals.insert(ETH_ADDRESS, (18_u32, ETH_TOKEN_ADDRESS));

token_decimals.insert(ETH_TOKEN_ADDRESS, (18_u32, ETH_TOKEN_ADDRESS));

metrics::increment_gauge!(format!("{component_name}_token_decimals_stored"), 1.0);

Self {
pool,
Expand Down

0 comments on commit 7fbf36c

Please sign in to comment.