@xchainjs/xchain-thorchain-query 1.0.12 → 1.0.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 CHANGED
@@ -1,4 +1,4 @@
1
- import { assetFromString, baseAmount, assetFromStringEx, assetToString, CryptoAmount, isSynthAsset, AssetCryptoAmount, eqAsset, CachedValue, isTradeAsset, isSecuredAsset, assetToBase, assetAmount, TRADE_ASSET_DELIMITER, SYNTH_ASSET_DELIMITER, TOKEN_ASSET_DELIMITER } from '@xchainjs/xchain-util';
1
+ import { assetFromString, baseAmount, assetFromStringEx, assetToString, CryptoAmount, isSynthAsset, AssetCryptoAmount, eqAsset, CachedValue, isTradeAsset, isSecuredAsset, assetToBase, assetAmount, TRADE_ASSET_DELIMITER, SYNTH_ASSET_DELIMITER, SECURED_ASSET_DELIMITER, TOKEN_ASSET_DELIMITER } from '@xchainjs/xchain-util';
2
2
  import { BigNumber } from 'bignumber.js';
3
3
  import { MidgardQuery } from '@xchainjs/xchain-midgard-query';
4
4
  import { Network } from '@xchainjs/xchain-client';
@@ -2567,6 +2567,7 @@ class ThorchainQuery {
2567
2567
  ['c', 'BCH.BCH'],
2568
2568
  ['a', 'AVAX.AVAX'],
2569
2569
  ['s', 'BSC.BNB'],
2570
+ ['f', 'BASE.ETH'],
2570
2571
  ]);
2571
2572
  const nativeAsset = nativeAlias.get(alias.toLowerCase());
2572
2573
  if (nativeAsset)
@@ -2578,6 +2579,9 @@ class ThorchainQuery {
2578
2579
  else if (alias.includes(SYNTH_ASSET_DELIMITER)) {
2579
2580
  delimiter = SYNTH_ASSET_DELIMITER;
2580
2581
  }
2582
+ else if (alias.includes(SECURED_ASSET_DELIMITER)) {
2583
+ delimiter = SECURED_ASSET_DELIMITER;
2584
+ }
2581
2585
  const splitedAlias = alias.split(delimiter);
2582
2586
  const poolId = Object.keys(pools).find((pool) => pool === `${splitedAlias[0]}.${splitedAlias[1].split('-')[0]}`);
2583
2587
  if (poolId)