Skip to content

Commit

Permalink
Merge pull request #25 from terraswap/fix/sperated-wasm
Browse files Browse the repository at this point in the history
Remove `provide_liquidity` condition from initial_provide search
  • Loading branch information
jbamlee authored Jan 18, 2024
2 parents a53acad + f4a1f6e commit da28529
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/collector/indexer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,11 @@ export async function runIndexers(
// txHistory
const spwfLF = createSPWFinder(pairList, height)
const spwfLogFounds = spwfLF(event)


const ipLogFounds = createInitialProvideFinder(pairList)(event).filter(ip => ip.transformed)
await InitialProvideIndexer(manager, ipLogFounds)

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

Expand Down

0 comments on commit da28529

Please sign in to comment.