Skip to content

Commit

Permalink
style: apply fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
antomor committed Oct 18, 2023
1 parent fa9ef7b commit 9065e93
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/bin/zksync_api/src/bin/providers/dev_price_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use actix_web::{web, HttpRequest, HttpResponse, Result};
use bigdecimal::BigDecimal;
use chrono::{Utc, SecondsFormat};
use chrono::{SecondsFormat, Utc};
use serde::{Deserialize, Serialize};
use serde_json::json;
use std::{collections::HashMap, fs::read_to_string, path::Path};
Expand Down Expand Up @@ -89,7 +89,6 @@ async fn handle_coinmarketcap_token_price_query(
Ok(HttpResponse::Ok().json(resp))
}


#[derive(Debug, Deserialize)]
struct Token {
pub address: Address,
Expand Down Expand Up @@ -201,7 +200,10 @@ pub fn create_price_service(sloppy_mode: bool) -> actix_web::Scope {
"/cryptocurrency/quotes/latest",
web::get().to(handle_coinmarketcap_token_price_query),
)
.route(format!("{}/coins/list", API_PATH).as_str(), web::get().to(handle_coingecko_token_list))
.route(
format!("{}/coins/list", API_PATH).as_str(),
web::get().to(handle_coingecko_token_list),
)
.route(
format!("{}/coins/{{coin_id}}/market_chart", API_PATH).as_str(),
web::get().to(handle_coingecko_token_price_query),
Expand Down

0 comments on commit 9065e93

Please sign in to comment.