@xchainjs/xchain-thorchain-amm 0.3.17 → 0.3.18
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/lib/utils/index.d.ts +2 -0
- package/package.json +8 -8
package/lib/index.esm.js
CHANGED
|
@@ -83,7 +83,7 @@ class EthHelper {
|
|
|
83
83
|
//erc-20 must be depsited to the router
|
|
84
84
|
const isApprovedResult = yield this.isTCRouterApprovedToSpend(params.asset, params.amount, params.walletIndex);
|
|
85
85
|
if (!isApprovedResult) {
|
|
86
|
-
throw new Error('
|
|
86
|
+
throw new Error('TC router has not been approved to spend this amount');
|
|
87
87
|
}
|
|
88
88
|
const contractAddress = getContractAddressFromAsset(params.asset);
|
|
89
89
|
const checkSummedContractAddress = ethers.utils.getAddress(contractAddress);
|
package/lib/index.js
CHANGED
|
@@ -87,7 +87,7 @@ class EthHelper {
|
|
|
87
87
|
//erc-20 must be depsited to the router
|
|
88
88
|
const isApprovedResult = yield this.isTCRouterApprovedToSpend(params.asset, params.amount, params.walletIndex);
|
|
89
89
|
if (!isApprovedResult) {
|
|
90
|
-
throw new Error('
|
|
90
|
+
throw new Error('TC router has not been approved to spend this amount');
|
|
91
91
|
}
|
|
92
92
|
const contractAddress = xchainUtil.getContractAddressFromAsset(params.asset);
|
|
93
93
|
const checkSummedContractAddress = ethers.ethers.utils.getAddress(contractAddress);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-thorchain-amm",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"description": "module that exposes estimating & swappping cryptocurrency assets on thorchain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"THORChain",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"@xchainjs/xchain-ethereum": "^0.27.7",
|
|
52
52
|
"@xchainjs/xchain-evm": "^0.1.3",
|
|
53
53
|
"@xchainjs/xchain-litecoin": "^0.10.10",
|
|
54
|
-
"@xchainjs/xchain-midgard": "0.4.
|
|
55
|
-
"@xchainjs/xchain-thorchain": "^0.27.
|
|
54
|
+
"@xchainjs/xchain-midgard": "0.4.3",
|
|
55
|
+
"@xchainjs/xchain-thorchain": "^0.27.9",
|
|
56
56
|
"@xchainjs/xchain-thorchain-query": "^0.1.17",
|
|
57
|
-
"@xchainjs/xchain-thornode": "^0.2.
|
|
57
|
+
"@xchainjs/xchain-thornode": "^0.2.1",
|
|
58
58
|
"@xchainjs/xchain-util": "^0.12.0",
|
|
59
59
|
"axios": "^0.25.0",
|
|
60
60
|
"axios-retry": "^3.2.5",
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
"@xchainjs/xchain-ethereum": "^0.27.7",
|
|
86
86
|
"@xchainjs/xchain-evm": "^0.1.3",
|
|
87
87
|
"@xchainjs/xchain-litecoin": "^0.10.10",
|
|
88
|
-
"@xchainjs/xchain-midgard": "0.4.
|
|
89
|
-
"@xchainjs/xchain-thorchain": "^0.27.
|
|
90
|
-
"@xchainjs/xchain-thorchain-query": "^0.1.
|
|
91
|
-
"@xchainjs/xchain-thornode": "^0.2.
|
|
88
|
+
"@xchainjs/xchain-midgard": "0.4.3",
|
|
89
|
+
"@xchainjs/xchain-thorchain": "^0.27.9",
|
|
90
|
+
"@xchainjs/xchain-thorchain-query": "^0.1.18",
|
|
91
|
+
"@xchainjs/xchain-thornode": "^0.2.1",
|
|
92
92
|
"@xchainjs/xchain-util": "^0.12.0",
|
|
93
93
|
"axios": "^0.25.0",
|
|
94
94
|
"axios-retry": "^3.2.5",
|