Skip to content

Commit d032693

Browse files
committed
fix: deleverage filtering
1 parent f16823d commit d032693

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/services/Scanner.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,11 @@ export class Scanner {
298298
for (let i = 0; i < accounts.length; i++) {
299299
const ca = accounts[i];
300300
const r = res[i];
301-
if (r.status === "success" && !r.result[1]) {
302-
result.push(ca);
301+
if (r.status === "success") {
302+
const [permissions, forbidden] = r.result;
303+
if (!!permissions && !forbidden) {
304+
result.push(ca);
305+
}
303306
} else if (r.status === "failure") {
304307
errored++;
305308
}

0 commit comments

Comments
 (0)