Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: lockedStorageDeposit multiplied by 100 #1108

Merged
merged 4 commits into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
begonaalvarezd marked this conversation as resolved.
Show resolved Hide resolved
FROM "stardust_ledger_size";
`;

Expand Down
Loading