@crypticdot/defituna-core 3.2.3 → 3.2.5
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/browser/defituna_core_js_bindings.d.ts +3 -2
- package/dist/browser/defituna_core_js_bindings_bg.js +1 -1
- package/dist/browser/defituna_core_js_bindings_bg.wasm +0 -0
- package/dist/nodejs/defituna_core_js_bindings.d.ts +3 -2
- package/dist/nodejs/defituna_core_js_bindings.js +1 -1
- package/dist/nodejs/defituna_core_js_bindings_bg.wasm +0 -0
- package/package.json +2 -2
|
@@ -654,7 +654,7 @@ export function getIncreaseSpotPositionQuote(increase_amount: bigint, collateral
|
|
|
654
654
|
* Spot position decrease quote
|
|
655
655
|
*
|
|
656
656
|
* # Parameters
|
|
657
|
-
* - `
|
|
657
|
+
* - `decrease_amount`: Position total decrease size in the collateral_token.
|
|
658
658
|
* - `collateral_token`: Collateral token.
|
|
659
659
|
* - `leverage`: Leverage (1.0 or higher).
|
|
660
660
|
* - `reduce_only`: Only allow reducing the existing position.
|
|
@@ -844,7 +844,8 @@ export interface DecreaseSpotPositionQuoteResult {
|
|
|
844
844
|
positionToken: number;
|
|
845
845
|
collateral: bigint;
|
|
846
846
|
borrow: bigint;
|
|
847
|
-
|
|
847
|
+
decreaseAcceptableSwapAmount: bigint;
|
|
848
|
+
increaseMinSwapOutputAmount: bigint;
|
|
848
849
|
estimatedAmount: bigint;
|
|
849
850
|
protocolFeeA: bigint;
|
|
850
851
|
protocolFeeB: bigint;
|
|
@@ -1655,7 +1655,7 @@ export function getIncreaseSpotPositionQuote(increase_amount, collateral_token,
|
|
|
1655
1655
|
* Spot position decrease quote
|
|
1656
1656
|
*
|
|
1657
1657
|
* # Parameters
|
|
1658
|
-
* - `
|
|
1658
|
+
* - `decrease_amount`: Position total decrease size in the collateral_token.
|
|
1659
1659
|
* - `collateral_token`: Collateral token.
|
|
1660
1660
|
* - `leverage`: Leverage (1.0 or higher).
|
|
1661
1661
|
* - `reduce_only`: Only allow reducing the existing position.
|
|
Binary file
|
|
@@ -654,7 +654,7 @@ export function getIncreaseSpotPositionQuote(increase_amount: bigint, collateral
|
|
|
654
654
|
* Spot position decrease quote
|
|
655
655
|
*
|
|
656
656
|
* # Parameters
|
|
657
|
-
* - `
|
|
657
|
+
* - `decrease_amount`: Position total decrease size in the collateral_token.
|
|
658
658
|
* - `collateral_token`: Collateral token.
|
|
659
659
|
* - `leverage`: Leverage (1.0 or higher).
|
|
660
660
|
* - `reduce_only`: Only allow reducing the existing position.
|
|
@@ -844,7 +844,8 @@ export interface DecreaseSpotPositionQuoteResult {
|
|
|
844
844
|
positionToken: number;
|
|
845
845
|
collateral: bigint;
|
|
846
846
|
borrow: bigint;
|
|
847
|
-
|
|
847
|
+
decreaseAcceptableSwapAmount: bigint;
|
|
848
|
+
increaseMinSwapOutputAmount: bigint;
|
|
848
849
|
estimatedAmount: bigint;
|
|
849
850
|
protocolFeeA: bigint;
|
|
850
851
|
protocolFeeB: bigint;
|
|
@@ -1645,7 +1645,7 @@ exports.getIncreaseSpotPositionQuote = function(increase_amount, collateral_toke
|
|
|
1645
1645
|
* Spot position decrease quote
|
|
1646
1646
|
*
|
|
1647
1647
|
* # Parameters
|
|
1648
|
-
* - `
|
|
1648
|
+
* - `decrease_amount`: Position total decrease size in the collateral_token.
|
|
1649
1649
|
* - `collateral_token`: Collateral token.
|
|
1650
1650
|
* - `leverage`: Leverage (1.0 or higher).
|
|
1651
1651
|
* - `reduce_only`: Only allow reducing the existing position.
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crypticdot/defituna-core",
|
|
3
3
|
"description": "DefiTuna core typescript package.",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.5",
|
|
5
5
|
"main": "./dist/nodejs/defituna_core_js_bindings.js",
|
|
6
6
|
"types": "./dist/nodejs/defituna_core_js_bindings.d.ts",
|
|
7
7
|
"browser": "./dist/browser/defituna_core_js_bindings.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@crypticdot/typescript-config": "^1.0.0",
|
|
24
24
|
"typescript": "^5.8.3",
|
|
25
25
|
"wasm-pack": "^0.13.1",
|
|
26
|
-
"@crypticdot/defituna-rust-core": "3.2.
|
|
26
|
+
"@crypticdot/defituna-rust-core": "3.2.5"
|
|
27
27
|
},
|
|
28
28
|
"license": "SEE LICENSE IN LICENSE",
|
|
29
29
|
"keywords": [
|