Skip to content

Commit

Permalink
fix: removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolveArt committed Jun 18, 2024
1 parent d3bdaee commit 71ff55c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
9 changes: 0 additions & 9 deletions src/monitoring/on_off_deviation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,6 @@ pub async fn on_off_price_deviation(
.await
.map_err(|e| MonitoringError::OnChain(e.to_string()))?;

let _decimals =
config
.decimals(data_type.clone())
.get(&pair_id)
.ok_or(MonitoringError::OnChain(format!(
"Failed to get decimals for pair {:?}",
pair_id
)))?;

let on_chain_price = data
.first()
.ok_or(MonitoringError::OnChain("No data".to_string()))?
Expand Down
8 changes: 0 additions & 8 deletions src/monitoring/source_deviation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@ pub async fn source_deviation<T: Entry>(
.await
.map_err(|e| MonitoringError::OnChain(e.to_string()))?;

let _decimals = config
.decimals(query.data_type())
.get(query.pair_id())
.ok_or(MonitoringError::OnChain(format!(
"Failed to get decimals for pair {:?}",
query.pair_id()
)))?;

let on_chain_price = data
.first()
.ok_or(MonitoringError::OnChain("No data".to_string()))?
Expand Down

0 comments on commit 71ff55c

Please sign in to comment.