Skip to content

Commit

Permalink
decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Dec 19, 2024
1 parent 96f101e commit 57b07bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ain-ocean/src/api/prices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ async fn get_feed(
token: token.clone(),
currency: currency.clone(),
aggregated: OraclePriceAggregatedAggregatedResponse {
amount: format!("{:.8}", v.aggregated.amount),
amount: format!("{:.8}", v.aggregated.amount / Decimal::from(COIN)),
weightage: v.aggregated.weightage.to_i32().unwrap_or_default(),
oracles: OraclePriceActiveNextOraclesResponse {
active: v.aggregated.oracles.active.to_i32().unwrap_or_default(),
Expand Down

0 comments on commit 57b07bf

Please sign in to comment.