Skip to content

Commit

Permalink
remove unused decimals in PairData
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAWM committed Sep 9, 2023
1 parent 416660c commit d26816d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/evm/onchain/endpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ pub struct PairData {
in_: i32,
pair: String,
next: String,
decimals0: u64,
decimals1: u64,
src_exact: String,
rate: u32,
token: String,
Expand Down Expand Up @@ -849,8 +847,6 @@ impl OnChainConfig {
in_: if token == token0 { 0 } else { 1 },
pair,
next: if token == token0 { token1 } else { token0 },
decimals0: item["token0_decimals"].as_u64().unwrap(),
decimals1: item["token1_decimals"].as_u64().unwrap(),
src_exact: item["interface"].as_str().unwrap().to_string(),
rate: 0,
token: token.to_string(),
Expand Down Expand Up @@ -982,8 +978,6 @@ impl OnChainConfig {
in_: 0,
next: "".to_string(),
pair: "".to_string(),
decimals0: 0,
decimals1: 0,
initial_reserves_0: "".to_string(),
initial_reserves_1: "".to_string(),
src_exact: "".to_string(),
Expand Down

0 comments on commit d26816d

Please sign in to comment.