@orderly.network/hooks 0.0.73 → 0.0.74
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.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -668,7 +668,6 @@ var mergeOrderbook = (data, update) => {
|
|
|
668
668
|
const asks = mergeItems(data.asks, update.asks).sort(asksSortFn);
|
|
669
669
|
const bids = mergeItems(data.bids, update.bids).sort(bidsSortFn);
|
|
670
670
|
if (asks.length > 0) {
|
|
671
|
-
console.log("find first", asks[0], bids[0]);
|
|
672
671
|
const firstPrice = asks[0][0];
|
|
673
672
|
const index = bids.findIndex((item) => item[0] < firstPrice);
|
|
674
673
|
if (index > 0) {
|