@ring-protocol/router-sdk 0.1.22 → 0.1.24
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/router-sdk.cjs.development.js +2 -2
- package/dist/router-sdk.cjs.development.js.map +1 -1
- package/dist/router-sdk.cjs.production.min.js +1 -1
- package/dist/router-sdk.cjs.production.min.js.map +1 -1
- package/dist/router-sdk.esm.js +2 -2
- package/dist/router-sdk.esm.js.map +1 -1
- package/package.json +4 -4
|
@@ -1320,7 +1320,7 @@ var Trade = /*#__PURE__*/function () {
|
|
|
1320
1320
|
if (amountOut === void 0) {
|
|
1321
1321
|
amountOut = this.outputAmount;
|
|
1322
1322
|
}
|
|
1323
|
-
!!slippageTolerance.lessThan(
|
|
1323
|
+
!!slippageTolerance.lessThan(0) ? invariant(false, 'SLIPPAGE_TOLERANCE') : void 0;
|
|
1324
1324
|
if (this.tradeType === sdkCore.TradeType.EXACT_OUTPUT) {
|
|
1325
1325
|
return amountOut;
|
|
1326
1326
|
} else {
|
|
@@ -1337,7 +1337,7 @@ var Trade = /*#__PURE__*/function () {
|
|
|
1337
1337
|
if (amountIn === void 0) {
|
|
1338
1338
|
amountIn = this.inputAmount;
|
|
1339
1339
|
}
|
|
1340
|
-
!!slippageTolerance.lessThan(
|
|
1340
|
+
!!slippageTolerance.lessThan(0) ? invariant(false, 'SLIPPAGE_TOLERANCE') : void 0;
|
|
1341
1341
|
if (this.tradeType === sdkCore.TradeType.EXACT_INPUT) {
|
|
1342
1342
|
return amountIn;
|
|
1343
1343
|
} else {
|