@xchainjs/xchain-thorchain-query 0.6.12 → 0.6.13
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.esm.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/lib/index.esm.js
CHANGED
|
@@ -1866,7 +1866,7 @@ class ThorchainQuery {
|
|
|
1866
1866
|
const pool = (yield this.thorchainCache.getPoolForAsset(addAmount.asset)).thornodeDetails;
|
|
1867
1867
|
if (pool.status.toLowerCase() !== 'available')
|
|
1868
1868
|
errors.push(`Pool is not available for this asset ${assetToString(addAmount.asset)}`);
|
|
1869
|
-
const inboundFee =
|
|
1869
|
+
const inboundFee = new CryptoAmount(baseAmount(inboundDetails[addAmount.asset.chain].gasRate), addAmount.asset); // only needs to check against inbound fee, not network fee.
|
|
1870
1870
|
const inboundFeeInAddAmountAsset = yield this.convert(inboundFee, addAmount.asset); // to make sure maths is being done on same assets
|
|
1871
1871
|
if (addAmount.lte(inboundFeeInAddAmountAsset))
|
|
1872
1872
|
errors.push(`Add amount does not cover fees`);
|