@orbs-network/twap 1.7.6 → 1.7.7
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/dist/src/lib.js +3 -4
- package/package.json +1 -1
package/dist/src/lib.js
CHANGED
|
@@ -136,10 +136,9 @@ class TWAPLib {
|
|
|
136
136
|
return OrderInputValidation.invalidFillDelaySeconds;
|
|
137
137
|
if ((0, bignumber_js_1.default)(srcUsd).lte(0))
|
|
138
138
|
return OrderInputValidation.invalidSrcUsd;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
if (smallestChunkSize.times(srcUsd).lt((0, bignumber_js_1.default)(this.config.minChunkSizeUsd).times((0, bignumber_js_1.default)(10).pow(srcToken.decimals))))
|
|
139
|
+
if ((0, bignumber_js_1.default)(srcChunkAmount)
|
|
140
|
+
.times(srcUsd)
|
|
141
|
+
.lt((0, bignumber_js_1.default)(this.config.minChunkSizeUsd).times((0, bignumber_js_1.default)(10).pow(srcToken.decimals))))
|
|
143
142
|
return OrderInputValidation.invalidSmallestSrcChunkUsd;
|
|
144
143
|
return OrderInputValidation.valid;
|
|
145
144
|
}
|