@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.js
CHANGED
|
@@ -677,7 +677,6 @@ var mergeOrderbook = (data, update) => {
|
|
|
677
677
|
const asks = mergeItems(data.asks, update.asks).sort(asksSortFn);
|
|
678
678
|
const bids = mergeItems(data.bids, update.bids).sort(bidsSortFn);
|
|
679
679
|
if (asks.length > 0) {
|
|
680
|
-
console.log("find first", asks[0], bids[0]);
|
|
681
680
|
const firstPrice = asks[0][0];
|
|
682
681
|
const index = bids.findIndex((item) => item[0] < firstPrice);
|
|
683
682
|
if (index > 0) {
|