Skip to content

Commit

Permalink
fix supply and no block_num
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Lefebvre committed Aug 6, 2024
1 parent 5feab44 commit 9b1d54d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function getTotalSupply(endpoint: UsageEndpoints, query_param: any, examp
${contractTable}.symbol as symbol,
${contractTable}.decimals as precision,
toUnixTimestamp(${table}.timestamp)*1000 as timestamp
FROM ${table} `;
FROM ${table} FINAL `;



Expand All @@ -105,7 +105,8 @@ export function getTotalSupply(endpoint: UsageEndpoints, query_param: any, examp

// Sort and Limit
// const sort_by = searchParams.get("sort_by");
query += ` ORDER BY block_num`
if(q.block_num) query += ` ORDER BY block_num`
else query += ` ORDER BY block_num DESC `

}

Expand Down

0 comments on commit 9b1d54d

Please sign in to comment.