@pancakeswap/pools 5.0.3 → 5.1.0
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/boostedPools/index.d.ts.map +1 -1
- package/dist/constants/boostedPools/opBNB.d.ts +3 -0
- package/dist/constants/boostedPools/opBNB.d.ts.map +1 -0
- package/dist/constants/contracts.d.ts +4 -1
- package/dist/constants/contracts.d.ts.map +1 -1
- package/dist/constants/pools/204.d.ts +5 -0
- package/dist/constants/pools/204.d.ts.map +1 -0
- package/dist/constants/pools/42161.d.ts.map +1 -1
- 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 +374 -339
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +375 -340
- package/dist/index.mjs.map +1 -1
- package/dist/utils/boosted/apr/fetchAlpBoostedPoolApr.d.ts +2 -1
- package/dist/utils/boosted/apr/fetchAlpBoostedPoolApr.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChainId } from '@pancakeswap/chains';
|
|
2
|
-
import { ethereumTokens,
|
|
2
|
+
import { ethereumTokens, polygonZkEvmTestnetTokens, opBnbTokens, zkSyncTestnetTokens, zksyncTokens, arbitrumTokens, arbitrumGoerliTokens, bscTokens, lineaTestnetTokens, baseTestnetTokens, bscTestnetTokens, 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,7 +108,237 @@ var finishedPools = [
|
|
|
108
108
|
earningToken: p.earningToken.serialize
|
|
109
109
|
}));
|
|
110
110
|
var pools = [...livePools, ...finishedPools];
|
|
111
|
-
|
|
111
|
+
|
|
112
|
+
// src/constants/pools/1101.ts
|
|
113
|
+
var livePools2 = [];
|
|
114
|
+
var finishedPools2 = [];
|
|
115
|
+
var pools2 = [...livePools2, ...finishedPools2];
|
|
116
|
+
var livePools3 = [
|
|
117
|
+
{
|
|
118
|
+
sousId: 4,
|
|
119
|
+
stakingToken: polygonZkEvmTestnetTokens.cake,
|
|
120
|
+
earningToken: polygonZkEvmTestnetTokens.mockA,
|
|
121
|
+
contractAddress: "0x6e9Cf632243070984A44743d9009CD48cb232F83",
|
|
122
|
+
poolCategory: "Core" /* CORE */,
|
|
123
|
+
tokenPerSecond: "0.01",
|
|
124
|
+
version: 3
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
sousId: 3,
|
|
128
|
+
stakingToken: polygonZkEvmTestnetTokens.cake,
|
|
129
|
+
earningToken: polygonZkEvmTestnetTokens.mockA,
|
|
130
|
+
contractAddress: "0x6C9ffC1FE0f6aD00eeedbF99384E60517CA3E706",
|
|
131
|
+
poolCategory: "Core" /* CORE */,
|
|
132
|
+
tokenPerSecond: "0.01",
|
|
133
|
+
version: 3
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
sousId: 2,
|
|
137
|
+
stakingToken: polygonZkEvmTestnetTokens.cake,
|
|
138
|
+
earningToken: polygonZkEvmTestnetTokens.mockA,
|
|
139
|
+
contractAddress: "0x452ED06e65aF886Ff778E9aF319fdC0ffaFA9d85",
|
|
140
|
+
poolCategory: "Core" /* CORE */,
|
|
141
|
+
tokenPerSecond: "0.01",
|
|
142
|
+
version: 3
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
sousId: 1,
|
|
146
|
+
stakingToken: polygonZkEvmTestnetTokens.cake,
|
|
147
|
+
earningToken: polygonZkEvmTestnetTokens.mockA,
|
|
148
|
+
contractAddress: "0xd6bF7f0C9B1A19A7124625ECF7d6Db8b5610444A",
|
|
149
|
+
poolCategory: "Core" /* CORE */,
|
|
150
|
+
tokenPerSecond: "0.01",
|
|
151
|
+
version: 3
|
|
152
|
+
}
|
|
153
|
+
].map((p) => ({
|
|
154
|
+
...p,
|
|
155
|
+
contractAddress: getAddress(p.contractAddress),
|
|
156
|
+
stakingToken: p.stakingToken.serialize,
|
|
157
|
+
earningToken: p.earningToken.serialize
|
|
158
|
+
}));
|
|
159
|
+
var finishedPools3 = [];
|
|
160
|
+
var pools3 = [...livePools3, ...finishedPools3];
|
|
161
|
+
var livePools4 = [
|
|
162
|
+
{
|
|
163
|
+
sousId: 1,
|
|
164
|
+
stakingToken: opBnbTokens.alp,
|
|
165
|
+
earningToken: opBnbTokens.cake,
|
|
166
|
+
contractAddress: "0xa1B46Cb13b43fb8Ae5dC7222e3294fcd10024168",
|
|
167
|
+
poolCategory: "Core" /* CORE */,
|
|
168
|
+
tokenPerSecond: "0.005787",
|
|
169
|
+
version: 3
|
|
170
|
+
}
|
|
171
|
+
].map((p) => ({
|
|
172
|
+
...p,
|
|
173
|
+
contractAddress: getAddress(p.contractAddress),
|
|
174
|
+
stakingToken: p.stakingToken.serialize,
|
|
175
|
+
earningToken: p.earningToken.serialize
|
|
176
|
+
}));
|
|
177
|
+
var finishedPools4 = [];
|
|
178
|
+
var pools4 = [...livePools4, ...finishedPools4];
|
|
179
|
+
var livePools5 = [
|
|
180
|
+
{
|
|
181
|
+
sousId: 4,
|
|
182
|
+
stakingToken: zkSyncTestnetTokens.cake,
|
|
183
|
+
earningToken: zkSyncTestnetTokens.mock,
|
|
184
|
+
contractAddress: "0x4BDFF8A608be623077E54F6916761f631e87D884",
|
|
185
|
+
poolCategory: "Core" /* CORE */,
|
|
186
|
+
tokenPerSecond: "0.01",
|
|
187
|
+
version: 3
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
sousId: 3,
|
|
191
|
+
stakingToken: zkSyncTestnetTokens.cake,
|
|
192
|
+
earningToken: zkSyncTestnetTokens.mock,
|
|
193
|
+
contractAddress: "0x926E99bad2BC7dA5c0880f0bebD7f448Be86562B",
|
|
194
|
+
poolCategory: "Core" /* CORE */,
|
|
195
|
+
tokenPerSecond: "0.01",
|
|
196
|
+
version: 3
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
sousId: 2,
|
|
200
|
+
stakingToken: zkSyncTestnetTokens.cake,
|
|
201
|
+
earningToken: zkSyncTestnetTokens.mock,
|
|
202
|
+
contractAddress: "0x5F7Cc0C5E3FC6e26bC98d392fa3516D4F33Df8aD",
|
|
203
|
+
poolCategory: "Core" /* CORE */,
|
|
204
|
+
tokenPerSecond: "0.01",
|
|
205
|
+
version: 3
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
sousId: 1,
|
|
209
|
+
stakingToken: zkSyncTestnetTokens.cake,
|
|
210
|
+
earningToken: zkSyncTestnetTokens.mock,
|
|
211
|
+
contractAddress: "0x455d2eBbfb172CDba2D499cAf36cBbF5366F976D",
|
|
212
|
+
poolCategory: "Core" /* CORE */,
|
|
213
|
+
tokenPerSecond: "0.01",
|
|
214
|
+
version: 3
|
|
215
|
+
}
|
|
216
|
+
].map((p) => ({
|
|
217
|
+
...p,
|
|
218
|
+
contractAddress: getAddress(p.contractAddress),
|
|
219
|
+
stakingToken: p.stakingToken.serialize,
|
|
220
|
+
earningToken: p.earningToken.serialize
|
|
221
|
+
}));
|
|
222
|
+
var finishedPools5 = [];
|
|
223
|
+
var pools5 = [...livePools5, ...finishedPools5];
|
|
224
|
+
var livePools6 = [];
|
|
225
|
+
var finishedPools6 = [
|
|
226
|
+
{
|
|
227
|
+
sousId: 1,
|
|
228
|
+
stakingToken: zksyncTokens.cake,
|
|
229
|
+
earningToken: zksyncTokens.tes,
|
|
230
|
+
contractAddress: "0xedB2E9eB4fc47d57c08B387775e09E5fC9e21EBE",
|
|
231
|
+
poolCategory: "Core" /* CORE */,
|
|
232
|
+
tokenPerSecond: "0.02546",
|
|
233
|
+
version: 3
|
|
234
|
+
}
|
|
235
|
+
].map((p) => ({
|
|
236
|
+
...p,
|
|
237
|
+
isFinished: true,
|
|
238
|
+
contractAddress: getAddress(p.contractAddress),
|
|
239
|
+
stakingToken: p.stakingToken.serialize,
|
|
240
|
+
earningToken: p.earningToken.serialize
|
|
241
|
+
}));
|
|
242
|
+
var pools6 = [...livePools6, ...finishedPools6];
|
|
243
|
+
var livePools7 = [];
|
|
244
|
+
var finishedPools7 = [
|
|
245
|
+
{
|
|
246
|
+
sousId: 3,
|
|
247
|
+
stakingToken: arbitrumTokens.alp,
|
|
248
|
+
earningToken: arbitrumTokens.cake,
|
|
249
|
+
contractAddress: "0x85146C0c5968d9640121eebd13030c99298f87b3",
|
|
250
|
+
poolCategory: "Core" /* CORE */,
|
|
251
|
+
tokenPerSecond: "0.00615",
|
|
252
|
+
version: 3
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
sousId: 2,
|
|
256
|
+
stakingToken: arbitrumTokens.alp,
|
|
257
|
+
earningToken: arbitrumTokens.cake,
|
|
258
|
+
contractAddress: "0x0639c5715EC308E16f089c96C0C109302d76FA81",
|
|
259
|
+
poolCategory: "Core" /* CORE */,
|
|
260
|
+
tokenPerSecond: "0.01177",
|
|
261
|
+
version: 3
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
sousId: 1,
|
|
265
|
+
stakingToken: arbitrumTokens.alp,
|
|
266
|
+
earningToken: arbitrumTokens.cake,
|
|
267
|
+
contractAddress: "0x3dBdE2682330105902fb482d9849C270aa8E0881",
|
|
268
|
+
poolCategory: "Core" /* CORE */,
|
|
269
|
+
tokenPerSecond: "0.01135",
|
|
270
|
+
version: 3
|
|
271
|
+
}
|
|
272
|
+
].map((p) => ({
|
|
273
|
+
...p,
|
|
274
|
+
isFinished: true,
|
|
275
|
+
contractAddress: getAddress(p.contractAddress),
|
|
276
|
+
stakingToken: p.stakingToken.serialize,
|
|
277
|
+
earningToken: p.earningToken.serialize
|
|
278
|
+
}));
|
|
279
|
+
var pools7 = [...livePools7, ...finishedPools7];
|
|
280
|
+
var livePools8 = [
|
|
281
|
+
{
|
|
282
|
+
sousId: 5,
|
|
283
|
+
stakingToken: arbitrumGoerliTokens.cake,
|
|
284
|
+
earningToken: arbitrumGoerliTokens.mockA,
|
|
285
|
+
contractAddress: "0x291f459243621E7d7c83a67644D87022F1FC39F5",
|
|
286
|
+
poolCategory: "Core" /* CORE */,
|
|
287
|
+
tokenPerSecond: "0.01",
|
|
288
|
+
version: 3
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
sousId: 4,
|
|
292
|
+
stakingToken: arbitrumGoerliTokens.cake,
|
|
293
|
+
earningToken: arbitrumGoerliTokens.mockA,
|
|
294
|
+
contractAddress: "0xbA17c9f21bDea078c54F263a8cc63227F28EBfF8",
|
|
295
|
+
poolCategory: "Core" /* CORE */,
|
|
296
|
+
tokenPerSecond: "0.01",
|
|
297
|
+
version: 3
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
sousId: 3,
|
|
301
|
+
stakingToken: arbitrumGoerliTokens.cake,
|
|
302
|
+
earningToken: arbitrumGoerliTokens.mockA,
|
|
303
|
+
contractAddress: "0xdDa7E82fF3c7b308c7f91a7080e474e41173F7f1",
|
|
304
|
+
poolCategory: "Core" /* CORE */,
|
|
305
|
+
tokenPerSecond: "0.01",
|
|
306
|
+
version: 3
|
|
307
|
+
}
|
|
308
|
+
].map((p) => ({
|
|
309
|
+
...p,
|
|
310
|
+
contractAddress: getAddress(p.contractAddress),
|
|
311
|
+
stakingToken: p.stakingToken.serialize,
|
|
312
|
+
earningToken: p.earningToken.serialize
|
|
313
|
+
}));
|
|
314
|
+
var finishedPools8 = [
|
|
315
|
+
{
|
|
316
|
+
sousId: 2,
|
|
317
|
+
stakingToken: arbitrumGoerliTokens.cake,
|
|
318
|
+
earningToken: arbitrumGoerliTokens.mockA,
|
|
319
|
+
contractAddress: "0x4aB4ec9EC094E6042E822A73Cd3979A946280E56",
|
|
320
|
+
poolCategory: "Core" /* CORE */,
|
|
321
|
+
tokenPerSecond: "0.01",
|
|
322
|
+
version: 3
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
sousId: 1,
|
|
326
|
+
stakingToken: arbitrumGoerliTokens.cake,
|
|
327
|
+
earningToken: arbitrumGoerliTokens.mockA,
|
|
328
|
+
contractAddress: "0x5b37404299Ef7DCABA32B00A8f36f0F43eC28E92",
|
|
329
|
+
poolCategory: "Core" /* CORE */,
|
|
330
|
+
tokenPerSecond: "0.01",
|
|
331
|
+
version: 3
|
|
332
|
+
}
|
|
333
|
+
].map((p) => ({
|
|
334
|
+
...p,
|
|
335
|
+
isFinished: true,
|
|
336
|
+
contractAddress: getAddress(p.contractAddress),
|
|
337
|
+
stakingToken: p.stakingToken.serialize,
|
|
338
|
+
earningToken: p.earningToken.serialize
|
|
339
|
+
}));
|
|
340
|
+
var pools8 = [...livePools8, ...finishedPools8];
|
|
341
|
+
var livePools9 = [
|
|
112
342
|
{
|
|
113
343
|
sousId: 0,
|
|
114
344
|
stakingToken: bscTokens.cake,
|
|
@@ -143,7 +373,7 @@ var livePools2 = [
|
|
|
143
373
|
stakingToken: p.stakingToken.serialize,
|
|
144
374
|
earningToken: p.earningToken.serialize
|
|
145
375
|
}));
|
|
146
|
-
var
|
|
376
|
+
var finishedPools9 = [
|
|
147
377
|
{
|
|
148
378
|
sousId: 363,
|
|
149
379
|
stakingToken: bscTokens.cake,
|
|
@@ -533,7 +763,7 @@ var finishedPools2 = [
|
|
|
533
763
|
{
|
|
534
764
|
sousId: 330,
|
|
535
765
|
stakingToken: bscTokens.cake,
|
|
536
|
-
earningToken: bscTokens
|
|
766
|
+
earningToken: bscTokens.deprecated_8pay,
|
|
537
767
|
contractAddress: "0x67c7014b1C6B6a2d811687d4c5a53de518fA705f",
|
|
538
768
|
poolCategory: "Core" /* CORE */,
|
|
539
769
|
tokenPerBlock: "2.48",
|
|
@@ -3086,229 +3316,40 @@ var finishedPools2 = [
|
|
|
3086
3316
|
stakingToken: p.stakingToken.serialize,
|
|
3087
3317
|
earningToken: p.earningToken.serialize
|
|
3088
3318
|
}));
|
|
3089
|
-
var
|
|
3090
|
-
var
|
|
3319
|
+
var pools9 = [...livePools9, ...finishedPools9];
|
|
3320
|
+
var livePools10 = [
|
|
3091
3321
|
{
|
|
3092
|
-
sousId:
|
|
3093
|
-
stakingToken:
|
|
3094
|
-
earningToken:
|
|
3095
|
-
contractAddress: "
|
|
3322
|
+
sousId: 4,
|
|
3323
|
+
stakingToken: lineaTestnetTokens.cake,
|
|
3324
|
+
earningToken: lineaTestnetTokens.mockA,
|
|
3325
|
+
contractAddress: "0x5d4A2dCefA1B6D5031f57a05651F0b49f4E0eC74",
|
|
3096
3326
|
poolCategory: "Core" /* CORE */,
|
|
3097
|
-
|
|
3098
|
-
|
|
3327
|
+
tokenPerSecond: "0.01",
|
|
3328
|
+
version: 3
|
|
3099
3329
|
},
|
|
3100
3330
|
{
|
|
3101
|
-
sousId:
|
|
3102
|
-
stakingToken:
|
|
3103
|
-
earningToken:
|
|
3104
|
-
contractAddress: "
|
|
3331
|
+
sousId: 3,
|
|
3332
|
+
stakingToken: lineaTestnetTokens.cake,
|
|
3333
|
+
earningToken: lineaTestnetTokens.mockA,
|
|
3334
|
+
contractAddress: "0xa014641f932E8b7985Ffd6F722DfE6995bbA15aF",
|
|
3105
3335
|
poolCategory: "Core" /* CORE */,
|
|
3106
|
-
tokenPerSecond: "0.01"
|
|
3336
|
+
tokenPerSecond: "0.01",
|
|
3337
|
+
version: 3
|
|
3107
3338
|
},
|
|
3108
3339
|
{
|
|
3109
3340
|
sousId: 2,
|
|
3110
|
-
stakingToken:
|
|
3111
|
-
earningToken:
|
|
3112
|
-
contractAddress: "
|
|
3341
|
+
stakingToken: lineaTestnetTokens.cake,
|
|
3342
|
+
earningToken: lineaTestnetTokens.mockA,
|
|
3343
|
+
contractAddress: "0x4dc9C14A5542f3D0544a6c11d717AD04A70afF8C",
|
|
3113
3344
|
poolCategory: "Core" /* CORE */,
|
|
3114
|
-
tokenPerSecond: "0.01"
|
|
3115
|
-
|
|
3116
|
-
{
|
|
3117
|
-
sousId: 3,
|
|
3118
|
-
stakingToken: bscTestnetTokens.wbnb,
|
|
3119
|
-
earningToken: bscTestnetTokens.cake2,
|
|
3120
|
-
contractAddress: "0x550d3a43D5CB57E70dD1F53699CEaA0f371ADbBb",
|
|
3121
|
-
poolCategory: "Core" /* CORE */,
|
|
3122
|
-
tokenPerSecond: "0.01"
|
|
3123
|
-
},
|
|
3124
|
-
{
|
|
3125
|
-
sousId: 5,
|
|
3126
|
-
stakingToken: bscTestnetTokens.msix,
|
|
3127
|
-
earningToken: bscTestnetTokens.cake2,
|
|
3128
|
-
contractAddress: "0xf45c9e61318006Dc31CA4993b8ab75E611fe0792",
|
|
3129
|
-
poolCategory: "Core" /* CORE */,
|
|
3130
|
-
tokenPerSecond: "0.0001"
|
|
3131
|
-
},
|
|
3132
|
-
{
|
|
3133
|
-
sousId: 6,
|
|
3134
|
-
stakingToken: bscTestnetTokens.cake2,
|
|
3135
|
-
earningToken: bscTestnetTokens.msix,
|
|
3136
|
-
contractAddress: "0xeB019927EB2d79b6A03B728a6f7A9020f3e2E25f",
|
|
3137
|
-
poolCategory: "Core" /* CORE */,
|
|
3138
|
-
tokenPerSecond: "1"
|
|
3139
|
-
},
|
|
3140
|
-
{
|
|
3141
|
-
sousId: 7,
|
|
3142
|
-
stakingToken: bscTestnetTokens.cake2,
|
|
3143
|
-
earningToken: bscTestnetTokens.msix,
|
|
3144
|
-
contractAddress: "0xd41F619f2f2E91F77054877Ed1a47661f290d19e",
|
|
3145
|
-
poolCategory: "Core" /* CORE */,
|
|
3146
|
-
tokenPerSecond: "0.1"
|
|
3147
|
-
}
|
|
3148
|
-
].map((p) => ({
|
|
3149
|
-
...p,
|
|
3150
|
-
contractAddress: getAddress(p.contractAddress, 97),
|
|
3151
|
-
stakingToken: p.stakingToken.serialize,
|
|
3152
|
-
earningToken: p.earningToken.serialize
|
|
3153
|
-
}));
|
|
3154
|
-
var finishedPools3 = [];
|
|
3155
|
-
var pools3 = [...livePools3, ...finishedPools3];
|
|
3156
|
-
var livePools4 = [
|
|
3157
|
-
{
|
|
3158
|
-
sousId: 3,
|
|
3159
|
-
stakingToken: arbitrumTokens.alp,
|
|
3160
|
-
earningToken: arbitrumTokens.cake,
|
|
3161
|
-
contractAddress: "0x85146C0c5968d9640121eebd13030c99298f87b3",
|
|
3162
|
-
poolCategory: "Core" /* CORE */,
|
|
3163
|
-
tokenPerSecond: "0.00615",
|
|
3164
|
-
version: 3
|
|
3165
|
-
}
|
|
3166
|
-
].map((p) => ({
|
|
3167
|
-
...p,
|
|
3168
|
-
contractAddress: getAddress(p.contractAddress),
|
|
3169
|
-
stakingToken: p.stakingToken.serialize,
|
|
3170
|
-
earningToken: p.earningToken.serialize
|
|
3171
|
-
}));
|
|
3172
|
-
var finishedPools4 = [
|
|
3173
|
-
{
|
|
3174
|
-
sousId: 2,
|
|
3175
|
-
stakingToken: arbitrumTokens.alp,
|
|
3176
|
-
earningToken: arbitrumTokens.cake,
|
|
3177
|
-
contractAddress: "0x0639c5715EC308E16f089c96C0C109302d76FA81",
|
|
3178
|
-
poolCategory: "Core" /* CORE */,
|
|
3179
|
-
tokenPerSecond: "0.01177",
|
|
3180
|
-
version: 3
|
|
3181
|
-
},
|
|
3182
|
-
{
|
|
3183
|
-
sousId: 1,
|
|
3184
|
-
stakingToken: arbitrumTokens.alp,
|
|
3185
|
-
earningToken: arbitrumTokens.cake,
|
|
3186
|
-
contractAddress: "0x3dBdE2682330105902fb482d9849C270aa8E0881",
|
|
3187
|
-
poolCategory: "Core" /* CORE */,
|
|
3188
|
-
tokenPerSecond: "0.01135",
|
|
3189
|
-
version: 3
|
|
3190
|
-
}
|
|
3191
|
-
].map((p) => ({
|
|
3192
|
-
...p,
|
|
3193
|
-
isFinished: true,
|
|
3194
|
-
contractAddress: getAddress(p.contractAddress),
|
|
3195
|
-
stakingToken: p.stakingToken.serialize,
|
|
3196
|
-
earningToken: p.earningToken.serialize
|
|
3197
|
-
}));
|
|
3198
|
-
var pools4 = [...livePools4, ...finishedPools4];
|
|
3199
|
-
var livePools5 = [
|
|
3200
|
-
{
|
|
3201
|
-
sousId: 5,
|
|
3202
|
-
stakingToken: arbitrumGoerliTokens.cake,
|
|
3203
|
-
earningToken: arbitrumGoerliTokens.mockA,
|
|
3204
|
-
contractAddress: "0x291f459243621E7d7c83a67644D87022F1FC39F5",
|
|
3205
|
-
poolCategory: "Core" /* CORE */,
|
|
3206
|
-
tokenPerSecond: "0.01",
|
|
3207
|
-
version: 3
|
|
3208
|
-
},
|
|
3209
|
-
{
|
|
3210
|
-
sousId: 4,
|
|
3211
|
-
stakingToken: arbitrumGoerliTokens.cake,
|
|
3212
|
-
earningToken: arbitrumGoerliTokens.mockA,
|
|
3213
|
-
contractAddress: "0xbA17c9f21bDea078c54F263a8cc63227F28EBfF8",
|
|
3214
|
-
poolCategory: "Core" /* CORE */,
|
|
3215
|
-
tokenPerSecond: "0.01",
|
|
3216
|
-
version: 3
|
|
3217
|
-
},
|
|
3218
|
-
{
|
|
3219
|
-
sousId: 3,
|
|
3220
|
-
stakingToken: arbitrumGoerliTokens.cake,
|
|
3221
|
-
earningToken: arbitrumGoerliTokens.mockA,
|
|
3222
|
-
contractAddress: "0xdDa7E82fF3c7b308c7f91a7080e474e41173F7f1",
|
|
3223
|
-
poolCategory: "Core" /* CORE */,
|
|
3224
|
-
tokenPerSecond: "0.01",
|
|
3225
|
-
version: 3
|
|
3226
|
-
}
|
|
3227
|
-
].map((p) => ({
|
|
3228
|
-
...p,
|
|
3229
|
-
contractAddress: getAddress(p.contractAddress),
|
|
3230
|
-
stakingToken: p.stakingToken.serialize,
|
|
3231
|
-
earningToken: p.earningToken.serialize
|
|
3232
|
-
}));
|
|
3233
|
-
var finishedPools5 = [
|
|
3234
|
-
{
|
|
3235
|
-
sousId: 2,
|
|
3236
|
-
stakingToken: arbitrumGoerliTokens.cake,
|
|
3237
|
-
earningToken: arbitrumGoerliTokens.mockA,
|
|
3238
|
-
contractAddress: "0x4aB4ec9EC094E6042E822A73Cd3979A946280E56",
|
|
3239
|
-
poolCategory: "Core" /* CORE */,
|
|
3240
|
-
tokenPerSecond: "0.01",
|
|
3241
|
-
version: 3
|
|
3242
|
-
},
|
|
3243
|
-
{
|
|
3244
|
-
sousId: 1,
|
|
3245
|
-
stakingToken: arbitrumGoerliTokens.cake,
|
|
3246
|
-
earningToken: arbitrumGoerliTokens.mockA,
|
|
3247
|
-
contractAddress: "0x5b37404299Ef7DCABA32B00A8f36f0F43eC28E92",
|
|
3248
|
-
poolCategory: "Core" /* CORE */,
|
|
3249
|
-
tokenPerSecond: "0.01",
|
|
3250
|
-
version: 3
|
|
3251
|
-
}
|
|
3252
|
-
].map((p) => ({
|
|
3253
|
-
...p,
|
|
3254
|
-
isFinished: true,
|
|
3255
|
-
contractAddress: getAddress(p.contractAddress),
|
|
3256
|
-
stakingToken: p.stakingToken.serialize,
|
|
3257
|
-
earningToken: p.earningToken.serialize
|
|
3258
|
-
}));
|
|
3259
|
-
var pools5 = [...livePools5, ...finishedPools5];
|
|
3260
|
-
var livePools6 = [];
|
|
3261
|
-
var finishedPools6 = [
|
|
3262
|
-
{
|
|
3263
|
-
sousId: 1,
|
|
3264
|
-
stakingToken: zksyncTokens.cake,
|
|
3265
|
-
earningToken: zksyncTokens.tes,
|
|
3266
|
-
contractAddress: "0xedB2E9eB4fc47d57c08B387775e09E5fC9e21EBE",
|
|
3267
|
-
poolCategory: "Core" /* CORE */,
|
|
3268
|
-
tokenPerSecond: "0.02546",
|
|
3269
|
-
version: 3
|
|
3270
|
-
}
|
|
3271
|
-
].map((p) => ({
|
|
3272
|
-
...p,
|
|
3273
|
-
isFinished: true,
|
|
3274
|
-
contractAddress: getAddress(p.contractAddress),
|
|
3275
|
-
stakingToken: p.stakingToken.serialize,
|
|
3276
|
-
earningToken: p.earningToken.serialize
|
|
3277
|
-
}));
|
|
3278
|
-
var pools6 = [...livePools6, ...finishedPools6];
|
|
3279
|
-
var livePools7 = [
|
|
3280
|
-
{
|
|
3281
|
-
sousId: 4,
|
|
3282
|
-
stakingToken: zkSyncTestnetTokens.cake,
|
|
3283
|
-
earningToken: zkSyncTestnetTokens.mock,
|
|
3284
|
-
contractAddress: "0x4BDFF8A608be623077E54F6916761f631e87D884",
|
|
3285
|
-
poolCategory: "Core" /* CORE */,
|
|
3286
|
-
tokenPerSecond: "0.01",
|
|
3287
|
-
version: 3
|
|
3288
|
-
},
|
|
3289
|
-
{
|
|
3290
|
-
sousId: 3,
|
|
3291
|
-
stakingToken: zkSyncTestnetTokens.cake,
|
|
3292
|
-
earningToken: zkSyncTestnetTokens.mock,
|
|
3293
|
-
contractAddress: "0x926E99bad2BC7dA5c0880f0bebD7f448Be86562B",
|
|
3294
|
-
poolCategory: "Core" /* CORE */,
|
|
3295
|
-
tokenPerSecond: "0.01",
|
|
3296
|
-
version: 3
|
|
3297
|
-
},
|
|
3298
|
-
{
|
|
3299
|
-
sousId: 2,
|
|
3300
|
-
stakingToken: zkSyncTestnetTokens.cake,
|
|
3301
|
-
earningToken: zkSyncTestnetTokens.mock,
|
|
3302
|
-
contractAddress: "0x5F7Cc0C5E3FC6e26bC98d392fa3516D4F33Df8aD",
|
|
3303
|
-
poolCategory: "Core" /* CORE */,
|
|
3304
|
-
tokenPerSecond: "0.01",
|
|
3305
|
-
version: 3
|
|
3345
|
+
tokenPerSecond: "0.01",
|
|
3346
|
+
version: 3
|
|
3306
3347
|
},
|
|
3307
3348
|
{
|
|
3308
3349
|
sousId: 1,
|
|
3309
|
-
stakingToken:
|
|
3310
|
-
earningToken:
|
|
3311
|
-
contractAddress: "
|
|
3350
|
+
stakingToken: lineaTestnetTokens.cake,
|
|
3351
|
+
earningToken: lineaTestnetTokens.mockA,
|
|
3352
|
+
contractAddress: "0x30669C960b90Eb71DB4173D8b5069ca83CD2d400",
|
|
3312
3353
|
poolCategory: "Core" /* CORE */,
|
|
3313
3354
|
tokenPerSecond: "0.01",
|
|
3314
3355
|
version: 3
|
|
@@ -3319,14 +3360,19 @@ var livePools7 = [
|
|
|
3319
3360
|
stakingToken: p.stakingToken.serialize,
|
|
3320
3361
|
earningToken: p.earningToken.serialize
|
|
3321
3362
|
}));
|
|
3322
|
-
var
|
|
3323
|
-
var
|
|
3363
|
+
var finishedPools10 = [];
|
|
3364
|
+
var pools10 = [...livePools10, ...finishedPools10];
|
|
3365
|
+
|
|
3366
|
+
// src/constants/pools/59144.ts
|
|
3367
|
+
var livePools11 = [];
|
|
3368
|
+
var finishedPools11 = [];
|
|
3369
|
+
var pools11 = [...livePools11, ...finishedPools11];
|
|
3324
3370
|
|
|
3325
3371
|
// src/constants/pools/8453.ts
|
|
3326
|
-
var
|
|
3327
|
-
var
|
|
3328
|
-
var
|
|
3329
|
-
var
|
|
3372
|
+
var livePools12 = [];
|
|
3373
|
+
var finishedPools12 = [];
|
|
3374
|
+
var pools12 = [...livePools12, ...finishedPools12];
|
|
3375
|
+
var livePools13 = [
|
|
3330
3376
|
{
|
|
3331
3377
|
sousId: 4,
|
|
3332
3378
|
stakingToken: baseTestnetTokens.cake,
|
|
@@ -3369,108 +3415,74 @@ var livePools9 = [
|
|
|
3369
3415
|
stakingToken: p.stakingToken.serialize,
|
|
3370
3416
|
earningToken: p.earningToken.serialize
|
|
3371
3417
|
}));
|
|
3372
|
-
var
|
|
3373
|
-
var
|
|
3374
|
-
|
|
3375
|
-
// src/constants/pools/59144.ts
|
|
3376
|
-
var livePools10 = [];
|
|
3377
|
-
var finishedPools10 = [];
|
|
3378
|
-
var pools10 = [...livePools10, ...finishedPools10];
|
|
3379
|
-
var livePools11 = [
|
|
3418
|
+
var finishedPools13 = [];
|
|
3419
|
+
var pools13 = [...livePools13, ...finishedPools13];
|
|
3420
|
+
var livePools14 = [
|
|
3380
3421
|
{
|
|
3381
|
-
sousId:
|
|
3382
|
-
stakingToken:
|
|
3383
|
-
earningToken:
|
|
3384
|
-
contractAddress: "
|
|
3422
|
+
sousId: 0,
|
|
3423
|
+
stakingToken: bscTestnetTokens.cake2,
|
|
3424
|
+
earningToken: bscTestnetTokens.cake2,
|
|
3425
|
+
contractAddress: "0xf6B427A2Df6E24600e3e3c62634B7c478826619D",
|
|
3385
3426
|
poolCategory: "Core" /* CORE */,
|
|
3386
|
-
|
|
3387
|
-
|
|
3427
|
+
tokenPerBlock: "0.01",
|
|
3428
|
+
isFinished: false
|
|
3388
3429
|
},
|
|
3389
3430
|
{
|
|
3390
|
-
sousId:
|
|
3391
|
-
stakingToken:
|
|
3392
|
-
earningToken:
|
|
3393
|
-
contractAddress: "
|
|
3431
|
+
sousId: 1,
|
|
3432
|
+
stakingToken: bscTestnetTokens.cake2,
|
|
3433
|
+
earningToken: bscTestnetTokens.mockA,
|
|
3434
|
+
contractAddress: "0xe7080E3afDfF2322080B5ba85700FE41287D864B",
|
|
3394
3435
|
poolCategory: "Core" /* CORE */,
|
|
3395
|
-
tokenPerSecond: "0.01"
|
|
3396
|
-
version: 3
|
|
3436
|
+
tokenPerSecond: "0.01"
|
|
3397
3437
|
},
|
|
3398
3438
|
{
|
|
3399
3439
|
sousId: 2,
|
|
3400
|
-
stakingToken:
|
|
3401
|
-
earningToken:
|
|
3402
|
-
contractAddress: "
|
|
3440
|
+
stakingToken: bscTestnetTokens.mockA,
|
|
3441
|
+
earningToken: bscTestnetTokens.mockB,
|
|
3442
|
+
contractAddress: "0x31a069925fB770202b302C7911AF1ACBe0395420",
|
|
3403
3443
|
poolCategory: "Core" /* CORE */,
|
|
3404
|
-
tokenPerSecond: "0.01"
|
|
3405
|
-
version: 3
|
|
3444
|
+
tokenPerSecond: "0.01"
|
|
3406
3445
|
},
|
|
3407
3446
|
{
|
|
3408
|
-
sousId:
|
|
3409
|
-
stakingToken:
|
|
3410
|
-
earningToken:
|
|
3411
|
-
contractAddress: "
|
|
3412
|
-
poolCategory: "Core" /* CORE */,
|
|
3413
|
-
tokenPerSecond: "0.01",
|
|
3414
|
-
version: 3
|
|
3415
|
-
}
|
|
3416
|
-
].map((p) => ({
|
|
3417
|
-
...p,
|
|
3418
|
-
contractAddress: getAddress(p.contractAddress),
|
|
3419
|
-
stakingToken: p.stakingToken.serialize,
|
|
3420
|
-
earningToken: p.earningToken.serialize
|
|
3421
|
-
}));
|
|
3422
|
-
var finishedPools11 = [];
|
|
3423
|
-
var pools11 = [...livePools11, ...finishedPools11];
|
|
3424
|
-
|
|
3425
|
-
// src/constants/pools/1101.ts
|
|
3426
|
-
var livePools12 = [];
|
|
3427
|
-
var finishedPools12 = [];
|
|
3428
|
-
var pools12 = [...livePools12, ...finishedPools12];
|
|
3429
|
-
var livePools13 = [
|
|
3430
|
-
{
|
|
3431
|
-
sousId: 4,
|
|
3432
|
-
stakingToken: polygonZkEvmTestnetTokens.cake,
|
|
3433
|
-
earningToken: polygonZkEvmTestnetTokens.mockA,
|
|
3434
|
-
contractAddress: "0x6e9Cf632243070984A44743d9009CD48cb232F83",
|
|
3447
|
+
sousId: 3,
|
|
3448
|
+
stakingToken: bscTestnetTokens.wbnb,
|
|
3449
|
+
earningToken: bscTestnetTokens.cake2,
|
|
3450
|
+
contractAddress: "0x550d3a43D5CB57E70dD1F53699CEaA0f371ADbBb",
|
|
3435
3451
|
poolCategory: "Core" /* CORE */,
|
|
3436
|
-
tokenPerSecond: "0.01"
|
|
3437
|
-
version: 3
|
|
3452
|
+
tokenPerSecond: "0.01"
|
|
3438
3453
|
},
|
|
3439
3454
|
{
|
|
3440
|
-
sousId:
|
|
3441
|
-
stakingToken:
|
|
3442
|
-
earningToken:
|
|
3443
|
-
contractAddress: "
|
|
3455
|
+
sousId: 5,
|
|
3456
|
+
stakingToken: bscTestnetTokens.msix,
|
|
3457
|
+
earningToken: bscTestnetTokens.cake2,
|
|
3458
|
+
contractAddress: "0xf45c9e61318006Dc31CA4993b8ab75E611fe0792",
|
|
3444
3459
|
poolCategory: "Core" /* CORE */,
|
|
3445
|
-
tokenPerSecond: "0.
|
|
3446
|
-
version: 3
|
|
3460
|
+
tokenPerSecond: "0.0001"
|
|
3447
3461
|
},
|
|
3448
3462
|
{
|
|
3449
|
-
sousId:
|
|
3450
|
-
stakingToken:
|
|
3451
|
-
earningToken:
|
|
3452
|
-
contractAddress: "
|
|
3463
|
+
sousId: 6,
|
|
3464
|
+
stakingToken: bscTestnetTokens.cake2,
|
|
3465
|
+
earningToken: bscTestnetTokens.msix,
|
|
3466
|
+
contractAddress: "0xeB019927EB2d79b6A03B728a6f7A9020f3e2E25f",
|
|
3453
3467
|
poolCategory: "Core" /* CORE */,
|
|
3454
|
-
tokenPerSecond: "
|
|
3455
|
-
version: 3
|
|
3468
|
+
tokenPerSecond: "1"
|
|
3456
3469
|
},
|
|
3457
3470
|
{
|
|
3458
|
-
sousId:
|
|
3459
|
-
stakingToken:
|
|
3460
|
-
earningToken:
|
|
3461
|
-
contractAddress: "
|
|
3471
|
+
sousId: 7,
|
|
3472
|
+
stakingToken: bscTestnetTokens.cake2,
|
|
3473
|
+
earningToken: bscTestnetTokens.msix,
|
|
3474
|
+
contractAddress: "0xd41F619f2f2E91F77054877Ed1a47661f290d19e",
|
|
3462
3475
|
poolCategory: "Core" /* CORE */,
|
|
3463
|
-
tokenPerSecond: "0.
|
|
3464
|
-
version: 3
|
|
3476
|
+
tokenPerSecond: "0.1"
|
|
3465
3477
|
}
|
|
3466
3478
|
].map((p) => ({
|
|
3467
3479
|
...p,
|
|
3468
|
-
contractAddress: getAddress(p.contractAddress),
|
|
3480
|
+
contractAddress: getAddress(p.contractAddress, 97),
|
|
3469
3481
|
stakingToken: p.stakingToken.serialize,
|
|
3470
3482
|
earningToken: p.earningToken.serialize
|
|
3471
3483
|
}));
|
|
3472
|
-
var
|
|
3473
|
-
var
|
|
3484
|
+
var finishedPools14 = [];
|
|
3485
|
+
var pools14 = [...livePools14, ...finishedPools14];
|
|
3474
3486
|
var SUPPORTED_CHAIN_IDS = [
|
|
3475
3487
|
ChainId.BSC,
|
|
3476
3488
|
ChainId.BSC_TESTNET,
|
|
@@ -3481,7 +3493,8 @@ var SUPPORTED_CHAIN_IDS = [
|
|
|
3481
3493
|
ChainId.ZKSYNC_TESTNET,
|
|
3482
3494
|
ChainId.LINEA_TESTNET,
|
|
3483
3495
|
ChainId.BASE_TESTNET,
|
|
3484
|
-
ChainId.POLYGON_ZKEVM_TESTNET
|
|
3496
|
+
ChainId.POLYGON_ZKEVM_TESTNET,
|
|
3497
|
+
ChainId.OPBNB
|
|
3485
3498
|
];
|
|
3486
3499
|
var CAKE_VAULT_SUPPORTED_CHAINS = [ChainId.BSC, ChainId.BSC_TESTNET];
|
|
3487
3500
|
|
|
@@ -3496,33 +3509,35 @@ function isCakeVaultSupported(chainId) {
|
|
|
3496
3509
|
// src/constants/pools/index.ts
|
|
3497
3510
|
var POOLS_CONFIG_BY_CHAIN = {
|
|
3498
3511
|
[ChainId.ETHEREUM]: pools,
|
|
3499
|
-
[ChainId.BSC]:
|
|
3500
|
-
[ChainId.BSC_TESTNET]:
|
|
3501
|
-
[ChainId.ARBITRUM_ONE]:
|
|
3502
|
-
[ChainId.ARBITRUM_GOERLI]:
|
|
3512
|
+
[ChainId.BSC]: pools9,
|
|
3513
|
+
[ChainId.BSC_TESTNET]: pools14,
|
|
3514
|
+
[ChainId.ARBITRUM_ONE]: pools7,
|
|
3515
|
+
[ChainId.ARBITRUM_GOERLI]: pools8,
|
|
3503
3516
|
[ChainId.ZKSYNC]: pools6,
|
|
3504
|
-
[ChainId.ZKSYNC_TESTNET]:
|
|
3505
|
-
[ChainId.BASE]:
|
|
3506
|
-
[ChainId.BASE_TESTNET]:
|
|
3507
|
-
[ChainId.LINEA]:
|
|
3508
|
-
[ChainId.LINEA_TESTNET]:
|
|
3509
|
-
[ChainId.POLYGON_ZKEVM]:
|
|
3510
|
-
[ChainId.POLYGON_ZKEVM_TESTNET]:
|
|
3517
|
+
[ChainId.ZKSYNC_TESTNET]: pools5,
|
|
3518
|
+
[ChainId.BASE]: pools12,
|
|
3519
|
+
[ChainId.BASE_TESTNET]: pools13,
|
|
3520
|
+
[ChainId.LINEA]: pools11,
|
|
3521
|
+
[ChainId.LINEA_TESTNET]: pools10,
|
|
3522
|
+
[ChainId.POLYGON_ZKEVM]: pools2,
|
|
3523
|
+
[ChainId.POLYGON_ZKEVM_TESTNET]: pools3,
|
|
3524
|
+
[ChainId.OPBNB]: pools4
|
|
3511
3525
|
};
|
|
3512
3526
|
var LIVE_POOLS_CONFIG_BY_CHAIN = {
|
|
3513
3527
|
[ChainId.ETHEREUM]: livePools,
|
|
3514
|
-
[ChainId.BSC]:
|
|
3515
|
-
[ChainId.BSC_TESTNET]:
|
|
3516
|
-
[ChainId.ARBITRUM_ONE]:
|
|
3517
|
-
[ChainId.ARBITRUM_GOERLI]:
|
|
3528
|
+
[ChainId.BSC]: livePools9,
|
|
3529
|
+
[ChainId.BSC_TESTNET]: livePools14,
|
|
3530
|
+
[ChainId.ARBITRUM_ONE]: livePools7,
|
|
3531
|
+
[ChainId.ARBITRUM_GOERLI]: livePools8,
|
|
3518
3532
|
[ChainId.ZKSYNC]: livePools6,
|
|
3519
|
-
[ChainId.ZKSYNC_TESTNET]:
|
|
3520
|
-
[ChainId.BASE]:
|
|
3521
|
-
[ChainId.BASE_TESTNET]:
|
|
3522
|
-
[ChainId.LINEA]:
|
|
3523
|
-
[ChainId.LINEA_TESTNET]:
|
|
3524
|
-
[ChainId.POLYGON_ZKEVM]:
|
|
3525
|
-
[ChainId.POLYGON_ZKEVM_TESTNET]:
|
|
3533
|
+
[ChainId.ZKSYNC_TESTNET]: livePools5,
|
|
3534
|
+
[ChainId.BASE]: livePools12,
|
|
3535
|
+
[ChainId.BASE_TESTNET]: livePools13,
|
|
3536
|
+
[ChainId.LINEA]: livePools11,
|
|
3537
|
+
[ChainId.LINEA_TESTNET]: livePools10,
|
|
3538
|
+
[ChainId.POLYGON_ZKEVM]: livePools2,
|
|
3539
|
+
[ChainId.POLYGON_ZKEVM_TESTNET]: livePools3,
|
|
3540
|
+
[ChainId.OPBNB]: livePools4
|
|
3526
3541
|
};
|
|
3527
3542
|
var getPoolsConfig = (chainId) => {
|
|
3528
3543
|
if (!isPoolsSupported(chainId)) {
|
|
@@ -3551,9 +3566,19 @@ var arbBoostedPools = [
|
|
|
3551
3566
|
}
|
|
3552
3567
|
];
|
|
3553
3568
|
|
|
3569
|
+
// src/constants/boostedPools/opBNB.ts
|
|
3570
|
+
var opBnbBoostedPools = [
|
|
3571
|
+
{
|
|
3572
|
+
boosterType: 0 /* ALP */,
|
|
3573
|
+
contractAddress: "0xa1B46Cb13b43fb8Ae5dC7222e3294fcd10024168",
|
|
3574
|
+
tooltipsText: "Fee APY include the transaction fees shared in the ALP pool, funding rates for positions held, and liquidation income, and will be reflected in the growth of the ALP price. Stake APY is the return for staking ALP. Both Annualized using compound interest, for reference purposes only."
|
|
3575
|
+
}
|
|
3576
|
+
];
|
|
3577
|
+
|
|
3554
3578
|
// src/constants/boostedPools/index.ts
|
|
3555
3579
|
var BOOSTED_POOLS_CONFIG_BY_CHAIN = {
|
|
3556
|
-
[ChainId.ARBITRUM_ONE]: arbBoostedPools
|
|
3580
|
+
[ChainId.ARBITRUM_ONE]: arbBoostedPools,
|
|
3581
|
+
[ChainId.OPBNB]: opBnbBoostedPools
|
|
3557
3582
|
};
|
|
3558
3583
|
var getBoostedPoolsConfig = (chainId) => {
|
|
3559
3584
|
return BOOSTED_POOLS_CONFIG_BY_CHAIN[chainId];
|
|
@@ -3572,7 +3597,8 @@ var ICAKE = {
|
|
|
3572
3597
|
[ChainId.ZKSYNC_TESTNET]: "0x",
|
|
3573
3598
|
[ChainId.BASE_TESTNET]: "0x",
|
|
3574
3599
|
[ChainId.LINEA_TESTNET]: "0x",
|
|
3575
|
-
[ChainId.POLYGON_ZKEVM_TESTNET]: "0x"
|
|
3600
|
+
[ChainId.POLYGON_ZKEVM_TESTNET]: "0x",
|
|
3601
|
+
[ChainId.OPBNB]: "0x"
|
|
3576
3602
|
};
|
|
3577
3603
|
var CAKE_VAULT = {
|
|
3578
3604
|
[ChainId.BSC]: "0x45c54210128a065de780C4B0Df3d16664f7f859e",
|
|
@@ -3584,11 +3610,12 @@ var CAKE_VAULT = {
|
|
|
3584
3610
|
[ChainId.ZKSYNC_TESTNET]: "0x",
|
|
3585
3611
|
[ChainId.BASE_TESTNET]: "0x",
|
|
3586
3612
|
[ChainId.LINEA_TESTNET]: "0x",
|
|
3587
|
-
[ChainId.POLYGON_ZKEVM_TESTNET]: "0x"
|
|
3613
|
+
[ChainId.POLYGON_ZKEVM_TESTNET]: "0x",
|
|
3614
|
+
[ChainId.OPBNB]: "0x"
|
|
3588
3615
|
};
|
|
3589
3616
|
var CAKE_FLEXIBLE_SIDE_VAULT = {
|
|
3590
3617
|
[ChainId.BSC]: "0x615e896A8C2CA8470A2e9dc2E9552998f8658Ea0",
|
|
3591
|
-
[ChainId.BSC_TESTNET]: "
|
|
3618
|
+
[ChainId.BSC_TESTNET]: "0x1088Fb24053F03802F673b84d16AE1A7023E400b",
|
|
3592
3619
|
[ChainId.ETHEREUM]: "0x",
|
|
3593
3620
|
[ChainId.ARBITRUM_ONE]: "0x",
|
|
3594
3621
|
[ChainId.ARBITRUM_GOERLI]: "0x",
|
|
@@ -3596,7 +3623,8 @@ var CAKE_FLEXIBLE_SIDE_VAULT = {
|
|
|
3596
3623
|
[ChainId.ZKSYNC_TESTNET]: "0x",
|
|
3597
3624
|
[ChainId.BASE_TESTNET]: "0x",
|
|
3598
3625
|
[ChainId.LINEA_TESTNET]: "0x",
|
|
3599
|
-
[ChainId.POLYGON_ZKEVM_TESTNET]: "0x"
|
|
3626
|
+
[ChainId.POLYGON_ZKEVM_TESTNET]: "0x",
|
|
3627
|
+
[ChainId.OPBNB]: "0x"
|
|
3600
3628
|
};
|
|
3601
3629
|
|
|
3602
3630
|
// src/constants/index.ts
|
|
@@ -4995,8 +5023,8 @@ function getPoolContractBySousId({ chainId, sousId, signer, publicClient }) {
|
|
|
4995
5023
|
if (!chainId) {
|
|
4996
5024
|
return null;
|
|
4997
5025
|
}
|
|
4998
|
-
const
|
|
4999
|
-
const pool =
|
|
5026
|
+
const pools15 = getPoolsConfig(chainId);
|
|
5027
|
+
const pool = pools15?.find((p) => p.sousId === Number(sousId));
|
|
5000
5028
|
if (!pool) {
|
|
5001
5029
|
return null;
|
|
5002
5030
|
}
|
|
@@ -5018,9 +5046,16 @@ var checkIsBoostedPool = (contract, chainId) => {
|
|
|
5018
5046
|
};
|
|
5019
5047
|
var WEEK = 7;
|
|
5020
5048
|
var YEAR = 365;
|
|
5021
|
-
var
|
|
5022
|
-
var
|
|
5023
|
-
|
|
5049
|
+
var API_URL = "https://perp.pancakeswap.finance/bapi/futures/v1/public/future/apx/fee/info?chain=";
|
|
5050
|
+
var CONTRACT_ADDRESS = {
|
|
5051
|
+
[ChainId.OPBNB]: "0x5A5454A6030FB50ceb3eb78977D140198A27be5e",
|
|
5052
|
+
[ChainId.ARBITRUM_ONE]: "0xB3879E95a4B8e3eE570c232B19d520821F540E48"
|
|
5053
|
+
};
|
|
5054
|
+
var CHAIN_NAME_MAP = {
|
|
5055
|
+
[ChainId.OPBNB]: "OPBNB",
|
|
5056
|
+
[ChainId.ARBITRUM_ONE]: "ARB"
|
|
5057
|
+
};
|
|
5058
|
+
var fetchAlpBoostedPoolApr = async (client, chainId) => {
|
|
5024
5059
|
try {
|
|
5025
5060
|
const [totalValue] = await client.multicall({
|
|
5026
5061
|
contracts: [
|
|
@@ -5050,14 +5085,14 @@ var fetchAlpBoostedPoolApr = async (client) => {
|
|
|
5050
5085
|
type: "function"
|
|
5051
5086
|
}
|
|
5052
5087
|
],
|
|
5053
|
-
address: CONTRACT_ADDRESS,
|
|
5088
|
+
address: CONTRACT_ADDRESS?.[chainId],
|
|
5054
5089
|
functionName: "totalValue"
|
|
5055
5090
|
}
|
|
5056
5091
|
],
|
|
5057
5092
|
allowFailure: false
|
|
5058
5093
|
});
|
|
5059
5094
|
const totalValueUsd = totalValue.map((i) => new BigNumber7(i.valueUsd.toString()).div(1e18).toNumber()).reduce((a, b) => a + b, 0);
|
|
5060
|
-
const response = await fetch(API_URL);
|
|
5095
|
+
const response = await fetch(`${API_URL}${CHAIN_NAME_MAP[chainId]}`);
|
|
5061
5096
|
const result = await response.json();
|
|
5062
5097
|
const { alpFundingFee, alpTradingFee, alpLipFee } = result.data;
|
|
5063
5098
|
const apr = new BigNumber7(alpFundingFee).plus(alpTradingFee).plus(alpLipFee);
|
|
@@ -5077,7 +5112,7 @@ var getBoostedPoolApr = async ({ client, contractAddress, chainId }) => {
|
|
|
5077
5112
|
return 0;
|
|
5078
5113
|
}
|
|
5079
5114
|
if (pool?.boosterType === 0 /* ALP */) {
|
|
5080
|
-
const result = await fetchAlpBoostedPoolApr(client);
|
|
5115
|
+
const result = await fetchAlpBoostedPoolApr(client, chainId);
|
|
5081
5116
|
return result;
|
|
5082
5117
|
}
|
|
5083
5118
|
return 0;
|
|
@@ -5091,11 +5126,11 @@ var getLivePoolsWithEnd = async (chainId) => {
|
|
|
5091
5126
|
}
|
|
5092
5127
|
return poolsConfig.filter((p) => p.sousId !== 0 && !p.isFinished);
|
|
5093
5128
|
};
|
|
5094
|
-
async function fetchUpgradedPoolsTimeLimits(
|
|
5095
|
-
if (!
|
|
5129
|
+
async function fetchUpgradedPoolsTimeLimits(pools15, chainId, provider) {
|
|
5130
|
+
if (!pools15.length) {
|
|
5096
5131
|
return [];
|
|
5097
5132
|
}
|
|
5098
|
-
const calls =
|
|
5133
|
+
const calls = pools15.flatMap(({ contractAddress }) => {
|
|
5099
5134
|
return [
|
|
5100
5135
|
{
|
|
5101
5136
|
abi: smartChefABI,
|
|
@@ -5122,7 +5157,7 @@ async function fetchUpgradedPoolsTimeLimits(pools14, chainId, provider) {
|
|
|
5122
5157
|
resultArray[chunkIndex].push(item);
|
|
5123
5158
|
return resultArray;
|
|
5124
5159
|
}, []);
|
|
5125
|
-
return
|
|
5160
|
+
return pools15.map((cakePoolConfig, index) => {
|
|
5126
5161
|
const [startTimestamp, endTimestamp] = startEndResult[index];
|
|
5127
5162
|
return {
|
|
5128
5163
|
sousId: cakePoolConfig.sousId,
|
|
@@ -5131,11 +5166,11 @@ async function fetchUpgradedPoolsTimeLimits(pools14, chainId, provider) {
|
|
|
5131
5166
|
};
|
|
5132
5167
|
});
|
|
5133
5168
|
}
|
|
5134
|
-
var fetchLegacyPoolsBlockLimits = async (
|
|
5135
|
-
if (!
|
|
5169
|
+
var fetchLegacyPoolsBlockLimits = async (pools15, chainId, provider) => {
|
|
5170
|
+
if (!pools15.length) {
|
|
5136
5171
|
return [];
|
|
5137
5172
|
}
|
|
5138
|
-
const startEndBlockCalls =
|
|
5173
|
+
const startEndBlockCalls = pools15.flatMap(({ contractAddress }) => {
|
|
5139
5174
|
return [
|
|
5140
5175
|
{
|
|
5141
5176
|
abi: sousChefABI,
|
|
@@ -5168,7 +5203,7 @@ var fetchLegacyPoolsBlockLimits = async (pools14, chainId, provider) => {
|
|
|
5168
5203
|
const getTimestampFromBlock = (targetBlock) => {
|
|
5169
5204
|
return Number(block.timestamp) + (targetBlock - Number(block.number)) * BSC_BLOCK_TIME;
|
|
5170
5205
|
};
|
|
5171
|
-
return
|
|
5206
|
+
return pools15.map((cakePoolConfig, index) => {
|
|
5172
5207
|
const [startBlock, endBlock] = startEndBlockResult[index];
|
|
5173
5208
|
return {
|
|
5174
5209
|
sousId: cakePoolConfig.sousId,
|