Skip to content

Commit

Permalink
Solana - Update detected tokens with each loop
Browse files Browse the repository at this point in the history
  • Loading branch information
peachbits committed Jul 22, 2024
1 parent 92754b8 commit c0b4acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solana/SolanaEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export class SolanaEngine extends CurrencyEngine<
const balance = tokenBal?.result?.value?.amount ?? '0'
this.updateBalance(this.allTokensMap[tokenId].currencyCode, balance)

if (gt(balance, '0') && !this.enabledTokenIds.includes(tokenId)) {
if (gt(balance, '0')) {
detectedTokenIds.push(tokenId)
}
}
Expand Down

0 comments on commit c0b4acf

Please sign in to comment.