@shapeshiftoss/swapper 14.7.0 → 14.7.2

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.
@@ -36,7 +36,7 @@ class ThorchainSwapper {
36
36
  [types_1.KnownChainIds.BitcoinCashMainnet]: true,
37
37
  [types_1.KnownChainIds.CosmosMainnet]: true,
38
38
  [types_1.KnownChainIds.ThorchainMainnet]: true,
39
- [types_1.KnownChainIds.AvalancheMainnet]: true,
39
+ [types_1.KnownChainIds.AvalancheMainnet]: false,
40
40
  };
41
41
  this.buySupportedChainIds = {
42
42
  [types_1.KnownChainIds.EthereumMainnet]: true,
@@ -46,7 +46,7 @@ class ThorchainSwapper {
46
46
  [types_1.KnownChainIds.BitcoinCashMainnet]: true,
47
47
  [types_1.KnownChainIds.CosmosMainnet]: true,
48
48
  [types_1.KnownChainIds.ThorchainMainnet]: true,
49
- [types_1.KnownChainIds.AvalancheMainnet]: true,
49
+ [types_1.KnownChainIds.AvalancheMainnet]: false,
50
50
  };
51
51
  this.supportedSellAssetIds = [caip_1.thorchainAssetId];
52
52
  this.supportedBuyAssetIds = [caip_1.thorchainAssetId];
@@ -11,7 +11,7 @@ const getThorTxInfo = async ({ deps, sellAsset, buyAsset, sellAmountCryptoPrecis
11
11
  try {
12
12
  const { assetReference, assetNamespace } = (0, caip_1.fromAssetId)(sellAsset.assetId);
13
13
  const isErc20Trade = assetNamespace === 'erc20';
14
- const inboundAddress = await (0, getInboundAddressDataForChain_1.getInboundAddressDataForChain)(deps.daemonUrl, caip_1.ethAssetId);
14
+ const inboundAddress = await (0, getInboundAddressDataForChain_1.getInboundAddressDataForChain)(deps.daemonUrl, sellAsset.assetId);
15
15
  const router = inboundAddress === null || inboundAddress === void 0 ? void 0 : inboundAddress.router;
16
16
  const vault = inboundAddress === null || inboundAddress === void 0 ? void 0 : inboundAddress.address;
17
17
  if (!inboundAddress || !router || !vault)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/swapper",
3
- "version": "14.7.0",
3
+ "version": "14.7.2",
4
4
  "description": "An interface and implementations to trade coins via various protocols",
5
5
  "repository": "https://github.com/shapeshift/lib",
6
6
  "license": "MIT",