@orderly.network/hooks 1.1.1 → 1.1.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.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -20,9 +20,9 @@ import { createClient } from '@layerzerolabs/scan-client';
|
|
|
20
20
|
// src/version.ts
|
|
21
21
|
if (typeof window !== "undefined") {
|
|
22
22
|
window.__ORDERLY_VERSION__ = window.__ORDERLY_VERSION__ || {};
|
|
23
|
-
window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.1.
|
|
23
|
+
window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "1.1.2";
|
|
24
24
|
}
|
|
25
|
-
var version_default = "1.1.
|
|
25
|
+
var version_default = "1.1.2";
|
|
26
26
|
var fetcher = (url, init = {}, queryOptions) => get(url, init, queryOptions?.formatter);
|
|
27
27
|
var OrderlyContext = createContext({
|
|
28
28
|
// configStore: new MemoryConfigStore(),
|
|
@@ -2011,7 +2011,7 @@ var LimitOrderCreator = class extends BaseOrderCreator {
|
|
|
2011
2011
|
min: minPriceNumber,
|
|
2012
2012
|
max: scropePriceNumbere
|
|
2013
2013
|
};
|
|
2014
|
-
if (price.gt(priceRange
|
|
2014
|
+
if (price.gt(priceRange?.max)) {
|
|
2015
2015
|
errors.order_price = {
|
|
2016
2016
|
type: "max",
|
|
2017
2017
|
message: `Price must be less than ${new Decimal(
|
|
@@ -2019,7 +2019,7 @@ var LimitOrderCreator = class extends BaseOrderCreator {
|
|
|
2019
2019
|
).todp(symbol.quote_dp)}`
|
|
2020
2020
|
};
|
|
2021
2021
|
}
|
|
2022
|
-
if (price.lt(priceRange
|
|
2022
|
+
if (price.lt(priceRange?.min)) {
|
|
2023
2023
|
errors.order_price = {
|
|
2024
2024
|
type: "min",
|
|
2025
2025
|
message: `Price must be greater than ${new Decimal(
|
|
@@ -2105,7 +2105,7 @@ var StopLimitOrderCreator = class extends LimitOrderCreator {
|
|
|
2105
2105
|
min: minPriceNumber,
|
|
2106
2106
|
max: scropePriceNumbere
|
|
2107
2107
|
};
|
|
2108
|
-
if (price.gt(priceRange
|
|
2108
|
+
if (price.gt(priceRange?.max)) {
|
|
2109
2109
|
errors.order_price = {
|
|
2110
2110
|
type: "max",
|
|
2111
2111
|
message: `Price must be less than ${new Decimal(
|
|
@@ -2113,7 +2113,7 @@ var StopLimitOrderCreator = class extends LimitOrderCreator {
|
|
|
2113
2113
|
).todp(symbol.quote_dp)}`
|
|
2114
2114
|
};
|
|
2115
2115
|
}
|
|
2116
|
-
if (price.lt(priceRange
|
|
2116
|
+
if (price.lt(priceRange?.min)) {
|
|
2117
2117
|
errors.order_price = {
|
|
2118
2118
|
type: "min",
|
|
2119
2119
|
message: `Price must be greater than ${new Decimal(
|