@pancakeswap/pools 5.1.41 → 5.1.42

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { ChainId } from '@pancakeswap/chains';
1
+ import { ChainId, AVERAGE_CHAIN_BLOCK_TIMES } from '@pancakeswap/chains';
2
2
  import BigNumber7 from 'bignumber.js';
3
3
  import chunk from 'lodash/chunk';
4
4
  import fromPairs2 from 'lodash/fromPairs';
@@ -6,7 +6,7 @@ import { getContract, erc20Abi } from 'viem';
6
6
  import uniq from 'lodash/uniq';
7
7
  import { CAKE } from '@pancakeswap/tokens';
8
8
 
9
- // src/constants/supportedChains.ts
9
+ // src/constants/index.ts
10
10
  var SUPPORTED_CHAIN_IDS = [
11
11
  ChainId.BSC,
12
12
  ChainId.BSC_TESTNET,
@@ -172,7 +172,7 @@ var CAKE_FLEXIBLE_SIDE_VAULT = {
172
172
  };
173
173
 
174
174
  // src/constants/index.ts
175
- var BSC_BLOCK_TIME = 3;
175
+ var BSC_BLOCK_TIME = AVERAGE_CHAIN_BLOCK_TIMES[ChainId.BSC];
176
176
  var BLOCKS_PER_DAY = 60 / BSC_BLOCK_TIME * 60 * 24;
177
177
  var BLOCKS_PER_YEAR = BLOCKS_PER_DAY * 365;
178
178
  var SECONDS_IN_YEAR = 31536e3;