Skip to content

Commit

Permalink
fix: wrong token calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
jtourkos committed Jan 9, 2025
1 parent ffcfc76 commit fa2060f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dataLoaders/sqlQueries/givenEventsQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function getDistinctErc20ByReceiver(
const baseSQL = (schema: DbSchema) =>
`SELECT DISTINCT ON ("erc20") "erc20", '${schema}' AS chain FROM "${schema}"."GivenEvents"`;

const whereClause = ` WHERE "accountId" = :receiver`;
const whereClause = ` WHERE "receiver" = :receiver`;

const queries = chains.map((chain) => baseSQL(chain) + whereClause);

Expand Down

0 comments on commit fa2060f

Please sign in to comment.