@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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
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,
|
|
7254
|
+
const protocolFeeA = calculateProtocolFee(collateralA, borrowA, protocolFeeRateOnCollateral, protocolFeeRate);
|
|
7255
7255
|
const providedA = collateralA + borrowA - protocolFeeA;
|
|
7256
|
-
const protocolFeeB = calculateProtocolFee(collateralB, borrowB,
|
|
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,
|
|
7356
|
+
const protocolFeeA = calculateProtocolFee(collateralA, borrowA, protocolFeeRateOnCollateral, protocolFeeRate);
|
|
7357
7357
|
const providedA = collateralA + borrowA - protocolFeeA;
|
|
7358
|
-
const protocolFeeB = calculateProtocolFee(collateralB, borrowB,
|
|
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