@orbs-network/twap 1.7.9 → 1.7.10

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.
Files changed (2) hide show
  1. package/dist/src/lib.js +1 -2
  2. package/package.json +1 -1
package/dist/src/lib.js CHANGED
@@ -123,8 +123,7 @@ class TWAPLib {
123
123
  }
124
124
  validateOrderInputs(srcToken, dstToken, srcAmount, srcChunkAmount, dstMinChunkAmountOut, deadline, fillDelaySeconds, srcUsd) {
125
125
  const tokensValidation = this.validateTokens(srcToken, dstToken);
126
- if ((tokensValidation === TokensValidation.dstTokenZero && dstToken.address !== web3_candies_1.zeroAddress) ||
127
- (tokensValidation !== TokensValidation.valid && tokensValidation !== TokensValidation.dstTokenZero))
126
+ if (tokensValidation === TokensValidation.invalid)
128
127
  return OrderInputValidation.invalidTokens;
129
128
  if ((0, bignumber_js_1.default)(srcAmount).lte(0))
130
129
  return OrderInputValidation.invalidSrcAmount;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbs-network/twap",
3
- "version": "1.7.9",
3
+ "version": "1.7.10",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/orbs-network/twap.git"