From 22ae20b33c87d5b4528f3f3f8eebd17e4d560d7c Mon Sep 17 00:00:00 2001 From: mortimr Date: Thu, 19 Oct 2023 17:40:10 +0200 Subject: [PATCH] hotfix: of the hotfix --- src/vExitQueue.mapping.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vExitQueue.mapping.ts b/src/vExitQueue.mapping.ts index 5f7f14d..da3cf74 100644 --- a/src/vExitQueue.mapping.ts +++ b/src/vExitQueue.mapping.ts @@ -190,7 +190,10 @@ export function handleReceivedCask(event: ReceivedCask): void { fulfillableBy.push(caskId); ticket.fulfillableBy = fulfillableBy; ticket.fulfillableAmount = ticket.fulfillableAmount.plus( - minBI(cask.position.plus(cask.size).minus(ticket.position.plus(ticket.fulfillableAmount)), ticket.size) + minBI( + cask.position.plus(cask.size).minus(ticket.position.plus(ticket.fulfillableAmount)), + ticket.size.minus(ticket.fulfillableAmount) + ) ); ticket.save(); }