@pancakeswap/pools 4.0.9 → 4.0.10
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/constants/contracts.d.ts +9 -0
- package/dist/constants/contracts.d.ts.map +1 -1
- package/dist/constants/pools/1101.d.ts +5 -0
- package/dist/constants/pools/1101.d.ts.map +1 -0
- package/dist/constants/pools/1442.d.ts +5 -0
- package/dist/constants/pools/1442.d.ts.map +1 -0
- package/dist/constants/pools/56.d.ts.map +1 -1
- package/dist/constants/pools/59140.d.ts +5 -0
- package/dist/constants/pools/59140.d.ts.map +1 -0
- package/dist/constants/pools/59144.d.ts +5 -0
- package/dist/constants/pools/59144.d.ts.map +1 -0
- package/dist/constants/pools/8453.d.ts +5 -0
- package/dist/constants/pools/8453.d.ts.map +1 -0
- package/dist/constants/pools/84531.d.ts +5 -0
- package/dist/constants/pools/84531.d.ts.map +1 -0
- package/dist/constants/pools/index.d.ts +2 -2
- package/dist/constants/pools/index.d.ts.map +1 -1
- package/dist/constants/supportedChains.d.ts +1 -1
- package/dist/constants/supportedChains.d.ts.map +1 -1
- package/dist/index.js +208 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +209 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -3
- package/.turbo/turbo-build.log +0 -18
- package/CHANGELOG.md +0 -140
- package/src/abis/ICake.ts +0 -59
- package/src/abis/ICakeFlexibleSideVaultV2.ts +0 -487
- package/src/abis/ICakeVaultV2.ts +0 -487
- package/src/abis/ISmartChef.ts +0 -326
- package/src/abis/ISousChef.ts +0 -122
- package/src/abis/ISousChefBNB.ts +0 -166
- package/src/abis/ISousChefV2.ts +0 -341
- package/src/abis/ISousChefV3.ts +0 -326
- package/src/constants/contracts.ts +0 -38
- package/src/constants/index.ts +0 -10
- package/src/constants/pools/1.ts +0 -80
- package/src/constants/pools/280.ts +0 -53
- package/src/constants/pools/324.ts +0 -26
- package/src/constants/pools/42161.ts +0 -26
- package/src/constants/pools/421613.ts +0 -69
- package/src/constants/pools/56.ts +0 -2951
- package/src/constants/pools/97.ts +0 -74
- package/src/constants/pools/index.ts +0 -56
- package/src/constants/supportedChains.ts +0 -13
- package/src/index.ts +0 -14
- package/src/queries/fetchPools.ts +0 -350
- package/src/queries/fetchUserIfo.ts +0 -53
- package/src/queries/fetchUserPoolsData.ts +0 -143
- package/src/queries/fetchVaultPublic.ts +0 -175
- package/src/queries/fetchVaultUser.ts +0 -106
- package/src/queries/getAddresses.ts +0 -12
- package/src/queries/index.ts +0 -6
- package/src/types.ts +0 -207
- package/src/utils/apr.ts +0 -35
- package/src/utils/getContractAddress.ts +0 -11
- package/src/utils/getPoolContractBySousId.ts +0 -111
- package/src/utils/index.ts +0 -5
- package/src/utils/isLegacyPool.ts +0 -15
- package/src/utils/isPoolsSupported.ts +0 -5
- package/tsconfig.json +0 -14
- package/tsup.config.ts +0 -26
- package/vitest.config.ts +0 -9
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChainId } from '@pancakeswap/sdk';
|
|
2
|
-
import { ethereumTokens, bscTokens, bscTestnetTokens, arbitrumTokens, arbitrumGoerliTokens, zksyncTokens, zkSyncTestnetTokens, CAKE } from '@pancakeswap/tokens';
|
|
2
|
+
import { ethereumTokens, bscTokens, bscTestnetTokens, arbitrumTokens, arbitrumGoerliTokens, zksyncTokens, zkSyncTestnetTokens, baseTestnetTokens, lineaTestnetTokens, polygonZkEvmTestnetTokens, CAKE } from '@pancakeswap/tokens';
|
|
3
3
|
import { getAddress, getContract } from 'viem';
|
|
4
4
|
import BigNumber7 from 'bignumber.js';
|
|
5
5
|
import fromPairs2 from 'lodash/fromPairs';
|
|
@@ -108,6 +108,24 @@ var livePools2 = [
|
|
|
108
108
|
tokenPerBlock: "10",
|
|
109
109
|
isFinished: false
|
|
110
110
|
},
|
|
111
|
+
{
|
|
112
|
+
sousId: 363,
|
|
113
|
+
stakingToken: bscTokens.cake,
|
|
114
|
+
earningToken: bscTokens.play,
|
|
115
|
+
contractAddress: "0x17D87e825A2231628bCBf1aF1aaEaD419dd3a53D",
|
|
116
|
+
poolCategory: "Core" /* CORE */,
|
|
117
|
+
tokenPerBlock: "0.5902",
|
|
118
|
+
version: 3
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
sousId: 362,
|
|
122
|
+
stakingToken: bscTokens.cake,
|
|
123
|
+
earningToken: bscTokens.xcad,
|
|
124
|
+
contractAddress: "0x1328F684569cE0Cb0F13ce023e1C910f23CaBcA8",
|
|
125
|
+
poolCategory: "Core" /* CORE */,
|
|
126
|
+
tokenPerBlock: "0.01658",
|
|
127
|
+
version: 3
|
|
128
|
+
},
|
|
111
129
|
{
|
|
112
130
|
sousId: 361,
|
|
113
131
|
stakingToken: bscTokens.cake,
|
|
@@ -3248,6 +3266,156 @@ var livePools7 = [
|
|
|
3248
3266
|
}));
|
|
3249
3267
|
var finishedPools7 = [];
|
|
3250
3268
|
var pools7 = [...livePools7, ...finishedPools7];
|
|
3269
|
+
|
|
3270
|
+
// src/constants/pools/8453.ts
|
|
3271
|
+
var livePools8 = [];
|
|
3272
|
+
var finishedPools8 = [];
|
|
3273
|
+
var pools8 = [...livePools8, ...finishedPools8];
|
|
3274
|
+
var livePools9 = [
|
|
3275
|
+
{
|
|
3276
|
+
sousId: 4,
|
|
3277
|
+
stakingToken: baseTestnetTokens.cake,
|
|
3278
|
+
earningToken: baseTestnetTokens.mockA,
|
|
3279
|
+
contractAddress: "0x55F8912596F06453466e208e79AB808328146d06",
|
|
3280
|
+
poolCategory: "Core" /* CORE */,
|
|
3281
|
+
tokenPerSecond: "0.01",
|
|
3282
|
+
version: 3
|
|
3283
|
+
},
|
|
3284
|
+
{
|
|
3285
|
+
sousId: 3,
|
|
3286
|
+
stakingToken: baseTestnetTokens.cake,
|
|
3287
|
+
earningToken: baseTestnetTokens.mockA,
|
|
3288
|
+
contractAddress: "0xE61a1065B740a61950E08C073833B85D3362f48B",
|
|
3289
|
+
poolCategory: "Core" /* CORE */,
|
|
3290
|
+
tokenPerSecond: "0.01",
|
|
3291
|
+
version: 3
|
|
3292
|
+
},
|
|
3293
|
+
{
|
|
3294
|
+
sousId: 2,
|
|
3295
|
+
stakingToken: baseTestnetTokens.cake,
|
|
3296
|
+
earningToken: baseTestnetTokens.mockA,
|
|
3297
|
+
contractAddress: "0xF9991a0e33115c1B7e0690109115747ab5C48D9E",
|
|
3298
|
+
poolCategory: "Core" /* CORE */,
|
|
3299
|
+
tokenPerSecond: "0.01",
|
|
3300
|
+
version: 3
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
sousId: 1,
|
|
3304
|
+
stakingToken: baseTestnetTokens.cake,
|
|
3305
|
+
earningToken: baseTestnetTokens.mockA,
|
|
3306
|
+
contractAddress: "0x35DB927618560B8878543ea0019A8E664581ADb5",
|
|
3307
|
+
poolCategory: "Core" /* CORE */,
|
|
3308
|
+
tokenPerSecond: "0.01",
|
|
3309
|
+
version: 3
|
|
3310
|
+
}
|
|
3311
|
+
].map((p) => ({
|
|
3312
|
+
...p,
|
|
3313
|
+
contractAddress: getAddress(p.contractAddress),
|
|
3314
|
+
stakingToken: p.stakingToken.serialize,
|
|
3315
|
+
earningToken: p.earningToken.serialize
|
|
3316
|
+
}));
|
|
3317
|
+
var finishedPools9 = [];
|
|
3318
|
+
var pools9 = [...livePools9, ...finishedPools9];
|
|
3319
|
+
|
|
3320
|
+
// src/constants/pools/59144.ts
|
|
3321
|
+
var livePools10 = [];
|
|
3322
|
+
var finishedPools10 = [];
|
|
3323
|
+
var pools10 = [...livePools10, ...finishedPools10];
|
|
3324
|
+
var livePools11 = [
|
|
3325
|
+
{
|
|
3326
|
+
sousId: 4,
|
|
3327
|
+
stakingToken: lineaTestnetTokens.cake,
|
|
3328
|
+
earningToken: lineaTestnetTokens.mockA,
|
|
3329
|
+
contractAddress: "0x5d4A2dCefA1B6D5031f57a05651F0b49f4E0eC74",
|
|
3330
|
+
poolCategory: "Core" /* CORE */,
|
|
3331
|
+
tokenPerSecond: "0.01",
|
|
3332
|
+
version: 3
|
|
3333
|
+
},
|
|
3334
|
+
{
|
|
3335
|
+
sousId: 3,
|
|
3336
|
+
stakingToken: lineaTestnetTokens.cake,
|
|
3337
|
+
earningToken: lineaTestnetTokens.mockA,
|
|
3338
|
+
contractAddress: "0xa014641f932E8b7985Ffd6F722DfE6995bbA15aF",
|
|
3339
|
+
poolCategory: "Core" /* CORE */,
|
|
3340
|
+
tokenPerSecond: "0.01",
|
|
3341
|
+
version: 3
|
|
3342
|
+
},
|
|
3343
|
+
{
|
|
3344
|
+
sousId: 2,
|
|
3345
|
+
stakingToken: lineaTestnetTokens.cake,
|
|
3346
|
+
earningToken: lineaTestnetTokens.mockA,
|
|
3347
|
+
contractAddress: "0x4dc9C14A5542f3D0544a6c11d717AD04A70afF8C",
|
|
3348
|
+
poolCategory: "Core" /* CORE */,
|
|
3349
|
+
tokenPerSecond: "0.01",
|
|
3350
|
+
version: 3
|
|
3351
|
+
},
|
|
3352
|
+
{
|
|
3353
|
+
sousId: 1,
|
|
3354
|
+
stakingToken: lineaTestnetTokens.cake,
|
|
3355
|
+
earningToken: lineaTestnetTokens.mockA,
|
|
3356
|
+
contractAddress: "0x30669C960b90Eb71DB4173D8b5069ca83CD2d400",
|
|
3357
|
+
poolCategory: "Core" /* CORE */,
|
|
3358
|
+
tokenPerSecond: "0.01",
|
|
3359
|
+
version: 3
|
|
3360
|
+
}
|
|
3361
|
+
].map((p) => ({
|
|
3362
|
+
...p,
|
|
3363
|
+
contractAddress: getAddress(p.contractAddress),
|
|
3364
|
+
stakingToken: p.stakingToken.serialize,
|
|
3365
|
+
earningToken: p.earningToken.serialize
|
|
3366
|
+
}));
|
|
3367
|
+
var finishedPools11 = [];
|
|
3368
|
+
var pools11 = [...livePools11, ...finishedPools11];
|
|
3369
|
+
|
|
3370
|
+
// src/constants/pools/1101.ts
|
|
3371
|
+
var livePools12 = [];
|
|
3372
|
+
var finishedPools12 = [];
|
|
3373
|
+
var pools12 = [...livePools12, ...finishedPools12];
|
|
3374
|
+
var livePools13 = [
|
|
3375
|
+
{
|
|
3376
|
+
sousId: 4,
|
|
3377
|
+
stakingToken: polygonZkEvmTestnetTokens.cake,
|
|
3378
|
+
earningToken: polygonZkEvmTestnetTokens.mockA,
|
|
3379
|
+
contractAddress: "0x6e9Cf632243070984A44743d9009CD48cb232F83",
|
|
3380
|
+
poolCategory: "Core" /* CORE */,
|
|
3381
|
+
tokenPerSecond: "0.01",
|
|
3382
|
+
version: 3
|
|
3383
|
+
},
|
|
3384
|
+
{
|
|
3385
|
+
sousId: 3,
|
|
3386
|
+
stakingToken: polygonZkEvmTestnetTokens.cake,
|
|
3387
|
+
earningToken: polygonZkEvmTestnetTokens.mockA,
|
|
3388
|
+
contractAddress: "0x6C9ffC1FE0f6aD00eeedbF99384E60517CA3E706",
|
|
3389
|
+
poolCategory: "Core" /* CORE */,
|
|
3390
|
+
tokenPerSecond: "0.01",
|
|
3391
|
+
version: 3
|
|
3392
|
+
},
|
|
3393
|
+
{
|
|
3394
|
+
sousId: 2,
|
|
3395
|
+
stakingToken: polygonZkEvmTestnetTokens.cake,
|
|
3396
|
+
earningToken: polygonZkEvmTestnetTokens.mockA,
|
|
3397
|
+
contractAddress: "0x452ED06e65aF886Ff778E9aF319fdC0ffaFA9d85",
|
|
3398
|
+
poolCategory: "Core" /* CORE */,
|
|
3399
|
+
tokenPerSecond: "0.01",
|
|
3400
|
+
version: 3
|
|
3401
|
+
},
|
|
3402
|
+
{
|
|
3403
|
+
sousId: 1,
|
|
3404
|
+
stakingToken: polygonZkEvmTestnetTokens.cake,
|
|
3405
|
+
earningToken: polygonZkEvmTestnetTokens.mockA,
|
|
3406
|
+
contractAddress: "0xd6bF7f0C9B1A19A7124625ECF7d6Db8b5610444A",
|
|
3407
|
+
poolCategory: "Core" /* CORE */,
|
|
3408
|
+
tokenPerSecond: "0.01",
|
|
3409
|
+
version: 3
|
|
3410
|
+
}
|
|
3411
|
+
].map((p) => ({
|
|
3412
|
+
...p,
|
|
3413
|
+
contractAddress: getAddress(p.contractAddress),
|
|
3414
|
+
stakingToken: p.stakingToken.serialize,
|
|
3415
|
+
earningToken: p.earningToken.serialize
|
|
3416
|
+
}));
|
|
3417
|
+
var finishedPools13 = [];
|
|
3418
|
+
var pools13 = [...livePools13, ...finishedPools13];
|
|
3251
3419
|
var SUPPORTED_CHAIN_IDS = [
|
|
3252
3420
|
ChainId.BSC,
|
|
3253
3421
|
ChainId.BSC_TESTNET,
|
|
@@ -3255,7 +3423,10 @@ var SUPPORTED_CHAIN_IDS = [
|
|
|
3255
3423
|
ChainId.ARBITRUM_ONE,
|
|
3256
3424
|
ChainId.ARBITRUM_GOERLI,
|
|
3257
3425
|
ChainId.ZKSYNC,
|
|
3258
|
-
ChainId.ZKSYNC_TESTNET
|
|
3426
|
+
ChainId.ZKSYNC_TESTNET,
|
|
3427
|
+
ChainId.LINEA_TESTNET,
|
|
3428
|
+
ChainId.BASE_TESTNET,
|
|
3429
|
+
ChainId.POLYGON_ZKEVM_TESTNET
|
|
3259
3430
|
];
|
|
3260
3431
|
|
|
3261
3432
|
// src/utils/isPoolsSupported.ts
|
|
@@ -3271,7 +3442,13 @@ var POOLS_CONFIG_BY_CHAIN = {
|
|
|
3271
3442
|
[ChainId.ARBITRUM_ONE]: pools4,
|
|
3272
3443
|
[ChainId.ARBITRUM_GOERLI]: pools5,
|
|
3273
3444
|
[ChainId.ZKSYNC]: pools6,
|
|
3274
|
-
[ChainId.ZKSYNC_TESTNET]: pools7
|
|
3445
|
+
[ChainId.ZKSYNC_TESTNET]: pools7,
|
|
3446
|
+
[ChainId.BASE]: pools8,
|
|
3447
|
+
[ChainId.BASE_TESTNET]: pools9,
|
|
3448
|
+
[ChainId.LINEA]: pools10,
|
|
3449
|
+
[ChainId.LINEA_TESTNET]: pools11,
|
|
3450
|
+
[ChainId.POLYGON_ZKEVM]: pools12,
|
|
3451
|
+
[ChainId.POLYGON_ZKEVM_TESTNET]: pools13
|
|
3275
3452
|
};
|
|
3276
3453
|
var LIVE_POOLS_CONFIG_BY_CHAIN = {
|
|
3277
3454
|
[ChainId.ETHEREUM]: livePools,
|
|
@@ -3280,7 +3457,13 @@ var LIVE_POOLS_CONFIG_BY_CHAIN = {
|
|
|
3280
3457
|
[ChainId.ARBITRUM_ONE]: livePools4,
|
|
3281
3458
|
[ChainId.ARBITRUM_GOERLI]: livePools5,
|
|
3282
3459
|
[ChainId.ZKSYNC]: livePools6,
|
|
3283
|
-
[ChainId.ZKSYNC_TESTNET]: livePools7
|
|
3460
|
+
[ChainId.ZKSYNC_TESTNET]: livePools7,
|
|
3461
|
+
[ChainId.BASE]: livePools8,
|
|
3462
|
+
[ChainId.BASE_TESTNET]: livePools9,
|
|
3463
|
+
[ChainId.LINEA]: livePools10,
|
|
3464
|
+
[ChainId.LINEA_TESTNET]: livePools11,
|
|
3465
|
+
[ChainId.POLYGON_ZKEVM]: livePools12,
|
|
3466
|
+
[ChainId.POLYGON_ZKEVM_TESTNET]: livePools13
|
|
3284
3467
|
};
|
|
3285
3468
|
var getPoolsConfig = (chainId) => {
|
|
3286
3469
|
if (!isPoolsSupported(chainId)) {
|
|
@@ -3306,7 +3489,10 @@ var ICAKE = {
|
|
|
3306
3489
|
[ChainId.ARBITRUM_ONE]: "0x",
|
|
3307
3490
|
[ChainId.ARBITRUM_GOERLI]: "0x",
|
|
3308
3491
|
[ChainId.ZKSYNC]: "0x",
|
|
3309
|
-
[ChainId.ZKSYNC_TESTNET]: "0x"
|
|
3492
|
+
[ChainId.ZKSYNC_TESTNET]: "0x",
|
|
3493
|
+
[ChainId.BASE_TESTNET]: "0x",
|
|
3494
|
+
[ChainId.LINEA_TESTNET]: "0x",
|
|
3495
|
+
[ChainId.POLYGON_ZKEVM_TESTNET]: "0x"
|
|
3310
3496
|
};
|
|
3311
3497
|
var CAKE_VAULT = {
|
|
3312
3498
|
[ChainId.BSC]: "0x45c54210128a065de780C4B0Df3d16664f7f859e",
|
|
@@ -3315,7 +3501,10 @@ var CAKE_VAULT = {
|
|
|
3315
3501
|
[ChainId.ARBITRUM_ONE]: "0x",
|
|
3316
3502
|
[ChainId.ARBITRUM_GOERLI]: "0x",
|
|
3317
3503
|
[ChainId.ZKSYNC]: "0x",
|
|
3318
|
-
[ChainId.ZKSYNC_TESTNET]: "0x"
|
|
3504
|
+
[ChainId.ZKSYNC_TESTNET]: "0x",
|
|
3505
|
+
[ChainId.BASE_TESTNET]: "0x",
|
|
3506
|
+
[ChainId.LINEA_TESTNET]: "0x",
|
|
3507
|
+
[ChainId.POLYGON_ZKEVM_TESTNET]: "0x"
|
|
3319
3508
|
};
|
|
3320
3509
|
var CAKE_FLEXIBLE_SIDE_VAULT = {
|
|
3321
3510
|
[ChainId.BSC]: "0x615e896A8C2CA8470A2e9dc2E9552998f8658Ea0",
|
|
@@ -3324,7 +3513,10 @@ var CAKE_FLEXIBLE_SIDE_VAULT = {
|
|
|
3324
3513
|
[ChainId.ARBITRUM_ONE]: "0x",
|
|
3325
3514
|
[ChainId.ARBITRUM_GOERLI]: "0x",
|
|
3326
3515
|
[ChainId.ZKSYNC]: "0x",
|
|
3327
|
-
[ChainId.ZKSYNC_TESTNET]: "0x"
|
|
3516
|
+
[ChainId.ZKSYNC_TESTNET]: "0x",
|
|
3517
|
+
[ChainId.BASE_TESTNET]: "0x",
|
|
3518
|
+
[ChainId.LINEA_TESTNET]: "0x",
|
|
3519
|
+
[ChainId.POLYGON_ZKEVM_TESTNET]: "0x"
|
|
3328
3520
|
};
|
|
3329
3521
|
|
|
3330
3522
|
// src/constants/index.ts
|
|
@@ -4723,8 +4915,8 @@ function getPoolContractBySousId({ chainId, sousId, signer, publicClient }) {
|
|
|
4723
4915
|
if (!chainId) {
|
|
4724
4916
|
return null;
|
|
4725
4917
|
}
|
|
4726
|
-
const
|
|
4727
|
-
const pool =
|
|
4918
|
+
const pools14 = getPoolsConfig(chainId);
|
|
4919
|
+
const pool = pools14?.find((p) => p.sousId === Number(sousId));
|
|
4728
4920
|
if (!pool) {
|
|
4729
4921
|
return null;
|
|
4730
4922
|
}
|
|
@@ -4746,11 +4938,11 @@ var getLivePoolsWithEnd = async (chainId) => {
|
|
|
4746
4938
|
}
|
|
4747
4939
|
return poolsConfig.filter((p) => p.sousId !== 0 && !p.isFinished);
|
|
4748
4940
|
};
|
|
4749
|
-
async function fetchUpgradedPoolsTimeLimits(
|
|
4750
|
-
if (!
|
|
4941
|
+
async function fetchUpgradedPoolsTimeLimits(pools14, chainId, provider) {
|
|
4942
|
+
if (!pools14.length) {
|
|
4751
4943
|
return [];
|
|
4752
4944
|
}
|
|
4753
|
-
const calls =
|
|
4945
|
+
const calls = pools14.flatMap(({ contractAddress }) => {
|
|
4754
4946
|
return [
|
|
4755
4947
|
{
|
|
4756
4948
|
abi: smartChefABI,
|
|
@@ -4777,7 +4969,7 @@ async function fetchUpgradedPoolsTimeLimits(pools8, chainId, provider) {
|
|
|
4777
4969
|
resultArray[chunkIndex].push(item);
|
|
4778
4970
|
return resultArray;
|
|
4779
4971
|
}, []);
|
|
4780
|
-
return
|
|
4972
|
+
return pools14.map((cakePoolConfig, index) => {
|
|
4781
4973
|
const [startTimestamp, endTimestamp] = startEndResult[index];
|
|
4782
4974
|
return {
|
|
4783
4975
|
sousId: cakePoolConfig.sousId,
|
|
@@ -4786,11 +4978,11 @@ async function fetchUpgradedPoolsTimeLimits(pools8, chainId, provider) {
|
|
|
4786
4978
|
};
|
|
4787
4979
|
});
|
|
4788
4980
|
}
|
|
4789
|
-
var fetchLegacyPoolsBlockLimits = async (
|
|
4790
|
-
if (!
|
|
4981
|
+
var fetchLegacyPoolsBlockLimits = async (pools14, chainId, provider) => {
|
|
4982
|
+
if (!pools14.length) {
|
|
4791
4983
|
return [];
|
|
4792
4984
|
}
|
|
4793
|
-
const startEndBlockCalls =
|
|
4985
|
+
const startEndBlockCalls = pools14.flatMap(({ contractAddress }) => {
|
|
4794
4986
|
return [
|
|
4795
4987
|
{
|
|
4796
4988
|
abi: sousChefABI,
|
|
@@ -4823,7 +5015,7 @@ var fetchLegacyPoolsBlockLimits = async (pools8, chainId, provider) => {
|
|
|
4823
5015
|
const getTimestampFromBlock = (targetBlock) => {
|
|
4824
5016
|
return Number(block.timestamp) + (targetBlock - Number(block.number)) * BSC_BLOCK_TIME;
|
|
4825
5017
|
};
|
|
4826
|
-
return
|
|
5018
|
+
return pools14.map((cakePoolConfig, index) => {
|
|
4827
5019
|
const [startBlock, endBlock] = startEndBlockResult[index];
|
|
4828
5020
|
return {
|
|
4829
5021
|
sousId: cakePoolConfig.sousId,
|