Skip to content

Commit

Permalink
fix OraclePriceAggregatedIntervalResponse sort
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Dec 19, 2024
1 parent 9af4ce8 commit 24a7145
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/ain-ocean/src/api/prices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,7 @@ async fn get_feed_with_interval(
let price = OraclePriceAggregatedIntervalResponse {
id: format!("{}-{}-{}-{}", id.0, id.1, id.2, height),
key: format!("{}-{}-{}", id.0, id.1, id.2),
sort: format!(
"{}", hex::encode(item.block.height.to_be_bytes().to_string()),
),
sort: hex::encode(item.block.height.to_be_bytes()).to_string(),
token: token.clone(),
currency: currency.clone(),
aggregated: OraclePriceAggregatedIntervalAggregatedResponse {
Expand Down

0 comments on commit 24a7145

Please sign in to comment.