Skip to content

Commit

Permalink
fix: optional chaining to filter only Terraswap
Browse files Browse the repository at this point in the history
  • Loading branch information
jbamlee committed Oct 30, 2023
1 parent 7966da7 commit 9413385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collector/indexer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function runIndexers(

if (spwfLogFounds.length > 0) {
// initial provide
if (spwfLogFounds.find((logFound) => logFound.transformed.action === 'provide_liquidity')) {
if (spwfLogFounds.find((logFound) => logFound.transformed?.action === 'provide_liquidity')) {
const ipLogFounds = createInitialProvideFinder(pairList)(event).filter(ip=> ip.transformed)
await InitialProvideIndexer(manager, ipLogFounds)
}
Expand Down

0 comments on commit 9413385

Please sign in to comment.