Skip to content

Commit

Permalink
Update test/protocol/FundsHandlerTest.js
Browse files Browse the repository at this point in the history
Co-authored-by: Klemen <64400885+zajck@users.noreply.github.com>
  • Loading branch information
albertfolch-redeemeum and zajck authored May 23, 2024
1 parent 427cc03 commit 1038faf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/protocol/FundsHandlerTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -6495,10 +6495,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;

Expand Down

0 comments on commit 1038faf

Please sign in to comment.