@xchainjs/xchain-thorchain-query 2.0.13 → 2.0.15
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 +1 -1
- package/lib/index.js +1 -1
- package/package.json +2 -2
package/lib/index.esm.js
CHANGED
|
@@ -1279,7 +1279,7 @@ class ThorchainQuery {
|
|
|
1279
1279
|
const toAssetString = assetToString(destinationAsset);
|
|
1280
1280
|
const inputAmount = getBaseAmountWithDiffDecimals(amount, 8);
|
|
1281
1281
|
// Fetch quote
|
|
1282
|
-
const swapQuote = yield this.thorchainCache.thornode.getSwapQuote(fromAssetString, toAssetString, inputAmount.toNumber(), destinationAddress, streamingInterval, streamingQuantity,
|
|
1282
|
+
const swapQuote = yield this.thorchainCache.thornode.getSwapQuote(fromAssetString, toAssetString, inputAmount.toNumber(), destinationAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliateAddress, height);
|
|
1283
1283
|
let response;
|
|
1284
1284
|
// Check if swapQuote is a string, which we assume indicates an error message
|
|
1285
1285
|
if (typeof swapQuote === 'string') {
|
package/lib/index.js
CHANGED
|
@@ -1287,7 +1287,7 @@ class ThorchainQuery {
|
|
|
1287
1287
|
const toAssetString = xchainUtil.assetToString(destinationAsset);
|
|
1288
1288
|
const inputAmount = getBaseAmountWithDiffDecimals(amount, 8);
|
|
1289
1289
|
// Fetch quote
|
|
1290
|
-
const swapQuote = yield this.thorchainCache.thornode.getSwapQuote(fromAssetString, toAssetString, inputAmount.toNumber(), destinationAddress, streamingInterval, streamingQuantity,
|
|
1290
|
+
const swapQuote = yield this.thorchainCache.thornode.getSwapQuote(fromAssetString, toAssetString, inputAmount.toNumber(), destinationAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliateAddress, height);
|
|
1291
1291
|
let response;
|
|
1292
1292
|
// Check if swapQuote is a string, which we assume indicates an error message
|
|
1293
1293
|
if (typeof swapQuote === 'string') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-thorchain-query",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.15",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Thorchain query module that is responsible for estimating swap calculations and add/remove liquidity for thorchain ",
|
|
6
6
|
"keywords": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@xchainjs/xchain-client": "2.0.9",
|
|
37
|
-
"@xchainjs/xchain-midgard-query": "2.0.
|
|
37
|
+
"@xchainjs/xchain-midgard-query": "2.0.10",
|
|
38
38
|
"@xchainjs/xchain-thornode": "1.0.5",
|
|
39
39
|
"@xchainjs/xchain-util": "2.0.5",
|
|
40
40
|
"axios": "1.12.1",
|