@crypticdot/defituna-client 3.1.8 → 3.1.9
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10439,7 +10439,7 @@ function getDecreaseSpotPositionQuote(args) {
|
|
|
10439
10439
|
estimatedAmount = BigInt(
|
|
10440
10440
|
Math.floor(posTokenIsA ? Number(increaseAmount) * price : Number(increaseAmount) / price)
|
|
10441
10441
|
);
|
|
10442
|
-
collateral =
|
|
10442
|
+
collateral = BigInt(Math.floor(Number(increaseAmount) / leverage));
|
|
10443
10443
|
borrow = increaseAmount - collateral;
|
|
10444
10444
|
if (positionDebt > 0) {
|
|
10445
10445
|
const swapQuote = (0, import_fusionamm_core4.swapQuoteByOutputToken)(positionDebt, !posTokenIsA, 0, fusionPool, tickArrays);
|
package/dist/index.mjs
CHANGED
|
@@ -10608,7 +10608,7 @@ function getDecreaseSpotPositionQuote(args) {
|
|
|
10608
10608
|
estimatedAmount = BigInt(
|
|
10609
10609
|
Math.floor(posTokenIsA ? Number(increaseAmount) * price : Number(increaseAmount) / price)
|
|
10610
10610
|
);
|
|
10611
|
-
collateral =
|
|
10611
|
+
collateral = BigInt(Math.floor(Number(increaseAmount) / leverage));
|
|
10612
10612
|
borrow = increaseAmount - collateral;
|
|
10613
10613
|
if (positionDebt > 0) {
|
|
10614
10614
|
const swapQuote = swapQuoteByOutputToken(positionDebt, !posTokenIsA, 0, fusionPool, tickArrays);
|
package/package.json
CHANGED