@xchainjs/xchain-thorchain-amm 3.0.3 → 3.0.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/lib/index.esm.js +2 -1
- package/lib/index.js +2 -1
- package/lib/thorchain-amm.d.ts +1 -1
- package/package.json +8 -8
package/lib/index.esm.js
CHANGED
|
@@ -250,7 +250,7 @@ class ThorchainAMM {
|
|
|
250
250
|
|
|
251
251
|
* @returns The estimated swap details.
|
|
252
252
|
*/
|
|
253
|
-
estimateSwap({ fromAddress, fromAsset, amount, destinationAsset, destinationAddress, affiliateAddress = '', affiliateBps = 0, toleranceBps, streamingInterval, streamingQuantity, }) {
|
|
253
|
+
estimateSwap({ fromAddress, fromAsset, amount, destinationAsset, destinationAddress, affiliateAddress = '', affiliateBps = 0, toleranceBps, liquidityToleranceBps, streamingInterval, streamingQuantity, }) {
|
|
254
254
|
return __awaiter(this, void 0, void 0, function* () {
|
|
255
255
|
const errors = yield this.validateSwap({
|
|
256
256
|
fromAddress,
|
|
@@ -267,6 +267,7 @@ class ThorchainAMM {
|
|
|
267
267
|
affiliateAddress,
|
|
268
268
|
affiliateBps,
|
|
269
269
|
toleranceBps,
|
|
270
|
+
liquidityToleranceBps,
|
|
270
271
|
streamingInterval,
|
|
271
272
|
streamingQuantity,
|
|
272
273
|
});
|
package/lib/index.js
CHANGED
|
@@ -252,7 +252,7 @@ class ThorchainAMM {
|
|
|
252
252
|
|
|
253
253
|
* @returns The estimated swap details.
|
|
254
254
|
*/
|
|
255
|
-
estimateSwap({ fromAddress, fromAsset, amount, destinationAsset, destinationAddress, affiliateAddress = '', affiliateBps = 0, toleranceBps, streamingInterval, streamingQuantity, }) {
|
|
255
|
+
estimateSwap({ fromAddress, fromAsset, amount, destinationAsset, destinationAddress, affiliateAddress = '', affiliateBps = 0, toleranceBps, liquidityToleranceBps, streamingInterval, streamingQuantity, }) {
|
|
256
256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
257
257
|
const errors = yield this.validateSwap({
|
|
258
258
|
fromAddress,
|
|
@@ -269,6 +269,7 @@ class ThorchainAMM {
|
|
|
269
269
|
affiliateAddress,
|
|
270
270
|
affiliateBps,
|
|
271
271
|
toleranceBps,
|
|
272
|
+
liquidityToleranceBps,
|
|
272
273
|
streamingInterval,
|
|
273
274
|
streamingQuantity,
|
|
274
275
|
});
|
package/lib/thorchain-amm.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare class ThorchainAMM {
|
|
|
26
26
|
|
|
27
27
|
* @returns The estimated swap details.
|
|
28
28
|
*/
|
|
29
|
-
estimateSwap({ fromAddress, fromAsset, amount, destinationAsset, destinationAddress, affiliateAddress, affiliateBps, toleranceBps, streamingInterval, streamingQuantity, }: QuoteSwapParams): Promise<TxDetails>;
|
|
29
|
+
estimateSwap({ fromAddress, fromAsset, amount, destinationAsset, destinationAddress, affiliateAddress, affiliateBps, toleranceBps, liquidityToleranceBps, streamingInterval, streamingQuantity, }: QuoteSwapParams): Promise<TxDetails>;
|
|
30
30
|
/**
|
|
31
31
|
* Validate swap params
|
|
32
32
|
* @param {QuoteSwapParams} quoteSwapParams Swap params
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-thorchain-amm",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "module that exposes estimating & swappping cryptocurrency assets on thorchain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"THORChain",
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
"url": "https://github.com/xchainjs/xchainjs-lib/issues"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xchainjs/xchain-avax": "2.0.
|
|
40
|
-
"@xchainjs/xchain-base": "1.0.
|
|
39
|
+
"@xchainjs/xchain-avax": "2.0.1",
|
|
40
|
+
"@xchainjs/xchain-base": "1.0.1",
|
|
41
41
|
"@xchainjs/xchain-bitcoin": "2.0.0",
|
|
42
42
|
"@xchainjs/xchain-bitcoincash": "2.0.0",
|
|
43
|
-
"@xchainjs/xchain-bsc": "2.0.
|
|
43
|
+
"@xchainjs/xchain-bsc": "2.0.1",
|
|
44
44
|
"@xchainjs/xchain-client": "2.0.0",
|
|
45
45
|
"@xchainjs/xchain-cosmos": "3.0.0",
|
|
46
46
|
"@xchainjs/xchain-doge": "2.0.0",
|
|
47
|
-
"@xchainjs/xchain-ethereum": "2.0.
|
|
48
|
-
"@xchainjs/xchain-evm": "2.0.
|
|
47
|
+
"@xchainjs/xchain-ethereum": "2.0.1",
|
|
48
|
+
"@xchainjs/xchain-evm": "2.0.1",
|
|
49
49
|
"@xchainjs/xchain-litecoin": "2.0.0",
|
|
50
50
|
"@xchainjs/xchain-thorchain": "3.0.3",
|
|
51
|
-
"@xchainjs/xchain-thorchain-query": "2.0.
|
|
51
|
+
"@xchainjs/xchain-thorchain-query": "2.0.1",
|
|
52
52
|
"@xchainjs/xchain-util": "2.0.0",
|
|
53
|
-
"@xchainjs/xchain-wallet": "2.0.
|
|
53
|
+
"@xchainjs/xchain-wallet": "2.0.4",
|
|
54
54
|
"ethers": "5.7.2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|