From 3976377825059d815ebb89ac6e8358ac626e2084 Mon Sep 17 00:00:00 2001 From: Gauthier Date: Tue, 12 Mar 2024 10:09:19 +0100 Subject: [PATCH] fix: relation between ticket and integration --- src/ERC20.mapping.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ERC20.mapping.ts b/src/ERC20.mapping.ts index e6bf7da..99fb550 100644 --- a/src/ERC20.mapping.ts +++ b/src/ERC20.mapping.ts @@ -546,7 +546,7 @@ export function handleExit(event: Exit): void { totalETH = totalETH.plus(ethValue); depositDataEntry.exitedEth = depositDataEntry.exitedEth.plus(ethValue); const exitQueue = vExitQueue.load(pool!.exitQueue); - const nextTicketIdx = exitQueue!.ticketCount; + const nextTicketIdx = exitQueue!.ticketCount.minus(BigInt.fromI32(1)); const linkedTicketId = externalEntityUUID(Address.fromBytes(exitQueue!.address), [nextTicketIdx.toString()]); tickets.push(linkedTicketId); }