Skip to content

Commit

Permalink
fix supply
Browse files Browse the repository at this point in the history
  • Loading branch information
Matlefebvre1234 committed Jul 8, 2024
1 parent 72645f5 commit 89021fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export function getTotalSupply(endpoint: UsageEndpoints, query_param: any, examp
name = q.name?.toLowerCase();

// Query
const table = `polygon_erc20_token.mv_supply_contract`
const contractTable = `polygon_erc20_token.contracts`;
const table = `${q.chain}_erc20_token.mv_supply_contract`
const contractTable = `${q.chain}_erc20_token.contracts`;
let query = `SELECT
${table}.contract,
${table}.supply as supply,
Expand Down Expand Up @@ -328,7 +328,7 @@ export function getBalanceChanges(endpoint: UsageEndpoints, query_param: any) {
function getHolder_latest(q: any) {
const contract = getAddress(q.contract, "contract", false)?.toLowerCase();
// SQL Query
const table = `${q.chain}_erc20_token.token_holders`
const table = `${q.chain}_erc20_token.token_holders_mv`
let query = `SELECT
account,
amount,
Expand Down

0 comments on commit 89021fc

Please sign in to comment.