@crypticdot/defituna-client 2.0.16 → 2.0.17

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
@@ -7251,9 +7251,9 @@ function getLiquidityIncreaseQuote(args) {
7251
7251
  throw new Error("sqrtPrice must be less than upperSqrtPrice if collateral B is computed.");
7252
7252
  }
7253
7253
  }
7254
- const protocolFeeA = calculateProtocolFee(collateralA, borrowA, protocolFeeRate, protocolFeeRateOnCollateral);
7254
+ const protocolFeeA = calculateProtocolFee(collateralA, borrowA, protocolFeeRateOnCollateral, protocolFeeRate);
7255
7255
  const providedA = collateralA + borrowA - protocolFeeA;
7256
- const protocolFeeB = calculateProtocolFee(collateralB, borrowB, protocolFeeRate, protocolFeeRateOnCollateral);
7256
+ const protocolFeeB = calculateProtocolFee(collateralB, borrowB, protocolFeeRateOnCollateral, protocolFeeRate);
7257
7257
  const providedB = collateralB + borrowB - protocolFeeB;
7258
7258
  let swapInput = 0n;
7259
7259
  let swapOutput = 0n;
package/dist/index.mjs CHANGED
@@ -7353,9 +7353,9 @@ function getLiquidityIncreaseQuote(args) {
7353
7353
  throw new Error("sqrtPrice must be less than upperSqrtPrice if collateral B is computed.");
7354
7354
  }
7355
7355
  }
7356
- const protocolFeeA = calculateProtocolFee(collateralA, borrowA, protocolFeeRate, protocolFeeRateOnCollateral);
7356
+ const protocolFeeA = calculateProtocolFee(collateralA, borrowA, protocolFeeRateOnCollateral, protocolFeeRate);
7357
7357
  const providedA = collateralA + borrowA - protocolFeeA;
7358
- const protocolFeeB = calculateProtocolFee(collateralB, borrowB, protocolFeeRate, protocolFeeRateOnCollateral);
7358
+ const protocolFeeB = calculateProtocolFee(collateralB, borrowB, protocolFeeRateOnCollateral, protocolFeeRate);
7359
7359
  const providedB = collateralB + borrowB - protocolFeeB;
7360
7360
  let swapInput = 0n;
7361
7361
  let swapOutput = 0n;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@crypticdot/defituna-client",
3
3
  "description": "Typescript client to interact with DefiTuna's on-chain program.",
4
- "version": "2.0.16",
4
+ "version": "2.0.17",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "main": "./dist/index.js",