@clober/v2-sdk 1.0.0-rc.36 → 1.0.0-rc.37

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.
@@ -7,7 +7,7 @@ const book_viewer_abi_1 = require("../../../constants/abis/core/book-viewer-abi"
7
7
  const subgraph_1 = require("../../../constants/chain-configs/subgraph");
8
8
  const book_id_1 = require("../utils/book-id");
9
9
  const model_1 = require("../model");
10
- const MAX_DEPTH = 500n;
10
+ const MAX_DEPTH = 100n;
11
11
  const fetchBook = async (publicClient, chainId, quoteCurrency, baseCurrency, useSubgraph) => {
12
12
  const unitSize = (0, unit_size_1.calculateUnitSize)(chainId, quoteCurrency);
13
13
  const bookId = (0, book_id_1.toBookId)(chainId, quoteCurrency.address, baseCurrency.address, unitSize);
@@ -4,7 +4,7 @@ import { BOOK_VIEWER_ABI } from '../../../constants/abis/core/book-viewer-abi';
4
4
  import { Subgraph } from '../../../constants/chain-configs/subgraph';
5
5
  import { toBookId } from '../utils/book-id';
6
6
  import { BookModel } from '../model';
7
- const MAX_DEPTH = 500n;
7
+ const MAX_DEPTH = 100n;
8
8
  export const fetchBook = async (publicClient, chainId, quoteCurrency, baseCurrency, useSubgraph) => {
9
9
  const unitSize = calculateUnitSize(chainId, quoteCurrency);
10
10
  const bookId = toBookId(chainId, quoteCurrency.address, baseCurrency.address, unitSize);