Skip to content

Commit

Permalink
fix: dtype for gasPrice in BlockNative Oracle (#2294)
Browse files Browse the repository at this point in the history
fix dtype for gasPrice in BlockNative Oracle
  • Loading branch information
alxiong authored Nov 18, 2024
1 parent c197b21 commit 57f1493
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/src/blocknative.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use ethers::{
};
use reqwest::{header::AUTHORIZATION, Client};
use serde::Deserialize;
use std::collections::HashMap;
use url::Url;

const URL: &str = "https://api.blocknative.com/gasprices/blockprices";
Expand All @@ -31,9 +30,8 @@ pub struct Response {
pub system: String,
pub network: String,
pub unit: String,
pub max_price: u64,
pub max_price: f64,
pub block_prices: Vec<BlockPrice>,
pub estimated_base_fees: Option<Vec<HashMap<String, Vec<BaseFeeEstimate>>>>,
}

#[derive(Clone, Debug, Deserialize, PartialEq)]
Expand All @@ -42,6 +40,7 @@ pub struct BlockPrice {
pub block_number: u64,
pub estimated_transaction_count: u64,
pub base_fee_per_gas: f64,
pub blob_base_fee_per_gas: f64,
pub estimated_prices: Vec<GasEstimate>,
}

Expand Down

0 comments on commit 57f1493

Please sign in to comment.