@xchainjs/xchain-thorchain-query 0.1.17 → 0.1.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 +0 -2
- package/lib/index.js +0 -2
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -517,8 +517,6 @@ const calcNetworkFee = (asset, inbound) => {
|
|
|
517
517
|
return new CryptoAmount(baseAmount(2000000), AssetRuneNative);
|
|
518
518
|
// if you are swapping a non-gas asset on a multiAsset chain (ex. ERC-20 on ETH), the
|
|
519
519
|
// gas fees will be paid in a diff asset than the one you are swapping
|
|
520
|
-
else if (!isNativeChainAsset(asset))
|
|
521
|
-
return new CryptoAmount(baseAmount(0), AssetRuneNative);
|
|
522
520
|
switch (asset.chain) {
|
|
523
521
|
case BTCChain:
|
|
524
522
|
return new CryptoAmount(baseAmount(inbound.gasRate.multipliedBy(inbound.outboundTxSize)), AssetBTC);
|
package/lib/index.js
CHANGED
|
@@ -526,8 +526,6 @@ const calcNetworkFee = (asset, inbound) => {
|
|
|
526
526
|
return new CryptoAmount(xchainUtil.baseAmount(2000000), xchainThorchain.AssetRuneNative);
|
|
527
527
|
// if you are swapping a non-gas asset on a multiAsset chain (ex. ERC-20 on ETH), the
|
|
528
528
|
// gas fees will be paid in a diff asset than the one you are swapping
|
|
529
|
-
else if (!isNativeChainAsset(asset))
|
|
530
|
-
return new CryptoAmount(xchainUtil.baseAmount(0), xchainThorchain.AssetRuneNative);
|
|
531
529
|
switch (asset.chain) {
|
|
532
530
|
case xchainBitcoin.BTCChain:
|
|
533
531
|
return new CryptoAmount(xchainUtil.baseAmount(inbound.gasRate.multipliedBy(inbound.outboundTxSize)), xchainBitcoin.AssetBTC);
|
package/package.json
CHANGED