Skip to content

Commit

Permalink
fix: lockedStorageDeposit multiplied by 100 (#1108)
Browse files Browse the repository at this point in the history
* fix: lockedStorageDeposit multiplied by 100

* fix: lockedStorageDeposit multiplied by 100

---------

Co-authored-by: Mario <[email protected]>
  • Loading branch information
begonaalvarezd and msarcev authored Feb 16, 2024
1 parent 43e9bed commit 79bfabf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/src/services/stardust/influx/influxQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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";
`;

Expand Down

0 comments on commit 79bfabf

Please sign in to comment.