From 79bfabff6e6ae0c340cccfef333a2845a4b15817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bego=C3=B1a=20=C3=81lvarez=20de=20la=20Cruz?= Date: Fri, 16 Feb 2024 12:23:18 +0100 Subject: [PATCH] fix: lockedStorageDeposit multiplied by 100 (#1108) * fix: lockedStorageDeposit multiplied by 100 * fix: lockedStorageDeposit multiplied by 100 --------- Co-authored-by: Mario --- api/src/services/stardust/influx/influxQueries.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/services/stardust/influx/influxQueries.ts b/api/src/services/stardust/influx/influxQueries.ts index 6ae4ffde5..ac7ba6f2a 100644 --- a/api/src/services/stardust/influx/influxQueries.ts +++ b/api/src/services/stardust/influx/influxQueries.ts @@ -279,14 +279,14 @@ export const LEDGER_SIZE_DAILY_QUERY = { export const STORAGE_DEPOSIT_DAILY_QUERY = { full: ` SELECT - last("total_storage_deposit_amount") * 100 / 1000000 AS "storageDeposit" + last("total_storage_deposit_amount") / 1000000 AS "storageDeposit" FROM "stardust_ledger_size" WHERE time < $to GROUP BY time(1d) fill(null) `, partial: ` SELECT - last("total_storage_deposit_amount") * 100 / 1000000 AS "storageDeposit" + last("total_storage_deposit_amount") / 1000000 AS "storageDeposit" FROM "stardust_ledger_size" WHERE time >= $from and time <= $to GROUP BY time(1d) fill(null) @@ -315,7 +315,7 @@ export const NFT_STAT_TOTAL_QUERY = ` export const STORAGE_DEPOSIT_TOTAL_QUERY = ` SELECT - last("total_storage_deposit_amount") * 100 AS "lockedStorageDeposit" + last("total_storage_deposit_amount") AS "lockedStorageDeposit" FROM "stardust_ledger_size"; `;