@venusprotocol/venus-protocol 9.7.0-dev.1 → 9.7.0-dev.2
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/deploy/009-configure-vaults.ts +2 -0
- package/deploy/012-deploy-prime.ts +5 -1
- package/deploy/013-configure-prime.ts +1 -0
- package/deployments/unichainmainnet/DefaultProxyAdmin.json +200 -0
- package/deployments/unichainmainnet/Prime.json +2042 -0
- package/deployments/unichainmainnet/PrimeLiquidityProvider.json +1113 -0
- package/deployments/unichainmainnet/PrimeLiquidityProvider_Implementation.json +1432 -0
- package/deployments/unichainmainnet/PrimeLiquidityProvider_Proxy.json +272 -0
- package/deployments/unichainmainnet/Prime_Implementation.json +2966 -0
- package/deployments/unichainmainnet/Prime_Proxy.json +282 -0
- package/deployments/unichainmainnet/XVSStore.json +374 -0
- package/deployments/unichainmainnet/XVSVaultProxy.json +352 -0
- package/deployments/unichainmainnet/XVSVaultProxy_Implementation.json +2572 -0
- package/deployments/unichainmainnet/solcInputs/a2594572bdae270af6749f50c8019b6c.json +366 -0
- package/deployments/unichainmainnet.json +8171 -68
- package/deployments/unichainmainnet_addresses.json +11 -1
- package/dist/deploy/009-configure-vaults.js +2 -0
- package/dist/deploy/012-deploy-prime.js +5 -1
- package/dist/deploy/013-configure-prime.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1432 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "0xE20E19E37E240D5A19A3899E988C474A922bB8fC",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"internalType": "bool",
|
|
8
|
+
"name": "_timeBased",
|
|
9
|
+
"type": "bool"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"internalType": "uint256",
|
|
13
|
+
"name": "_blocksPerYear",
|
|
14
|
+
"type": "uint256"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"stateMutability": "nonpayable",
|
|
18
|
+
"type": "constructor"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"inputs": [],
|
|
22
|
+
"name": "AddressesMustDiffer",
|
|
23
|
+
"type": "error"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"inputs": [],
|
|
27
|
+
"name": "FundsTransferIsPaused",
|
|
28
|
+
"type": "error"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"inputs": [
|
|
32
|
+
{
|
|
33
|
+
"internalType": "uint256",
|
|
34
|
+
"name": "sweepAmount",
|
|
35
|
+
"type": "uint256"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"internalType": "uint256",
|
|
39
|
+
"name": "balance",
|
|
40
|
+
"type": "uint256"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"name": "InsufficientBalance",
|
|
44
|
+
"type": "error"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"inputs": [],
|
|
48
|
+
"name": "InvalidArguments",
|
|
49
|
+
"type": "error"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"inputs": [],
|
|
53
|
+
"name": "InvalidBlocksPerYear",
|
|
54
|
+
"type": "error"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"inputs": [],
|
|
58
|
+
"name": "InvalidCaller",
|
|
59
|
+
"type": "error"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"inputs": [
|
|
63
|
+
{
|
|
64
|
+
"internalType": "uint256",
|
|
65
|
+
"name": "speed",
|
|
66
|
+
"type": "uint256"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"internalType": "uint256",
|
|
70
|
+
"name": "maxSpeed",
|
|
71
|
+
"type": "uint256"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"name": "InvalidDistributionSpeed",
|
|
75
|
+
"type": "error"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"inputs": [],
|
|
79
|
+
"name": "InvalidTimeBasedConfiguration",
|
|
80
|
+
"type": "error"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"inputs": [
|
|
84
|
+
{
|
|
85
|
+
"internalType": "uint256",
|
|
86
|
+
"name": "loopsLimit",
|
|
87
|
+
"type": "uint256"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"internalType": "uint256",
|
|
91
|
+
"name": "requiredLoops",
|
|
92
|
+
"type": "uint256"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"name": "MaxLoopsLimitExceeded",
|
|
96
|
+
"type": "error"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"inputs": [
|
|
100
|
+
{
|
|
101
|
+
"internalType": "address",
|
|
102
|
+
"name": "token",
|
|
103
|
+
"type": "address"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"name": "TokenAlreadyInitialized",
|
|
107
|
+
"type": "error"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"inputs": [
|
|
111
|
+
{
|
|
112
|
+
"internalType": "address",
|
|
113
|
+
"name": "token_",
|
|
114
|
+
"type": "address"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"name": "TokenNotInitialized",
|
|
118
|
+
"type": "error"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"inputs": [
|
|
122
|
+
{
|
|
123
|
+
"internalType": "address",
|
|
124
|
+
"name": "sender",
|
|
125
|
+
"type": "address"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"internalType": "address",
|
|
129
|
+
"name": "calledContract",
|
|
130
|
+
"type": "address"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"internalType": "string",
|
|
134
|
+
"name": "methodSignature",
|
|
135
|
+
"type": "string"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"name": "Unauthorized",
|
|
139
|
+
"type": "error"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"anonymous": false,
|
|
143
|
+
"inputs": [
|
|
144
|
+
{
|
|
145
|
+
"indexed": false,
|
|
146
|
+
"internalType": "uint8",
|
|
147
|
+
"name": "version",
|
|
148
|
+
"type": "uint8"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"name": "Initialized",
|
|
152
|
+
"type": "event"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"anonymous": false,
|
|
156
|
+
"inputs": [
|
|
157
|
+
{
|
|
158
|
+
"indexed": false,
|
|
159
|
+
"internalType": "uint256",
|
|
160
|
+
"name": "oldMaxLoopsLimit",
|
|
161
|
+
"type": "uint256"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"indexed": false,
|
|
165
|
+
"internalType": "uint256",
|
|
166
|
+
"name": "newmaxLoopsLimit",
|
|
167
|
+
"type": "uint256"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"name": "MaxLoopsLimitUpdated",
|
|
171
|
+
"type": "event"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"anonymous": false,
|
|
175
|
+
"inputs": [
|
|
176
|
+
{
|
|
177
|
+
"indexed": true,
|
|
178
|
+
"internalType": "address",
|
|
179
|
+
"name": "token",
|
|
180
|
+
"type": "address"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"indexed": false,
|
|
184
|
+
"internalType": "uint256",
|
|
185
|
+
"name": "oldSpeed",
|
|
186
|
+
"type": "uint256"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"indexed": false,
|
|
190
|
+
"internalType": "uint256",
|
|
191
|
+
"name": "newSpeed",
|
|
192
|
+
"type": "uint256"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"name": "MaxTokenDistributionSpeedUpdated",
|
|
196
|
+
"type": "event"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"anonymous": false,
|
|
200
|
+
"inputs": [
|
|
201
|
+
{
|
|
202
|
+
"indexed": false,
|
|
203
|
+
"internalType": "address",
|
|
204
|
+
"name": "oldAccessControlManager",
|
|
205
|
+
"type": "address"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"indexed": false,
|
|
209
|
+
"internalType": "address",
|
|
210
|
+
"name": "newAccessControlManager",
|
|
211
|
+
"type": "address"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"name": "NewAccessControlManager",
|
|
215
|
+
"type": "event"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"anonymous": false,
|
|
219
|
+
"inputs": [
|
|
220
|
+
{
|
|
221
|
+
"indexed": true,
|
|
222
|
+
"internalType": "address",
|
|
223
|
+
"name": "previousOwner",
|
|
224
|
+
"type": "address"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"indexed": true,
|
|
228
|
+
"internalType": "address",
|
|
229
|
+
"name": "newOwner",
|
|
230
|
+
"type": "address"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"name": "OwnershipTransferStarted",
|
|
234
|
+
"type": "event"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"anonymous": false,
|
|
238
|
+
"inputs": [
|
|
239
|
+
{
|
|
240
|
+
"indexed": true,
|
|
241
|
+
"internalType": "address",
|
|
242
|
+
"name": "previousOwner",
|
|
243
|
+
"type": "address"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"indexed": true,
|
|
247
|
+
"internalType": "address",
|
|
248
|
+
"name": "newOwner",
|
|
249
|
+
"type": "address"
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
"name": "OwnershipTransferred",
|
|
253
|
+
"type": "event"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"anonymous": false,
|
|
257
|
+
"inputs": [
|
|
258
|
+
{
|
|
259
|
+
"indexed": false,
|
|
260
|
+
"internalType": "address",
|
|
261
|
+
"name": "account",
|
|
262
|
+
"type": "address"
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"name": "Paused",
|
|
266
|
+
"type": "event"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"anonymous": false,
|
|
270
|
+
"inputs": [
|
|
271
|
+
{
|
|
272
|
+
"indexed": true,
|
|
273
|
+
"internalType": "address",
|
|
274
|
+
"name": "oldPrimeToken",
|
|
275
|
+
"type": "address"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"indexed": true,
|
|
279
|
+
"internalType": "address",
|
|
280
|
+
"name": "newPrimeToken",
|
|
281
|
+
"type": "address"
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"name": "PrimeTokenUpdated",
|
|
285
|
+
"type": "event"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"anonymous": false,
|
|
289
|
+
"inputs": [
|
|
290
|
+
{
|
|
291
|
+
"indexed": true,
|
|
292
|
+
"internalType": "address",
|
|
293
|
+
"name": "token",
|
|
294
|
+
"type": "address"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"indexed": true,
|
|
298
|
+
"internalType": "address",
|
|
299
|
+
"name": "to",
|
|
300
|
+
"type": "address"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"indexed": false,
|
|
304
|
+
"internalType": "uint256",
|
|
305
|
+
"name": "sweepAmount",
|
|
306
|
+
"type": "uint256"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"name": "SweepToken",
|
|
310
|
+
"type": "event"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"anonymous": false,
|
|
314
|
+
"inputs": [
|
|
315
|
+
{
|
|
316
|
+
"indexed": true,
|
|
317
|
+
"internalType": "address",
|
|
318
|
+
"name": "token",
|
|
319
|
+
"type": "address"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"name": "TokenDistributionInitialized",
|
|
323
|
+
"type": "event"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"anonymous": false,
|
|
327
|
+
"inputs": [
|
|
328
|
+
{
|
|
329
|
+
"indexed": true,
|
|
330
|
+
"internalType": "address",
|
|
331
|
+
"name": "token",
|
|
332
|
+
"type": "address"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"indexed": false,
|
|
336
|
+
"internalType": "uint256",
|
|
337
|
+
"name": "oldSpeed",
|
|
338
|
+
"type": "uint256"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"indexed": false,
|
|
342
|
+
"internalType": "uint256",
|
|
343
|
+
"name": "newSpeed",
|
|
344
|
+
"type": "uint256"
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
"name": "TokenDistributionSpeedUpdated",
|
|
348
|
+
"type": "event"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"anonymous": false,
|
|
352
|
+
"inputs": [
|
|
353
|
+
{
|
|
354
|
+
"indexed": true,
|
|
355
|
+
"internalType": "address",
|
|
356
|
+
"name": "token",
|
|
357
|
+
"type": "address"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"indexed": false,
|
|
361
|
+
"internalType": "uint256",
|
|
362
|
+
"name": "amount",
|
|
363
|
+
"type": "uint256"
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"name": "TokenTransferredToPrime",
|
|
367
|
+
"type": "event"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"anonymous": false,
|
|
371
|
+
"inputs": [
|
|
372
|
+
{
|
|
373
|
+
"indexed": true,
|
|
374
|
+
"internalType": "address",
|
|
375
|
+
"name": "token",
|
|
376
|
+
"type": "address"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"indexed": false,
|
|
380
|
+
"internalType": "uint256",
|
|
381
|
+
"name": "amount",
|
|
382
|
+
"type": "uint256"
|
|
383
|
+
}
|
|
384
|
+
],
|
|
385
|
+
"name": "TokensAccrued",
|
|
386
|
+
"type": "event"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"anonymous": false,
|
|
390
|
+
"inputs": [
|
|
391
|
+
{
|
|
392
|
+
"indexed": false,
|
|
393
|
+
"internalType": "address",
|
|
394
|
+
"name": "account",
|
|
395
|
+
"type": "address"
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"name": "Unpaused",
|
|
399
|
+
"type": "event"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"inputs": [],
|
|
403
|
+
"name": "DEFAULT_MAX_DISTRIBUTION_SPEED",
|
|
404
|
+
"outputs": [
|
|
405
|
+
{
|
|
406
|
+
"internalType": "uint256",
|
|
407
|
+
"name": "",
|
|
408
|
+
"type": "uint256"
|
|
409
|
+
}
|
|
410
|
+
],
|
|
411
|
+
"stateMutability": "view",
|
|
412
|
+
"type": "function"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"inputs": [],
|
|
416
|
+
"name": "acceptOwnership",
|
|
417
|
+
"outputs": [],
|
|
418
|
+
"stateMutability": "nonpayable",
|
|
419
|
+
"type": "function"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"inputs": [],
|
|
423
|
+
"name": "accessControlManager",
|
|
424
|
+
"outputs": [
|
|
425
|
+
{
|
|
426
|
+
"internalType": "contract IAccessControlManagerV8",
|
|
427
|
+
"name": "",
|
|
428
|
+
"type": "address"
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"stateMutability": "view",
|
|
432
|
+
"type": "function"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"inputs": [
|
|
436
|
+
{
|
|
437
|
+
"internalType": "address",
|
|
438
|
+
"name": "token_",
|
|
439
|
+
"type": "address"
|
|
440
|
+
}
|
|
441
|
+
],
|
|
442
|
+
"name": "accrueTokens",
|
|
443
|
+
"outputs": [],
|
|
444
|
+
"stateMutability": "nonpayable",
|
|
445
|
+
"type": "function"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"inputs": [],
|
|
449
|
+
"name": "blocksOrSecondsPerYear",
|
|
450
|
+
"outputs": [
|
|
451
|
+
{
|
|
452
|
+
"internalType": "uint256",
|
|
453
|
+
"name": "",
|
|
454
|
+
"type": "uint256"
|
|
455
|
+
}
|
|
456
|
+
],
|
|
457
|
+
"stateMutability": "view",
|
|
458
|
+
"type": "function"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"inputs": [],
|
|
462
|
+
"name": "getBlockNumberOrTimestamp",
|
|
463
|
+
"outputs": [
|
|
464
|
+
{
|
|
465
|
+
"internalType": "uint256",
|
|
466
|
+
"name": "",
|
|
467
|
+
"type": "uint256"
|
|
468
|
+
}
|
|
469
|
+
],
|
|
470
|
+
"stateMutability": "view",
|
|
471
|
+
"type": "function"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"inputs": [
|
|
475
|
+
{
|
|
476
|
+
"internalType": "address",
|
|
477
|
+
"name": "token_",
|
|
478
|
+
"type": "address"
|
|
479
|
+
}
|
|
480
|
+
],
|
|
481
|
+
"name": "getEffectiveDistributionSpeed",
|
|
482
|
+
"outputs": [
|
|
483
|
+
{
|
|
484
|
+
"internalType": "uint256",
|
|
485
|
+
"name": "",
|
|
486
|
+
"type": "uint256"
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
"stateMutability": "view",
|
|
490
|
+
"type": "function"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"inputs": [
|
|
494
|
+
{
|
|
495
|
+
"internalType": "address",
|
|
496
|
+
"name": "accessControlManager_",
|
|
497
|
+
"type": "address"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"internalType": "address[]",
|
|
501
|
+
"name": "tokens_",
|
|
502
|
+
"type": "address[]"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"internalType": "uint256[]",
|
|
506
|
+
"name": "distributionSpeeds_",
|
|
507
|
+
"type": "uint256[]"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"internalType": "uint256[]",
|
|
511
|
+
"name": "maxDistributionSpeeds_",
|
|
512
|
+
"type": "uint256[]"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"internalType": "uint256",
|
|
516
|
+
"name": "loopsLimit_",
|
|
517
|
+
"type": "uint256"
|
|
518
|
+
}
|
|
519
|
+
],
|
|
520
|
+
"name": "initialize",
|
|
521
|
+
"outputs": [],
|
|
522
|
+
"stateMutability": "nonpayable",
|
|
523
|
+
"type": "function"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"inputs": [
|
|
527
|
+
{
|
|
528
|
+
"internalType": "address[]",
|
|
529
|
+
"name": "tokens_",
|
|
530
|
+
"type": "address[]"
|
|
531
|
+
}
|
|
532
|
+
],
|
|
533
|
+
"name": "initializeTokens",
|
|
534
|
+
"outputs": [],
|
|
535
|
+
"stateMutability": "nonpayable",
|
|
536
|
+
"type": "function"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"inputs": [],
|
|
540
|
+
"name": "isTimeBased",
|
|
541
|
+
"outputs": [
|
|
542
|
+
{
|
|
543
|
+
"internalType": "bool",
|
|
544
|
+
"name": "",
|
|
545
|
+
"type": "bool"
|
|
546
|
+
}
|
|
547
|
+
],
|
|
548
|
+
"stateMutability": "view",
|
|
549
|
+
"type": "function"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"inputs": [
|
|
553
|
+
{
|
|
554
|
+
"internalType": "address",
|
|
555
|
+
"name": "token_",
|
|
556
|
+
"type": "address"
|
|
557
|
+
}
|
|
558
|
+
],
|
|
559
|
+
"name": "lastAccruedBlock",
|
|
560
|
+
"outputs": [
|
|
561
|
+
{
|
|
562
|
+
"internalType": "uint256",
|
|
563
|
+
"name": "",
|
|
564
|
+
"type": "uint256"
|
|
565
|
+
}
|
|
566
|
+
],
|
|
567
|
+
"stateMutability": "view",
|
|
568
|
+
"type": "function"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"inputs": [
|
|
572
|
+
{
|
|
573
|
+
"internalType": "address",
|
|
574
|
+
"name": "",
|
|
575
|
+
"type": "address"
|
|
576
|
+
}
|
|
577
|
+
],
|
|
578
|
+
"name": "lastAccruedBlockOrSecond",
|
|
579
|
+
"outputs": [
|
|
580
|
+
{
|
|
581
|
+
"internalType": "uint256",
|
|
582
|
+
"name": "",
|
|
583
|
+
"type": "uint256"
|
|
584
|
+
}
|
|
585
|
+
],
|
|
586
|
+
"stateMutability": "view",
|
|
587
|
+
"type": "function"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"inputs": [],
|
|
591
|
+
"name": "maxLoopsLimit",
|
|
592
|
+
"outputs": [
|
|
593
|
+
{
|
|
594
|
+
"internalType": "uint256",
|
|
595
|
+
"name": "",
|
|
596
|
+
"type": "uint256"
|
|
597
|
+
}
|
|
598
|
+
],
|
|
599
|
+
"stateMutability": "view",
|
|
600
|
+
"type": "function"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"inputs": [
|
|
604
|
+
{
|
|
605
|
+
"internalType": "address",
|
|
606
|
+
"name": "",
|
|
607
|
+
"type": "address"
|
|
608
|
+
}
|
|
609
|
+
],
|
|
610
|
+
"name": "maxTokenDistributionSpeeds",
|
|
611
|
+
"outputs": [
|
|
612
|
+
{
|
|
613
|
+
"internalType": "uint256",
|
|
614
|
+
"name": "",
|
|
615
|
+
"type": "uint256"
|
|
616
|
+
}
|
|
617
|
+
],
|
|
618
|
+
"stateMutability": "view",
|
|
619
|
+
"type": "function"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"inputs": [],
|
|
623
|
+
"name": "owner",
|
|
624
|
+
"outputs": [
|
|
625
|
+
{
|
|
626
|
+
"internalType": "address",
|
|
627
|
+
"name": "",
|
|
628
|
+
"type": "address"
|
|
629
|
+
}
|
|
630
|
+
],
|
|
631
|
+
"stateMutability": "view",
|
|
632
|
+
"type": "function"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"inputs": [],
|
|
636
|
+
"name": "pauseFundsTransfer",
|
|
637
|
+
"outputs": [],
|
|
638
|
+
"stateMutability": "nonpayable",
|
|
639
|
+
"type": "function"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"inputs": [],
|
|
643
|
+
"name": "paused",
|
|
644
|
+
"outputs": [
|
|
645
|
+
{
|
|
646
|
+
"internalType": "bool",
|
|
647
|
+
"name": "",
|
|
648
|
+
"type": "bool"
|
|
649
|
+
}
|
|
650
|
+
],
|
|
651
|
+
"stateMutability": "view",
|
|
652
|
+
"type": "function"
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"inputs": [],
|
|
656
|
+
"name": "pendingOwner",
|
|
657
|
+
"outputs": [
|
|
658
|
+
{
|
|
659
|
+
"internalType": "address",
|
|
660
|
+
"name": "",
|
|
661
|
+
"type": "address"
|
|
662
|
+
}
|
|
663
|
+
],
|
|
664
|
+
"stateMutability": "view",
|
|
665
|
+
"type": "function"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"inputs": [],
|
|
669
|
+
"name": "prime",
|
|
670
|
+
"outputs": [
|
|
671
|
+
{
|
|
672
|
+
"internalType": "address",
|
|
673
|
+
"name": "",
|
|
674
|
+
"type": "address"
|
|
675
|
+
}
|
|
676
|
+
],
|
|
677
|
+
"stateMutability": "view",
|
|
678
|
+
"type": "function"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"inputs": [
|
|
682
|
+
{
|
|
683
|
+
"internalType": "address",
|
|
684
|
+
"name": "token_",
|
|
685
|
+
"type": "address"
|
|
686
|
+
}
|
|
687
|
+
],
|
|
688
|
+
"name": "releaseFunds",
|
|
689
|
+
"outputs": [],
|
|
690
|
+
"stateMutability": "nonpayable",
|
|
691
|
+
"type": "function"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"inputs": [],
|
|
695
|
+
"name": "renounceOwnership",
|
|
696
|
+
"outputs": [],
|
|
697
|
+
"stateMutability": "nonpayable",
|
|
698
|
+
"type": "function"
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"inputs": [],
|
|
702
|
+
"name": "resumeFundsTransfer",
|
|
703
|
+
"outputs": [],
|
|
704
|
+
"stateMutability": "nonpayable",
|
|
705
|
+
"type": "function"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"inputs": [
|
|
709
|
+
{
|
|
710
|
+
"internalType": "address",
|
|
711
|
+
"name": "accessControlManager_",
|
|
712
|
+
"type": "address"
|
|
713
|
+
}
|
|
714
|
+
],
|
|
715
|
+
"name": "setAccessControlManager",
|
|
716
|
+
"outputs": [],
|
|
717
|
+
"stateMutability": "nonpayable",
|
|
718
|
+
"type": "function"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"inputs": [
|
|
722
|
+
{
|
|
723
|
+
"internalType": "uint256",
|
|
724
|
+
"name": "loopsLimit",
|
|
725
|
+
"type": "uint256"
|
|
726
|
+
}
|
|
727
|
+
],
|
|
728
|
+
"name": "setMaxLoopsLimit",
|
|
729
|
+
"outputs": [],
|
|
730
|
+
"stateMutability": "nonpayable",
|
|
731
|
+
"type": "function"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"inputs": [
|
|
735
|
+
{
|
|
736
|
+
"internalType": "address[]",
|
|
737
|
+
"name": "tokens_",
|
|
738
|
+
"type": "address[]"
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"internalType": "uint256[]",
|
|
742
|
+
"name": "maxDistributionSpeeds_",
|
|
743
|
+
"type": "uint256[]"
|
|
744
|
+
}
|
|
745
|
+
],
|
|
746
|
+
"name": "setMaxTokensDistributionSpeed",
|
|
747
|
+
"outputs": [],
|
|
748
|
+
"stateMutability": "nonpayable",
|
|
749
|
+
"type": "function"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"inputs": [
|
|
753
|
+
{
|
|
754
|
+
"internalType": "address",
|
|
755
|
+
"name": "prime_",
|
|
756
|
+
"type": "address"
|
|
757
|
+
}
|
|
758
|
+
],
|
|
759
|
+
"name": "setPrimeToken",
|
|
760
|
+
"outputs": [],
|
|
761
|
+
"stateMutability": "nonpayable",
|
|
762
|
+
"type": "function"
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"inputs": [
|
|
766
|
+
{
|
|
767
|
+
"internalType": "address[]",
|
|
768
|
+
"name": "tokens_",
|
|
769
|
+
"type": "address[]"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"internalType": "uint256[]",
|
|
773
|
+
"name": "distributionSpeeds_",
|
|
774
|
+
"type": "uint256[]"
|
|
775
|
+
}
|
|
776
|
+
],
|
|
777
|
+
"name": "setTokensDistributionSpeed",
|
|
778
|
+
"outputs": [],
|
|
779
|
+
"stateMutability": "nonpayable",
|
|
780
|
+
"type": "function"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"inputs": [
|
|
784
|
+
{
|
|
785
|
+
"internalType": "contract IERC20Upgradeable",
|
|
786
|
+
"name": "token_",
|
|
787
|
+
"type": "address"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"internalType": "address",
|
|
791
|
+
"name": "to_",
|
|
792
|
+
"type": "address"
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"internalType": "uint256",
|
|
796
|
+
"name": "amount_",
|
|
797
|
+
"type": "uint256"
|
|
798
|
+
}
|
|
799
|
+
],
|
|
800
|
+
"name": "sweepToken",
|
|
801
|
+
"outputs": [],
|
|
802
|
+
"stateMutability": "nonpayable",
|
|
803
|
+
"type": "function"
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"inputs": [
|
|
807
|
+
{
|
|
808
|
+
"internalType": "address",
|
|
809
|
+
"name": "token_",
|
|
810
|
+
"type": "address"
|
|
811
|
+
}
|
|
812
|
+
],
|
|
813
|
+
"name": "tokenAmountAccrued",
|
|
814
|
+
"outputs": [
|
|
815
|
+
{
|
|
816
|
+
"internalType": "uint256",
|
|
817
|
+
"name": "",
|
|
818
|
+
"type": "uint256"
|
|
819
|
+
}
|
|
820
|
+
],
|
|
821
|
+
"stateMutability": "view",
|
|
822
|
+
"type": "function"
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
"inputs": [
|
|
826
|
+
{
|
|
827
|
+
"internalType": "address",
|
|
828
|
+
"name": "",
|
|
829
|
+
"type": "address"
|
|
830
|
+
}
|
|
831
|
+
],
|
|
832
|
+
"name": "tokenDistributionSpeeds",
|
|
833
|
+
"outputs": [
|
|
834
|
+
{
|
|
835
|
+
"internalType": "uint256",
|
|
836
|
+
"name": "",
|
|
837
|
+
"type": "uint256"
|
|
838
|
+
}
|
|
839
|
+
],
|
|
840
|
+
"stateMutability": "view",
|
|
841
|
+
"type": "function"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"inputs": [
|
|
845
|
+
{
|
|
846
|
+
"internalType": "address",
|
|
847
|
+
"name": "newOwner",
|
|
848
|
+
"type": "address"
|
|
849
|
+
}
|
|
850
|
+
],
|
|
851
|
+
"name": "transferOwnership",
|
|
852
|
+
"outputs": [],
|
|
853
|
+
"stateMutability": "nonpayable",
|
|
854
|
+
"type": "function"
|
|
855
|
+
}
|
|
856
|
+
],
|
|
857
|
+
"transactionHash": "0xc7b1d2da098ed781c46ab0990a3a242c4dac346ec1070a27f41c540a6fe849d6",
|
|
858
|
+
"receipt": {
|
|
859
|
+
"to": null,
|
|
860
|
+
"from": "0x92054EdBb53eCC4f2A1787e92f479CE10392A658",
|
|
861
|
+
"contractAddress": "0xE20E19E37E240D5A19A3899E988C474A922bB8fC",
|
|
862
|
+
"transactionIndex": 1,
|
|
863
|
+
"gasUsed": "1768450",
|
|
864
|
+
"logsBloom": "0x20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000010000000000000000000000000000000000004000000000000000000000000000000000",
|
|
865
|
+
"blockHash": "0x14e0334276a7c79b50a3fc07a31a897a464eba1537a43ac31fb3e7127cf94069",
|
|
866
|
+
"transactionHash": "0xc7b1d2da098ed781c46ab0990a3a242c4dac346ec1070a27f41c540a6fe849d6",
|
|
867
|
+
"logs": [
|
|
868
|
+
{
|
|
869
|
+
"transactionIndex": 1,
|
|
870
|
+
"blockNumber": 8425644,
|
|
871
|
+
"transactionHash": "0xc7b1d2da098ed781c46ab0990a3a242c4dac346ec1070a27f41c540a6fe849d6",
|
|
872
|
+
"address": "0xE20E19E37E240D5A19A3899E988C474A922bB8fC",
|
|
873
|
+
"topics": ["0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"],
|
|
874
|
+
"data": "0x00000000000000000000000000000000000000000000000000000000000000ff",
|
|
875
|
+
"logIndex": 0,
|
|
876
|
+
"blockHash": "0x14e0334276a7c79b50a3fc07a31a897a464eba1537a43ac31fb3e7127cf94069"
|
|
877
|
+
}
|
|
878
|
+
],
|
|
879
|
+
"blockNumber": 8425644,
|
|
880
|
+
"cumulativeGasUsed": "1812352",
|
|
881
|
+
"status": 1,
|
|
882
|
+
"byzantium": true
|
|
883
|
+
},
|
|
884
|
+
"args": [true, 0],
|
|
885
|
+
"numDeployments": 1,
|
|
886
|
+
"solcInputHash": "7584667b44eb77970ba8d274006d81ae",
|
|
887
|
+
"metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_timeBased\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"_blocksPerYear\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AddressesMustDiffer\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FundsTransferIsPaused\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"sweepAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"name\":\"InsufficientBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidArguments\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidBlocksPerYear\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidCaller\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"speed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSpeed\",\"type\":\"uint256\"}],\"name\":\"InvalidDistributionSpeed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTimeBasedConfiguration\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"loopsLimit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"requiredLoops\",\"type\":\"uint256\"}],\"name\":\"MaxLoopsLimitExceeded\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"TokenAlreadyInitialized\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token_\",\"type\":\"address\"}],\"name\":\"TokenNotInitialized\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"calledContract\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"methodSignature\",\"type\":\"string\"}],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldMaxLoopsLimit\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newmaxLoopsLimit\",\"type\":\"uint256\"}],\"name\":\"MaxLoopsLimitUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldSpeed\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newSpeed\",\"type\":\"uint256\"}],\"name\":\"MaxTokenDistributionSpeedUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldAccessControlManager\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAccessControlManager\",\"type\":\"address\"}],\"name\":\"NewAccessControlManager\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldPrimeToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newPrimeToken\",\"type\":\"address\"}],\"name\":\"PrimeTokenUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sweepAmount\",\"type\":\"uint256\"}],\"name\":\"SweepToken\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"TokenDistributionInitialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldSpeed\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newSpeed\",\"type\":\"uint256\"}],\"name\":\"TokenDistributionSpeedUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"TokenTransferredToPrime\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"TokensAccrued\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_MAX_DISTRIBUTION_SPEED\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlManager\",\"outputs\":[{\"internalType\":\"contract IAccessControlManagerV8\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token_\",\"type\":\"address\"}],\"name\":\"accrueTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"blocksOrSecondsPerYear\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumberOrTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token_\",\"type\":\"address\"}],\"name\":\"getEffectiveDistributionSpeed\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"accessControlManager_\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"tokens_\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"distributionSpeeds_\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"maxDistributionSpeeds_\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"loopsLimit_\",\"type\":\"uint256\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"tokens_\",\"type\":\"address[]\"}],\"name\":\"initializeTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isTimeBased\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token_\",\"type\":\"address\"}],\"name\":\"lastAccruedBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lastAccruedBlockOrSecond\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxLoopsLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"maxTokenDistributionSpeeds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pauseFundsTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"prime\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token_\",\"type\":\"address\"}],\"name\":\"releaseFunds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"resumeFundsTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"accessControlManager_\",\"type\":\"address\"}],\"name\":\"setAccessControlManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"loopsLimit\",\"type\":\"uint256\"}],\"name\":\"setMaxLoopsLimit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"tokens_\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"maxDistributionSpeeds_\",\"type\":\"uint256[]\"}],\"name\":\"setMaxTokensDistributionSpeed\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"prime_\",\"type\":\"address\"}],\"name\":\"setPrimeToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"tokens_\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"distributionSpeeds_\",\"type\":\"uint256[]\"}],\"name\":\"setTokensDistributionSpeed\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20Upgradeable\",\"name\":\"token_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"}],\"name\":\"sweepToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token_\",\"type\":\"address\"}],\"name\":\"tokenAmountAccrued\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"tokenDistributionSpeeds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Venus\",\"events\":{\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Paused(address)\":{\"details\":\"Emitted when the pause is triggered by `account`.\"},\"Unpaused(address)\":{\"details\":\"Emitted when the pause is lifted by `account`.\"}},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"accrueTokens(address)\":{\"custom:event\":\"Emits TokensAccrued event\",\"params\":{\"token_\":\"Address of the token\"}},\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\"},\"getBlockNumberOrTimestamp()\":{\"details\":\"Function to simply retrieve block number or block timestamp\",\"returns\":{\"_0\":\"Current block number or block timestamp\"}},\"getEffectiveDistributionSpeed(address)\":{\"params\":{\"token_\":\"Address of the token\"},\"returns\":{\"_0\":\"speed returns the per block or second reward\"}},\"initialize(address,address[],uint256[],uint256[],uint256)\":{\"custom:error\":\"Throw InvalidArguments on different length of tokens and speeds array\",\"details\":\"Initializes the deployer to owner\",\"params\":{\"accessControlManager_\":\"AccessControlManager contract address\",\"distributionSpeeds_\":\"New distribution speeds for tokens\",\"loopsLimit_\":\"Maximum number of loops allowed in a single transaction\",\"tokens_\":\"Array of addresses of the tokens\"}},\"initializeTokens(address[])\":{\"custom:access\":\"Only Governance\",\"params\":{\"tokens_\":\"Array of addresses of the tokens to be intialized\"}},\"lastAccruedBlock(address)\":{\"params\":{\"token_\":\"Address of the token\"},\"returns\":{\"_0\":\"blockNumberOrSecond returns the last accrued block or second\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pauseFundsTransfer()\":{\"custom:access\":\"Controlled by ACM\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"releaseFunds(address)\":{\"custom:error\":\"Throw InvalidArguments on Zero address(token)Throw FundsTransferIsPaused is pausedThrow InvalidCaller if the sender is not the Prime contract\",\"custom:event\":\"Emits TokenTransferredToPrime event\",\"params\":{\"token_\":\"The token to release to the Prime contract\"}},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"resumeFundsTransfer()\":{\"custom:access\":\"Controlled by ACM\"},\"setAccessControlManager(address)\":{\"custom:access\":\"Only Governance\",\"custom:event\":\"Emits NewAccessControlManager event\",\"details\":\"Admin function to set address of AccessControlManager\",\"params\":{\"accessControlManager_\":\"The new address of the AccessControlManager\"}},\"setMaxLoopsLimit(uint256)\":{\"custom:access\":\"Controlled by ACM\",\"custom:event\":\"Emits MaxLoopsLimitUpdated event on success\",\"params\":{\"loopsLimit\":\"Limit for the max loops can execute at a time\"}},\"setMaxTokensDistributionSpeed(address[],uint256[])\":{\"custom:access\":\"Controlled by ACM\",\"custom:error\":\"Throw InvalidArguments on different length of tokens and speeds array\",\"params\":{\"maxDistributionSpeeds_\":\"New distribution speeds for tokens\",\"tokens_\":\"Array of addresses of the tokens\"}},\"setPrimeToken(address)\":{\"custom:access\":\"Only owner\",\"custom:event\":\"Emits PrimeTokenUpdated event\",\"params\":{\"prime_\":\"The new address of the prime token contract\"}},\"setTokensDistributionSpeed(address[],uint256[])\":{\"custom:access\":\"Controlled by ACM\",\"custom:error\":\"Throw InvalidArguments on different length of tokens and speeds array\",\"params\":{\"distributionSpeeds_\":\"New distribution speeds for tokens\",\"tokens_\":\"Array of addresses of the tokens\"}},\"sweepToken(address,address,uint256)\":{\"custom:access\":\"Only Governance\",\"custom:error\":\"Throw InsufficientBalance if amount_ is greater than the available balance of the token in the contract\",\"custom:event\":\"Emits SweepToken event\",\"params\":{\"amount_\":\"The amount of tokens needs to transfer\",\"to_\":\"The address of the recipient\",\"token_\":\"The address of the ERC-20 token to sweep\"}},\"tokenAmountAccrued(address)\":{\"params\":{\"token_\":\"Address of the token\"},\"returns\":{\"_0\":\"returns the amount of accrued tokens for the token provided\"}},\"transferOwnership(address)\":{\"details\":\"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.\"}},\"title\":\"PrimeLiquidityProvider\",\"version\":1},\"userdoc\":{\"errors\":{\"AddressesMustDiffer()\":[{\"notice\":\"Error thrown when argument value in setter is same as previous value\"}],\"FundsTransferIsPaused()\":[{\"notice\":\"Error thrown when funds transfer is paused\"}],\"InsufficientBalance(uint256,uint256)\":[{\"notice\":\"Error thrown when PrimeLiquidityProvider's balance is less than sweep amount\"}],\"InvalidArguments()\":[{\"notice\":\"Thrown when arguments are passed are invalid\"}],\"InvalidBlocksPerYear()\":[{\"notice\":\"Thrown when blocks per year is invalid\"}],\"InvalidCaller()\":[{\"notice\":\"Thrown when caller is not the desired caller\"}],\"InvalidDistributionSpeed(uint256,uint256)\":[{\"notice\":\"Thrown when distribution speed is greater than maxTokenDistributionSpeeds[tokenAddress]\"}],\"InvalidTimeBasedConfiguration()\":[{\"notice\":\"Thrown when time based but blocks per year is provided\"}],\"MaxLoopsLimitExceeded(uint256,uint256)\":[{\"notice\":\"Thrown an error on maxLoopsLimit exceeds for any loop\"}],\"TokenAlreadyInitialized(address)\":[{\"notice\":\"Thrown when token is initialized\"}],\"TokenNotInitialized(address)\":[{\"notice\":\"Error thrown when accrueTokens is called for an uninitialized token\"}],\"Unauthorized(address,address,string)\":[{\"notice\":\"Thrown when the action is prohibited by AccessControlManager\"}]},\"events\":{\"MaxLoopsLimitUpdated(uint256,uint256)\":{\"notice\":\"Emitted when max loops limit is set\"},\"MaxTokenDistributionSpeedUpdated(address,uint256,uint256)\":{\"notice\":\"Emitted when a new max distribution speed for token is set\"},\"NewAccessControlManager(address,address)\":{\"notice\":\"Emitted when access control manager contract address is changed\"},\"PrimeTokenUpdated(address,address)\":{\"notice\":\"Emitted when prime token contract address is changed\"},\"SweepToken(address,address,uint256)\":{\"notice\":\"Emitted on sweep token success\"},\"TokenDistributionInitialized(address)\":{\"notice\":\"Emitted when a token distribution is initialized\"},\"TokenDistributionSpeedUpdated(address,uint256,uint256)\":{\"notice\":\"Emitted when a new token distribution speed is set\"},\"TokenTransferredToPrime(address,uint256)\":{\"notice\":\"Emitted when token is transferred to the prime contract\"},\"TokensAccrued(address,uint256)\":{\"notice\":\"Emitted when distribution state(Index and block or second) is updated\"}},\"kind\":\"user\",\"methods\":{\"DEFAULT_MAX_DISTRIBUTION_SPEED()\":{\"notice\":\"The default max token distribution speed\"},\"accessControlManager()\":{\"notice\":\"Returns the address of the access control manager contract\"},\"accrueTokens(address)\":{\"notice\":\"Accrue token by updating the distribution state\"},\"blocksOrSecondsPerYear()\":{\"notice\":\"Stores blocksPerYear if isTimeBased is true else secondsPerYear is stored\"},\"getEffectiveDistributionSpeed(address)\":{\"notice\":\"Get rewards per block or second for token\"},\"initialize(address,address[],uint256[],uint256[],uint256)\":{\"notice\":\"PrimeLiquidityProvider initializer\"},\"initializeTokens(address[])\":{\"notice\":\"Initialize the distribution of the token\"},\"isTimeBased()\":{\"notice\":\"Acknowledges if a contract is time based or not\"},\"lastAccruedBlock(address)\":{\"notice\":\"Get the last accrued block or second for token\"},\"lastAccruedBlockOrSecond(address)\":{\"notice\":\"The block or second till which rewards are distributed for an asset\"},\"maxTokenDistributionSpeeds(address)\":{\"notice\":\"The max token distribution speed for token\"},\"pauseFundsTransfer()\":{\"notice\":\"Pause fund transfer of tokens to Prime contract\"},\"prime()\":{\"notice\":\"Address of the Prime contract\"},\"releaseFunds(address)\":{\"notice\":\"Claim all the token accrued till last block or second\"},\"resumeFundsTransfer()\":{\"notice\":\"Resume fund transfer of tokens to Prime contract\"},\"setAccessControlManager(address)\":{\"notice\":\"Sets the address of AccessControlManager\"},\"setMaxLoopsLimit(uint256)\":{\"notice\":\"Set the limit for the loops can iterate to avoid the DOS\"},\"setMaxTokensDistributionSpeed(address[],uint256[])\":{\"notice\":\"Set max distribution speed for token (amount of maximum token distribute per block or second)\"},\"setPrimeToken(address)\":{\"notice\":\"Set the prime token contract address\"},\"setTokensDistributionSpeed(address[],uint256[])\":{\"notice\":\"Set distribution speed (amount of token distribute per block or second)\"},\"sweepToken(address,address,uint256)\":{\"notice\":\"A public function to sweep accidental ERC-20 transfers to this contract. Tokens are sent to user\"},\"tokenAmountAccrued(address)\":{\"notice\":\"Get the tokens accrued\"},\"tokenDistributionSpeeds(address)\":{\"notice\":\"The rate at which token is distributed (per block or second)\"}},\"notice\":\"PrimeLiquidityProvider is used to fund Prime\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/Tokens/Prime/PrimeLiquidityProvider.sol\":\"PrimeLiquidityProvider\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./OwnableUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n address private _pendingOwner;\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n function __Ownable2Step_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n _pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n delete _pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n require(pendingOwner() == sender, \\\"Ownable2Step: caller is not the new owner\\\");\\n _transferOwnership(sender);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x9140dabc466abab21b48b72dbda26736b1183a310d0e677d3719d201df026510\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x359a1ab89b46b9aba7bcad3fb651924baf4893d15153049b9976b0fc9be1358e\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized != type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n function __Pausable_init() internal onlyInitializing {\\n __Pausable_init_unchained();\\n }\\n\\n function __Pausable_init_unchained() internal onlyInitializing {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n _requireNotPaused();\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n _requirePaused();\\n _;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Throws if the contract is paused.\\n */\\n function _requireNotPaused() internal view virtual {\\n require(!paused(), \\\"Pausable: paused\\\");\\n }\\n\\n /**\\n * @dev Throws if the contract is not paused.\\n */\\n function _requirePaused() internal view virtual {\\n require(paused(), \\\"Pausable: not paused\\\");\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0xad32f6821f860555f9530902a65b54203a4f5db2117f4384ae47a124958078db\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x0e1f0f5f62f67a881cd1a9597acbc0a5e4071f3c2c10449a183b922ae7272e3f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n *\\n * ==== Security Considerations\\n *\\n * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature\\n * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be\\n * considered as an intention to spend the allowance in any specific way. The second is that because permits have\\n * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should\\n * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be\\n * generally recommended is:\\n *\\n * ```solidity\\n * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {\\n * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}\\n * doThing(..., value);\\n * }\\n *\\n * function doThing(..., uint256 value) public {\\n * token.safeTransferFrom(msg.sender, address(this), value);\\n * ...\\n * }\\n * ```\\n *\\n * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of\\n * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also\\n * {SafeERC20-safeTransferFrom}).\\n *\\n * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so\\n * contracts should have entry points that don't rely on permit.\\n */\\ninterface IERC20PermitUpgradeable {\\n /**\\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\\n * given ``owner``'s signed approval.\\n *\\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\\n * ordering also apply here.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `deadline` must be a timestamp in the future.\\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\\n * over the EIP712-formatted function arguments.\\n * - the signature must use ``owner``'s current nonce (see {nonces}).\\n *\\n * For more information on the signature format, see the\\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\\n * section].\\n *\\n * CAUTION: See Security Considerations above.\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n /**\\n * @dev Returns the current nonce for `owner`. This value must be\\n * included whenever a signature is generated for {permit}.\\n *\\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\\n * prevents a signature from being used multiple times.\\n */\\n function nonces(address owner) external view returns (uint256);\\n\\n /**\\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\\n */\\n // solhint-disable-next-line func-name-mixedcase\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x07e881de3b9f6d2c07909f193f24b96c7fe4ea60013260f3f25aecd8bab3c2f8\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\nimport \\\"../extensions/IERC20PermitUpgradeable.sol\\\";\\nimport \\\"../../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20Upgradeable {\\n using AddressUpgradeable for address;\\n\\n /**\\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n /**\\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\\n */\\n function safeTransferFrom(IERC20Upgradeable token, address from, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(IERC20Upgradeable token, address spender, uint256 value) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n /**\\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\\n }\\n\\n /**\\n * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\\n }\\n }\\n\\n /**\\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\\n * to be set to zero before setting it to a non-zero value, such as USDT.\\n */\\n function forceApprove(IERC20Upgradeable token, address spender, uint256 value) internal {\\n bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\\n\\n if (!_callOptionalReturnBool(token, approvalCall)) {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\\n _callOptionalReturn(token, approvalCall);\\n }\\n }\\n\\n /**\\n * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\\n * Revert on invalid signature.\\n */\\n function safePermit(\\n IERC20PermitUpgradeable token,\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n uint256 nonceBefore = token.nonces(owner);\\n token.permit(owner, spender, value, deadline, v, r, s);\\n uint256 nonceAfter = token.nonces(owner);\\n require(nonceAfter == nonceBefore + 1, \\\"SafeERC20: permit did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n require(returndata.length == 0 || abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n *\\n * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\\n */\\n function _callOptionalReturnBool(IERC20Upgradeable token, bytes memory data) private returns (bool) {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\\n // and not revert is the subcall reverts.\\n\\n (bool success, bytes memory returndata) = address(token).call(data);\\n return\\n success && (returndata.length == 0 || abi.decode(returndata, (bool))) && AddressUpgradeable.isContract(address(token));\\n }\\n}\\n\",\"keccak256\":\"0x23b997be73d3dd46885262704f0f8cfc7273fdadfe303d37969a9561373972b5\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x75097e35253e7fb282ee4d7f27a80eaacfa759923185bf17302a89cbc059c5ef\",\"license\":\"MIT\"},\"@openzeppelin/contracts/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.25;\\n\\nimport \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\n\\nimport \\\"./IAccessControlManagerV8.sol\\\";\\n\\n/**\\n * @title AccessControlledV8\\n * @author Venus\\n * @notice This contract is helper between access control manager and actual contract. This contract further inherited by other contract (using solidity 0.8.13)\\n * to integrate access controlled mechanism. It provides initialise methods and verifying access methods.\\n */\\nabstract contract AccessControlledV8 is Initializable, Ownable2StepUpgradeable {\\n /// @notice Access control manager contract\\n IAccessControlManagerV8 private _accessControlManager;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n\\n /// @notice Emitted when access control manager contract address is changed\\n event NewAccessControlManager(address oldAccessControlManager, address newAccessControlManager);\\n\\n /// @notice Thrown when the action is prohibited by AccessControlManager\\n error Unauthorized(address sender, address calledContract, string methodSignature);\\n\\n function __AccessControlled_init(address accessControlManager_) internal onlyInitializing {\\n __Ownable2Step_init();\\n __AccessControlled_init_unchained(accessControlManager_);\\n }\\n\\n function __AccessControlled_init_unchained(address accessControlManager_) internal onlyInitializing {\\n _setAccessControlManager(accessControlManager_);\\n }\\n\\n /**\\n * @notice Sets the address of AccessControlManager\\n * @dev Admin function to set address of AccessControlManager\\n * @param accessControlManager_ The new address of the AccessControlManager\\n * @custom:event Emits NewAccessControlManager event\\n * @custom:access Only Governance\\n */\\n function setAccessControlManager(address accessControlManager_) external onlyOwner {\\n _setAccessControlManager(accessControlManager_);\\n }\\n\\n /**\\n * @notice Returns the address of the access control manager contract\\n */\\n function accessControlManager() external view returns (IAccessControlManagerV8) {\\n return _accessControlManager;\\n }\\n\\n /**\\n * @dev Internal function to set address of AccessControlManager\\n * @param accessControlManager_ The new address of the AccessControlManager\\n */\\n function _setAccessControlManager(address accessControlManager_) internal {\\n require(address(accessControlManager_) != address(0), \\\"invalid acess control manager address\\\");\\n address oldAccessControlManager = address(_accessControlManager);\\n _accessControlManager = IAccessControlManagerV8(accessControlManager_);\\n emit NewAccessControlManager(oldAccessControlManager, accessControlManager_);\\n }\\n\\n /**\\n * @notice Reverts if the call is not allowed by AccessControlManager\\n * @param signature Method signature\\n */\\n function _checkAccessAllowed(string memory signature) internal view {\\n bool isAllowedToCall = _accessControlManager.isAllowedToCall(msg.sender, signature);\\n\\n if (!isAllowedToCall) {\\n revert Unauthorized(msg.sender, address(this), signature);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x0dcf283925f4dddc23ca0ee71d2cb96a9dd6e4cf08061b69fde1697ea39dc514\",\"license\":\"BSD-3-Clause\"},\"@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity ^0.8.25;\\n\\nimport \\\"@openzeppelin/contracts/access/IAccessControl.sol\\\";\\n\\n/**\\n * @title IAccessControlManagerV8\\n * @author Venus\\n * @notice Interface implemented by the `AccessControlManagerV8` contract.\\n */\\ninterface IAccessControlManagerV8 is IAccessControl {\\n function giveCallPermission(address contractAddress, string calldata functionSig, address accountToPermit) external;\\n\\n function revokeCallPermission(\\n address contractAddress,\\n string calldata functionSig,\\n address accountToRevoke\\n ) external;\\n\\n function isAllowedToCall(address account, string calldata functionSig) external view returns (bool);\\n\\n function hasPermission(\\n address account,\\n address contractAddress,\\n string calldata functionSig\\n ) external view returns (bool);\\n}\\n\",\"keccak256\":\"0xaa29b098440d0b3a131c5ecdf25ce548790c1b5ac7bf9b5c0264b6af6f7a1e0b\",\"license\":\"BSD-3-Clause\"},\"@venusprotocol/solidity-utilities/contracts/MaxLoopsLimitHelper.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.25;\\n\\n/**\\n * @title MaxLoopsLimitHelper\\n * @author Venus\\n * @notice Abstract contract used to avoid collection with too many items that would generate gas errors and DoS.\\n */\\nabstract contract MaxLoopsLimitHelper {\\n // Limit for the loops to avoid the DOS\\n uint256 public maxLoopsLimit;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n\\n /// @notice Emitted when max loops limit is set\\n event MaxLoopsLimitUpdated(uint256 oldMaxLoopsLimit, uint256 newmaxLoopsLimit);\\n\\n /// @notice Thrown an error on maxLoopsLimit exceeds for any loop\\n error MaxLoopsLimitExceeded(uint256 loopsLimit, uint256 requiredLoops);\\n\\n /**\\n * @notice Set the limit for the loops can iterate to avoid the DOS\\n * @param limit Limit for the max loops can execute at a time\\n */\\n function _setMaxLoopsLimit(uint256 limit) internal {\\n require(limit > maxLoopsLimit, \\\"Comptroller: Invalid maxLoopsLimit\\\");\\n\\n uint256 oldMaxLoopsLimit = maxLoopsLimit;\\n maxLoopsLimit = limit;\\n\\n emit MaxLoopsLimitUpdated(oldMaxLoopsLimit, limit);\\n }\\n\\n /**\\n * @notice Compare the maxLoopsLimit with number of the times loop iterate\\n * @param len Length of the loops iterate\\n * @custom:error MaxLoopsLimitExceeded error is thrown when loops length exceeds maxLoopsLimit\\n */\\n function _ensureMaxLoops(uint256 len) internal view {\\n if (len > maxLoopsLimit) {\\n revert MaxLoopsLimitExceeded(maxLoopsLimit, len);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4c25e30635485d162177effa384eee51768b0141a567a0da16ff6ad673274166\",\"license\":\"BSD-3-Clause\"},\"@venusprotocol/solidity-utilities/contracts/TimeManagerV8.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.25;\\n\\nimport { SECONDS_PER_YEAR } from \\\"./constants.sol\\\";\\n\\nabstract contract TimeManagerV8 {\\n /// @notice Stores blocksPerYear if isTimeBased is true else secondsPerYear is stored\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n uint256 public immutable blocksOrSecondsPerYear;\\n\\n /// @notice Acknowledges if a contract is time based or not\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n bool public immutable isTimeBased;\\n\\n /// @notice Stores the current block timestamp or block number depending on isTimeBased\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n function() view returns (uint256) private immutable _getCurrentSlot;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[48] private __gap;\\n\\n /// @notice Thrown when blocks per year is invalid\\n error InvalidBlocksPerYear();\\n\\n /// @notice Thrown when time based but blocks per year is provided\\n error InvalidTimeBasedConfiguration();\\n\\n /**\\n * @param timeBased_ A boolean indicating whether the contract is based on time or block\\n * If timeBased is true than blocksPerYear_ param is ignored as blocksOrSecondsPerYear is set to SECONDS_PER_YEAR\\n * @param blocksPerYear_ The number of blocks per year\\n * @custom:error InvalidBlocksPerYear is thrown if blocksPerYear entered is zero and timeBased is false\\n * @custom:error InvalidTimeBasedConfiguration is thrown if blocksPerYear entered is non zero and timeBased is true\\n * @custom:oz-upgrades-unsafe-allow constructor\\n */\\n constructor(bool timeBased_, uint256 blocksPerYear_) {\\n if (!timeBased_ && blocksPerYear_ == 0) {\\n revert InvalidBlocksPerYear();\\n }\\n\\n if (timeBased_ && blocksPerYear_ != 0) {\\n revert InvalidTimeBasedConfiguration();\\n }\\n\\n isTimeBased = timeBased_;\\n blocksOrSecondsPerYear = timeBased_ ? SECONDS_PER_YEAR : blocksPerYear_;\\n _getCurrentSlot = timeBased_ ? _getBlockTimestamp : _getBlockNumber;\\n }\\n\\n /**\\n * @dev Function to simply retrieve block number or block timestamp\\n * @return Current block number or block timestamp\\n */\\n function getBlockNumberOrTimestamp() public view virtual returns (uint256) {\\n return _getCurrentSlot();\\n }\\n\\n /**\\n * @dev Returns the current timestamp in seconds\\n * @return The current timestamp\\n */\\n function _getBlockTimestamp() private view returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /**\\n * @dev Returns the current block number\\n * @return The current block number\\n */\\n function _getBlockNumber() private view returns (uint256) {\\n return block.number;\\n }\\n}\\n\",\"keccak256\":\"0x57a2bbb9b8e02b1c0a5c0e305fef1328a22db56c3d4b148c362010a6e767243c\",\"license\":\"BSD-3-Clause\"},\"@venusprotocol/solidity-utilities/contracts/constants.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity ^0.8.25;\\n\\n/// @dev Base unit for computations, usually used in scaling (multiplications, divisions)\\nuint256 constant EXP_SCALE = 1e18;\\n\\n/// @dev A unit (literal one) in EXP_SCALE, usually used in additions/subtractions\\nuint256 constant MANTISSA_ONE = EXP_SCALE;\\n\\n/// @dev The approximate number of seconds per year\\nuint256 constant SECONDS_PER_YEAR = 31_536_000;\\n\",\"keccak256\":\"0x14de93ead464da249af31bea0e3bcfb62ec693bea3475fb4d90f055ac81dc5eb\",\"license\":\"BSD-3-Clause\"},\"contracts/Tokens/Prime/Interfaces/IPrimeLiquidityProvider.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity ^0.8.25;\\n\\nimport { IERC20Upgradeable } from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\\\";\\n\\n/**\\n * @title IPrimeLiquidityProvider\\n * @author Venus\\n * @notice Interface for PrimeLiquidityProvider\\n */\\ninterface IPrimeLiquidityProvider {\\n /**\\n * @notice Initialize the distribution of the token\\n * @param tokens_ Array of addresses of the tokens to be intialized\\n */\\n function initializeTokens(address[] calldata tokens_) external;\\n\\n /**\\n * @notice Pause fund transfer of tokens to Prime contract\\n */\\n function pauseFundsTransfer() external;\\n\\n /**\\n * @notice Resume fund transfer of tokens to Prime contract\\n */\\n function resumeFundsTransfer() external;\\n\\n /**\\n * @notice Set distribution speed (amount of token distribute per block or second)\\n * @param tokens_ Array of addresses of the tokens\\n * @param distributionSpeeds_ New distribution speeds for tokens\\n */\\n function setTokensDistributionSpeed(address[] calldata tokens_, uint256[] calldata distributionSpeeds_) external;\\n\\n /**\\n * @notice Set max distribution speed for token (amount of maximum token distribute per block or second)\\n * @param tokens_ Array of addresses of the tokens\\n * @param maxDistributionSpeeds_ New distribution speeds for tokens\\n */\\n function setMaxTokensDistributionSpeed(\\n address[] calldata tokens_,\\n uint256[] calldata maxDistributionSpeeds_\\n ) external;\\n\\n /**\\n * @notice Set the prime token contract address\\n * @param prime_ The new address of the prime token contract\\n */\\n function setPrimeToken(address prime_) external;\\n\\n /**\\n * @notice Claim all the token accrued till last block or second\\n * @param token_ The token to release to the Prime contract\\n */\\n function releaseFunds(address token_) external;\\n\\n /**\\n * @notice A public function to sweep accidental ERC-20 transfers to this contract. Tokens are sent to user\\n * @param token_ The address of the ERC-20 token to sweep\\n * @param to_ The address of the recipient\\n * @param amount_ The amount of tokens needs to transfer\\n */\\n function sweepToken(IERC20Upgradeable token_, address to_, uint256 amount_) external;\\n\\n /**\\n * @notice Accrue token by updating the distribution state\\n * @param token_ Address of the token\\n */\\n function accrueTokens(address token_) external;\\n\\n /**\\n * @notice Set the limit for the loops can iterate to avoid the DOS\\n * @param loopsLimit Limit for the max loops can execute at a time\\n */\\n function setMaxLoopsLimit(uint256 loopsLimit) external;\\n\\n /**\\n * @notice Get rewards per block or second for token\\n * @param token_ Address of the token\\n * @return speed returns the per block or second reward\\n */\\n function getEffectiveDistributionSpeed(address token_) external view returns (uint256);\\n\\n /**\\n * @notice Get the amount of tokens accrued\\n * @param token_ Address of the token\\n * @return Amount of tokens that are accrued\\n */\\n function tokenAmountAccrued(address token_) external view returns (uint256);\\n}\\n\",\"keccak256\":\"0x4dca0341931008bcd81de18e627c2d0cd4f9d0be67db4d8f0d678d11ba0d330f\",\"license\":\"BSD-3-Clause\"},\"contracts/Tokens/Prime/PrimeLiquidityProvider.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.25;\\n\\nimport { PrimeLiquidityProviderStorageV1 } from \\\"./PrimeLiquidityProviderStorage.sol\\\";\\nimport { SafeERC20Upgradeable, IERC20Upgradeable } from \\\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\\\";\\nimport { AccessControlledV8 } from \\\"@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol\\\";\\nimport { PausableUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\\\";\\nimport { IPrimeLiquidityProvider } from \\\"./Interfaces/IPrimeLiquidityProvider.sol\\\";\\nimport { MaxLoopsLimitHelper } from \\\"@venusprotocol/solidity-utilities/contracts/MaxLoopsLimitHelper.sol\\\";\\nimport { TimeManagerV8 } from \\\"@venusprotocol/solidity-utilities/contracts/TimeManagerV8.sol\\\";\\n\\n/**\\n * @title PrimeLiquidityProvider\\n * @author Venus\\n * @notice PrimeLiquidityProvider is used to fund Prime\\n */\\ncontract PrimeLiquidityProvider is\\n IPrimeLiquidityProvider,\\n AccessControlledV8,\\n PausableUpgradeable,\\n MaxLoopsLimitHelper,\\n PrimeLiquidityProviderStorageV1,\\n TimeManagerV8\\n{\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n\\n /// @notice The default max token distribution speed\\n uint256 public constant DEFAULT_MAX_DISTRIBUTION_SPEED = 1e18;\\n\\n /// @notice Emitted when a token distribution is initialized\\n event TokenDistributionInitialized(address indexed token);\\n\\n /// @notice Emitted when a new token distribution speed is set\\n event TokenDistributionSpeedUpdated(address indexed token, uint256 oldSpeed, uint256 newSpeed);\\n\\n /// @notice Emitted when a new max distribution speed for token is set\\n event MaxTokenDistributionSpeedUpdated(address indexed token, uint256 oldSpeed, uint256 newSpeed);\\n\\n /// @notice Emitted when prime token contract address is changed\\n event PrimeTokenUpdated(address indexed oldPrimeToken, address indexed newPrimeToken);\\n\\n /// @notice Emitted when distribution state(Index and block or second) is updated\\n event TokensAccrued(address indexed token, uint256 amount);\\n\\n /// @notice Emitted when token is transferred to the prime contract\\n event TokenTransferredToPrime(address indexed token, uint256 amount);\\n\\n /// @notice Emitted on sweep token success\\n event SweepToken(address indexed token, address indexed to, uint256 sweepAmount);\\n\\n /// @notice Thrown when arguments are passed are invalid\\n error InvalidArguments();\\n\\n /// @notice Thrown when distribution speed is greater than maxTokenDistributionSpeeds[tokenAddress]\\n error InvalidDistributionSpeed(uint256 speed, uint256 maxSpeed);\\n\\n /// @notice Thrown when caller is not the desired caller\\n error InvalidCaller();\\n\\n /// @notice Thrown when token is initialized\\n error TokenAlreadyInitialized(address token);\\n\\n ///@notice Error thrown when PrimeLiquidityProvider's balance is less than sweep amount\\n error InsufficientBalance(uint256 sweepAmount, uint256 balance);\\n\\n /// @notice Error thrown when funds transfer is paused\\n error FundsTransferIsPaused();\\n\\n /// @notice Error thrown when accrueTokens is called for an uninitialized token\\n error TokenNotInitialized(address token_);\\n\\n /// @notice Error thrown when argument value in setter is same as previous value\\n error AddressesMustDiffer();\\n\\n /**\\n * @notice Compares two addresses to ensure they are different\\n * @param oldAddress The original address to compare\\n * @param newAddress The new address to compare\\n */\\n modifier compareAddress(address oldAddress, address newAddress) {\\n if (newAddress == oldAddress) {\\n revert AddressesMustDiffer();\\n }\\n _;\\n }\\n\\n /**\\n * @notice Prime Liquidity Provider constructor\\n * @param _timeBased A boolean indicating whether the contract is based on time or block.\\n * @param _blocksPerYear total blocks per year\\n */\\n /// @custom:oz-upgrades-unsafe-allow constructor\\n constructor(bool _timeBased, uint256 _blocksPerYear) TimeManagerV8(_timeBased, _blocksPerYear) {\\n _disableInitializers();\\n }\\n\\n /**\\n * @notice PrimeLiquidityProvider initializer\\n * @dev Initializes the deployer to owner\\n * @param accessControlManager_ AccessControlManager contract address\\n * @param tokens_ Array of addresses of the tokens\\n * @param distributionSpeeds_ New distribution speeds for tokens\\n * @param loopsLimit_ Maximum number of loops allowed in a single transaction\\n * @custom:error Throw InvalidArguments on different length of tokens and speeds array\\n */\\n function initialize(\\n address accessControlManager_,\\n address[] calldata tokens_,\\n uint256[] calldata distributionSpeeds_,\\n uint256[] calldata maxDistributionSpeeds_,\\n uint256 loopsLimit_\\n ) external initializer {\\n _ensureZeroAddress(accessControlManager_);\\n\\n __AccessControlled_init(accessControlManager_);\\n __Pausable_init();\\n _setMaxLoopsLimit(loopsLimit_);\\n\\n uint256 numTokens = tokens_.length;\\n _ensureMaxLoops(numTokens);\\n\\n if ((numTokens != distributionSpeeds_.length) || (numTokens != maxDistributionSpeeds_.length)) {\\n revert InvalidArguments();\\n }\\n\\n for (uint256 i; i < numTokens; ) {\\n _initializeToken(tokens_[i]);\\n _setMaxTokenDistributionSpeed(tokens_[i], maxDistributionSpeeds_[i]);\\n _setTokenDistributionSpeed(tokens_[i], distributionSpeeds_[i]);\\n\\n unchecked {\\n ++i;\\n }\\n }\\n }\\n\\n /**\\n * @notice Initialize the distribution of the token\\n * @param tokens_ Array of addresses of the tokens to be intialized\\n * @custom:access Only Governance\\n */\\n function initializeTokens(address[] calldata tokens_) external onlyOwner {\\n uint256 tokensLength = tokens_.length;\\n _ensureMaxLoops(tokensLength);\\n\\n for (uint256 i; i < tokensLength; ) {\\n _initializeToken(tokens_[i]);\\n\\n unchecked {\\n ++i;\\n }\\n }\\n }\\n\\n /**\\n * @notice Pause fund transfer of tokens to Prime contract\\n * @custom:access Controlled by ACM\\n */\\n function pauseFundsTransfer() external {\\n _checkAccessAllowed(\\\"pauseFundsTransfer()\\\");\\n _pause();\\n }\\n\\n /**\\n * @notice Resume fund transfer of tokens to Prime contract\\n * @custom:access Controlled by ACM\\n */\\n function resumeFundsTransfer() external {\\n _checkAccessAllowed(\\\"resumeFundsTransfer()\\\");\\n _unpause();\\n }\\n\\n /**\\n * @notice Set distribution speed (amount of token distribute per block or second)\\n * @param tokens_ Array of addresses of the tokens\\n * @param distributionSpeeds_ New distribution speeds for tokens\\n * @custom:access Controlled by ACM\\n * @custom:error Throw InvalidArguments on different length of tokens and speeds array\\n */\\n function setTokensDistributionSpeed(address[] calldata tokens_, uint256[] calldata distributionSpeeds_) external {\\n _checkAccessAllowed(\\\"setTokensDistributionSpeed(address[],uint256[])\\\");\\n uint256 numTokens = tokens_.length;\\n _ensureMaxLoops(numTokens);\\n\\n if (numTokens != distributionSpeeds_.length) {\\n revert InvalidArguments();\\n }\\n\\n for (uint256 i; i < numTokens; ) {\\n _ensureTokenInitialized(tokens_[i]);\\n _setTokenDistributionSpeed(tokens_[i], distributionSpeeds_[i]);\\n\\n unchecked {\\n ++i;\\n }\\n }\\n }\\n\\n /**\\n * @notice Set max distribution speed for token (amount of maximum token distribute per block or second)\\n * @param tokens_ Array of addresses of the tokens\\n * @param maxDistributionSpeeds_ New distribution speeds for tokens\\n * @custom:access Controlled by ACM\\n * @custom:error Throw InvalidArguments on different length of tokens and speeds array\\n */\\n function setMaxTokensDistributionSpeed(\\n address[] calldata tokens_,\\n uint256[] calldata maxDistributionSpeeds_\\n ) external {\\n _checkAccessAllowed(\\\"setMaxTokensDistributionSpeed(address[],uint256[])\\\");\\n uint256 numTokens = tokens_.length;\\n _ensureMaxLoops(numTokens);\\n\\n if (numTokens != maxDistributionSpeeds_.length) {\\n revert InvalidArguments();\\n }\\n\\n for (uint256 i; i < numTokens; ) {\\n _setMaxTokenDistributionSpeed(tokens_[i], maxDistributionSpeeds_[i]);\\n\\n unchecked {\\n ++i;\\n }\\n }\\n }\\n\\n /**\\n * @notice Set the prime token contract address\\n * @param prime_ The new address of the prime token contract\\n * @custom:event Emits PrimeTokenUpdated event\\n * @custom:access Only owner\\n */\\n function setPrimeToken(address prime_) external onlyOwner compareAddress(prime, prime_) {\\n _ensureZeroAddress(prime_);\\n\\n emit PrimeTokenUpdated(prime, prime_);\\n prime = prime_;\\n }\\n\\n /**\\n * @notice Set the limit for the loops can iterate to avoid the DOS\\n * @param loopsLimit Limit for the max loops can execute at a time\\n * @custom:event Emits MaxLoopsLimitUpdated event on success\\n * @custom:access Controlled by ACM\\n */\\n function setMaxLoopsLimit(uint256 loopsLimit) external {\\n _checkAccessAllowed(\\\"setMaxLoopsLimit(uint256)\\\");\\n _setMaxLoopsLimit(loopsLimit);\\n }\\n\\n /**\\n * @notice Claim all the token accrued till last block or second\\n * @param token_ The token to release to the Prime contract\\n * @custom:event Emits TokenTransferredToPrime event\\n * @custom:error Throw InvalidArguments on Zero address(token)\\n * @custom:error Throw FundsTransferIsPaused is paused\\n * @custom:error Throw InvalidCaller if the sender is not the Prime contract\\n */\\n function releaseFunds(address token_) external {\\n address _prime = prime;\\n if (msg.sender != _prime) revert InvalidCaller();\\n if (paused()) {\\n revert FundsTransferIsPaused();\\n }\\n\\n accrueTokens(token_);\\n uint256 accruedAmount = _tokenAmountAccrued[token_];\\n delete _tokenAmountAccrued[token_];\\n\\n emit TokenTransferredToPrime(token_, accruedAmount);\\n\\n IERC20Upgradeable(token_).safeTransfer(_prime, accruedAmount);\\n }\\n\\n /**\\n * @notice A public function to sweep accidental ERC-20 transfers to this contract. Tokens are sent to user\\n * @param token_ The address of the ERC-20 token to sweep\\n * @param to_ The address of the recipient\\n * @param amount_ The amount of tokens needs to transfer\\n * @custom:event Emits SweepToken event\\n * @custom:error Throw InsufficientBalance if amount_ is greater than the available balance of the token in the contract\\n * @custom:access Only Governance\\n */\\n function sweepToken(IERC20Upgradeable token_, address to_, uint256 amount_) external onlyOwner {\\n uint256 balance = token_.balanceOf(address(this));\\n if (amount_ > balance) {\\n revert InsufficientBalance(amount_, balance);\\n }\\n\\n emit SweepToken(address(token_), to_, amount_);\\n\\n token_.safeTransfer(to_, amount_);\\n }\\n\\n /**\\n * @notice Get rewards per block or second for token\\n * @param token_ Address of the token\\n * @return speed returns the per block or second reward\\n */\\n function getEffectiveDistributionSpeed(address token_) external view returns (uint256) {\\n uint256 distributionSpeed = tokenDistributionSpeeds[token_];\\n uint256 balance = IERC20Upgradeable(token_).balanceOf(address(this));\\n uint256 accrued = _tokenAmountAccrued[token_];\\n\\n if (balance > accrued) {\\n return distributionSpeed;\\n }\\n\\n return 0;\\n }\\n\\n /**\\n * @notice Accrue token by updating the distribution state\\n * @param token_ Address of the token\\n * @custom:event Emits TokensAccrued event\\n */\\n function accrueTokens(address token_) public {\\n _ensureZeroAddress(token_);\\n\\n _ensureTokenInitialized(token_);\\n\\n uint256 blockNumberOrSecond = getBlockNumberOrTimestamp();\\n uint256 deltaBlocksOrSeconds;\\n unchecked {\\n deltaBlocksOrSeconds = blockNumberOrSecond - lastAccruedBlockOrSecond[token_];\\n }\\n\\n if (deltaBlocksOrSeconds != 0) {\\n uint256 distributionSpeed = tokenDistributionSpeeds[token_];\\n uint256 balance = IERC20Upgradeable(token_).balanceOf(address(this));\\n\\n uint256 balanceDiff = balance - _tokenAmountAccrued[token_];\\n if (distributionSpeed != 0 && balanceDiff != 0) {\\n uint256 accruedSinceUpdate = deltaBlocksOrSeconds * distributionSpeed;\\n uint256 tokenAccrued = (balanceDiff <= accruedSinceUpdate ? balanceDiff : accruedSinceUpdate);\\n\\n _tokenAmountAccrued[token_] += tokenAccrued;\\n emit TokensAccrued(token_, tokenAccrued);\\n }\\n\\n lastAccruedBlockOrSecond[token_] = blockNumberOrSecond;\\n }\\n }\\n\\n /**\\n * @notice Get the last accrued block or second for token\\n * @param token_ Address of the token\\n * @return blockNumberOrSecond returns the last accrued block or second\\n */\\n function lastAccruedBlock(address token_) external view returns (uint256) {\\n return lastAccruedBlockOrSecond[token_];\\n }\\n\\n /**\\n * @notice Get the tokens accrued\\n * @param token_ Address of the token\\n * @return returns the amount of accrued tokens for the token provided\\n */\\n function tokenAmountAccrued(address token_) external view returns (uint256) {\\n return _tokenAmountAccrued[token_];\\n }\\n\\n /**\\n * @notice Initialize the distribution of the token\\n * @param token_ Address of the token to be intialized\\n * @custom:event Emits TokenDistributionInitialized event\\n * @custom:error Throw TokenAlreadyInitialized if token is already initialized\\n */\\n function _initializeToken(address token_) internal {\\n _ensureZeroAddress(token_);\\n uint256 blockNumberOrSecond = getBlockNumberOrTimestamp();\\n uint256 initializedBlockOrSecond = lastAccruedBlockOrSecond[token_];\\n\\n if (initializedBlockOrSecond != 0) {\\n revert TokenAlreadyInitialized(token_);\\n }\\n\\n /*\\n * Update token state block number or second\\n */\\n lastAccruedBlockOrSecond[token_] = blockNumberOrSecond;\\n\\n emit TokenDistributionInitialized(token_);\\n }\\n\\n /**\\n * @notice Set distribution speed (amount of token distribute per block or second)\\n * @param token_ Address of the token\\n * @param distributionSpeed_ New distribution speed for token\\n * @custom:event Emits TokenDistributionSpeedUpdated event\\n * @custom:error Throw InvalidDistributionSpeed if speed is greater than max speed\\n */\\n function _setTokenDistributionSpeed(address token_, uint256 distributionSpeed_) internal {\\n uint256 maxDistributionSpeed = maxTokenDistributionSpeeds[token_];\\n if (maxDistributionSpeed == 0) {\\n maxTokenDistributionSpeeds[token_] = maxDistributionSpeed = DEFAULT_MAX_DISTRIBUTION_SPEED;\\n }\\n\\n if (distributionSpeed_ > maxDistributionSpeed) {\\n revert InvalidDistributionSpeed(distributionSpeed_, maxDistributionSpeed);\\n }\\n\\n uint256 oldDistributionSpeed = tokenDistributionSpeeds[token_];\\n if (oldDistributionSpeed != distributionSpeed_) {\\n // Distribution speed updated so let's update distribution state to ensure that\\n // 1. Token accrued properly for the old speed, and\\n // 2. Token accrued at the new speed starts after this block or second.\\n accrueTokens(token_);\\n\\n // Update speed\\n tokenDistributionSpeeds[token_] = distributionSpeed_;\\n\\n emit TokenDistributionSpeedUpdated(token_, oldDistributionSpeed, distributionSpeed_);\\n }\\n }\\n\\n /**\\n * @notice Set max distribution speed (amount of maximum token distribute per block or second)\\n * @param token_ Address of the token\\n * @param maxDistributionSpeed_ New max distribution speed for token\\n * @custom:event Emits MaxTokenDistributionSpeedUpdated event\\n */\\n function _setMaxTokenDistributionSpeed(address token_, uint256 maxDistributionSpeed_) internal {\\n emit MaxTokenDistributionSpeedUpdated(token_, tokenDistributionSpeeds[token_], maxDistributionSpeed_);\\n maxTokenDistributionSpeeds[token_] = maxDistributionSpeed_;\\n }\\n\\n /**\\n * @notice Revert on non initialized token\\n * @param token_ Token Address to be verified for\\n */\\n function _ensureTokenInitialized(address token_) internal view {\\n uint256 lastBlockOrSecondAccrued = lastAccruedBlockOrSecond[token_];\\n\\n if (lastBlockOrSecondAccrued == 0) {\\n revert TokenNotInitialized(token_);\\n }\\n }\\n\\n /**\\n * @notice Revert on zero address\\n * @param address_ Address to be verified\\n */\\n function _ensureZeroAddress(address address_) internal pure {\\n if (address_ == address(0)) {\\n revert InvalidArguments();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x8fa6826d33694827d2007991f36311a5c1e3a1bc9809e8e704e0de0ce26c83ff\",\"license\":\"BSD-3-Clause\"},\"contracts/Tokens/Prime/PrimeLiquidityProviderStorage.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.25;\\n\\n/**\\n * @title PrimeLiquidityProviderStorageV1\\n * @author Venus\\n * @notice Storage for Prime Liquidity Provider\\n */\\ncontract PrimeLiquidityProviderStorageV1 {\\n /// @notice Address of the Prime contract\\n address public prime;\\n\\n /// @notice The rate at which token is distributed (per block or second)\\n mapping(address => uint256) public tokenDistributionSpeeds;\\n\\n /// @notice The max token distribution speed for token\\n mapping(address => uint256) public maxTokenDistributionSpeeds;\\n\\n /// @notice The block or second till which rewards are distributed for an asset\\n mapping(address => uint256) public lastAccruedBlockOrSecond;\\n\\n /// @notice The token accrued but not yet transferred to prime contract\\n mapping(address => uint256) internal _tokenAmountAccrued;\\n\\n /// @dev This empty reserved space is put in place to allow future versions to add new\\n /// variables without shifting down storage in the inheritance chain.\\n uint256[45] private __gap;\\n}\\n\",\"keccak256\":\"0x697e43e039edbec0f14857b1d118fa55f5ca87b2b284dad0a363013d885e7c29\",\"license\":\"BSD-3-Clause\"}},\"version\":1}",
|
|
888
|
+
"bytecode": "0x60e060405234801561001057600080fd5b5060405161207a38038061207a83398101604081905261002f916101a3565b81818115801561003d575080155b1561005b576040516302723dfb60e21b815260040160405180910390fd5b81801561006757508015155b156100855760405163ae0fcab360e01b815260040160405180910390fd5b81151560a05281610096578061009c565b6301e133805b608052816100b3576100dc60201b610f61176100be565b6100e060201b610f65175b6001600160401b031660c052506100d590506100e4565b50506101d6565b4390565b4290565b600054610100900460ff16156101505760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146101a1576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b600080604083850312156101b657600080fd5b825180151581146101c657600080fd5b6020939093015192949293505050565b60805160a05160c051611e756102056000396000610cb7015260006103e8015260006102db0152611e756000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c806393920bf81161010f578063c7ad0895116100a2578063e30c397811610071578063e30c397814610439578063e458a65d1461044a578063f2fde38b1461045d578063fa7781ff1461047057600080fd5b8063c7ad0895146103e3578063c7ee005e1461040a578063ce82e8411461041e578063e1d146fb1461043157600080fd5b8063b4a0bdf3116100de578063b4a0bdf3146103ae578063bc2f7dc3146103bf578063be26317e146103c7578063c32094c7146103d057600080fd5b806393920bf8146103585780639d3cc5431461036b5780639dd5428e1461038c578063a666642b1461039b57600080fd5b8063637c9b4e1161018757806379ba50971161015657806379ba50971461030557806380d45a2d1461030d5780638aadf799146103205780638da5cb5b1461033357600080fd5b8063637c9b4e146102a257806364aff9ec146102c35780636857249c146102d6578063715018a6146102fd57600080fd5b80633131b065116101c35780633131b0651461024657806343bf7283146102595780635a38f84d146102835780635c975abb1461028b57600080fd5b80630e32cb86146101ea578063192e7a7b146101ff578063231f82bb14610212575b600080fd5b6101fd6101f83660046119e5565b61049a565b005b6101fd61020d3660046119e5565b6104ae565b6102336102203660046119e5565b61012e6020526000908152604090205481565b6040519081526020015b60405180910390f35b6101fd610254366004611a55565b610574565b6102336102673660046119e5565b6001600160a01b03166000908152610130602052604090205490565b6101fd6105ce565b60c95460ff165b604051901515815260200161023d565b6102336102b03660046119e5565b61012f6020526000908152604090205481565b6101fd6102d1366004611a97565b61060d565b6102337f000000000000000000000000000000000000000000000000000000000000000081565b6101fd610713565b6101fd610725565b6101fd61031b366004611ad8565b61079c565b6101fd61032e3660046119e5565b6107e3565b6033546001600160a01b03165b6040516001600160a01b03909116815260200161023d565b6101fd610366366004611af1565b610993565b6102336103793660046119e5565b6101306020526000908152604090205481565b610233670de0b6b3a764000081565b6102336103a93660046119e5565b610a41565b6097546001600160a01b0316610340565b6101fd610af8565b61023360fb5481565b6101fd6103de3660046119e5565b610b36565b6102927f000000000000000000000000000000000000000000000000000000000000000081565b61012d54610340906001600160a01b031681565b6101fd61042c366004611af1565b610bdb565b610233610cb0565b6065546001600160a01b0316610340565b6101fd610458366004611b5d565b610ce3565b6101fd61046b3660046119e5565b610ef0565b61023361047e3660046119e5565b6001600160a01b03166000908152610131602052604090205490565b6104a2610f69565b6104ab81610fc3565b50565b61012d546001600160a01b03163381146104db576040516348f5c3ed60e01b815260040160405180910390fd5b60c95460ff16156104ff5760405163f4eaf50160e01b815260040160405180910390fd5b610508826107e3565b6001600160a01b0382166000818152610131602090815260408083208054939055518281529192917fa80c25cc8959419d41ee66f93961c567b272badc10e0e117261a0ee31b55c312910160405180910390a261056f6001600160a01b0384168383611089565b505050565b61057c610f69565b80610586816110db565b60005b818110156105c8576105c08484838181106105a6576105a6611c11565b90506020020160208101906105bb91906119e5565b61110c565b600101610589565b50505050565b61060360405180604001604052806014815260200173706175736546756e64735472616e73666572282960601b8152506111ad565b61060b61124b565b565b610615610f69565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa15801561065c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106809190611c27565b9050808211156106b25760405163cf47918160e01b815260048101839052602481018290526044015b60405180910390fd5b826001600160a01b0316846001600160a01b03167f6d25be279134f4ecaa4770aff0c3d916d9e7c5ef37b65ed95dbdba411f5d54d5846040516106f791815260200190565b60405180910390a36105c86001600160a01b0385168484611089565b61071b610f69565b61060b60006112a5565b60655433906001600160a01b031681146107935760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084016106a9565b6104ab816112a5565b6107da6040518060400160405280601981526020017f7365744d61784c6f6f70734c696d69742875696e7432353629000000000000008152506111ad565b6104ab816112be565b6107ec81611358565b6107f58161137f565b60006107ff610cb0565b6001600160a01b0383166000908152610130602052604090205490915080820390821461056f576001600160a01b038316600081815261012e60205260408082205490516370a0823160e01b81523060048201529092906370a0823190602401602060405180830381865afa15801561087c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a09190611c27565b6001600160a01b03861660009081526101316020526040812054919250906108c89083611c56565b905082158015906108d857508015155b156109715760006108e98486611c6f565b90506000818311156108fb57816108fd565b825b6001600160a01b0389166000908152610131602052604081208054929350839290919061092b908490611c86565b90915550506040518181526001600160a01b038916907ffe854c4c4e633d5bb31aec1f39f01d9f8f01ad2e0212a0e576825ac986af05899060200160405180910390a250505b505050506001600160a01b039190911660009081526101306020526040902055565b6109b4604051806060016040528060328152602001611ddf603291396111ad565b826109be816110db565b8082146109de576040516317dbc4cb60e21b815260040160405180910390fd5b60005b81811015610a3957610a318686838181106109fe576109fe611c11565b9050602002016020810190610a1391906119e5565b858584818110610a2557610a25611c11565b905060200201356113c5565b6001016109e1565b505050505050565b6001600160a01b038116600081815261012e60205260408082205490516370a0823160e01b8152306004820152919290918391906370a0823190602401602060405180830381865afa158015610a9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abf9190611c27565b6001600160a01b0385166000908152610131602052604090205490915080821115610aed5750909392505050565b506000949350505050565b610b2e60405180604001604052806015815260200174726573756d6546756e64735472616e73666572282960581b8152506111ad565b61060b611436565b610b3e610f69565b61012d546001600160a01b039081169082908116829003610b72576040516380ae98f560e01b815260040160405180910390fd5b610b7b83611358565b61012d546040516001600160a01b038086169216907fcf4d0ac7a2f943727f0189dd1f26ba0cde29a1b14f222163ac866d4f5167db9490600090a3505061012d80546001600160a01b0319166001600160a01b0392909216919091179055565b610bfc6040518060600160405280602f8152602001611e11602f91396111ad565b82610c06816110db565b808214610c26576040516317dbc4cb60e21b815260040160405180910390fd5b60005b81811015610a3957610c60868683818110610c4657610c46611c11565b9050602002016020810190610c5b91906119e5565b61137f565b610ca8868683818110610c7557610c75611c11565b9050602002016020810190610c8a91906119e5565b858584818110610c9c57610c9c611c11565b9050602002013561146f565b600101610c29565b6000610cde7f000000000000000000000000000000000000000000000000000000000000000063ffffffff16565b905090565b600054610100900460ff1615808015610d035750600054600160ff909116105b80610d1d5750303b158015610d1d575060005460ff166001145b610d805760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016106a9565b6000805460ff191660011790558015610da3576000805461ff0019166101001790555b610dac89611358565b610db58961156a565b610dbd6115a2565b610dc6826112be565b86610dd0816110db565b8086141580610ddf5750808414155b15610dfd576040516317dbc4cb60e21b815260040160405180910390fd5b60005b81811015610e9d57610e1d8a8a838181106105a6576105a6611c11565b610e598a8a83818110610e3257610e32611c11565b9050602002016020810190610e4791906119e5565b878784818110610a2557610a25611c11565b610e958a8a83818110610e6e57610e6e611c11565b9050602002016020810190610e8391906119e5565b898984818110610c9c57610c9c611c11565b600101610e00565b50508015610ee5576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050505050565b610ef8610f69565b606580546001600160a01b0383166001600160a01b03199091168117909155610f296033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b4390565b4290565b6033546001600160a01b0316331461060b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106a9565b6001600160a01b0381166110275760405162461bcd60e51b815260206004820152602560248201527f696e76616c696420616365737320636f6e74726f6c206d616e61676572206164604482015264647265737360d81b60648201526084016106a9565b609780546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa091015b60405180910390a15050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261056f9084906115d1565b60fb548111156104ab5760fb5460405163792bfb1b60e11b81526004810191909152602481018290526044016106a9565b61111581611358565b600061111f610cb0565b6001600160a01b038316600090815261013060205260409020549091508015611166576040516303b51ceb60e11b81526001600160a01b03841660048201526024016106a9565b6001600160a01b03831660008181526101306020526040808220859055517fcf6e06116a82c1b468912f23d8bb1d126edbb21bc0864d6d5169e3be39b1a8189190a2505050565b6097546040516318c5e8ab60e01b81526000916001600160a01b0316906318c5e8ab906111e09033908690600401611ce9565b602060405180830381865afa1580156111fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112219190611d0d565b90508061124757333083604051634a3fa29360e01b81526004016106a993929190611d2f565b5050565b6112536116a6565b60c9805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112883390565b6040516001600160a01b03909116815260200160405180910390a1565b606580546001600160a01b03191690556104ab816116ec565b60fb54811161131a5760405162461bcd60e51b815260206004820152602260248201527f436f6d7074726f6c6c65723a20496e76616c6964206d61784c6f6f70734c696d6044820152611a5d60f21b60648201526084016106a9565b60fb80549082905560408051828152602081018490527fc2d09fef144f7c8a86f71ea459f8fc17f675768eb1ae369cbd77fb31d467aafa910161107d565b6001600160a01b0381166104ab576040516317dbc4cb60e21b815260040160405180910390fd5b6001600160a01b0381166000908152610130602052604081205490819003611247576040516341ea4b5960e01b81526001600160a01b03831660048201526024016106a9565b6001600160a01b038216600081815261012e60209081526040918290205482519081529081018490527f2351eb1e51f0d96d3d2dc08e3c9bddbdb2153580843330b57433c3bf5031be01910160405180910390a26001600160a01b03909116600090815261012f6020526040902055565b61143e61173e565b60c9805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611288565b6001600160a01b038216600090815261012f6020526040812054908190036114b957506001600160a01b038216600090815261012f60205260409020670de0b6b3a7640000908190555b808211156114e457604051631cf8f4dd60e11b815260048101839052602481018290526044016106a9565b6001600160a01b038316600090815261012e60205260409020548281146105c85761150e846107e3565b6001600160a01b038416600081815261012e602090815260409182902086905581518481529081018690527f2a139b40b9bf8c89ae5053746323912620b9d8ea3b076b098b1bc57702abf3a5910160405180910390a250505050565b600054610100900460ff166115915760405162461bcd60e51b81526004016106a990611d64565b611599611787565b6104ab816117b6565b600054610100900460ff166115c95760405162461bcd60e51b81526004016106a990611d64565b61060b6117dd565b6000611626826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118109092919063ffffffff16565b90508051600014806116475750808060200190518101906116479190611d0d565b61056f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106a9565b60c95460ff161561060b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016106a9565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60c95460ff1661060b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016106a9565b600054610100900460ff166117ae5760405162461bcd60e51b81526004016106a990611d64565b61060b611827565b600054610100900460ff166104a25760405162461bcd60e51b81526004016106a990611d64565b600054610100900460ff166118045760405162461bcd60e51b81526004016106a990611d64565b60c9805460ff19169055565b606061181f8484600085611857565b949350505050565b600054610100900460ff1661184e5760405162461bcd60e51b81526004016106a990611d64565b61060b336112a5565b6060824710156118b85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016106a9565b600080866001600160a01b031685876040516118d49190611daf565b60006040518083038185875af1925050503d8060008114611911576040519150601f19603f3d011682016040523d82523d6000602084013e611916565b606091505b509150915061192787838387611932565b979650505050505050565b606083156119a157825160000361199a576001600160a01b0385163b61199a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106a9565b508161181f565b61181f83838151156119b65781518083602001fd5b8060405162461bcd60e51b81526004016106a99190611dcb565b6001600160a01b03811681146104ab57600080fd5b6000602082840312156119f757600080fd5b8135611a02816119d0565b9392505050565b60008083601f840112611a1b57600080fd5b50813567ffffffffffffffff811115611a3357600080fd5b6020830191508360208260051b8501011115611a4e57600080fd5b9250929050565b60008060208385031215611a6857600080fd5b823567ffffffffffffffff811115611a7f57600080fd5b611a8b85828601611a09565b90969095509350505050565b600080600060608486031215611aac57600080fd5b8335611ab7816119d0565b92506020840135611ac7816119d0565b929592945050506040919091013590565b600060208284031215611aea57600080fd5b5035919050565b60008060008060408587031215611b0757600080fd5b843567ffffffffffffffff80821115611b1f57600080fd5b611b2b88838901611a09565b90965094506020870135915080821115611b4457600080fd5b50611b5187828801611a09565b95989497509550505050565b60008060008060008060008060a0898b031215611b7957600080fd5b8835611b84816119d0565b9750602089013567ffffffffffffffff80821115611ba157600080fd5b611bad8c838d01611a09565b909950975060408b0135915080821115611bc657600080fd5b611bd28c838d01611a09565b909750955060608b0135915080821115611beb57600080fd5b50611bf88b828c01611a09565b999c989b50969995989497949560800135949350505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611c3957600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115611c6957611c69611c40565b92915050565b8082028115828204841417611c6957611c69611c40565b80820180821115611c6957611c69611c40565b60005b83811015611cb4578181015183820152602001611c9c565b50506000910152565b60008151808452611cd5816020860160208601611c99565b601f01601f19169290920160200192915050565b6001600160a01b038316815260406020820181905260009061181f90830184611cbd565b600060208284031215611d1f57600080fd5b81518015158114611a0257600080fd5b6001600160a01b03848116825283166020820152606060408201819052600090611d5b90830184611cbd565b95945050505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60008251611dc1818460208701611c99565b9190910192915050565b602081526000611a026020830184611cbd56fe7365744d6178546f6b656e73446973747269627574696f6e537065656428616464726573735b5d2c75696e743235365b5d29736574546f6b656e73446973747269627574696f6e537065656428616464726573735b5d2c75696e743235365b5d29a26469706673582212200c9d46a058dbf3a96c4cd4ce25d3f05a6a88096bf609a1ae8de1fb215c20c2b864736f6c63430008190033",
|
|
889
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101e55760003560e01c806393920bf81161010f578063c7ad0895116100a2578063e30c397811610071578063e30c397814610439578063e458a65d1461044a578063f2fde38b1461045d578063fa7781ff1461047057600080fd5b8063c7ad0895146103e3578063c7ee005e1461040a578063ce82e8411461041e578063e1d146fb1461043157600080fd5b8063b4a0bdf3116100de578063b4a0bdf3146103ae578063bc2f7dc3146103bf578063be26317e146103c7578063c32094c7146103d057600080fd5b806393920bf8146103585780639d3cc5431461036b5780639dd5428e1461038c578063a666642b1461039b57600080fd5b8063637c9b4e1161018757806379ba50971161015657806379ba50971461030557806380d45a2d1461030d5780638aadf799146103205780638da5cb5b1461033357600080fd5b8063637c9b4e146102a257806364aff9ec146102c35780636857249c146102d6578063715018a6146102fd57600080fd5b80633131b065116101c35780633131b0651461024657806343bf7283146102595780635a38f84d146102835780635c975abb1461028b57600080fd5b80630e32cb86146101ea578063192e7a7b146101ff578063231f82bb14610212575b600080fd5b6101fd6101f83660046119e5565b61049a565b005b6101fd61020d3660046119e5565b6104ae565b6102336102203660046119e5565b61012e6020526000908152604090205481565b6040519081526020015b60405180910390f35b6101fd610254366004611a55565b610574565b6102336102673660046119e5565b6001600160a01b03166000908152610130602052604090205490565b6101fd6105ce565b60c95460ff165b604051901515815260200161023d565b6102336102b03660046119e5565b61012f6020526000908152604090205481565b6101fd6102d1366004611a97565b61060d565b6102337f000000000000000000000000000000000000000000000000000000000000000081565b6101fd610713565b6101fd610725565b6101fd61031b366004611ad8565b61079c565b6101fd61032e3660046119e5565b6107e3565b6033546001600160a01b03165b6040516001600160a01b03909116815260200161023d565b6101fd610366366004611af1565b610993565b6102336103793660046119e5565b6101306020526000908152604090205481565b610233670de0b6b3a764000081565b6102336103a93660046119e5565b610a41565b6097546001600160a01b0316610340565b6101fd610af8565b61023360fb5481565b6101fd6103de3660046119e5565b610b36565b6102927f000000000000000000000000000000000000000000000000000000000000000081565b61012d54610340906001600160a01b031681565b6101fd61042c366004611af1565b610bdb565b610233610cb0565b6065546001600160a01b0316610340565b6101fd610458366004611b5d565b610ce3565b6101fd61046b3660046119e5565b610ef0565b61023361047e3660046119e5565b6001600160a01b03166000908152610131602052604090205490565b6104a2610f69565b6104ab81610fc3565b50565b61012d546001600160a01b03163381146104db576040516348f5c3ed60e01b815260040160405180910390fd5b60c95460ff16156104ff5760405163f4eaf50160e01b815260040160405180910390fd5b610508826107e3565b6001600160a01b0382166000818152610131602090815260408083208054939055518281529192917fa80c25cc8959419d41ee66f93961c567b272badc10e0e117261a0ee31b55c312910160405180910390a261056f6001600160a01b0384168383611089565b505050565b61057c610f69565b80610586816110db565b60005b818110156105c8576105c08484838181106105a6576105a6611c11565b90506020020160208101906105bb91906119e5565b61110c565b600101610589565b50505050565b61060360405180604001604052806014815260200173706175736546756e64735472616e73666572282960601b8152506111ad565b61060b61124b565b565b610615610f69565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa15801561065c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106809190611c27565b9050808211156106b25760405163cf47918160e01b815260048101839052602481018290526044015b60405180910390fd5b826001600160a01b0316846001600160a01b03167f6d25be279134f4ecaa4770aff0c3d916d9e7c5ef37b65ed95dbdba411f5d54d5846040516106f791815260200190565b60405180910390a36105c86001600160a01b0385168484611089565b61071b610f69565b61060b60006112a5565b60655433906001600160a01b031681146107935760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b60648201526084016106a9565b6104ab816112a5565b6107da6040518060400160405280601981526020017f7365744d61784c6f6f70734c696d69742875696e7432353629000000000000008152506111ad565b6104ab816112be565b6107ec81611358565b6107f58161137f565b60006107ff610cb0565b6001600160a01b0383166000908152610130602052604090205490915080820390821461056f576001600160a01b038316600081815261012e60205260408082205490516370a0823160e01b81523060048201529092906370a0823190602401602060405180830381865afa15801561087c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a09190611c27565b6001600160a01b03861660009081526101316020526040812054919250906108c89083611c56565b905082158015906108d857508015155b156109715760006108e98486611c6f565b90506000818311156108fb57816108fd565b825b6001600160a01b0389166000908152610131602052604081208054929350839290919061092b908490611c86565b90915550506040518181526001600160a01b038916907ffe854c4c4e633d5bb31aec1f39f01d9f8f01ad2e0212a0e576825ac986af05899060200160405180910390a250505b505050506001600160a01b039190911660009081526101306020526040902055565b6109b4604051806060016040528060328152602001611ddf603291396111ad565b826109be816110db565b8082146109de576040516317dbc4cb60e21b815260040160405180910390fd5b60005b81811015610a3957610a318686838181106109fe576109fe611c11565b9050602002016020810190610a1391906119e5565b858584818110610a2557610a25611c11565b905060200201356113c5565b6001016109e1565b505050505050565b6001600160a01b038116600081815261012e60205260408082205490516370a0823160e01b8152306004820152919290918391906370a0823190602401602060405180830381865afa158015610a9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abf9190611c27565b6001600160a01b0385166000908152610131602052604090205490915080821115610aed5750909392505050565b506000949350505050565b610b2e60405180604001604052806015815260200174726573756d6546756e64735472616e73666572282960581b8152506111ad565b61060b611436565b610b3e610f69565b61012d546001600160a01b039081169082908116829003610b72576040516380ae98f560e01b815260040160405180910390fd5b610b7b83611358565b61012d546040516001600160a01b038086169216907fcf4d0ac7a2f943727f0189dd1f26ba0cde29a1b14f222163ac866d4f5167db9490600090a3505061012d80546001600160a01b0319166001600160a01b0392909216919091179055565b610bfc6040518060600160405280602f8152602001611e11602f91396111ad565b82610c06816110db565b808214610c26576040516317dbc4cb60e21b815260040160405180910390fd5b60005b81811015610a3957610c60868683818110610c4657610c46611c11565b9050602002016020810190610c5b91906119e5565b61137f565b610ca8868683818110610c7557610c75611c11565b9050602002016020810190610c8a91906119e5565b858584818110610c9c57610c9c611c11565b9050602002013561146f565b600101610c29565b6000610cde7f000000000000000000000000000000000000000000000000000000000000000063ffffffff16565b905090565b600054610100900460ff1615808015610d035750600054600160ff909116105b80610d1d5750303b158015610d1d575060005460ff166001145b610d805760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016106a9565b6000805460ff191660011790558015610da3576000805461ff0019166101001790555b610dac89611358565b610db58961156a565b610dbd6115a2565b610dc6826112be565b86610dd0816110db565b8086141580610ddf5750808414155b15610dfd576040516317dbc4cb60e21b815260040160405180910390fd5b60005b81811015610e9d57610e1d8a8a838181106105a6576105a6611c11565b610e598a8a83818110610e3257610e32611c11565b9050602002016020810190610e4791906119e5565b878784818110610a2557610a25611c11565b610e958a8a83818110610e6e57610e6e611c11565b9050602002016020810190610e8391906119e5565b898984818110610c9c57610c9c611c11565b600101610e00565b50508015610ee5576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050505050565b610ef8610f69565b606580546001600160a01b0383166001600160a01b03199091168117909155610f296033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b4390565b4290565b6033546001600160a01b0316331461060b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106a9565b6001600160a01b0381166110275760405162461bcd60e51b815260206004820152602560248201527f696e76616c696420616365737320636f6e74726f6c206d616e61676572206164604482015264647265737360d81b60648201526084016106a9565b609780546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa091015b60405180910390a15050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261056f9084906115d1565b60fb548111156104ab5760fb5460405163792bfb1b60e11b81526004810191909152602481018290526044016106a9565b61111581611358565b600061111f610cb0565b6001600160a01b038316600090815261013060205260409020549091508015611166576040516303b51ceb60e11b81526001600160a01b03841660048201526024016106a9565b6001600160a01b03831660008181526101306020526040808220859055517fcf6e06116a82c1b468912f23d8bb1d126edbb21bc0864d6d5169e3be39b1a8189190a2505050565b6097546040516318c5e8ab60e01b81526000916001600160a01b0316906318c5e8ab906111e09033908690600401611ce9565b602060405180830381865afa1580156111fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112219190611d0d565b90508061124757333083604051634a3fa29360e01b81526004016106a993929190611d2f565b5050565b6112536116a6565b60c9805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112883390565b6040516001600160a01b03909116815260200160405180910390a1565b606580546001600160a01b03191690556104ab816116ec565b60fb54811161131a5760405162461bcd60e51b815260206004820152602260248201527f436f6d7074726f6c6c65723a20496e76616c6964206d61784c6f6f70734c696d6044820152611a5d60f21b60648201526084016106a9565b60fb80549082905560408051828152602081018490527fc2d09fef144f7c8a86f71ea459f8fc17f675768eb1ae369cbd77fb31d467aafa910161107d565b6001600160a01b0381166104ab576040516317dbc4cb60e21b815260040160405180910390fd5b6001600160a01b0381166000908152610130602052604081205490819003611247576040516341ea4b5960e01b81526001600160a01b03831660048201526024016106a9565b6001600160a01b038216600081815261012e60209081526040918290205482519081529081018490527f2351eb1e51f0d96d3d2dc08e3c9bddbdb2153580843330b57433c3bf5031be01910160405180910390a26001600160a01b03909116600090815261012f6020526040902055565b61143e61173e565b60c9805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611288565b6001600160a01b038216600090815261012f6020526040812054908190036114b957506001600160a01b038216600090815261012f60205260409020670de0b6b3a7640000908190555b808211156114e457604051631cf8f4dd60e11b815260048101839052602481018290526044016106a9565b6001600160a01b038316600090815261012e60205260409020548281146105c85761150e846107e3565b6001600160a01b038416600081815261012e602090815260409182902086905581518481529081018690527f2a139b40b9bf8c89ae5053746323912620b9d8ea3b076b098b1bc57702abf3a5910160405180910390a250505050565b600054610100900460ff166115915760405162461bcd60e51b81526004016106a990611d64565b611599611787565b6104ab816117b6565b600054610100900460ff166115c95760405162461bcd60e51b81526004016106a990611d64565b61060b6117dd565b6000611626826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118109092919063ffffffff16565b90508051600014806116475750808060200190518101906116479190611d0d565b61056f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106a9565b60c95460ff161561060b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016106a9565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60c95460ff1661060b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016106a9565b600054610100900460ff166117ae5760405162461bcd60e51b81526004016106a990611d64565b61060b611827565b600054610100900460ff166104a25760405162461bcd60e51b81526004016106a990611d64565b600054610100900460ff166118045760405162461bcd60e51b81526004016106a990611d64565b60c9805460ff19169055565b606061181f8484600085611857565b949350505050565b600054610100900460ff1661184e5760405162461bcd60e51b81526004016106a990611d64565b61060b336112a5565b6060824710156118b85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016106a9565b600080866001600160a01b031685876040516118d49190611daf565b60006040518083038185875af1925050503d8060008114611911576040519150601f19603f3d011682016040523d82523d6000602084013e611916565b606091505b509150915061192787838387611932565b979650505050505050565b606083156119a157825160000361199a576001600160a01b0385163b61199a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106a9565b508161181f565b61181f83838151156119b65781518083602001fd5b8060405162461bcd60e51b81526004016106a99190611dcb565b6001600160a01b03811681146104ab57600080fd5b6000602082840312156119f757600080fd5b8135611a02816119d0565b9392505050565b60008083601f840112611a1b57600080fd5b50813567ffffffffffffffff811115611a3357600080fd5b6020830191508360208260051b8501011115611a4e57600080fd5b9250929050565b60008060208385031215611a6857600080fd5b823567ffffffffffffffff811115611a7f57600080fd5b611a8b85828601611a09565b90969095509350505050565b600080600060608486031215611aac57600080fd5b8335611ab7816119d0565b92506020840135611ac7816119d0565b929592945050506040919091013590565b600060208284031215611aea57600080fd5b5035919050565b60008060008060408587031215611b0757600080fd5b843567ffffffffffffffff80821115611b1f57600080fd5b611b2b88838901611a09565b90965094506020870135915080821115611b4457600080fd5b50611b5187828801611a09565b95989497509550505050565b60008060008060008060008060a0898b031215611b7957600080fd5b8835611b84816119d0565b9750602089013567ffffffffffffffff80821115611ba157600080fd5b611bad8c838d01611a09565b909950975060408b0135915080821115611bc657600080fd5b611bd28c838d01611a09565b909750955060608b0135915080821115611beb57600080fd5b50611bf88b828c01611a09565b999c989b50969995989497949560800135949350505050565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611c3957600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115611c6957611c69611c40565b92915050565b8082028115828204841417611c6957611c69611c40565b80820180821115611c6957611c69611c40565b60005b83811015611cb4578181015183820152602001611c9c565b50506000910152565b60008151808452611cd5816020860160208601611c99565b601f01601f19169290920160200192915050565b6001600160a01b038316815260406020820181905260009061181f90830184611cbd565b600060208284031215611d1f57600080fd5b81518015158114611a0257600080fd5b6001600160a01b03848116825283166020820152606060408201819052600090611d5b90830184611cbd565b95945050505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60008251611dc1818460208701611c99565b9190910192915050565b602081526000611a026020830184611cbd56fe7365744d6178546f6b656e73446973747269627574696f6e537065656428616464726573735b5d2c75696e743235365b5d29736574546f6b656e73446973747269627574696f6e537065656428616464726573735b5d2c75696e743235365b5d29a26469706673582212200c9d46a058dbf3a96c4cd4ce25d3f05a6a88096bf609a1ae8de1fb215c20c2b864736f6c63430008190033",
|
|
890
|
+
"devdoc": {
|
|
891
|
+
"author": "Venus",
|
|
892
|
+
"events": {
|
|
893
|
+
"Initialized(uint8)": {
|
|
894
|
+
"details": "Triggered when the contract has been initialized or reinitialized."
|
|
895
|
+
},
|
|
896
|
+
"Paused(address)": {
|
|
897
|
+
"details": "Emitted when the pause is triggered by `account`."
|
|
898
|
+
},
|
|
899
|
+
"Unpaused(address)": {
|
|
900
|
+
"details": "Emitted when the pause is lifted by `account`."
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
"kind": "dev",
|
|
904
|
+
"methods": {
|
|
905
|
+
"acceptOwnership()": {
|
|
906
|
+
"details": "The new owner accepts the ownership transfer."
|
|
907
|
+
},
|
|
908
|
+
"accrueTokens(address)": {
|
|
909
|
+
"custom:event": "Emits TokensAccrued event",
|
|
910
|
+
"params": {
|
|
911
|
+
"token_": "Address of the token"
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
"constructor": {
|
|
915
|
+
"custom:oz-upgrades-unsafe-allow": "constructor"
|
|
916
|
+
},
|
|
917
|
+
"getBlockNumberOrTimestamp()": {
|
|
918
|
+
"details": "Function to simply retrieve block number or block timestamp",
|
|
919
|
+
"returns": {
|
|
920
|
+
"_0": "Current block number or block timestamp"
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
"getEffectiveDistributionSpeed(address)": {
|
|
924
|
+
"params": {
|
|
925
|
+
"token_": "Address of the token"
|
|
926
|
+
},
|
|
927
|
+
"returns": {
|
|
928
|
+
"_0": "speed returns the per block or second reward"
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"initialize(address,address[],uint256[],uint256[],uint256)": {
|
|
932
|
+
"custom:error": "Throw InvalidArguments on different length of tokens and speeds array",
|
|
933
|
+
"details": "Initializes the deployer to owner",
|
|
934
|
+
"params": {
|
|
935
|
+
"accessControlManager_": "AccessControlManager contract address",
|
|
936
|
+
"distributionSpeeds_": "New distribution speeds for tokens",
|
|
937
|
+
"loopsLimit_": "Maximum number of loops allowed in a single transaction",
|
|
938
|
+
"tokens_": "Array of addresses of the tokens"
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
"initializeTokens(address[])": {
|
|
942
|
+
"custom:access": "Only Governance",
|
|
943
|
+
"params": {
|
|
944
|
+
"tokens_": "Array of addresses of the tokens to be intialized"
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"lastAccruedBlock(address)": {
|
|
948
|
+
"params": {
|
|
949
|
+
"token_": "Address of the token"
|
|
950
|
+
},
|
|
951
|
+
"returns": {
|
|
952
|
+
"_0": "blockNumberOrSecond returns the last accrued block or second"
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
"owner()": {
|
|
956
|
+
"details": "Returns the address of the current owner."
|
|
957
|
+
},
|
|
958
|
+
"pauseFundsTransfer()": {
|
|
959
|
+
"custom:access": "Controlled by ACM"
|
|
960
|
+
},
|
|
961
|
+
"paused()": {
|
|
962
|
+
"details": "Returns true if the contract is paused, and false otherwise."
|
|
963
|
+
},
|
|
964
|
+
"pendingOwner()": {
|
|
965
|
+
"details": "Returns the address of the pending owner."
|
|
966
|
+
},
|
|
967
|
+
"releaseFunds(address)": {
|
|
968
|
+
"custom:error": "Throw InvalidArguments on Zero address(token)Throw FundsTransferIsPaused is pausedThrow InvalidCaller if the sender is not the Prime contract",
|
|
969
|
+
"custom:event": "Emits TokenTransferredToPrime event",
|
|
970
|
+
"params": {
|
|
971
|
+
"token_": "The token to release to the Prime contract"
|
|
972
|
+
}
|
|
973
|
+
},
|
|
974
|
+
"renounceOwnership()": {
|
|
975
|
+
"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."
|
|
976
|
+
},
|
|
977
|
+
"resumeFundsTransfer()": {
|
|
978
|
+
"custom:access": "Controlled by ACM"
|
|
979
|
+
},
|
|
980
|
+
"setAccessControlManager(address)": {
|
|
981
|
+
"custom:access": "Only Governance",
|
|
982
|
+
"custom:event": "Emits NewAccessControlManager event",
|
|
983
|
+
"details": "Admin function to set address of AccessControlManager",
|
|
984
|
+
"params": {
|
|
985
|
+
"accessControlManager_": "The new address of the AccessControlManager"
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
"setMaxLoopsLimit(uint256)": {
|
|
989
|
+
"custom:access": "Controlled by ACM",
|
|
990
|
+
"custom:event": "Emits MaxLoopsLimitUpdated event on success",
|
|
991
|
+
"params": {
|
|
992
|
+
"loopsLimit": "Limit for the max loops can execute at a time"
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
"setMaxTokensDistributionSpeed(address[],uint256[])": {
|
|
996
|
+
"custom:access": "Controlled by ACM",
|
|
997
|
+
"custom:error": "Throw InvalidArguments on different length of tokens and speeds array",
|
|
998
|
+
"params": {
|
|
999
|
+
"maxDistributionSpeeds_": "New distribution speeds for tokens",
|
|
1000
|
+
"tokens_": "Array of addresses of the tokens"
|
|
1001
|
+
}
|
|
1002
|
+
},
|
|
1003
|
+
"setPrimeToken(address)": {
|
|
1004
|
+
"custom:access": "Only owner",
|
|
1005
|
+
"custom:event": "Emits PrimeTokenUpdated event",
|
|
1006
|
+
"params": {
|
|
1007
|
+
"prime_": "The new address of the prime token contract"
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
"setTokensDistributionSpeed(address[],uint256[])": {
|
|
1011
|
+
"custom:access": "Controlled by ACM",
|
|
1012
|
+
"custom:error": "Throw InvalidArguments on different length of tokens and speeds array",
|
|
1013
|
+
"params": {
|
|
1014
|
+
"distributionSpeeds_": "New distribution speeds for tokens",
|
|
1015
|
+
"tokens_": "Array of addresses of the tokens"
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
1018
|
+
"sweepToken(address,address,uint256)": {
|
|
1019
|
+
"custom:access": "Only Governance",
|
|
1020
|
+
"custom:error": "Throw InsufficientBalance if amount_ is greater than the available balance of the token in the contract",
|
|
1021
|
+
"custom:event": "Emits SweepToken event",
|
|
1022
|
+
"params": {
|
|
1023
|
+
"amount_": "The amount of tokens needs to transfer",
|
|
1024
|
+
"to_": "The address of the recipient",
|
|
1025
|
+
"token_": "The address of the ERC-20 token to sweep"
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
"tokenAmountAccrued(address)": {
|
|
1029
|
+
"params": {
|
|
1030
|
+
"token_": "Address of the token"
|
|
1031
|
+
},
|
|
1032
|
+
"returns": {
|
|
1033
|
+
"_0": "returns the amount of accrued tokens for the token provided"
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
"transferOwnership(address)": {
|
|
1037
|
+
"details": "Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner."
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
"title": "PrimeLiquidityProvider",
|
|
1041
|
+
"version": 1
|
|
1042
|
+
},
|
|
1043
|
+
"userdoc": {
|
|
1044
|
+
"errors": {
|
|
1045
|
+
"AddressesMustDiffer()": [
|
|
1046
|
+
{
|
|
1047
|
+
"notice": "Error thrown when argument value in setter is same as previous value"
|
|
1048
|
+
}
|
|
1049
|
+
],
|
|
1050
|
+
"FundsTransferIsPaused()": [
|
|
1051
|
+
{
|
|
1052
|
+
"notice": "Error thrown when funds transfer is paused"
|
|
1053
|
+
}
|
|
1054
|
+
],
|
|
1055
|
+
"InsufficientBalance(uint256,uint256)": [
|
|
1056
|
+
{
|
|
1057
|
+
"notice": "Error thrown when PrimeLiquidityProvider's balance is less than sweep amount"
|
|
1058
|
+
}
|
|
1059
|
+
],
|
|
1060
|
+
"InvalidArguments()": [
|
|
1061
|
+
{
|
|
1062
|
+
"notice": "Thrown when arguments are passed are invalid"
|
|
1063
|
+
}
|
|
1064
|
+
],
|
|
1065
|
+
"InvalidBlocksPerYear()": [
|
|
1066
|
+
{
|
|
1067
|
+
"notice": "Thrown when blocks per year is invalid"
|
|
1068
|
+
}
|
|
1069
|
+
],
|
|
1070
|
+
"InvalidCaller()": [
|
|
1071
|
+
{
|
|
1072
|
+
"notice": "Thrown when caller is not the desired caller"
|
|
1073
|
+
}
|
|
1074
|
+
],
|
|
1075
|
+
"InvalidDistributionSpeed(uint256,uint256)": [
|
|
1076
|
+
{
|
|
1077
|
+
"notice": "Thrown when distribution speed is greater than maxTokenDistributionSpeeds[tokenAddress]"
|
|
1078
|
+
}
|
|
1079
|
+
],
|
|
1080
|
+
"InvalidTimeBasedConfiguration()": [
|
|
1081
|
+
{
|
|
1082
|
+
"notice": "Thrown when time based but blocks per year is provided"
|
|
1083
|
+
}
|
|
1084
|
+
],
|
|
1085
|
+
"MaxLoopsLimitExceeded(uint256,uint256)": [
|
|
1086
|
+
{
|
|
1087
|
+
"notice": "Thrown an error on maxLoopsLimit exceeds for any loop"
|
|
1088
|
+
}
|
|
1089
|
+
],
|
|
1090
|
+
"TokenAlreadyInitialized(address)": [
|
|
1091
|
+
{
|
|
1092
|
+
"notice": "Thrown when token is initialized"
|
|
1093
|
+
}
|
|
1094
|
+
],
|
|
1095
|
+
"TokenNotInitialized(address)": [
|
|
1096
|
+
{
|
|
1097
|
+
"notice": "Error thrown when accrueTokens is called for an uninitialized token"
|
|
1098
|
+
}
|
|
1099
|
+
],
|
|
1100
|
+
"Unauthorized(address,address,string)": [
|
|
1101
|
+
{
|
|
1102
|
+
"notice": "Thrown when the action is prohibited by AccessControlManager"
|
|
1103
|
+
}
|
|
1104
|
+
]
|
|
1105
|
+
},
|
|
1106
|
+
"events": {
|
|
1107
|
+
"MaxLoopsLimitUpdated(uint256,uint256)": {
|
|
1108
|
+
"notice": "Emitted when max loops limit is set"
|
|
1109
|
+
},
|
|
1110
|
+
"MaxTokenDistributionSpeedUpdated(address,uint256,uint256)": {
|
|
1111
|
+
"notice": "Emitted when a new max distribution speed for token is set"
|
|
1112
|
+
},
|
|
1113
|
+
"NewAccessControlManager(address,address)": {
|
|
1114
|
+
"notice": "Emitted when access control manager contract address is changed"
|
|
1115
|
+
},
|
|
1116
|
+
"PrimeTokenUpdated(address,address)": {
|
|
1117
|
+
"notice": "Emitted when prime token contract address is changed"
|
|
1118
|
+
},
|
|
1119
|
+
"SweepToken(address,address,uint256)": {
|
|
1120
|
+
"notice": "Emitted on sweep token success"
|
|
1121
|
+
},
|
|
1122
|
+
"TokenDistributionInitialized(address)": {
|
|
1123
|
+
"notice": "Emitted when a token distribution is initialized"
|
|
1124
|
+
},
|
|
1125
|
+
"TokenDistributionSpeedUpdated(address,uint256,uint256)": {
|
|
1126
|
+
"notice": "Emitted when a new token distribution speed is set"
|
|
1127
|
+
},
|
|
1128
|
+
"TokenTransferredToPrime(address,uint256)": {
|
|
1129
|
+
"notice": "Emitted when token is transferred to the prime contract"
|
|
1130
|
+
},
|
|
1131
|
+
"TokensAccrued(address,uint256)": {
|
|
1132
|
+
"notice": "Emitted when distribution state(Index and block or second) is updated"
|
|
1133
|
+
}
|
|
1134
|
+
},
|
|
1135
|
+
"kind": "user",
|
|
1136
|
+
"methods": {
|
|
1137
|
+
"DEFAULT_MAX_DISTRIBUTION_SPEED()": {
|
|
1138
|
+
"notice": "The default max token distribution speed"
|
|
1139
|
+
},
|
|
1140
|
+
"accessControlManager()": {
|
|
1141
|
+
"notice": "Returns the address of the access control manager contract"
|
|
1142
|
+
},
|
|
1143
|
+
"accrueTokens(address)": {
|
|
1144
|
+
"notice": "Accrue token by updating the distribution state"
|
|
1145
|
+
},
|
|
1146
|
+
"blocksOrSecondsPerYear()": {
|
|
1147
|
+
"notice": "Stores blocksPerYear if isTimeBased is true else secondsPerYear is stored"
|
|
1148
|
+
},
|
|
1149
|
+
"getEffectiveDistributionSpeed(address)": {
|
|
1150
|
+
"notice": "Get rewards per block or second for token"
|
|
1151
|
+
},
|
|
1152
|
+
"initialize(address,address[],uint256[],uint256[],uint256)": {
|
|
1153
|
+
"notice": "PrimeLiquidityProvider initializer"
|
|
1154
|
+
},
|
|
1155
|
+
"initializeTokens(address[])": {
|
|
1156
|
+
"notice": "Initialize the distribution of the token"
|
|
1157
|
+
},
|
|
1158
|
+
"isTimeBased()": {
|
|
1159
|
+
"notice": "Acknowledges if a contract is time based or not"
|
|
1160
|
+
},
|
|
1161
|
+
"lastAccruedBlock(address)": {
|
|
1162
|
+
"notice": "Get the last accrued block or second for token"
|
|
1163
|
+
},
|
|
1164
|
+
"lastAccruedBlockOrSecond(address)": {
|
|
1165
|
+
"notice": "The block or second till which rewards are distributed for an asset"
|
|
1166
|
+
},
|
|
1167
|
+
"maxTokenDistributionSpeeds(address)": {
|
|
1168
|
+
"notice": "The max token distribution speed for token"
|
|
1169
|
+
},
|
|
1170
|
+
"pauseFundsTransfer()": {
|
|
1171
|
+
"notice": "Pause fund transfer of tokens to Prime contract"
|
|
1172
|
+
},
|
|
1173
|
+
"prime()": {
|
|
1174
|
+
"notice": "Address of the Prime contract"
|
|
1175
|
+
},
|
|
1176
|
+
"releaseFunds(address)": {
|
|
1177
|
+
"notice": "Claim all the token accrued till last block or second"
|
|
1178
|
+
},
|
|
1179
|
+
"resumeFundsTransfer()": {
|
|
1180
|
+
"notice": "Resume fund transfer of tokens to Prime contract"
|
|
1181
|
+
},
|
|
1182
|
+
"setAccessControlManager(address)": {
|
|
1183
|
+
"notice": "Sets the address of AccessControlManager"
|
|
1184
|
+
},
|
|
1185
|
+
"setMaxLoopsLimit(uint256)": {
|
|
1186
|
+
"notice": "Set the limit for the loops can iterate to avoid the DOS"
|
|
1187
|
+
},
|
|
1188
|
+
"setMaxTokensDistributionSpeed(address[],uint256[])": {
|
|
1189
|
+
"notice": "Set max distribution speed for token (amount of maximum token distribute per block or second)"
|
|
1190
|
+
},
|
|
1191
|
+
"setPrimeToken(address)": {
|
|
1192
|
+
"notice": "Set the prime token contract address"
|
|
1193
|
+
},
|
|
1194
|
+
"setTokensDistributionSpeed(address[],uint256[])": {
|
|
1195
|
+
"notice": "Set distribution speed (amount of token distribute per block or second)"
|
|
1196
|
+
},
|
|
1197
|
+
"sweepToken(address,address,uint256)": {
|
|
1198
|
+
"notice": "A public function to sweep accidental ERC-20 transfers to this contract. Tokens are sent to user"
|
|
1199
|
+
},
|
|
1200
|
+
"tokenAmountAccrued(address)": {
|
|
1201
|
+
"notice": "Get the tokens accrued"
|
|
1202
|
+
},
|
|
1203
|
+
"tokenDistributionSpeeds(address)": {
|
|
1204
|
+
"notice": "The rate at which token is distributed (per block or second)"
|
|
1205
|
+
}
|
|
1206
|
+
},
|
|
1207
|
+
"notice": "PrimeLiquidityProvider is used to fund Prime",
|
|
1208
|
+
"version": 1
|
|
1209
|
+
},
|
|
1210
|
+
"storageLayout": {
|
|
1211
|
+
"storage": [
|
|
1212
|
+
{
|
|
1213
|
+
"astId": 246,
|
|
1214
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1215
|
+
"label": "_initialized",
|
|
1216
|
+
"offset": 0,
|
|
1217
|
+
"slot": "0",
|
|
1218
|
+
"type": "t_uint8"
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"astId": 249,
|
|
1222
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1223
|
+
"label": "_initializing",
|
|
1224
|
+
"offset": 1,
|
|
1225
|
+
"slot": "0",
|
|
1226
|
+
"type": "t_bool"
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"astId": 1516,
|
|
1230
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1231
|
+
"label": "__gap",
|
|
1232
|
+
"offset": 0,
|
|
1233
|
+
"slot": "1",
|
|
1234
|
+
"type": "t_array(t_uint256)50_storage"
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"astId": 118,
|
|
1238
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1239
|
+
"label": "_owner",
|
|
1240
|
+
"offset": 0,
|
|
1241
|
+
"slot": "51",
|
|
1242
|
+
"type": "t_address"
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"astId": 238,
|
|
1246
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1247
|
+
"label": "__gap",
|
|
1248
|
+
"offset": 0,
|
|
1249
|
+
"slot": "52",
|
|
1250
|
+
"type": "t_array(t_uint256)49_storage"
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
"astId": 11,
|
|
1254
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1255
|
+
"label": "_pendingOwner",
|
|
1256
|
+
"offset": 0,
|
|
1257
|
+
"slot": "101",
|
|
1258
|
+
"type": "t_address"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"astId": 105,
|
|
1262
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1263
|
+
"label": "__gap",
|
|
1264
|
+
"offset": 0,
|
|
1265
|
+
"slot": "102",
|
|
1266
|
+
"type": "t_array(t_uint256)49_storage"
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"astId": 5863,
|
|
1270
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1271
|
+
"label": "_accessControlManager",
|
|
1272
|
+
"offset": 0,
|
|
1273
|
+
"slot": "151",
|
|
1274
|
+
"type": "t_contract(IAccessControlManagerV8)6048"
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"astId": 5868,
|
|
1278
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1279
|
+
"label": "__gap",
|
|
1280
|
+
"offset": 0,
|
|
1281
|
+
"slot": "152",
|
|
1282
|
+
"type": "t_array(t_uint256)49_storage"
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
"astId": 430,
|
|
1286
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1287
|
+
"label": "_paused",
|
|
1288
|
+
"offset": 0,
|
|
1289
|
+
"slot": "201",
|
|
1290
|
+
"type": "t_bool"
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"astId": 535,
|
|
1294
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1295
|
+
"label": "__gap",
|
|
1296
|
+
"offset": 0,
|
|
1297
|
+
"slot": "202",
|
|
1298
|
+
"type": "t_array(t_uint256)49_storage"
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
"astId": 6105,
|
|
1302
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1303
|
+
"label": "maxLoopsLimit",
|
|
1304
|
+
"offset": 0,
|
|
1305
|
+
"slot": "251",
|
|
1306
|
+
"type": "t_uint256"
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
"astId": 6110,
|
|
1310
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1311
|
+
"label": "__gap",
|
|
1312
|
+
"offset": 0,
|
|
1313
|
+
"slot": "252",
|
|
1314
|
+
"type": "t_array(t_uint256)49_storage"
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"astId": 22562,
|
|
1318
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1319
|
+
"label": "prime",
|
|
1320
|
+
"offset": 0,
|
|
1321
|
+
"slot": "301",
|
|
1322
|
+
"type": "t_address"
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"astId": 22567,
|
|
1326
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1327
|
+
"label": "tokenDistributionSpeeds",
|
|
1328
|
+
"offset": 0,
|
|
1329
|
+
"slot": "302",
|
|
1330
|
+
"type": "t_mapping(t_address,t_uint256)"
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
"astId": 22572,
|
|
1334
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1335
|
+
"label": "maxTokenDistributionSpeeds",
|
|
1336
|
+
"offset": 0,
|
|
1337
|
+
"slot": "303",
|
|
1338
|
+
"type": "t_mapping(t_address,t_uint256)"
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
"astId": 22577,
|
|
1342
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1343
|
+
"label": "lastAccruedBlockOrSecond",
|
|
1344
|
+
"offset": 0,
|
|
1345
|
+
"slot": "304",
|
|
1346
|
+
"type": "t_mapping(t_address,t_uint256)"
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
"astId": 22582,
|
|
1350
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1351
|
+
"label": "_tokenAmountAccrued",
|
|
1352
|
+
"offset": 0,
|
|
1353
|
+
"slot": "305",
|
|
1354
|
+
"type": "t_mapping(t_address,t_uint256)"
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
"astId": 22587,
|
|
1358
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1359
|
+
"label": "__gap",
|
|
1360
|
+
"offset": 0,
|
|
1361
|
+
"slot": "306",
|
|
1362
|
+
"type": "t_array(t_uint256)45_storage"
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"astId": 6191,
|
|
1366
|
+
"contract": "contracts/Tokens/Prime/PrimeLiquidityProvider.sol:PrimeLiquidityProvider",
|
|
1367
|
+
"label": "__gap",
|
|
1368
|
+
"offset": 0,
|
|
1369
|
+
"slot": "351",
|
|
1370
|
+
"type": "t_array(t_uint256)48_storage"
|
|
1371
|
+
}
|
|
1372
|
+
],
|
|
1373
|
+
"types": {
|
|
1374
|
+
"t_address": {
|
|
1375
|
+
"encoding": "inplace",
|
|
1376
|
+
"label": "address",
|
|
1377
|
+
"numberOfBytes": "20"
|
|
1378
|
+
},
|
|
1379
|
+
"t_array(t_uint256)45_storage": {
|
|
1380
|
+
"base": "t_uint256",
|
|
1381
|
+
"encoding": "inplace",
|
|
1382
|
+
"label": "uint256[45]",
|
|
1383
|
+
"numberOfBytes": "1440"
|
|
1384
|
+
},
|
|
1385
|
+
"t_array(t_uint256)48_storage": {
|
|
1386
|
+
"base": "t_uint256",
|
|
1387
|
+
"encoding": "inplace",
|
|
1388
|
+
"label": "uint256[48]",
|
|
1389
|
+
"numberOfBytes": "1536"
|
|
1390
|
+
},
|
|
1391
|
+
"t_array(t_uint256)49_storage": {
|
|
1392
|
+
"base": "t_uint256",
|
|
1393
|
+
"encoding": "inplace",
|
|
1394
|
+
"label": "uint256[49]",
|
|
1395
|
+
"numberOfBytes": "1568"
|
|
1396
|
+
},
|
|
1397
|
+
"t_array(t_uint256)50_storage": {
|
|
1398
|
+
"base": "t_uint256",
|
|
1399
|
+
"encoding": "inplace",
|
|
1400
|
+
"label": "uint256[50]",
|
|
1401
|
+
"numberOfBytes": "1600"
|
|
1402
|
+
},
|
|
1403
|
+
"t_bool": {
|
|
1404
|
+
"encoding": "inplace",
|
|
1405
|
+
"label": "bool",
|
|
1406
|
+
"numberOfBytes": "1"
|
|
1407
|
+
},
|
|
1408
|
+
"t_contract(IAccessControlManagerV8)6048": {
|
|
1409
|
+
"encoding": "inplace",
|
|
1410
|
+
"label": "contract IAccessControlManagerV8",
|
|
1411
|
+
"numberOfBytes": "20"
|
|
1412
|
+
},
|
|
1413
|
+
"t_mapping(t_address,t_uint256)": {
|
|
1414
|
+
"encoding": "mapping",
|
|
1415
|
+
"key": "t_address",
|
|
1416
|
+
"label": "mapping(address => uint256)",
|
|
1417
|
+
"numberOfBytes": "32",
|
|
1418
|
+
"value": "t_uint256"
|
|
1419
|
+
},
|
|
1420
|
+
"t_uint256": {
|
|
1421
|
+
"encoding": "inplace",
|
|
1422
|
+
"label": "uint256",
|
|
1423
|
+
"numberOfBytes": "32"
|
|
1424
|
+
},
|
|
1425
|
+
"t_uint8": {
|
|
1426
|
+
"encoding": "inplace",
|
|
1427
|
+
"label": "uint8",
|
|
1428
|
+
"numberOfBytes": "1"
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
}
|