Skip to content

Commit

Permalink
Merge branch 'master' into pxrl/bumpSDK
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl authored Oct 4, 2024
2 parents 8b8f503 + 47c156f commit 69a301c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/utils/FillUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ export function getUnfilledDeposits(

return deposits
.map((deposit) => {
const version = hubPoolClient.configStoreClient.getConfigStoreVersionForTimestamp(deposit.quoteTimestamp);
const { unfilledAmount, invalidFills } = destinationClient.getValidUnfilledAmountForDeposit(deposit);
return { deposit, version, unfilledAmount, invalidFills };
return { deposit, unfilledAmount, invalidFills };
})
.filter(({ unfilledAmount }) => unfilledAmount.gt(bnZero));
.filter(({ unfilledAmount }) => unfilledAmount.gt(bnZero))
.map(({ deposit, ...rest }) => {
const version = hubPoolClient.configStoreClient.getConfigStoreVersionForTimestamp(deposit.quoteTimestamp);
return { deposit, ...rest, version };
});
}

export function getAllUnfilledDeposits(
Expand Down

0 comments on commit 69a301c

Please sign in to comment.