@cowprotocol/sdk-order-book 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -787,7 +787,7 @@ function getQuoteAmountsAndCosts(params) {
787
787
  };
788
788
  const beforeAllFees = isSell ? {
789
789
  sellAmount: sellAmountBeforeNetworkCosts.big,
790
- buyAmount: buyAmountBeforeNetworkCosts.big + protocolFeeAmount
790
+ buyAmount: buyAmountBeforeNetworkCosts.big
791
791
  } : {
792
792
  sellAmount: sellAmountBeforeNetworkCosts.big - protocolFeeAmount,
793
793
  buyAmount: buyAmountBeforeNetworkCosts.big
package/dist/index.mjs CHANGED
@@ -741,7 +741,7 @@ function getQuoteAmountsAndCosts(params) {
741
741
  };
742
742
  const beforeAllFees = isSell ? {
743
743
  sellAmount: sellAmountBeforeNetworkCosts.big,
744
- buyAmount: buyAmountBeforeNetworkCosts.big + protocolFeeAmount
744
+ buyAmount: buyAmountBeforeNetworkCosts.big
745
745
  } : {
746
746
  sellAmount: sellAmountBeforeNetworkCosts.big - protocolFeeAmount,
747
747
  buyAmount: buyAmountBeforeNetworkCosts.big
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cowprotocol/sdk-order-book",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "CowProtocol Order Book package",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",