diff --git a/core/bin/zksync_api/src/fee_ticker/ticker_info.rs b/core/bin/zksync_api/src/fee_ticker/ticker_info.rs index 7db09e71d..840c50c6f 100644 --- a/core/bin/zksync_api/src/fee_ticker/ticker_info.rs +++ b/core/bin/zksync_api/src/fee_ticker/ticker_info.rs @@ -194,22 +194,21 @@ impl FeeTickerInfo for TickerInfo { } }; + let price_1_usd = TokenPrice { + usd_price: Ratio::from_integer(1u32.into()), + last_updated: Utc::now(), + }; + // TODO: remove hardcode for RDOC token if token.symbol == "RDOC" { metrics::histogram!(TICKET_INFO_GET_LAST_TOKEN_PRICE, start.elapsed(), "type" => "RDOC"); - return Ok(TokenPrice { - usd_price: Ratio::from_integer(1u32.into()), - last_updated: Utc::now(), - }); + return Ok(price_1_usd); } // TODO: remove hardcode for USDRIF token if token.symbol == "USDRIF" { metrics::histogram!(TICKET_INFO_GET_LAST_TOKEN_PRICE, start.elapsed(), "type" => "USDRIF"); - return Ok(TokenPrice { - usd_price: Ratio::from_integer(1u32.into()), - last_updated: Utc::now(), - }); + return Ok(price_1_usd); } let historical_price = self