@ensuro/core 1.2.7 → 2.0.0-beta10
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/README.md +63 -27
- package/build/contracts/AccessManager.sol/AccessManager.json +559 -0
- package/build/contracts/ERC4626AssetManager.sol/ERC4626AssetManager.json +219 -0
- package/build/contracts/EToken.sol/EToken.json +217 -190
- package/build/contracts/LPManualWhitelist.sol/LPManualWhitelist.json +17 -4
- package/build/contracts/{extras/IPriceRiskModule.sol/IPriceRiskModule.json → LiquidityThresholdAssetManager.sol/LiquidityThresholdAssetManager.json} +81 -131
- package/build/contracts/Policy.sol/Policy.json +2 -2
- package/build/contracts/PolicyPool.sol/PolicyPool.json +425 -295
- package/build/contracts/PolicyPoolComponent.sol/PolicyPoolComponent.json +15 -2
- package/build/contracts/PremiumsAccount.sol/PremiumsAccount.json +868 -0
- package/build/contracts/{BaseAssetManager.sol/BaseAssetManager.json → Reserve.sol/Reserve.json} +37 -166
- package/build/contracts/RiskModule.sol/RiskModule.json +85 -312
- package/build/contracts/SignedQuoteRiskModule.sol/SignedQuoteRiskModule.json +960 -0
- package/build/contracts/{DataTypes.sol/DataTypes.json → TimeScaled.sol/TimeScaled.json} +4 -4
- package/build/contracts/TrustfulRiskModule.sol/TrustfulRiskModule.json +134 -336
- package/build/contracts/dependencies/ERC1967Proxy.sol/ERC1967Proxy.json +64 -0
- package/build/{interfaces/IExchange.sol/IExchange.json → contracts/dependencies/IERC20Metadata.sol/IERC20Metadata.json} +83 -79
- package/build/contracts/{WadRayMath.sol → dependencies/WadRayMath.sol}/WadRayMath.json +3 -3
- package/build/{interfaces/IPolicyPoolConfig.sol/IPolicyPoolConfig.json → contracts/interfaces/IAccessManager.sol/IAccessManager.json} +79 -77
- package/build/contracts/interfaces/IAssetManager.sol/IAssetManager.json +109 -0
- package/build/{interfaces → contracts/interfaces}/IEToken.sol/IEToken.json +39 -91
- package/build/{interfaces → contracts/interfaces}/ILPWhitelist.sol/ILPWhitelist.json +1 -1
- package/build/{interfaces → contracts/interfaces}/IPolicyHolder.sol/IPolicyHolder.json +1 -1
- package/build/{interfaces → contracts/interfaces}/IPolicyPool.sol/IPolicyPool.json +137 -100
- package/build/{interfaces → contracts/interfaces}/IPolicyPoolComponent.sol/IPolicyPoolComponent.json +1 -1
- package/build/contracts/interfaces/IPremiumsAccount.sol/IPremiumsAccount.json +315 -0
- package/build/{interfaces → contracts/interfaces}/IRiskModule.sol/IRiskModule.json +58 -34
- package/build/contracts/mocks/FixedRateVault.sol/FixedRateVault.json +736 -0
- package/build/contracts/mocks/ForwardProxy.sol/ForwardProxy.json +43 -0
- package/build/{interfaces/IInsolvencyHook.sol/IInsolvencyHook.json → contracts/mocks/IMintableERC20.sol/IMintableERC20.json} +13 -8
- package/build/contracts/mocks/PolicyHolderMock.sol/PolicyHolderMock.json +228 -0
- package/build/contracts/mocks/PolicyPoolComponentMock.sol/PolicyPoolComponentMock.json +35 -0
- package/build/contracts/mocks/PolicyPoolMock.sol/PolicyPoolMock.json +702 -0
- package/build/contracts/mocks/PolicyPoolMock.sol/PolicyPoolMockForward.json +92 -0
- package/build/contracts/mocks/RiskModuleMock.sol/RiskModuleMock.json +764 -0
- package/build/contracts/mocks/TestCurrency.sol/TestCurrency.json +343 -0
- package/build/contracts/mocks/TestNFT.sol/TestNFT.json +388 -0
- package/contracts/AccessManager.sol +103 -0
- package/contracts/ERC4626AssetManager.sol +52 -0
- package/contracts/EToken.sol +254 -299
- package/contracts/LPManualWhitelist.sol +4 -4
- package/contracts/LiquidityThresholdAssetManager.sol +160 -0
- package/contracts/Policy.sol +49 -45
- package/contracts/PolicyPool.sol +379 -514
- package/contracts/PolicyPoolComponent.sol +41 -41
- package/contracts/PremiumsAccount.sol +480 -0
- package/contracts/Reserve.sol +213 -0
- package/contracts/RiskModule.sol +233 -174
- package/contracts/SignedQuoteRiskModule.sol +241 -0
- package/contracts/TimeScaled.sol +138 -0
- package/contracts/TrustfulRiskModule.sol +85 -23
- package/contracts/dependencies/ERC1967Proxy.sol +19 -0
- package/contracts/dependencies/IERC20Metadata.sol +19 -0
- package/contracts/dependencies/WadRayMath.sol +126 -0
- package/contracts/interfaces/IAccessManager.sol +148 -0
- package/contracts/interfaces/IAssetManager.sol +84 -0
- package/contracts/interfaces/IEToken.sol +195 -0
- package/contracts/interfaces/ILPWhitelist.sol +40 -0
- package/{interfaces → contracts/interfaces}/IPolicyHolder.sol +0 -0
- package/contracts/interfaces/IPolicyPool.sol +145 -0
- package/{interfaces → contracts/interfaces}/IPolicyPoolComponent.sol +3 -0
- package/contracts/interfaces/IPremiumsAccount.sol +76 -0
- package/contracts/interfaces/IRiskModule.sol +123 -0
- package/contracts/mocks/FixedRateVault.sol +85 -0
- package/contracts/mocks/ForwardProxy.sol +66 -0
- package/contracts/mocks/IMintableERC20.sol +13 -0
- package/contracts/mocks/PolicyHolderMock.sol +89 -0
- package/contracts/mocks/PolicyPoolComponentMock.sol +17 -0
- package/contracts/mocks/PolicyPoolMock.sol +148 -0
- package/contracts/mocks/RiskModuleMock.sol +75 -0
- package/contracts/mocks/TestCurrency.sol +35 -0
- package/contracts/mocks/TestNFT.sol +23 -0
- package/js/test-utils.js +356 -0
- package/package.json +2 -2
- package/build/contracts/AaveAssetManager.sol/AaveAssetManager.json +0 -742
- package/build/contracts/Exchange.sol/Exchange.json +0 -591
- package/build/contracts/FlightDelayRiskModule.sol/FlightDelayRiskModule.json +0 -1112
- package/build/contracts/PolicyNFT.sol/PolicyNFT.json +0 -570
- package/build/contracts/PolicyPoolConfig.sol/PolicyPoolConfig.json +0 -686
- package/build/contracts/dependencies/ChainlinkClientUpgradeable.sol/ChainlinkClientUpgradeable.json +0 -50
- package/build/contracts/extras/PriceRiskModule.sol/PriceRiskModule.json +0 -1055
- package/build/contracts/upgraded/IPolicyNFTv1.sol/IPolicyNFTv1.json +0 -322
- package/build/contracts/upgraded/PolicyNFTv1.sol/PolicyNFTv1.json +0 -571
- package/build/contracts/upgraded/PolicyNFTv1.sol/PolicyNFTv1_Upgrade.json +0 -602
- package/build/interfaces/IAssetManager.sol/IAssetManager.json +0 -31
- package/build/interfaces/IExchange.sol/IPriceOracle.json +0 -30
- package/build/interfaces/IPolicyNFT.sol/IPolicyNFT.json +0 -321
- package/contracts/AaveAssetManager.sol +0 -298
- package/contracts/BaseAssetManager.sol +0 -301
- package/contracts/DataTypes.sol +0 -287
- package/contracts/Exchange.sol +0 -189
- package/contracts/FlightDelayRiskModule.sol +0 -208
- package/contracts/PolicyNFT.sol +0 -96
- package/contracts/PolicyPoolConfig.sol +0 -247
- package/contracts/WadRayMath.sol +0 -135
- package/contracts/dependencies/ChainlinkClientUpgradeable.sol +0 -371
- package/contracts/extras/IPriceRiskModule.sol +0 -41
- package/contracts/extras/PriceRiskModule.sol +0 -243
- package/contracts/upgraded/IPolicyNFTv1.sol +0 -15
- package/contracts/upgraded/PolicyNFTv1.sol +0 -126
- package/interfaces/IAssetManager.sol +0 -23
- package/interfaces/IEToken.sol +0 -48
- package/interfaces/IExchange.sol +0 -59
- package/interfaces/IInsolvencyHook.sol +0 -27
- package/interfaces/ILPWhitelist.sol +0 -23
- package/interfaces/IPolicyNFT.sol +0 -15
- package/interfaces/IPolicyPool.sol +0 -44
- package/interfaces/IPolicyPoolConfig.sol +0 -87
- package/interfaces/IRiskModule.sol +0 -29
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"inputs": [
|
|
41
41
|
{
|
|
42
42
|
"indexed": true,
|
|
43
|
-
"internalType": "enum
|
|
43
|
+
"internalType": "enum IAccessManager.GovernanceActions",
|
|
44
44
|
"name": "action",
|
|
45
45
|
"type": "uint8"
|
|
46
46
|
},
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"inputs": [
|
|
60
60
|
{
|
|
61
61
|
"indexed": true,
|
|
62
|
-
"internalType": "enum
|
|
62
|
+
"internalType": "enum IAccessManager.GovernanceActions",
|
|
63
63
|
"name": "action",
|
|
64
64
|
"type": "uint8"
|
|
65
65
|
},
|
|
@@ -78,87 +78,25 @@
|
|
|
78
78
|
"inputs": [
|
|
79
79
|
{
|
|
80
80
|
"indexed": false,
|
|
81
|
-
"internalType": "
|
|
82
|
-
"name": "
|
|
83
|
-
"type": "
|
|
84
|
-
}
|
|
85
|
-
],
|
|
86
|
-
"name": "Paused",
|
|
87
|
-
"type": "event"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"anonymous": false,
|
|
91
|
-
"inputs": [
|
|
92
|
-
{
|
|
93
|
-
"indexed": true,
|
|
94
|
-
"internalType": "bytes32",
|
|
95
|
-
"name": "role",
|
|
96
|
-
"type": "bytes32"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"indexed": true,
|
|
100
|
-
"internalType": "bytes32",
|
|
101
|
-
"name": "previousAdminRole",
|
|
102
|
-
"type": "bytes32"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"indexed": true,
|
|
106
|
-
"internalType": "bytes32",
|
|
107
|
-
"name": "newAdminRole",
|
|
108
|
-
"type": "bytes32"
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
"name": "RoleAdminChanged",
|
|
112
|
-
"type": "event"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"anonymous": false,
|
|
116
|
-
"inputs": [
|
|
117
|
-
{
|
|
118
|
-
"indexed": true,
|
|
119
|
-
"internalType": "bytes32",
|
|
120
|
-
"name": "role",
|
|
121
|
-
"type": "bytes32"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"indexed": true,
|
|
125
|
-
"internalType": "address",
|
|
126
|
-
"name": "account",
|
|
127
|
-
"type": "address"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"indexed": true,
|
|
131
|
-
"internalType": "address",
|
|
132
|
-
"name": "sender",
|
|
133
|
-
"type": "address"
|
|
81
|
+
"internalType": "uint8",
|
|
82
|
+
"name": "version",
|
|
83
|
+
"type": "uint8"
|
|
134
84
|
}
|
|
135
85
|
],
|
|
136
|
-
"name": "
|
|
86
|
+
"name": "Initialized",
|
|
137
87
|
"type": "event"
|
|
138
88
|
},
|
|
139
89
|
{
|
|
140
90
|
"anonymous": false,
|
|
141
91
|
"inputs": [
|
|
142
92
|
{
|
|
143
|
-
"indexed":
|
|
144
|
-
"internalType": "bytes32",
|
|
145
|
-
"name": "role",
|
|
146
|
-
"type": "bytes32"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"indexed": true,
|
|
93
|
+
"indexed": false,
|
|
150
94
|
"internalType": "address",
|
|
151
95
|
"name": "account",
|
|
152
96
|
"type": "address"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"indexed": true,
|
|
156
|
-
"internalType": "address",
|
|
157
|
-
"name": "sender",
|
|
158
|
-
"type": "address"
|
|
159
97
|
}
|
|
160
98
|
],
|
|
161
|
-
"name": "
|
|
99
|
+
"name": "Paused",
|
|
162
100
|
"type": "event"
|
|
163
101
|
},
|
|
164
102
|
{
|
|
@@ -189,7 +127,7 @@
|
|
|
189
127
|
},
|
|
190
128
|
{
|
|
191
129
|
"inputs": [],
|
|
192
|
-
"name": "
|
|
130
|
+
"name": "GUARDIAN_ROLE",
|
|
193
131
|
"outputs": [
|
|
194
132
|
{
|
|
195
133
|
"internalType": "bytes32",
|
|
@@ -202,7 +140,7 @@
|
|
|
202
140
|
},
|
|
203
141
|
{
|
|
204
142
|
"inputs": [],
|
|
205
|
-
"name": "
|
|
143
|
+
"name": "LEVEL1_ROLE",
|
|
206
144
|
"outputs": [
|
|
207
145
|
{
|
|
208
146
|
"internalType": "bytes32",
|
|
@@ -215,7 +153,7 @@
|
|
|
215
153
|
},
|
|
216
154
|
{
|
|
217
155
|
"inputs": [],
|
|
218
|
-
"name": "
|
|
156
|
+
"name": "LEVEL2_ROLE",
|
|
219
157
|
"outputs": [
|
|
220
158
|
{
|
|
221
159
|
"internalType": "bytes32",
|
|
@@ -228,7 +166,7 @@
|
|
|
228
166
|
},
|
|
229
167
|
{
|
|
230
168
|
"inputs": [],
|
|
231
|
-
"name": "
|
|
169
|
+
"name": "LEVEL3_ROLE",
|
|
232
170
|
"outputs": [
|
|
233
171
|
{
|
|
234
172
|
"internalType": "bytes32",
|
|
@@ -241,7 +179,7 @@
|
|
|
241
179
|
},
|
|
242
180
|
{
|
|
243
181
|
"inputs": [],
|
|
244
|
-
"name": "
|
|
182
|
+
"name": "RM_PROVIDER_ROLE",
|
|
245
183
|
"outputs": [
|
|
246
184
|
{
|
|
247
185
|
"internalType": "bytes32",
|
|
@@ -254,12 +192,12 @@
|
|
|
254
192
|
},
|
|
255
193
|
{
|
|
256
194
|
"inputs": [],
|
|
257
|
-
"name": "
|
|
195
|
+
"name": "TWEAK_EXPIRATION",
|
|
258
196
|
"outputs": [
|
|
259
197
|
{
|
|
260
|
-
"internalType": "
|
|
198
|
+
"internalType": "uint40",
|
|
261
199
|
"name": "",
|
|
262
|
-
"type": "
|
|
200
|
+
"type": "uint40"
|
|
263
201
|
}
|
|
264
202
|
],
|
|
265
203
|
"stateMutability": "view",
|
|
@@ -267,12 +205,12 @@
|
|
|
267
205
|
},
|
|
268
206
|
{
|
|
269
207
|
"inputs": [],
|
|
270
|
-
"name": "
|
|
208
|
+
"name": "activeExposure",
|
|
271
209
|
"outputs": [
|
|
272
210
|
{
|
|
273
|
-
"internalType": "
|
|
211
|
+
"internalType": "uint256",
|
|
274
212
|
"name": "",
|
|
275
|
-
"type": "
|
|
213
|
+
"type": "uint256"
|
|
276
214
|
}
|
|
277
215
|
],
|
|
278
216
|
"stateMutability": "view",
|
|
@@ -293,7 +231,7 @@
|
|
|
293
231
|
},
|
|
294
232
|
{
|
|
295
233
|
"inputs": [],
|
|
296
|
-
"name": "
|
|
234
|
+
"name": "exposureLimit",
|
|
297
235
|
"outputs": [
|
|
298
236
|
{
|
|
299
237
|
"internalType": "uint256",
|
|
@@ -333,67 +271,6 @@
|
|
|
333
271
|
"stateMutability": "view",
|
|
334
272
|
"type": "function"
|
|
335
273
|
},
|
|
336
|
-
{
|
|
337
|
-
"inputs": [
|
|
338
|
-
{
|
|
339
|
-
"internalType": "bytes32",
|
|
340
|
-
"name": "role",
|
|
341
|
-
"type": "bytes32"
|
|
342
|
-
}
|
|
343
|
-
],
|
|
344
|
-
"name": "getRoleAdmin",
|
|
345
|
-
"outputs": [
|
|
346
|
-
{
|
|
347
|
-
"internalType": "bytes32",
|
|
348
|
-
"name": "",
|
|
349
|
-
"type": "bytes32"
|
|
350
|
-
}
|
|
351
|
-
],
|
|
352
|
-
"stateMutability": "view",
|
|
353
|
-
"type": "function"
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
"inputs": [
|
|
357
|
-
{
|
|
358
|
-
"internalType": "bytes32",
|
|
359
|
-
"name": "role",
|
|
360
|
-
"type": "bytes32"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
"internalType": "address",
|
|
364
|
-
"name": "account",
|
|
365
|
-
"type": "address"
|
|
366
|
-
}
|
|
367
|
-
],
|
|
368
|
-
"name": "grantRole",
|
|
369
|
-
"outputs": [],
|
|
370
|
-
"stateMutability": "nonpayable",
|
|
371
|
-
"type": "function"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"inputs": [
|
|
375
|
-
{
|
|
376
|
-
"internalType": "bytes32",
|
|
377
|
-
"name": "role",
|
|
378
|
-
"type": "bytes32"
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"internalType": "address",
|
|
382
|
-
"name": "account",
|
|
383
|
-
"type": "address"
|
|
384
|
-
}
|
|
385
|
-
],
|
|
386
|
-
"name": "hasRole",
|
|
387
|
-
"outputs": [
|
|
388
|
-
{
|
|
389
|
-
"internalType": "bool",
|
|
390
|
-
"name": "",
|
|
391
|
-
"type": "bool"
|
|
392
|
-
}
|
|
393
|
-
],
|
|
394
|
-
"stateMutability": "view",
|
|
395
|
-
"type": "function"
|
|
396
|
-
},
|
|
397
274
|
{
|
|
398
275
|
"inputs": [],
|
|
399
276
|
"name": "lastTweak",
|
|
@@ -414,7 +291,7 @@
|
|
|
414
291
|
},
|
|
415
292
|
{
|
|
416
293
|
"inputs": [],
|
|
417
|
-
"name": "
|
|
294
|
+
"name": "maxDuration",
|
|
418
295
|
"outputs": [
|
|
419
296
|
{
|
|
420
297
|
"internalType": "uint256",
|
|
@@ -427,7 +304,7 @@
|
|
|
427
304
|
},
|
|
428
305
|
{
|
|
429
306
|
"inputs": [],
|
|
430
|
-
"name": "
|
|
307
|
+
"name": "maxPayoutPerPolicy",
|
|
431
308
|
"outputs": [
|
|
432
309
|
{
|
|
433
310
|
"internalType": "uint256",
|
|
@@ -451,6 +328,56 @@
|
|
|
451
328
|
"stateMutability": "view",
|
|
452
329
|
"type": "function"
|
|
453
330
|
},
|
|
331
|
+
{
|
|
332
|
+
"inputs": [],
|
|
333
|
+
"name": "params",
|
|
334
|
+
"outputs": [
|
|
335
|
+
{
|
|
336
|
+
"components": [
|
|
337
|
+
{
|
|
338
|
+
"internalType": "uint256",
|
|
339
|
+
"name": "moc",
|
|
340
|
+
"type": "uint256"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"internalType": "uint256",
|
|
344
|
+
"name": "jrCollRatio",
|
|
345
|
+
"type": "uint256"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"internalType": "uint256",
|
|
349
|
+
"name": "collRatio",
|
|
350
|
+
"type": "uint256"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"internalType": "uint256",
|
|
354
|
+
"name": "ensuroPpFee",
|
|
355
|
+
"type": "uint256"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"internalType": "uint256",
|
|
359
|
+
"name": "ensuroCocFee",
|
|
360
|
+
"type": "uint256"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"internalType": "uint256",
|
|
364
|
+
"name": "jrRoc",
|
|
365
|
+
"type": "uint256"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"internalType": "uint256",
|
|
369
|
+
"name": "srRoc",
|
|
370
|
+
"type": "uint256"
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"internalType": "struct IRiskModule.Params",
|
|
374
|
+
"name": "ret",
|
|
375
|
+
"type": "tuple"
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
"stateMutability": "view",
|
|
379
|
+
"type": "function"
|
|
380
|
+
},
|
|
454
381
|
{
|
|
455
382
|
"inputs": [],
|
|
456
383
|
"name": "pause",
|
|
@@ -486,100 +413,25 @@
|
|
|
486
413
|
},
|
|
487
414
|
{
|
|
488
415
|
"inputs": [],
|
|
489
|
-
"name": "
|
|
416
|
+
"name": "premiumsAccount",
|
|
490
417
|
"outputs": [
|
|
491
418
|
{
|
|
492
|
-
"internalType": "
|
|
419
|
+
"internalType": "contract IPremiumsAccount",
|
|
493
420
|
"name": "",
|
|
494
|
-
"type": "bytes32"
|
|
495
|
-
}
|
|
496
|
-
],
|
|
497
|
-
"stateMutability": "view",
|
|
498
|
-
"type": "function"
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
"inputs": [
|
|
502
|
-
{
|
|
503
|
-
"internalType": "uint256",
|
|
504
|
-
"name": "scrAmount",
|
|
505
|
-
"type": "uint256"
|
|
506
|
-
}
|
|
507
|
-
],
|
|
508
|
-
"name": "releaseScr",
|
|
509
|
-
"outputs": [],
|
|
510
|
-
"stateMutability": "nonpayable",
|
|
511
|
-
"type": "function"
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
"inputs": [
|
|
515
|
-
{
|
|
516
|
-
"internalType": "bytes32",
|
|
517
|
-
"name": "role",
|
|
518
|
-
"type": "bytes32"
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
"internalType": "address",
|
|
522
|
-
"name": "account",
|
|
523
421
|
"type": "address"
|
|
524
422
|
}
|
|
525
423
|
],
|
|
526
|
-
"name": "renounceRole",
|
|
527
|
-
"outputs": [],
|
|
528
|
-
"stateMutability": "nonpayable",
|
|
529
|
-
"type": "function"
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
"inputs": [
|
|
533
|
-
{
|
|
534
|
-
"internalType": "bytes32",
|
|
535
|
-
"name": "role",
|
|
536
|
-
"type": "bytes32"
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
"internalType": "address",
|
|
540
|
-
"name": "account",
|
|
541
|
-
"type": "address"
|
|
542
|
-
}
|
|
543
|
-
],
|
|
544
|
-
"name": "revokeRole",
|
|
545
|
-
"outputs": [],
|
|
546
|
-
"stateMutability": "nonpayable",
|
|
547
|
-
"type": "function"
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
"inputs": [],
|
|
551
|
-
"name": "scrInterestRate",
|
|
552
|
-
"outputs": [
|
|
553
|
-
{
|
|
554
|
-
"internalType": "uint256",
|
|
555
|
-
"name": "",
|
|
556
|
-
"type": "uint256"
|
|
557
|
-
}
|
|
558
|
-
],
|
|
559
|
-
"stateMutability": "view",
|
|
560
|
-
"type": "function"
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
"inputs": [],
|
|
564
|
-
"name": "scrLimit",
|
|
565
|
-
"outputs": [
|
|
566
|
-
{
|
|
567
|
-
"internalType": "uint256",
|
|
568
|
-
"name": "",
|
|
569
|
-
"type": "uint256"
|
|
570
|
-
}
|
|
571
|
-
],
|
|
572
424
|
"stateMutability": "view",
|
|
573
425
|
"type": "function"
|
|
574
426
|
},
|
|
575
427
|
{
|
|
576
428
|
"inputs": [],
|
|
577
|
-
"name": "
|
|
429
|
+
"name": "proxiableUUID",
|
|
578
430
|
"outputs": [
|
|
579
431
|
{
|
|
580
|
-
"internalType": "
|
|
432
|
+
"internalType": "bytes32",
|
|
581
433
|
"name": "",
|
|
582
|
-
"type": "
|
|
434
|
+
"type": "bytes32"
|
|
583
435
|
}
|
|
584
436
|
],
|
|
585
437
|
"stateMutability": "view",
|
|
@@ -589,50 +441,11 @@
|
|
|
589
441
|
"inputs": [
|
|
590
442
|
{
|
|
591
443
|
"internalType": "uint256",
|
|
592
|
-
"name": "
|
|
593
|
-
"type": "uint256"
|
|
594
|
-
}
|
|
595
|
-
],
|
|
596
|
-
"name": "setEnsuroFee",
|
|
597
|
-
"outputs": [],
|
|
598
|
-
"stateMutability": "nonpayable",
|
|
599
|
-
"type": "function"
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
"inputs": [
|
|
603
|
-
{
|
|
604
|
-
"internalType": "uint256",
|
|
605
|
-
"name": "newMaxScrPerPolicy",
|
|
606
|
-
"type": "uint256"
|
|
607
|
-
}
|
|
608
|
-
],
|
|
609
|
-
"name": "setMaxScrPerPolicy",
|
|
610
|
-
"outputs": [],
|
|
611
|
-
"stateMutability": "nonpayable",
|
|
612
|
-
"type": "function"
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
"inputs": [
|
|
616
|
-
{
|
|
617
|
-
"internalType": "uint256",
|
|
618
|
-
"name": "newMoc",
|
|
619
|
-
"type": "uint256"
|
|
620
|
-
}
|
|
621
|
-
],
|
|
622
|
-
"name": "setMoc",
|
|
623
|
-
"outputs": [],
|
|
624
|
-
"stateMutability": "nonpayable",
|
|
625
|
-
"type": "function"
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
"inputs": [
|
|
629
|
-
{
|
|
630
|
-
"internalType": "uint256",
|
|
631
|
-
"name": "newScrInterestRate",
|
|
444
|
+
"name": "payout",
|
|
632
445
|
"type": "uint256"
|
|
633
446
|
}
|
|
634
447
|
],
|
|
635
|
-
"name": "
|
|
448
|
+
"name": "releaseExposure",
|
|
636
449
|
"outputs": [],
|
|
637
450
|
"stateMutability": "nonpayable",
|
|
638
451
|
"type": "function"
|
|
@@ -640,25 +453,17 @@
|
|
|
640
453
|
{
|
|
641
454
|
"inputs": [
|
|
642
455
|
{
|
|
643
|
-
"internalType": "
|
|
644
|
-
"name": "
|
|
645
|
-
"type": "
|
|
646
|
-
}
|
|
647
|
-
],
|
|
648
|
-
"name": "setScrLimit",
|
|
649
|
-
"outputs": [],
|
|
650
|
-
"stateMutability": "nonpayable",
|
|
651
|
-
"type": "function"
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
"inputs": [
|
|
456
|
+
"internalType": "enum IRiskModule.Parameter",
|
|
457
|
+
"name": "param",
|
|
458
|
+
"type": "uint8"
|
|
459
|
+
},
|
|
655
460
|
{
|
|
656
461
|
"internalType": "uint256",
|
|
657
|
-
"name": "
|
|
462
|
+
"name": "newValue",
|
|
658
463
|
"type": "uint256"
|
|
659
464
|
}
|
|
660
465
|
],
|
|
661
|
-
"name": "
|
|
466
|
+
"name": "setParam",
|
|
662
467
|
"outputs": [],
|
|
663
468
|
"stateMutability": "nonpayable",
|
|
664
469
|
"type": "function"
|
|
@@ -676,38 +481,6 @@
|
|
|
676
481
|
"stateMutability": "nonpayable",
|
|
677
482
|
"type": "function"
|
|
678
483
|
},
|
|
679
|
-
{
|
|
680
|
-
"inputs": [
|
|
681
|
-
{
|
|
682
|
-
"internalType": "bytes4",
|
|
683
|
-
"name": "interfaceId",
|
|
684
|
-
"type": "bytes4"
|
|
685
|
-
}
|
|
686
|
-
],
|
|
687
|
-
"name": "supportsInterface",
|
|
688
|
-
"outputs": [
|
|
689
|
-
{
|
|
690
|
-
"internalType": "bool",
|
|
691
|
-
"name": "",
|
|
692
|
-
"type": "bool"
|
|
693
|
-
}
|
|
694
|
-
],
|
|
695
|
-
"stateMutability": "view",
|
|
696
|
-
"type": "function"
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
"inputs": [],
|
|
700
|
-
"name": "totalScr",
|
|
701
|
-
"outputs": [
|
|
702
|
-
{
|
|
703
|
-
"internalType": "uint256",
|
|
704
|
-
"name": "",
|
|
705
|
-
"type": "uint256"
|
|
706
|
-
}
|
|
707
|
-
],
|
|
708
|
-
"stateMutability": "view",
|
|
709
|
-
"type": "function"
|
|
710
|
-
},
|
|
711
484
|
{
|
|
712
485
|
"inputs": [],
|
|
713
486
|
"name": "unpause",
|