Skip to content

Commit

Permalink
fix: getMultipleFillIdx for full fill
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrvk committed Aug 24, 2024
1 parent 95e04be commit d7a3455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cross-chain-order/cross-chain-order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export class CrossChainOrder {
const partsCount = this.escrowExtension.hashLockInfo.getPartsCount()

if (remainingAmount === fillAmount) {
return Number(partsCount) + 1
return Number(partsCount)
}

return Number((partsCount * (fillAmount - 1n)) / this.makingAmount)
Expand Down

0 comments on commit d7a3455

Please sign in to comment.