@shapeshiftoss/swapper 17.3.5 → 17.4.1

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.
@@ -33,7 +33,10 @@ const isValidMemoAddress = (chainId, thorId, address) => {
33
33
  }
34
34
  case thorId.startsWith('GAIA.'):
35
35
  return address.startsWith('cosmos');
36
- case thorId.startsWith('RUNE.'):
36
+ // Note that this case doesn't contain a dot
37
+ // See https://github.com/shapeshift/lib/blob/6b5c9c8e855ffb68d865cfae8f545e7a819a9667/packages/swapper/src/swappers/thorchain/utils/makeSwapMemo/makeSwapMemo.ts#L10
38
+ // RUNE isn't a pool, it is the native asset of the THORChain network
39
+ case thorId.startsWith('RUNE'):
37
40
  return address.startsWith('thor');
38
41
  default:
39
42
  return false;
@@ -49,7 +49,7 @@ async function zrxBuildTrade({ adapter, web3 }, input) {
49
49
  details: { chainId: sellAsset.chainId },
50
50
  });
51
51
  }
52
- const slippagePercentage = slippage ? (0, bignumber_1.bnOrZero)(slippage).div(100).toString() : constants_1.DEFAULT_SLIPPAGE;
52
+ const slippagePercentage = slippage ? (0, bignumber_1.bnOrZero)(slippage).toString() : constants_1.DEFAULT_SLIPPAGE;
53
53
  const baseUrl = (0, helpers_2.baseUrlFromChainId)(buyAsset.chainId);
54
54
  const zrxService = (0, zrxService_1.zrxServiceFactory)(baseUrl);
55
55
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/swapper",
3
- "version": "17.3.5",
3
+ "version": "17.4.1",
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",