diff --git a/test/protocol/FundsHandlerTest.js b/test/protocol/FundsHandlerTest.js index 50672143c..4b12717e5 100644 --- a/test/protocol/FundsHandlerTest.js +++ b/test/protocol/FundsHandlerTest.js @@ -6744,10 +6744,10 @@ describe("IBosonFundsHandler", function () { (BigInt(offerPriceDiscovery.sellerDeposit) * (10000n - BigInt(buyerPercentBasisPoints))) / 10000n; const sellerPricePart = - BigInt(offerPriceDiscovery.price) - - (BigInt(offerPriceDiscovery.price) * sellerPercentBasisPoints) / 10000n; - const sellerProtocolFeePart = (BigInt(offerTokenProtocolFee) * sellerPercentBasisPoints) / 10000n; - sellerPayoff2 = BigInt(offerPriceDiscovery.price) - sellerPricePart - sellerProtocolFeePart; + BigInt(order.price) - + (BigInt(order.price) * sellerPercentBasisPoints) / 10000n; + const sellerProtocolFeePart = (BigInt(priceDiscoveryProtocolFee) * sellerPercentBasisPoints) / 10000n; + sellerPayoff2 = BigInt(order.price) - sellerPricePart - sellerProtocolFeePart; protocolPayoff = sellerProtocolFeePart;