Skip to content

Commit

Permalink
Merge pull request #336 from Uniswap/v2-addr
Browse files Browse the repository at this point in the history
  • Loading branch information
ConjunctiveNormalForm authored Jun 6, 2024
2 parents 42ed760 + 8fcb290 commit e9ad277
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions lib/cron/fade-rate-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,11 @@ export function getFillersNewFades(
(fillerTimestamps.has(fillerHash) && row.postTimestamp > fillerTimestamps.get(fillerHash)!.lastPostTimestamp) ||
!fillerTimestamps.has(fillerHash)
) {
log?.info({ row: row }, 'new fade');
if (!newFadesMap[fillerHash]) {
newFadesMap[fillerHash] = row.faded;
} else {
newFadesMap[fillerHash] += row.faded;
}
} else {
log?.info({ row: row }, 'no new fade');
}
});
log?.info({ newFadesMap }, '# of new fades by filler');
Expand Down
2 changes: 1 addition & 1 deletion lib/repositories/fades-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class V2FadesRepository extends BaseRedshiftRepository {
const formattedRow: V2FadesRowType = {
// the ordering of the fields has to match that in the sql query
fillerAddress: row[0].stringValue as string,
postTimestamp: Number(row[1].longValue as number),
postTimestamp: parseInt(row[1].stringValue as string),
faded: Number(row[2].longValue as number),
};
return formattedRow;
Expand Down

0 comments on commit e9ad277

Please sign in to comment.