@ensuro/core 2.0.0-beta6 → 2.0.0-beta8
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/build/contracts/AccessManager.sol/AccessManager.json +74 -2
- package/build/contracts/ERC4626AssetManager.sol/ERC4626AssetManager.json +213 -0
- package/build/contracts/EToken.sol/EToken.json +114 -45
- package/build/contracts/LPManualWhitelist.sol/LPManualWhitelist.json +2 -2
- package/build/contracts/LiquidityThresholdAssetManager.sol/LiquidityThresholdAssetManager.json +197 -0
- package/build/contracts/Policy.sol/Policy.json +2 -2
- package/build/contracts/PolicyPool.sol/PolicyPool.json +324 -100
- package/build/contracts/PremiumsAccount.sol/PremiumsAccount.json +122 -2
- package/build/contracts/Reserve.sol/Reserve.json +71 -0
- package/build/contracts/TrustfulRiskModule.sol/TrustfulRiskModule.json +3 -3
- package/build/contracts/interfaces/IAccessManager.sol/IAccessManager.json +96 -0
- package/build/contracts/interfaces/IAssetManager.sol/IAssetManager.json +103 -0
- package/build/contracts/interfaces/IEToken.sol/IEToken.json +13 -0
- package/build/contracts/interfaces/IPolicyPool.sol/IPolicyPool.json +6 -14
- package/build/contracts/interfaces/IPremiumsAccount.sol/IPremiumsAccount.json +13 -0
- package/build/contracts/mocks/FixedRateVault.sol/FixedRateVault.json +736 -0
- package/build/contracts/mocks/PolicyPoolComponentMock.sol/PolicyPoolComponentMock.json +2 -2
- package/build/contracts/mocks/PolicyPoolMock.sol/PolicyPoolMock.json +7 -15
- package/build/contracts/mocks/PolicyPoolMock.sol/PolicyPoolMockForward.json +2 -2
- package/build/contracts/mocks/RiskModuleMock.sol/RiskModuleMock.json +674 -0
- package/contracts/AccessManager.sol +39 -8
- package/contracts/ERC4626AssetManager.sol +49 -0
- package/contracts/EToken.sol +72 -52
- package/contracts/LiquidityThresholdAssetManager.sol +159 -0
- package/contracts/PolicyPool.sol +155 -135
- package/contracts/PolicyPoolComponent.sol +29 -19
- package/contracts/PremiumsAccount.sol +125 -62
- package/contracts/Reserve.sol +86 -2
- package/contracts/RiskModule.sol +17 -6
- package/contracts/TrustfulRiskModule.sol +17 -2
- package/contracts/interfaces/IAccessManager.sol +23 -5
- package/contracts/interfaces/IAssetManager.sol +22 -0
- package/contracts/interfaces/IEToken.sol +21 -1
- package/contracts/interfaces/IPolicyPool.sol +6 -11
- package/contracts/interfaces/IPremiumsAccount.sol +5 -0
- package/contracts/mocks/FixedRateVault.sol +85 -0
- package/contracts/mocks/PolicyPoolMock.sol +2 -5
- package/contracts/mocks/RiskModuleMock.sol +69 -0
- package/js/test-utils.js +35 -26
- package/package.json +1 -1
- package/build/contracts/PolicyNFT.sol/PolicyNFT.json +0 -583
- package/build/contracts/interfaces/IPolicyNFT.sol/IPolicyNFT.json +0 -321
- package/contracts/PolicyNFT.sol +0 -96
- package/contracts/interfaces/IPolicyNFT.sol +0 -15
|
@@ -0,0 +1,736 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "FixedRateVault",
|
|
4
|
+
"sourceName": "contracts/mocks/FixedRateVault.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "string",
|
|
10
|
+
"name": "name_",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "string",
|
|
15
|
+
"name": "symbol_",
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "contract IERC20Metadata",
|
|
20
|
+
"name": "asset_",
|
|
21
|
+
"type": "address"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "uint256",
|
|
25
|
+
"name": "interestRate_",
|
|
26
|
+
"type": "uint256"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"stateMutability": "nonpayable",
|
|
30
|
+
"type": "constructor"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"anonymous": false,
|
|
34
|
+
"inputs": [
|
|
35
|
+
{
|
|
36
|
+
"indexed": true,
|
|
37
|
+
"internalType": "address",
|
|
38
|
+
"name": "owner",
|
|
39
|
+
"type": "address"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"indexed": true,
|
|
43
|
+
"internalType": "address",
|
|
44
|
+
"name": "spender",
|
|
45
|
+
"type": "address"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"indexed": false,
|
|
49
|
+
"internalType": "uint256",
|
|
50
|
+
"name": "value",
|
|
51
|
+
"type": "uint256"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"name": "Approval",
|
|
55
|
+
"type": "event"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"anonymous": false,
|
|
59
|
+
"inputs": [
|
|
60
|
+
{
|
|
61
|
+
"indexed": true,
|
|
62
|
+
"internalType": "address",
|
|
63
|
+
"name": "caller",
|
|
64
|
+
"type": "address"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"indexed": true,
|
|
68
|
+
"internalType": "address",
|
|
69
|
+
"name": "owner",
|
|
70
|
+
"type": "address"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"indexed": false,
|
|
74
|
+
"internalType": "uint256",
|
|
75
|
+
"name": "assets",
|
|
76
|
+
"type": "uint256"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"indexed": false,
|
|
80
|
+
"internalType": "uint256",
|
|
81
|
+
"name": "shares",
|
|
82
|
+
"type": "uint256"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"name": "Deposit",
|
|
86
|
+
"type": "event"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"anonymous": false,
|
|
90
|
+
"inputs": [
|
|
91
|
+
{
|
|
92
|
+
"indexed": true,
|
|
93
|
+
"internalType": "address",
|
|
94
|
+
"name": "from",
|
|
95
|
+
"type": "address"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"indexed": true,
|
|
99
|
+
"internalType": "address",
|
|
100
|
+
"name": "to",
|
|
101
|
+
"type": "address"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"indexed": false,
|
|
105
|
+
"internalType": "uint256",
|
|
106
|
+
"name": "value",
|
|
107
|
+
"type": "uint256"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"name": "Transfer",
|
|
111
|
+
"type": "event"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"anonymous": false,
|
|
115
|
+
"inputs": [
|
|
116
|
+
{
|
|
117
|
+
"indexed": true,
|
|
118
|
+
"internalType": "address",
|
|
119
|
+
"name": "caller",
|
|
120
|
+
"type": "address"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"indexed": true,
|
|
124
|
+
"internalType": "address",
|
|
125
|
+
"name": "receiver",
|
|
126
|
+
"type": "address"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"indexed": true,
|
|
130
|
+
"internalType": "address",
|
|
131
|
+
"name": "owner",
|
|
132
|
+
"type": "address"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"indexed": false,
|
|
136
|
+
"internalType": "uint256",
|
|
137
|
+
"name": "assets",
|
|
138
|
+
"type": "uint256"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"indexed": false,
|
|
142
|
+
"internalType": "uint256",
|
|
143
|
+
"name": "shares",
|
|
144
|
+
"type": "uint256"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"name": "Withdraw",
|
|
148
|
+
"type": "event"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"inputs": [
|
|
152
|
+
{
|
|
153
|
+
"internalType": "address",
|
|
154
|
+
"name": "owner",
|
|
155
|
+
"type": "address"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"internalType": "address",
|
|
159
|
+
"name": "spender",
|
|
160
|
+
"type": "address"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"name": "allowance",
|
|
164
|
+
"outputs": [
|
|
165
|
+
{
|
|
166
|
+
"internalType": "uint256",
|
|
167
|
+
"name": "",
|
|
168
|
+
"type": "uint256"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"stateMutability": "view",
|
|
172
|
+
"type": "function"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"inputs": [
|
|
176
|
+
{
|
|
177
|
+
"internalType": "address",
|
|
178
|
+
"name": "spender",
|
|
179
|
+
"type": "address"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"internalType": "uint256",
|
|
183
|
+
"name": "amount",
|
|
184
|
+
"type": "uint256"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"name": "approve",
|
|
188
|
+
"outputs": [
|
|
189
|
+
{
|
|
190
|
+
"internalType": "bool",
|
|
191
|
+
"name": "",
|
|
192
|
+
"type": "bool"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"stateMutability": "nonpayable",
|
|
196
|
+
"type": "function"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"inputs": [],
|
|
200
|
+
"name": "asset",
|
|
201
|
+
"outputs": [
|
|
202
|
+
{
|
|
203
|
+
"internalType": "address",
|
|
204
|
+
"name": "",
|
|
205
|
+
"type": "address"
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"stateMutability": "view",
|
|
209
|
+
"type": "function"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"inputs": [
|
|
213
|
+
{
|
|
214
|
+
"internalType": "address",
|
|
215
|
+
"name": "account",
|
|
216
|
+
"type": "address"
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"name": "balanceOf",
|
|
220
|
+
"outputs": [
|
|
221
|
+
{
|
|
222
|
+
"internalType": "uint256",
|
|
223
|
+
"name": "",
|
|
224
|
+
"type": "uint256"
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"stateMutability": "view",
|
|
228
|
+
"type": "function"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"inputs": [],
|
|
232
|
+
"name": "broken",
|
|
233
|
+
"outputs": [
|
|
234
|
+
{
|
|
235
|
+
"internalType": "bool",
|
|
236
|
+
"name": "",
|
|
237
|
+
"type": "bool"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"stateMutability": "view",
|
|
241
|
+
"type": "function"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"inputs": [
|
|
245
|
+
{
|
|
246
|
+
"internalType": "uint256",
|
|
247
|
+
"name": "shares",
|
|
248
|
+
"type": "uint256"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"name": "convertToAssets",
|
|
252
|
+
"outputs": [
|
|
253
|
+
{
|
|
254
|
+
"internalType": "uint256",
|
|
255
|
+
"name": "assets",
|
|
256
|
+
"type": "uint256"
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"stateMutability": "view",
|
|
260
|
+
"type": "function"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"inputs": [
|
|
264
|
+
{
|
|
265
|
+
"internalType": "uint256",
|
|
266
|
+
"name": "assets",
|
|
267
|
+
"type": "uint256"
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"name": "convertToShares",
|
|
271
|
+
"outputs": [
|
|
272
|
+
{
|
|
273
|
+
"internalType": "uint256",
|
|
274
|
+
"name": "shares",
|
|
275
|
+
"type": "uint256"
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"stateMutability": "view",
|
|
279
|
+
"type": "function"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"inputs": [],
|
|
283
|
+
"name": "decimals",
|
|
284
|
+
"outputs": [
|
|
285
|
+
{
|
|
286
|
+
"internalType": "uint8",
|
|
287
|
+
"name": "",
|
|
288
|
+
"type": "uint8"
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
"stateMutability": "view",
|
|
292
|
+
"type": "function"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"inputs": [
|
|
296
|
+
{
|
|
297
|
+
"internalType": "address",
|
|
298
|
+
"name": "spender",
|
|
299
|
+
"type": "address"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"internalType": "uint256",
|
|
303
|
+
"name": "subtractedValue",
|
|
304
|
+
"type": "uint256"
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"name": "decreaseAllowance",
|
|
308
|
+
"outputs": [
|
|
309
|
+
{
|
|
310
|
+
"internalType": "bool",
|
|
311
|
+
"name": "",
|
|
312
|
+
"type": "bool"
|
|
313
|
+
}
|
|
314
|
+
],
|
|
315
|
+
"stateMutability": "nonpayable",
|
|
316
|
+
"type": "function"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"inputs": [
|
|
320
|
+
{
|
|
321
|
+
"internalType": "uint256",
|
|
322
|
+
"name": "assets",
|
|
323
|
+
"type": "uint256"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"internalType": "address",
|
|
327
|
+
"name": "receiver",
|
|
328
|
+
"type": "address"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"name": "deposit",
|
|
332
|
+
"outputs": [
|
|
333
|
+
{
|
|
334
|
+
"internalType": "uint256",
|
|
335
|
+
"name": "",
|
|
336
|
+
"type": "uint256"
|
|
337
|
+
}
|
|
338
|
+
],
|
|
339
|
+
"stateMutability": "nonpayable",
|
|
340
|
+
"type": "function"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"inputs": [
|
|
344
|
+
{
|
|
345
|
+
"internalType": "int256",
|
|
346
|
+
"name": "assets",
|
|
347
|
+
"type": "int256"
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"name": "discreteEarning",
|
|
351
|
+
"outputs": [],
|
|
352
|
+
"stateMutability": "nonpayable",
|
|
353
|
+
"type": "function"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"inputs": [
|
|
357
|
+
{
|
|
358
|
+
"internalType": "address",
|
|
359
|
+
"name": "spender",
|
|
360
|
+
"type": "address"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"internalType": "uint256",
|
|
364
|
+
"name": "addedValue",
|
|
365
|
+
"type": "uint256"
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
"name": "increaseAllowance",
|
|
369
|
+
"outputs": [
|
|
370
|
+
{
|
|
371
|
+
"internalType": "bool",
|
|
372
|
+
"name": "",
|
|
373
|
+
"type": "bool"
|
|
374
|
+
}
|
|
375
|
+
],
|
|
376
|
+
"stateMutability": "nonpayable",
|
|
377
|
+
"type": "function"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"inputs": [
|
|
381
|
+
{
|
|
382
|
+
"internalType": "address",
|
|
383
|
+
"name": "",
|
|
384
|
+
"type": "address"
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
"name": "maxDeposit",
|
|
388
|
+
"outputs": [
|
|
389
|
+
{
|
|
390
|
+
"internalType": "uint256",
|
|
391
|
+
"name": "",
|
|
392
|
+
"type": "uint256"
|
|
393
|
+
}
|
|
394
|
+
],
|
|
395
|
+
"stateMutability": "view",
|
|
396
|
+
"type": "function"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"inputs": [
|
|
400
|
+
{
|
|
401
|
+
"internalType": "address",
|
|
402
|
+
"name": "",
|
|
403
|
+
"type": "address"
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"name": "maxMint",
|
|
407
|
+
"outputs": [
|
|
408
|
+
{
|
|
409
|
+
"internalType": "uint256",
|
|
410
|
+
"name": "",
|
|
411
|
+
"type": "uint256"
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
"stateMutability": "view",
|
|
415
|
+
"type": "function"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"inputs": [
|
|
419
|
+
{
|
|
420
|
+
"internalType": "address",
|
|
421
|
+
"name": "owner",
|
|
422
|
+
"type": "address"
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
"name": "maxRedeem",
|
|
426
|
+
"outputs": [
|
|
427
|
+
{
|
|
428
|
+
"internalType": "uint256",
|
|
429
|
+
"name": "",
|
|
430
|
+
"type": "uint256"
|
|
431
|
+
}
|
|
432
|
+
],
|
|
433
|
+
"stateMutability": "view",
|
|
434
|
+
"type": "function"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"inputs": [
|
|
438
|
+
{
|
|
439
|
+
"internalType": "address",
|
|
440
|
+
"name": "owner",
|
|
441
|
+
"type": "address"
|
|
442
|
+
}
|
|
443
|
+
],
|
|
444
|
+
"name": "maxWithdraw",
|
|
445
|
+
"outputs": [
|
|
446
|
+
{
|
|
447
|
+
"internalType": "uint256",
|
|
448
|
+
"name": "",
|
|
449
|
+
"type": "uint256"
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
"stateMutability": "view",
|
|
453
|
+
"type": "function"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"inputs": [
|
|
457
|
+
{
|
|
458
|
+
"internalType": "uint256",
|
|
459
|
+
"name": "shares",
|
|
460
|
+
"type": "uint256"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"internalType": "address",
|
|
464
|
+
"name": "receiver",
|
|
465
|
+
"type": "address"
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
"name": "mint",
|
|
469
|
+
"outputs": [
|
|
470
|
+
{
|
|
471
|
+
"internalType": "uint256",
|
|
472
|
+
"name": "",
|
|
473
|
+
"type": "uint256"
|
|
474
|
+
}
|
|
475
|
+
],
|
|
476
|
+
"stateMutability": "nonpayable",
|
|
477
|
+
"type": "function"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"inputs": [],
|
|
481
|
+
"name": "name",
|
|
482
|
+
"outputs": [
|
|
483
|
+
{
|
|
484
|
+
"internalType": "string",
|
|
485
|
+
"name": "",
|
|
486
|
+
"type": "string"
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
"stateMutability": "view",
|
|
490
|
+
"type": "function"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"inputs": [
|
|
494
|
+
{
|
|
495
|
+
"internalType": "uint256",
|
|
496
|
+
"name": "assets",
|
|
497
|
+
"type": "uint256"
|
|
498
|
+
}
|
|
499
|
+
],
|
|
500
|
+
"name": "previewDeposit",
|
|
501
|
+
"outputs": [
|
|
502
|
+
{
|
|
503
|
+
"internalType": "uint256",
|
|
504
|
+
"name": "",
|
|
505
|
+
"type": "uint256"
|
|
506
|
+
}
|
|
507
|
+
],
|
|
508
|
+
"stateMutability": "view",
|
|
509
|
+
"type": "function"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"inputs": [
|
|
513
|
+
{
|
|
514
|
+
"internalType": "uint256",
|
|
515
|
+
"name": "shares",
|
|
516
|
+
"type": "uint256"
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"name": "previewMint",
|
|
520
|
+
"outputs": [
|
|
521
|
+
{
|
|
522
|
+
"internalType": "uint256",
|
|
523
|
+
"name": "",
|
|
524
|
+
"type": "uint256"
|
|
525
|
+
}
|
|
526
|
+
],
|
|
527
|
+
"stateMutability": "view",
|
|
528
|
+
"type": "function"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"inputs": [
|
|
532
|
+
{
|
|
533
|
+
"internalType": "uint256",
|
|
534
|
+
"name": "shares",
|
|
535
|
+
"type": "uint256"
|
|
536
|
+
}
|
|
537
|
+
],
|
|
538
|
+
"name": "previewRedeem",
|
|
539
|
+
"outputs": [
|
|
540
|
+
{
|
|
541
|
+
"internalType": "uint256",
|
|
542
|
+
"name": "",
|
|
543
|
+
"type": "uint256"
|
|
544
|
+
}
|
|
545
|
+
],
|
|
546
|
+
"stateMutability": "view",
|
|
547
|
+
"type": "function"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"inputs": [
|
|
551
|
+
{
|
|
552
|
+
"internalType": "uint256",
|
|
553
|
+
"name": "assets",
|
|
554
|
+
"type": "uint256"
|
|
555
|
+
}
|
|
556
|
+
],
|
|
557
|
+
"name": "previewWithdraw",
|
|
558
|
+
"outputs": [
|
|
559
|
+
{
|
|
560
|
+
"internalType": "uint256",
|
|
561
|
+
"name": "",
|
|
562
|
+
"type": "uint256"
|
|
563
|
+
}
|
|
564
|
+
],
|
|
565
|
+
"stateMutability": "view",
|
|
566
|
+
"type": "function"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"inputs": [
|
|
570
|
+
{
|
|
571
|
+
"internalType": "uint256",
|
|
572
|
+
"name": "shares",
|
|
573
|
+
"type": "uint256"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"internalType": "address",
|
|
577
|
+
"name": "receiver",
|
|
578
|
+
"type": "address"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"internalType": "address",
|
|
582
|
+
"name": "owner",
|
|
583
|
+
"type": "address"
|
|
584
|
+
}
|
|
585
|
+
],
|
|
586
|
+
"name": "redeem",
|
|
587
|
+
"outputs": [
|
|
588
|
+
{
|
|
589
|
+
"internalType": "uint256",
|
|
590
|
+
"name": "",
|
|
591
|
+
"type": "uint256"
|
|
592
|
+
}
|
|
593
|
+
],
|
|
594
|
+
"stateMutability": "nonpayable",
|
|
595
|
+
"type": "function"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"inputs": [
|
|
599
|
+
{
|
|
600
|
+
"internalType": "bool",
|
|
601
|
+
"name": "broken_",
|
|
602
|
+
"type": "bool"
|
|
603
|
+
}
|
|
604
|
+
],
|
|
605
|
+
"name": "setBroken",
|
|
606
|
+
"outputs": [],
|
|
607
|
+
"stateMutability": "nonpayable",
|
|
608
|
+
"type": "function"
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"inputs": [],
|
|
612
|
+
"name": "symbol",
|
|
613
|
+
"outputs": [
|
|
614
|
+
{
|
|
615
|
+
"internalType": "string",
|
|
616
|
+
"name": "",
|
|
617
|
+
"type": "string"
|
|
618
|
+
}
|
|
619
|
+
],
|
|
620
|
+
"stateMutability": "view",
|
|
621
|
+
"type": "function"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"inputs": [],
|
|
625
|
+
"name": "totalAssets",
|
|
626
|
+
"outputs": [
|
|
627
|
+
{
|
|
628
|
+
"internalType": "uint256",
|
|
629
|
+
"name": "",
|
|
630
|
+
"type": "uint256"
|
|
631
|
+
}
|
|
632
|
+
],
|
|
633
|
+
"stateMutability": "view",
|
|
634
|
+
"type": "function"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"inputs": [],
|
|
638
|
+
"name": "totalSupply",
|
|
639
|
+
"outputs": [
|
|
640
|
+
{
|
|
641
|
+
"internalType": "uint256",
|
|
642
|
+
"name": "",
|
|
643
|
+
"type": "uint256"
|
|
644
|
+
}
|
|
645
|
+
],
|
|
646
|
+
"stateMutability": "view",
|
|
647
|
+
"type": "function"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"inputs": [
|
|
651
|
+
{
|
|
652
|
+
"internalType": "address",
|
|
653
|
+
"name": "to",
|
|
654
|
+
"type": "address"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"internalType": "uint256",
|
|
658
|
+
"name": "amount",
|
|
659
|
+
"type": "uint256"
|
|
660
|
+
}
|
|
661
|
+
],
|
|
662
|
+
"name": "transfer",
|
|
663
|
+
"outputs": [
|
|
664
|
+
{
|
|
665
|
+
"internalType": "bool",
|
|
666
|
+
"name": "",
|
|
667
|
+
"type": "bool"
|
|
668
|
+
}
|
|
669
|
+
],
|
|
670
|
+
"stateMutability": "nonpayable",
|
|
671
|
+
"type": "function"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"inputs": [
|
|
675
|
+
{
|
|
676
|
+
"internalType": "address",
|
|
677
|
+
"name": "from",
|
|
678
|
+
"type": "address"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"internalType": "address",
|
|
682
|
+
"name": "to",
|
|
683
|
+
"type": "address"
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"internalType": "uint256",
|
|
687
|
+
"name": "amount",
|
|
688
|
+
"type": "uint256"
|
|
689
|
+
}
|
|
690
|
+
],
|
|
691
|
+
"name": "transferFrom",
|
|
692
|
+
"outputs": [
|
|
693
|
+
{
|
|
694
|
+
"internalType": "bool",
|
|
695
|
+
"name": "",
|
|
696
|
+
"type": "bool"
|
|
697
|
+
}
|
|
698
|
+
],
|
|
699
|
+
"stateMutability": "nonpayable",
|
|
700
|
+
"type": "function"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"inputs": [
|
|
704
|
+
{
|
|
705
|
+
"internalType": "uint256",
|
|
706
|
+
"name": "assets",
|
|
707
|
+
"type": "uint256"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"internalType": "address",
|
|
711
|
+
"name": "receiver",
|
|
712
|
+
"type": "address"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"internalType": "address",
|
|
716
|
+
"name": "owner",
|
|
717
|
+
"type": "address"
|
|
718
|
+
}
|
|
719
|
+
],
|
|
720
|
+
"name": "withdraw",
|
|
721
|
+
"outputs": [
|
|
722
|
+
{
|
|
723
|
+
"internalType": "uint256",
|
|
724
|
+
"name": "",
|
|
725
|
+
"type": "uint256"
|
|
726
|
+
}
|
|
727
|
+
],
|
|
728
|
+
"stateMutability": "nonpayable",
|
|
729
|
+
"type": "function"
|
|
730
|
+
}
|
|
731
|
+
],
|
|
732
|
+
"bytecode": "0x60a06040523480156200001157600080fd5b50604051620024ba380380620024ba83398101604081905262000034916200023c565b81848481600390805190602001906200004f929190620000df565b50805162000065906004906020840190620000df565b50505060601b6001600160601b03191660805260058190556200009560066200009f602090811b6200088a17901c565b5050505062000322565b620000b4620000cf60201b620008a81760201c565b6001600160801b0316600160e01b4263ffffffff1602179055565b6b033b2e3c9fd0803ce800000090565b828054620000ed90620002cf565b90600052602060002090601f0160209004810192826200011157600085556200015c565b82601f106200012c57805160ff19168380011785556200015c565b828001600101855582156200015c579182015b828111156200015c5782518255916020019190600101906200013f565b506200016a9291506200016e565b5090565b5b808211156200016a57600081556001016200016f565b600082601f8301126200019757600080fd5b81516001600160401b0380821115620001b457620001b46200030c565b604051601f8301601f19908116603f01168101908282118183101715620001df57620001df6200030c565b81604052838152602092508683858801011115620001fc57600080fd5b600091505b8382101562000220578582018301518183018401529082019062000201565b83821115620002325760008385830101525b9695505050505050565b600080600080608085870312156200025357600080fd5b84516001600160401b03808211156200026b57600080fd5b620002798883890162000185565b955060208701519150808211156200029057600080fd5b506200029f8782880162000185565b604087015190945090506001600160a01b0381168114620002bf57600080fd5b6060959095015193969295505050565b600181811c90821680620002e457607f821691505b602082108114156200030657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c61214f6200036b6000396000818161028f0152818161092101528181610b3001528181610e9b01528181610f3f015281816113da015261149a015261214f6000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c806386de9e4f11610104578063ba087652116100a2578063ce96cb7711610071578063ce96cb77146103fe578063d905777e14610411578063dd62ed3e14610424578063ef8b30f7146103d857600080fd5b8063ba087652146103b0578063c63d75b6146103c3578063c6e6f592146103d8578063c7361ed2146103eb57600080fd5b8063a457c2d7116100de578063a457c2d714610364578063a9059cbb14610377578063b3d7f6b91461038a578063b460af941461039d57600080fd5b806386de9e4f1461032657806394bf804d1461034957806395d89b411461035c57600080fd5b8063313ce5671161017c5780634cdad5061161014b5780634cdad5061461020f5780636e553f65146102df57806370a08231146102f25780637fb1ad621461031b57600080fd5b8063313ce5671461027357806338d52e0f1461028257806339509351146102b9578063402d267d146102cc57600080fd5b8063095ea7b3116101b8578063095ea7b3146102225780630a28a4771461024557806318160ddd1461025857806323b872dd1461026057600080fd5b806301e1d114146101df57806306fdde03146101fa57806307a2d13a1461020f575b600080fd5b6101e7610437565b6040519081526020015b60405180910390f35b61020261047a565b6040516101f19190611e1b565b6101e761021d366004611d4b565b61050c565b610235610230366004611ce7565b61051f565b60405190151581526020016101f1565b6101e7610253366004611d4b565b610537565b6002546101e7565b61023561026e366004611cab565b610544565b604051601281526020016101f1565b6040516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001681526020016101f1565b6102356102c7366004611ce7565b61056a565b6101e76102da366004611c5d565b61058c565b6101e76102ed366004611d7d565b6105aa565b6101e7610300366004611c5d565b6001600160a01b031660009081526020819052604090205490565b60075460ff16610235565b610347610334366004611d11565b6007805460ff1916911515919091179055565b005b6101e7610357366004611d7d565b61061d565b610202610637565b610235610372366004611ce7565b610646565b610235610385366004611ce7565b6106cc565b6101e7610398366004611d4b565b6106da565b6101e76103ab366004611da0565b6106e7565b6101e76103be366004611da0565b610763565b6101e76103d1366004611c5d565b5060001990565b6101e76103e6366004611d4b565b6107d7565b6103476103f9366004611d4b565b6107e4565b6101e761040c366004611c5d565b61081d565b6101e761041f366004611c5d565b610841565b6101e7610432366004611c78565b61085f565b60075460009060ff16156104665760405162461bcd60e51b815260040161045d90611e4e565b60405180910390fd5b600554610475906006906108b7565b905090565b60606003805461048990612071565b80601f01602080910402602001604051908101604052809291908181526020018280546104b590612071565b80156105025780601f106104d757610100808354040283529160200191610502565b820191906000526020600020905b8154815290600101906020018083116104e557829003601f168201915b5050505050905090565b60006105198260006108ef565b92915050565b60003361052d8185856109d2565b5060019392505050565b6000610519826001610af6565b600033610552858285610bbf565b61055d858585610c39565b60019150505b9392505050565b60003361052d81858561057d838361085f565b6105879190611e77565b6109d2565b6000610596610e07565b6105a1576000610519565b60001992915050565b60006105b58261058c565b8311156106045760405162461bcd60e51b815260206004820152601e60248201527f455243343632363a206465706f736974206d6f7265207468616e206d61780000604482015260640161045d565b600061060f846107d7565b905061056333848684610e21565b600080610629846106da565b905061056333848387610e21565b60606004805461048990612071565b60003381610654828661085f565b9050838110156106b45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161045d565b6106c182868684036109d2565b506001949350505050565b60003361052d818585610c39565b60006105198260016108ef565b60006106f28261081d565b8411156107415760405162461bcd60e51b815260206004820152601f60248201527f455243343632363a207769746864726177206d6f7265207468616e206d617800604482015260640161045d565b600061074c85610537565b905061075b3385858885610e62565b949350505050565b600061076e82610841565b8411156107bd5760405162461bcd60e51b815260206004820152601d60248201527f455243343632363a2072656465656d206d6f7265207468616e206d6178000000604482015260640161045d565b60006107c88561050c565b905061075b3385858489610e62565b6000610519826000610af6565b6000811315610802576005546107fe906006908390610feb565b5050565b6107fe61080e826120ac565b60055460069190611059565b50565b6001600160a01b0381166000908152602081905260408120546105199060006108ef565b6001600160a01b038116600090815260208190526040812054610519565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b63ffffffff4216600160e01b02676765c793fa10079d601b1b179055565b676765c793fa10079d601b1b90565b60006105636108ea6108c985856110f7565b85546108e490600160801b90046001600160601b03166111a0565b9061121e565b6112f5565b6000806108fb60025490565b9050801561091c5761091761090e610437565b85908386611375565b61075b565b61075b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561097857600080fd5b505afa15801561098c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b09190611ddc565b6109bb90600a611f1f565b60125b6109c990600a611f1f565b86919086611375565b6001600160a01b038316610a345760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161045d565b6001600160a01b038216610a955760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161045d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600080610b0260025490565b9050831580610b0f575080155b610b1f57610917816109c9610437565b61075b610b2e6012600a611f1f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610b8757600080fd5b505afa158015610b9b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109be9190611ddc565b6000610bcb848461085f565b90506000198114610c335781811015610c265760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161045d565b610c3384848484036109d2565b50505050565b6001600160a01b038316610c9d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161045d565b6001600160a01b038216610cff5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161045d565b6001600160a01b03831660009081526020819052604090205481811015610d775760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161045d565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610dae908490611e77565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610dfa91815260200190565b60405180910390a3610c33565b600080610e12610437565b11806104755750506002541590565b60075460ff1615610e445760405162461bcd60e51b815260040161045d90611e4e565b600554610e55906006908490610feb565b50610c33848484846113d5565b60075460ff1615610e855760405162461bcd60e51b815260040161045d90611e4e565b600554610e96906006908490611059565b5060007f00000000000000000000000000000000000000000000000000000000000000006040516370a0823160e01b81523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b158015610efb57600080fd5b505afa158015610f0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f339190611d64565b905082811015610fd6577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340c10f1930610f778487611fe9565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610fbd57600080fd5b505af1158015610fd1573d6000803e3d6000fd5b505050505b610fe38686868686611467565b505050505050565b6000610ff78483611527565b600061100385856115b8565b85549091508190869060109061102a908490600160801b90046001600160601b0316611e8f565b92506101000a8154816001600160601b0302191690836001600160601b03160217905550809150509392505050565b60006110658483611527565b600061107185856115b8565b855490915081908690601090611098908490600160801b90046001600160601b0316612025565b82546101009290920a6001600160601b038181021990931691831602179091558654600160801b9004161515905061075b5784546fffffffffffffffffffffffffffffffff1916676765c793fa10079d601b1b17909455509192915050565b8154600090429063ffffffff808316600160e01b909204161061112657505081546001600160801b0316610519565b835460009061114290600160e01b900463ffffffff1683612000565b63ffffffff169050611197676765c793fa10079d601b1b6301e1338083611168886111a0565b6111729190611fca565b61117c9190611eba565b6111869190611e77565b86546001600160801b03169061121e565b95945050505050565b6000806111b1633b9aca0084611fca565b9050826111c2633b9aca0083611eba565b146105195760405162461bcd60e51b815260206004820152602660248201527f776164546f5261643a204d617468204d756c7469706c69636174696f6e204f766044820152656572666c6f7760d01b606482015260840161045d565b600082158061122b575081155b1561123857506000610519565b8161124f6002676765c793fa10079d601b1b611eba565b61125b90600019611fe9565b6112659190611eba565b8311156112c05760405162461bcd60e51b8152602060048201526024808201527f7261794d756c3a204d617468204d756c7469706c69636174696f6e204f766572604482015263666c6f7760e01b606482015260840161045d565b676765c793fa10079d601b1b6112d7600282611eba565b6112e18486611fca565b6112eb9190611e77565b6105639190611eba565b6000806113076002633b9aca00611eba565b905060006113158483611e77565b9050818110156113675760405162461bcd60e51b815260206004820181905260248201527f726179546f5761643a204d617468204164646974696f6e204f766572666c6f77604482015260640161045d565b61075b633b9aca0082611eba565b6000806113838686866115dd565b90506001836002811115611399576113996120f5565b1480156113b65750600084806113b1576113b16120df565b868809115b15611197576113c6600182611e77565b9695505050505050565b505050565b6114017f000000000000000000000000000000000000000000000000000000000000000085308561168d565b61140b83826116f8565b826001600160a01b0316846001600160a01b03167fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d78484604051611459929190918252602082015260400190565b60405180910390a350505050565b826001600160a01b0316856001600160a01b03161461148b5761148b838683610bbf565b61149583826117d7565b6114c07f00000000000000000000000000000000000000000000000000000000000000008584611925565b826001600160a01b0316846001600160a01b0316866001600160a01b03167ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db8585604051611518929190918252602082015260400190565b60405180910390a45050505050565b815463ffffffff428116600160e01b9092041610611543575050565b8154600160801b90046001600160601b03166115785781546001600160e01b0316600160e01b4263ffffffff16021782555050565b61158282826110f7565b82546001600160801b03919091166bffffffffffffffffffffffff60801b90911617600160e01b4263ffffffff16021790915550565b8154600090610563906108ea906001600160801b03166115d7856111a0565b90611955565b6000808060001985870985870292508281108382030391505080600014156116185783828161160e5761160e6120df565b0492505050610563565b80841161162457600080fd5b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610c339085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611a5b565b6001600160a01b03821661174e5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161045d565b80600260008282546117609190611e77565b90915550506001600160a01b0382166000908152602081905260408120805483929061178d908490611e77565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0382166118375760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161045d565b6001600160a01b038216600090815260208190526040902054818110156118ab5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161045d565b6001600160a01b03831660009081526020819052604081208383039055600280548492906118da908490611fe9565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6040516001600160a01b0383166024820152604481018290526113d090849063a9059cbb60e01b906064016116c1565b6000816119a45760405162461bcd60e51b815260206004820152601860248201527f7261794469763a204469766973696f6e206279207a65726f0000000000000000604482015260640161045d565b60006119b1600284611eba565b9050676765c793fa10079d601b1b6119cb82600019611fe9565b6119d59190611eba565b841115611a305760405162461bcd60e51b8152602060048201526024808201527f7261794469763a204d617468204d756c7469706c69636174696f6e204f766572604482015263666c6f7760e01b606482015260840161045d565b8281611a47676765c793fa10079d601b1b87611fca565b611a519190611e77565b61075b9190611eba565b6000611ab0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b2d9092919063ffffffff16565b8051909150156113d05780806020019051810190611ace9190611d2e565b6113d05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161045d565b606061075b8484600085856001600160a01b0385163b611b8f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161045d565b600080866001600160a01b03168587604051611bab9190611dff565b60006040518083038185875af1925050503d8060008114611be8576040519150601f19603f3d011682016040523d82523d6000602084013e611bed565b606091505b5091509150611bfd828286611c08565b979650505050505050565b60608315611c17575081610563565b825115611c275782518084602001fd5b8160405162461bcd60e51b815260040161045d9190611e1b565b80356001600160a01b0381168114611c5857600080fd5b919050565b600060208284031215611c6f57600080fd5b61056382611c41565b60008060408385031215611c8b57600080fd5b611c9483611c41565b9150611ca260208401611c41565b90509250929050565b600080600060608486031215611cc057600080fd5b611cc984611c41565b9250611cd760208501611c41565b9150604084013590509250925092565b60008060408385031215611cfa57600080fd5b611d0383611c41565b946020939093013593505050565b600060208284031215611d2357600080fd5b81356105638161210b565b600060208284031215611d4057600080fd5b81516105638161210b565b600060208284031215611d5d57600080fd5b5035919050565b600060208284031215611d7657600080fd5b5051919050565b60008060408385031215611d9057600080fd5b82359150611ca260208401611c41565b600080600060608486031215611db557600080fd5b83359250611dc560208501611c41565b9150611dd360408501611c41565b90509250925092565b600060208284031215611dee57600080fd5b815160ff8116811461056357600080fd5b60008251611e11818460208701612045565b9190910192915050565b6020815260008251806020840152611e3a816040850160208701612045565b601f01601f19169190910160400192915050565b6020808252600f908201526e2b30bab63a1034b990313937b5b2b760891b604082015260600190565b60008219821115611e8a57611e8a6120c9565b500190565b60006001600160601b03808316818516808303821115611eb157611eb16120c9565b01949350505050565b600082611ed757634e487b7160e01b600052601260045260246000fd5b500490565b600181815b80851115611f17578160001904821115611efd57611efd6120c9565b80851615611f0a57918102915b93841c9390800290611ee1565b509250929050565b600061056360ff841683600082611f3857506001610519565b81611f4557506000610519565b8160018114611f5b5760028114611f6557611f81565b6001915050610519565b60ff841115611f7657611f766120c9565b50506001821b610519565b5060208310610133831016604e8410600b8410161715611fa4575081810a610519565b611fae8383611edc565b8060001904821115611fc257611fc26120c9565b029392505050565b6000816000190483118215151615611fe457611fe46120c9565b500290565b600082821015611ffb57611ffb6120c9565b500390565b600063ffffffff8381169083168181101561201d5761201d6120c9565b039392505050565b60006001600160601b038381169083168181101561201d5761201d6120c9565b60005b83811015612060578181015183820152602001612048565b83811115610c335750506000910152565b600181811c9082168061208557607f821691505b602082108114156120a657634e487b7160e01b600052602260045260246000fd5b50919050565b6000600160ff1b8214156120c2576120c26120c9565b5060000390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b801515811461081a57600080fdfea2646970667358221220ab70be1edec01990106a63aff4ea0542759a6da53848e14ba1cad7d8cf28fab664736f6c63430008060033",
|
|
733
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101da5760003560e01c806386de9e4f11610104578063ba087652116100a2578063ce96cb7711610071578063ce96cb77146103fe578063d905777e14610411578063dd62ed3e14610424578063ef8b30f7146103d857600080fd5b8063ba087652146103b0578063c63d75b6146103c3578063c6e6f592146103d8578063c7361ed2146103eb57600080fd5b8063a457c2d7116100de578063a457c2d714610364578063a9059cbb14610377578063b3d7f6b91461038a578063b460af941461039d57600080fd5b806386de9e4f1461032657806394bf804d1461034957806395d89b411461035c57600080fd5b8063313ce5671161017c5780634cdad5061161014b5780634cdad5061461020f5780636e553f65146102df57806370a08231146102f25780637fb1ad621461031b57600080fd5b8063313ce5671461027357806338d52e0f1461028257806339509351146102b9578063402d267d146102cc57600080fd5b8063095ea7b3116101b8578063095ea7b3146102225780630a28a4771461024557806318160ddd1461025857806323b872dd1461026057600080fd5b806301e1d114146101df57806306fdde03146101fa57806307a2d13a1461020f575b600080fd5b6101e7610437565b6040519081526020015b60405180910390f35b61020261047a565b6040516101f19190611e1b565b6101e761021d366004611d4b565b61050c565b610235610230366004611ce7565b61051f565b60405190151581526020016101f1565b6101e7610253366004611d4b565b610537565b6002546101e7565b61023561026e366004611cab565b610544565b604051601281526020016101f1565b6040516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001681526020016101f1565b6102356102c7366004611ce7565b61056a565b6101e76102da366004611c5d565b61058c565b6101e76102ed366004611d7d565b6105aa565b6101e7610300366004611c5d565b6001600160a01b031660009081526020819052604090205490565b60075460ff16610235565b610347610334366004611d11565b6007805460ff1916911515919091179055565b005b6101e7610357366004611d7d565b61061d565b610202610637565b610235610372366004611ce7565b610646565b610235610385366004611ce7565b6106cc565b6101e7610398366004611d4b565b6106da565b6101e76103ab366004611da0565b6106e7565b6101e76103be366004611da0565b610763565b6101e76103d1366004611c5d565b5060001990565b6101e76103e6366004611d4b565b6107d7565b6103476103f9366004611d4b565b6107e4565b6101e761040c366004611c5d565b61081d565b6101e761041f366004611c5d565b610841565b6101e7610432366004611c78565b61085f565b60075460009060ff16156104665760405162461bcd60e51b815260040161045d90611e4e565b60405180910390fd5b600554610475906006906108b7565b905090565b60606003805461048990612071565b80601f01602080910402602001604051908101604052809291908181526020018280546104b590612071565b80156105025780601f106104d757610100808354040283529160200191610502565b820191906000526020600020905b8154815290600101906020018083116104e557829003601f168201915b5050505050905090565b60006105198260006108ef565b92915050565b60003361052d8185856109d2565b5060019392505050565b6000610519826001610af6565b600033610552858285610bbf565b61055d858585610c39565b60019150505b9392505050565b60003361052d81858561057d838361085f565b6105879190611e77565b6109d2565b6000610596610e07565b6105a1576000610519565b60001992915050565b60006105b58261058c565b8311156106045760405162461bcd60e51b815260206004820152601e60248201527f455243343632363a206465706f736974206d6f7265207468616e206d61780000604482015260640161045d565b600061060f846107d7565b905061056333848684610e21565b600080610629846106da565b905061056333848387610e21565b60606004805461048990612071565b60003381610654828661085f565b9050838110156106b45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161045d565b6106c182868684036109d2565b506001949350505050565b60003361052d818585610c39565b60006105198260016108ef565b60006106f28261081d565b8411156107415760405162461bcd60e51b815260206004820152601f60248201527f455243343632363a207769746864726177206d6f7265207468616e206d617800604482015260640161045d565b600061074c85610537565b905061075b3385858885610e62565b949350505050565b600061076e82610841565b8411156107bd5760405162461bcd60e51b815260206004820152601d60248201527f455243343632363a2072656465656d206d6f7265207468616e206d6178000000604482015260640161045d565b60006107c88561050c565b905061075b3385858489610e62565b6000610519826000610af6565b6000811315610802576005546107fe906006908390610feb565b5050565b6107fe61080e826120ac565b60055460069190611059565b50565b6001600160a01b0381166000908152602081905260408120546105199060006108ef565b6001600160a01b038116600090815260208190526040812054610519565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b63ffffffff4216600160e01b02676765c793fa10079d601b1b179055565b676765c793fa10079d601b1b90565b60006105636108ea6108c985856110f7565b85546108e490600160801b90046001600160601b03166111a0565b9061121e565b6112f5565b6000806108fb60025490565b9050801561091c5761091761090e610437565b85908386611375565b61075b565b61075b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561097857600080fd5b505afa15801561098c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b09190611ddc565b6109bb90600a611f1f565b60125b6109c990600a611f1f565b86919086611375565b6001600160a01b038316610a345760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161045d565b6001600160a01b038216610a955760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161045d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600080610b0260025490565b9050831580610b0f575080155b610b1f57610917816109c9610437565b61075b610b2e6012600a611f1f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610b8757600080fd5b505afa158015610b9b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109be9190611ddc565b6000610bcb848461085f565b90506000198114610c335781811015610c265760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161045d565b610c3384848484036109d2565b50505050565b6001600160a01b038316610c9d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161045d565b6001600160a01b038216610cff5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161045d565b6001600160a01b03831660009081526020819052604090205481811015610d775760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161045d565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610dae908490611e77565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610dfa91815260200190565b60405180910390a3610c33565b600080610e12610437565b11806104755750506002541590565b60075460ff1615610e445760405162461bcd60e51b815260040161045d90611e4e565b600554610e55906006908490610feb565b50610c33848484846113d5565b60075460ff1615610e855760405162461bcd60e51b815260040161045d90611e4e565b600554610e96906006908490611059565b5060007f00000000000000000000000000000000000000000000000000000000000000006040516370a0823160e01b81523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b158015610efb57600080fd5b505afa158015610f0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f339190611d64565b905082811015610fd6577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340c10f1930610f778487611fe9565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610fbd57600080fd5b505af1158015610fd1573d6000803e3d6000fd5b505050505b610fe38686868686611467565b505050505050565b6000610ff78483611527565b600061100385856115b8565b85549091508190869060109061102a908490600160801b90046001600160601b0316611e8f565b92506101000a8154816001600160601b0302191690836001600160601b03160217905550809150509392505050565b60006110658483611527565b600061107185856115b8565b855490915081908690601090611098908490600160801b90046001600160601b0316612025565b82546101009290920a6001600160601b038181021990931691831602179091558654600160801b9004161515905061075b5784546fffffffffffffffffffffffffffffffff1916676765c793fa10079d601b1b17909455509192915050565b8154600090429063ffffffff808316600160e01b909204161061112657505081546001600160801b0316610519565b835460009061114290600160e01b900463ffffffff1683612000565b63ffffffff169050611197676765c793fa10079d601b1b6301e1338083611168886111a0565b6111729190611fca565b61117c9190611eba565b6111869190611e77565b86546001600160801b03169061121e565b95945050505050565b6000806111b1633b9aca0084611fca565b9050826111c2633b9aca0083611eba565b146105195760405162461bcd60e51b815260206004820152602660248201527f776164546f5261643a204d617468204d756c7469706c69636174696f6e204f766044820152656572666c6f7760d01b606482015260840161045d565b600082158061122b575081155b1561123857506000610519565b8161124f6002676765c793fa10079d601b1b611eba565b61125b90600019611fe9565b6112659190611eba565b8311156112c05760405162461bcd60e51b8152602060048201526024808201527f7261794d756c3a204d617468204d756c7469706c69636174696f6e204f766572604482015263666c6f7760e01b606482015260840161045d565b676765c793fa10079d601b1b6112d7600282611eba565b6112e18486611fca565b6112eb9190611e77565b6105639190611eba565b6000806113076002633b9aca00611eba565b905060006113158483611e77565b9050818110156113675760405162461bcd60e51b815260206004820181905260248201527f726179546f5761643a204d617468204164646974696f6e204f766572666c6f77604482015260640161045d565b61075b633b9aca0082611eba565b6000806113838686866115dd565b90506001836002811115611399576113996120f5565b1480156113b65750600084806113b1576113b16120df565b868809115b15611197576113c6600182611e77565b9695505050505050565b505050565b6114017f000000000000000000000000000000000000000000000000000000000000000085308561168d565b61140b83826116f8565b826001600160a01b0316846001600160a01b03167fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d78484604051611459929190918252602082015260400190565b60405180910390a350505050565b826001600160a01b0316856001600160a01b03161461148b5761148b838683610bbf565b61149583826117d7565b6114c07f00000000000000000000000000000000000000000000000000000000000000008584611925565b826001600160a01b0316846001600160a01b0316866001600160a01b03167ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db8585604051611518929190918252602082015260400190565b60405180910390a45050505050565b815463ffffffff428116600160e01b9092041610611543575050565b8154600160801b90046001600160601b03166115785781546001600160e01b0316600160e01b4263ffffffff16021782555050565b61158282826110f7565b82546001600160801b03919091166bffffffffffffffffffffffff60801b90911617600160e01b4263ffffffff16021790915550565b8154600090610563906108ea906001600160801b03166115d7856111a0565b90611955565b6000808060001985870985870292508281108382030391505080600014156116185783828161160e5761160e6120df565b0492505050610563565b80841161162457600080fd5b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610c339085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611a5b565b6001600160a01b03821661174e5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161045d565b80600260008282546117609190611e77565b90915550506001600160a01b0382166000908152602081905260408120805483929061178d908490611e77565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0382166118375760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161045d565b6001600160a01b038216600090815260208190526040902054818110156118ab5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161045d565b6001600160a01b03831660009081526020819052604081208383039055600280548492906118da908490611fe9565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6040516001600160a01b0383166024820152604481018290526113d090849063a9059cbb60e01b906064016116c1565b6000816119a45760405162461bcd60e51b815260206004820152601860248201527f7261794469763a204469766973696f6e206279207a65726f0000000000000000604482015260640161045d565b60006119b1600284611eba565b9050676765c793fa10079d601b1b6119cb82600019611fe9565b6119d59190611eba565b841115611a305760405162461bcd60e51b8152602060048201526024808201527f7261794469763a204d617468204d756c7469706c69636174696f6e204f766572604482015263666c6f7760e01b606482015260840161045d565b8281611a47676765c793fa10079d601b1b87611fca565b611a519190611e77565b61075b9190611eba565b6000611ab0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b2d9092919063ffffffff16565b8051909150156113d05780806020019051810190611ace9190611d2e565b6113d05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161045d565b606061075b8484600085856001600160a01b0385163b611b8f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161045d565b600080866001600160a01b03168587604051611bab9190611dff565b60006040518083038185875af1925050503d8060008114611be8576040519150601f19603f3d011682016040523d82523d6000602084013e611bed565b606091505b5091509150611bfd828286611c08565b979650505050505050565b60608315611c17575081610563565b825115611c275782518084602001fd5b8160405162461bcd60e51b815260040161045d9190611e1b565b80356001600160a01b0381168114611c5857600080fd5b919050565b600060208284031215611c6f57600080fd5b61056382611c41565b60008060408385031215611c8b57600080fd5b611c9483611c41565b9150611ca260208401611c41565b90509250929050565b600080600060608486031215611cc057600080fd5b611cc984611c41565b9250611cd760208501611c41565b9150604084013590509250925092565b60008060408385031215611cfa57600080fd5b611d0383611c41565b946020939093013593505050565b600060208284031215611d2357600080fd5b81356105638161210b565b600060208284031215611d4057600080fd5b81516105638161210b565b600060208284031215611d5d57600080fd5b5035919050565b600060208284031215611d7657600080fd5b5051919050565b60008060408385031215611d9057600080fd5b82359150611ca260208401611c41565b600080600060608486031215611db557600080fd5b83359250611dc560208501611c41565b9150611dd360408501611c41565b90509250925092565b600060208284031215611dee57600080fd5b815160ff8116811461056357600080fd5b60008251611e11818460208701612045565b9190910192915050565b6020815260008251806020840152611e3a816040850160208701612045565b601f01601f19169190910160400192915050565b6020808252600f908201526e2b30bab63a1034b990313937b5b2b760891b604082015260600190565b60008219821115611e8a57611e8a6120c9565b500190565b60006001600160601b03808316818516808303821115611eb157611eb16120c9565b01949350505050565b600082611ed757634e487b7160e01b600052601260045260246000fd5b500490565b600181815b80851115611f17578160001904821115611efd57611efd6120c9565b80851615611f0a57918102915b93841c9390800290611ee1565b509250929050565b600061056360ff841683600082611f3857506001610519565b81611f4557506000610519565b8160018114611f5b5760028114611f6557611f81565b6001915050610519565b60ff841115611f7657611f766120c9565b50506001821b610519565b5060208310610133831016604e8410600b8410161715611fa4575081810a610519565b611fae8383611edc565b8060001904821115611fc257611fc26120c9565b029392505050565b6000816000190483118215151615611fe457611fe46120c9565b500290565b600082821015611ffb57611ffb6120c9565b500390565b600063ffffffff8381169083168181101561201d5761201d6120c9565b039392505050565b60006001600160601b038381169083168181101561201d5761201d6120c9565b60005b83811015612060578181015183820152602001612048565b83811115610c335750506000910152565b600181811c9082168061208557607f821691505b602082108114156120a657634e487b7160e01b600052602260045260246000fd5b50919050565b6000600160ff1b8214156120c2576120c26120c9565b5060000390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b801515811461081a57600080fdfea2646970667358221220ab70be1edec01990106a63aff4ea0542759a6da53848e14ba1cad7d8cf28fab664736f6c63430008060033",
|
|
734
|
+
"linkReferences": {},
|
|
735
|
+
"deployedLinkReferences": {}
|
|
736
|
+
}
|