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 f446bf3 commit 9af4ce8
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 @@ -414,9 +414,7 @@ async fn get_feed_with_interval(
id: format!("{}-{}-{}-{}", id.0, id.1, id.2, height),
key: format!("{}-{}-{}", id.0, id.1, id.2),
sort: format!(
"{}{}",
hex::encode(item.block.median_time.to_be_bytes()),
hex::encode(item.block.height.to_be_bytes()),
"{}", hex::encode(item.block.height.to_be_bytes().to_string()),
),
token: token.clone(),
currency: currency.clone(),
Expand Down

0 comments on commit 9af4ce8

Please sign in to comment.