Skip to content

Commit

Permalink
added ammSeqNum in insert swap event
Browse files Browse the repository at this point in the history
  • Loading branch information
advaith101 committed Oct 3, 2024
1 parent f9f1ffa commit 8f9cb4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/indexer/src/indexEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ async function handleSwapEvent(event: SwapEvent, signature: string, transactionR
userAddr: event.common.user.toString(),
inputAmount: event.inputAmount.toString(),
outputAmount: event.outputAmount.toString(),
ammSeqNum: BigInt(event.common.seqNum.toString())
}).onConflictDoNothing();

const amm = await db.select().from(schema.v0_4_amms).where(eq(schema.v0_4_amms.ammAddr, event.common.amm.toString())).limit(1);
Expand Down

0 comments on commit 8f9cb4e

Please sign in to comment.