@xchainjs/xchain-thorchain-query 0.6.6 → 0.6.8
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 +6 -6
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +6 -6
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
package/lib/index.esm.js
CHANGED
|
@@ -1741,8 +1741,8 @@ class ThorchainQuery {
|
|
|
1741
1741
|
errors.push(checkPositon.errors[i]);
|
|
1742
1742
|
}
|
|
1743
1743
|
return {
|
|
1744
|
-
dustAmount: new CryptoAmount(baseAmount(0), withdrawParams.asset),
|
|
1745
|
-
dustThreshold: new CryptoAmount(baseAmount(0), withdrawParams.asset),
|
|
1744
|
+
dustAmount: new CryptoAmount(baseAmount(0), getChainAsset(withdrawParams.asset.chain)),
|
|
1745
|
+
dustThreshold: new CryptoAmount(baseAmount(0), getChainAsset(withdrawParams.asset.chain)),
|
|
1746
1746
|
expectedAssetAmount: new CryptoAmount(assetToBase(assetAmount(checkPositon.redeemableValue.assetAmount.amount())), withdrawParams.asset),
|
|
1747
1747
|
fee: {
|
|
1748
1748
|
affiliate: new CryptoAmount(assetToBase(assetAmount(0)), withdrawParams.asset),
|
|
@@ -1770,8 +1770,8 @@ class ThorchainQuery {
|
|
|
1770
1770
|
errors.push(`Thornode request quote failed: ${response.error}`);
|
|
1771
1771
|
if (errors.length > 0) {
|
|
1772
1772
|
return {
|
|
1773
|
-
dustAmount: new CryptoAmount(baseAmount(0), withdrawParams.asset),
|
|
1774
|
-
dustThreshold: new CryptoAmount(baseAmount(0), withdrawParams.asset),
|
|
1773
|
+
dustAmount: new CryptoAmount(baseAmount(0), getChainAsset(withdrawParams.asset.chain)),
|
|
1774
|
+
dustThreshold: new CryptoAmount(baseAmount(0), getChainAsset(withdrawParams.asset.chain)),
|
|
1775
1775
|
expectedAssetAmount: new CryptoAmount(assetToBase(assetAmount(0)), withdrawParams.asset),
|
|
1776
1776
|
fee: {
|
|
1777
1777
|
affiliate: new CryptoAmount(baseAmount(0), withdrawParams.asset),
|
|
@@ -1793,8 +1793,8 @@ class ThorchainQuery {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
const withdrawAsset = assetFromStringEx(withdrawQuote.fees.asset);
|
|
1795
1795
|
const estimateWithdrawSaver = {
|
|
1796
|
-
dustAmount: new CryptoAmount(baseAmount(withdrawQuote.dust_amount), withdrawParams.asset),
|
|
1797
|
-
dustThreshold: new CryptoAmount(baseAmount(withdrawQuote.dust_threshold), withdrawParams.asset),
|
|
1796
|
+
dustAmount: new CryptoAmount(baseAmount(withdrawQuote.dust_amount), getChainAsset(withdrawParams.asset.chain)),
|
|
1797
|
+
dustThreshold: new CryptoAmount(baseAmount(withdrawQuote.dust_threshold), getChainAsset(withdrawParams.asset.chain)),
|
|
1798
1798
|
expectedAssetAmount: new CryptoAmount(baseAmount(withdrawQuote.expected_amount_out), withdrawParams.asset),
|
|
1799
1799
|
fee: {
|
|
1800
1800
|
affiliate: new CryptoAmount(baseAmount(withdrawQuote.fees.affiliate), withdrawAsset),
|