Skip to content

Commit

Permalink
- Added skip for the empty pool info
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-s committed Nov 28, 2024
1 parent d53ee7e commit cc06fb6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/token-watcher/token-watcher.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ export class TokenWatcherService {
this.locked = true;
}

try {
const mints = await this.tickerService.getUniqueTickers();
const mints = await this.tickerService.getUniqueTickers();

for (const mint of mints) {
for (const mint of mints) {
try {
const recentTickers = await this.tickerService.getTickersByMint(
mint,
2,
Expand Down Expand Up @@ -77,10 +77,12 @@ export class TokenWatcherService {

this.logger.log(`Created a position for ${first.raydiumPool}`);
}
} catch (e) {
Sentry.captureException(e);
this.logger.error(
`Something went wrong with the mint: ${mint}. Skipping it. Error: ${e.message}`,
);
}
} catch (e) {
Sentry.captureException(e);
this.logger.error(`Something went wrong. Error: ${e.message}`);
}

this.locked = false;
Expand Down

0 comments on commit cc06fb6

Please sign in to comment.