Skip to content

Commit

Permalink
fix: do not add failed tokens from zero-debt accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Dec 5, 2024
1 parent 05650a8 commit b44eeed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/services/scanner/Scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ export class Scanner {
});
const failedTokens = new Set<Address>();
for (const acc of accounts) {
acc.priceFeedsNeeded.forEach(t => failedTokens.add(t));
if (acc.healthFactor !== 65535n) {
// TODO: fix this when HF is changed to uint256
acc.priceFeedsNeeded.forEach(t => failedTokens.add(t));
}
}

return [accounts, Array.from(failedTokens)];
Expand Down

0 comments on commit b44eeed

Please sign in to comment.