From 9af4ce8c710c85bbfccc5263183aa399f700ce6f Mon Sep 17 00:00:00 2001 From: canonbrother Date: Thu, 19 Dec 2024 13:47:47 +0800 Subject: [PATCH] fix OraclePriceAggregatedIntervalResponse sort --- lib/ain-ocean/src/api/prices.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ain-ocean/src/api/prices.rs b/lib/ain-ocean/src/api/prices.rs index cf66cc7790..322221cd9f 100644 --- a/lib/ain-ocean/src/api/prices.rs +++ b/lib/ain-ocean/src/api/prices.rs @@ -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(),