@venusprotocol/venus-periphery 1.2.0-slim-dev.4 → 1.2.0-slim-dev.6
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/artifacts/contracts/DeviationSentinel/DeviationSentinel.sol/DeviationSentinel.json +15 -128
- package/artifacts/contracts/DeviationSentinel/Oracles/PancakeSwapOracle.sol/PancakeSwapOracle.json +2 -2
- package/artifacts/contracts/DeviationSentinel/Oracles/SentinelOracle.sol/SentinelOracle.json +2 -2
- package/artifacts/contracts/DeviationSentinel/Oracles/UniswapOracle.sol/UniswapOracle.json +2 -2
- package/artifacts/contracts/EmergencyBrake/EBrake.sol/EBrake.json +866 -0
- package/artifacts/contracts/EmergencyBrake/IEBrake.sol/IEBrake.json +607 -0
- package/artifacts/contracts/Interfaces/IComptroller.sol/IComptroller.json +79 -4
- package/artifacts/contracts/Interfaces/ICorePoolComptroller.sol/ICorePoolComptroller.json +165 -4
- package/artifacts/contracts/Interfaces/IILComptroller.sol/IILComptroller.json +2 -2
- package/artifacts/contracts/Interfaces/IVBNB.sol/IVBNB.json +37 -0
- package/artifacts/contracts/Interfaces/IVToken.sol/IVToken.json +37 -0
- package/artifacts/contracts/LeverageManager/LeverageStrategiesManager.sol/LeverageStrategiesManager.json +2 -2
- package/artifacts/contracts/Libraries/FixedPoint96.sol/FixedPoint96.json +2 -2
- package/artifacts/contracts/Libraries/FullMath.sol/FullMath.json +2 -2
- package/artifacts/contracts/PositionSwapper/PositionSwapper.sol/PositionSwapper.json +2 -2
- package/artifacts/contracts/RelativePositionManager/IPositionAccount.sol/IPositionAccount.json +250 -0
- package/artifacts/contracts/RelativePositionManager/IRelativePositionManager.sol/IRelativePositionManager.json +1580 -0
- package/artifacts/contracts/RelativePositionManager/PositionAccount.sol/PositionAccount.json +448 -0
- package/artifacts/contracts/RelativePositionManager/RelativePositionManager.sol/RelativePositionManager.json +2021 -0
- package/artifacts/contracts/SwapHelper/SwapHelper.sol/SwapHelper.json +2 -2
- package/artifacts/contracts/SwapRouter/SwapRouter.sol/SwapRouter.json +2 -2
- package/artifacts/contracts/pendle-pt-fixed-rate-vault/PendlePTVaultAdapter.sol/PendlePTVaultAdapter.json +2 -2
- package/artifacts/contracts/pendle-pt-fixed-rate-vault/test/AggregatorMock.sol/AggregatorMock.json +2 -2
- package/artifacts/contracts/test/MockTarget.sol/MockTarget.json +2 -2
- package/deployments/bscmainnet_addresses.json +8 -1
- package/deployments/bsctestnet_addresses.json +12 -2
- package/package.json +1 -1
|
@@ -51,6 +51,25 @@
|
|
|
51
51
|
"stateMutability": "view",
|
|
52
52
|
"type": "function"
|
|
53
53
|
},
|
|
54
|
+
{
|
|
55
|
+
"inputs": [
|
|
56
|
+
{
|
|
57
|
+
"internalType": "address",
|
|
58
|
+
"name": "vToken",
|
|
59
|
+
"type": "address"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"name": "borrowCaps",
|
|
63
|
+
"outputs": [
|
|
64
|
+
{
|
|
65
|
+
"internalType": "uint256",
|
|
66
|
+
"name": "",
|
|
67
|
+
"type": "uint256"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"stateMutability": "view",
|
|
71
|
+
"type": "function"
|
|
72
|
+
},
|
|
54
73
|
{
|
|
55
74
|
"inputs": [
|
|
56
75
|
{
|
|
@@ -175,6 +194,25 @@
|
|
|
175
194
|
"stateMutability": "nonpayable",
|
|
176
195
|
"type": "function"
|
|
177
196
|
},
|
|
197
|
+
{
|
|
198
|
+
"inputs": [
|
|
199
|
+
{
|
|
200
|
+
"internalType": "address",
|
|
201
|
+
"name": "vToken",
|
|
202
|
+
"type": "address"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"name": "exitMarket",
|
|
206
|
+
"outputs": [
|
|
207
|
+
{
|
|
208
|
+
"internalType": "uint256",
|
|
209
|
+
"name": "",
|
|
210
|
+
"type": "uint256"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"stateMutability": "nonpayable",
|
|
214
|
+
"type": "function"
|
|
215
|
+
},
|
|
178
216
|
{
|
|
179
217
|
"inputs": [
|
|
180
218
|
{
|
|
@@ -237,7 +275,7 @@
|
|
|
237
275
|
"inputs": [
|
|
238
276
|
{
|
|
239
277
|
"internalType": "address",
|
|
240
|
-
"name": "",
|
|
278
|
+
"name": "vToken",
|
|
241
279
|
"type": "address"
|
|
242
280
|
}
|
|
243
281
|
],
|
|
@@ -245,17 +283,17 @@
|
|
|
245
283
|
"outputs": [
|
|
246
284
|
{
|
|
247
285
|
"internalType": "bool",
|
|
248
|
-
"name": "",
|
|
286
|
+
"name": "isListed",
|
|
249
287
|
"type": "bool"
|
|
250
288
|
},
|
|
251
289
|
{
|
|
252
290
|
"internalType": "uint256",
|
|
253
|
-
"name": "",
|
|
291
|
+
"name": "collateralFactorMantissa",
|
|
254
292
|
"type": "uint256"
|
|
255
293
|
},
|
|
256
294
|
{
|
|
257
295
|
"internalType": "bool",
|
|
258
|
-
"name": "",
|
|
296
|
+
"name": "isComped",
|
|
259
297
|
"type": "bool"
|
|
260
298
|
}
|
|
261
299
|
],
|
|
@@ -334,6 +372,25 @@
|
|
|
334
372
|
"stateMutability": "nonpayable",
|
|
335
373
|
"type": "function"
|
|
336
374
|
},
|
|
375
|
+
{
|
|
376
|
+
"inputs": [
|
|
377
|
+
{
|
|
378
|
+
"internalType": "address",
|
|
379
|
+
"name": "vToken",
|
|
380
|
+
"type": "address"
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"name": "supplyCaps",
|
|
384
|
+
"outputs": [
|
|
385
|
+
{
|
|
386
|
+
"internalType": "uint256",
|
|
387
|
+
"name": "",
|
|
388
|
+
"type": "uint256"
|
|
389
|
+
}
|
|
390
|
+
],
|
|
391
|
+
"stateMutability": "view",
|
|
392
|
+
"type": "function"
|
|
393
|
+
},
|
|
337
394
|
{
|
|
338
395
|
"inputs": [],
|
|
339
396
|
"name": "treasuryPercent",
|
|
@@ -365,6 +422,24 @@
|
|
|
365
422
|
],
|
|
366
423
|
"stateMutability": "nonpayable",
|
|
367
424
|
"type": "function"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"inputs": [
|
|
428
|
+
{
|
|
429
|
+
"internalType": "address",
|
|
430
|
+
"name": "delegate",
|
|
431
|
+
"type": "address"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"internalType": "bool",
|
|
435
|
+
"name": "approved",
|
|
436
|
+
"type": "bool"
|
|
437
|
+
}
|
|
438
|
+
],
|
|
439
|
+
"name": "updateDelegate",
|
|
440
|
+
"outputs": [],
|
|
441
|
+
"stateMutability": "nonpayable",
|
|
442
|
+
"type": "function"
|
|
368
443
|
}
|
|
369
444
|
],
|
|
370
445
|
"bytecode": "0x",
|
|
@@ -51,6 +51,44 @@
|
|
|
51
51
|
"stateMutability": "view",
|
|
52
52
|
"type": "function"
|
|
53
53
|
},
|
|
54
|
+
{
|
|
55
|
+
"inputs": [
|
|
56
|
+
{
|
|
57
|
+
"internalType": "address",
|
|
58
|
+
"name": "account",
|
|
59
|
+
"type": "address"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"name": "authorizedFlashLoan",
|
|
63
|
+
"outputs": [
|
|
64
|
+
{
|
|
65
|
+
"internalType": "bool",
|
|
66
|
+
"name": "",
|
|
67
|
+
"type": "bool"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"stateMutability": "view",
|
|
71
|
+
"type": "function"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"inputs": [
|
|
75
|
+
{
|
|
76
|
+
"internalType": "address",
|
|
77
|
+
"name": "vToken",
|
|
78
|
+
"type": "address"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"name": "borrowCaps",
|
|
82
|
+
"outputs": [
|
|
83
|
+
{
|
|
84
|
+
"internalType": "uint256",
|
|
85
|
+
"name": "",
|
|
86
|
+
"type": "uint256"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"stateMutability": "view",
|
|
90
|
+
"type": "function"
|
|
91
|
+
},
|
|
54
92
|
{
|
|
55
93
|
"inputs": [
|
|
56
94
|
{
|
|
@@ -188,6 +226,38 @@
|
|
|
188
226
|
"stateMutability": "nonpayable",
|
|
189
227
|
"type": "function"
|
|
190
228
|
},
|
|
229
|
+
{
|
|
230
|
+
"inputs": [
|
|
231
|
+
{
|
|
232
|
+
"internalType": "address",
|
|
233
|
+
"name": "vToken",
|
|
234
|
+
"type": "address"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"name": "exitMarket",
|
|
238
|
+
"outputs": [
|
|
239
|
+
{
|
|
240
|
+
"internalType": "uint256",
|
|
241
|
+
"name": "",
|
|
242
|
+
"type": "uint256"
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
"stateMutability": "nonpayable",
|
|
246
|
+
"type": "function"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"inputs": [],
|
|
250
|
+
"name": "flashLoanPaused",
|
|
251
|
+
"outputs": [
|
|
252
|
+
{
|
|
253
|
+
"internalType": "bool",
|
|
254
|
+
"name": "",
|
|
255
|
+
"type": "bool"
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"stateMutability": "view",
|
|
259
|
+
"type": "function"
|
|
260
|
+
},
|
|
191
261
|
{
|
|
192
262
|
"inputs": [
|
|
193
263
|
{
|
|
@@ -263,7 +333,7 @@
|
|
|
263
333
|
"inputs": [
|
|
264
334
|
{
|
|
265
335
|
"internalType": "address",
|
|
266
|
-
"name": "",
|
|
336
|
+
"name": "vToken",
|
|
267
337
|
"type": "address"
|
|
268
338
|
}
|
|
269
339
|
],
|
|
@@ -271,17 +341,17 @@
|
|
|
271
341
|
"outputs": [
|
|
272
342
|
{
|
|
273
343
|
"internalType": "bool",
|
|
274
|
-
"name": "",
|
|
344
|
+
"name": "isListed",
|
|
275
345
|
"type": "bool"
|
|
276
346
|
},
|
|
277
347
|
{
|
|
278
348
|
"internalType": "uint256",
|
|
279
|
-
"name": "",
|
|
349
|
+
"name": "collateralFactorMantissa",
|
|
280
350
|
"type": "uint256"
|
|
281
351
|
},
|
|
282
352
|
{
|
|
283
353
|
"internalType": "bool",
|
|
284
|
-
"name": "",
|
|
354
|
+
"name": "isComped",
|
|
285
355
|
"type": "bool"
|
|
286
356
|
}
|
|
287
357
|
],
|
|
@@ -459,6 +529,42 @@
|
|
|
459
529
|
"stateMutability": "nonpayable",
|
|
460
530
|
"type": "function"
|
|
461
531
|
},
|
|
532
|
+
{
|
|
533
|
+
"inputs": [
|
|
534
|
+
{
|
|
535
|
+
"internalType": "bool",
|
|
536
|
+
"name": "paused",
|
|
537
|
+
"type": "bool"
|
|
538
|
+
}
|
|
539
|
+
],
|
|
540
|
+
"name": "setFlashLoanPaused",
|
|
541
|
+
"outputs": [],
|
|
542
|
+
"stateMutability": "nonpayable",
|
|
543
|
+
"type": "function"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"inputs": [
|
|
547
|
+
{
|
|
548
|
+
"internalType": "uint96",
|
|
549
|
+
"name": "poolId",
|
|
550
|
+
"type": "uint96"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"internalType": "address",
|
|
554
|
+
"name": "vToken",
|
|
555
|
+
"type": "address"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"internalType": "bool",
|
|
559
|
+
"name": "borrowAllowed",
|
|
560
|
+
"type": "bool"
|
|
561
|
+
}
|
|
562
|
+
],
|
|
563
|
+
"name": "setIsBorrowAllowed",
|
|
564
|
+
"outputs": [],
|
|
565
|
+
"stateMutability": "nonpayable",
|
|
566
|
+
"type": "function"
|
|
567
|
+
},
|
|
462
568
|
{
|
|
463
569
|
"inputs": [
|
|
464
570
|
{
|
|
@@ -495,6 +601,43 @@
|
|
|
495
601
|
"stateMutability": "nonpayable",
|
|
496
602
|
"type": "function"
|
|
497
603
|
},
|
|
604
|
+
{
|
|
605
|
+
"inputs": [
|
|
606
|
+
{
|
|
607
|
+
"internalType": "address",
|
|
608
|
+
"name": "account",
|
|
609
|
+
"type": "address"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"internalType": "bool",
|
|
613
|
+
"name": "isWhiteListed",
|
|
614
|
+
"type": "bool"
|
|
615
|
+
}
|
|
616
|
+
],
|
|
617
|
+
"name": "setWhiteListFlashLoanAccount",
|
|
618
|
+
"outputs": [],
|
|
619
|
+
"stateMutability": "nonpayable",
|
|
620
|
+
"type": "function"
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"inputs": [
|
|
624
|
+
{
|
|
625
|
+
"internalType": "address",
|
|
626
|
+
"name": "vToken",
|
|
627
|
+
"type": "address"
|
|
628
|
+
}
|
|
629
|
+
],
|
|
630
|
+
"name": "supplyCaps",
|
|
631
|
+
"outputs": [
|
|
632
|
+
{
|
|
633
|
+
"internalType": "uint256",
|
|
634
|
+
"name": "",
|
|
635
|
+
"type": "uint256"
|
|
636
|
+
}
|
|
637
|
+
],
|
|
638
|
+
"stateMutability": "view",
|
|
639
|
+
"type": "function"
|
|
640
|
+
},
|
|
498
641
|
{
|
|
499
642
|
"inputs": [],
|
|
500
643
|
"name": "treasuryPercent",
|
|
@@ -526,6 +669,24 @@
|
|
|
526
669
|
],
|
|
527
670
|
"stateMutability": "nonpayable",
|
|
528
671
|
"type": "function"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"inputs": [
|
|
675
|
+
{
|
|
676
|
+
"internalType": "address",
|
|
677
|
+
"name": "delegate",
|
|
678
|
+
"type": "address"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"internalType": "bool",
|
|
682
|
+
"name": "approved",
|
|
683
|
+
"type": "bool"
|
|
684
|
+
}
|
|
685
|
+
],
|
|
686
|
+
"name": "updateDelegate",
|
|
687
|
+
"outputs": [],
|
|
688
|
+
"stateMutability": "nonpayable",
|
|
689
|
+
"type": "function"
|
|
529
690
|
}
|
|
530
691
|
],
|
|
531
692
|
"bytecode": "0x",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"inputs": [
|
|
8
8
|
{
|
|
9
9
|
"internalType": "address",
|
|
10
|
-
"name": "",
|
|
10
|
+
"name": "vToken",
|
|
11
11
|
"type": "address"
|
|
12
12
|
}
|
|
13
13
|
],
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
],
|
|
34
34
|
"internalType": "struct IILComptroller.Market",
|
|
35
|
-
"name": "",
|
|
35
|
+
"name": "market",
|
|
36
36
|
"type": "tuple"
|
|
37
37
|
}
|
|
38
38
|
],
|
|
@@ -227,6 +227,19 @@
|
|
|
227
227
|
"stateMutability": "view",
|
|
228
228
|
"type": "function"
|
|
229
229
|
},
|
|
230
|
+
{
|
|
231
|
+
"inputs": [],
|
|
232
|
+
"name": "exchangeRateCurrent",
|
|
233
|
+
"outputs": [
|
|
234
|
+
{
|
|
235
|
+
"internalType": "uint256",
|
|
236
|
+
"name": "",
|
|
237
|
+
"type": "uint256"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"stateMutability": "nonpayable",
|
|
241
|
+
"type": "function"
|
|
242
|
+
},
|
|
230
243
|
{
|
|
231
244
|
"inputs": [],
|
|
232
245
|
"name": "exchangeRateStored",
|
|
@@ -308,6 +321,30 @@
|
|
|
308
321
|
"stateMutability": "nonpayable",
|
|
309
322
|
"type": "function"
|
|
310
323
|
},
|
|
324
|
+
{
|
|
325
|
+
"inputs": [
|
|
326
|
+
{
|
|
327
|
+
"internalType": "address",
|
|
328
|
+
"name": "redeemer",
|
|
329
|
+
"type": "address"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"internalType": "uint256",
|
|
333
|
+
"name": "redeemTokens",
|
|
334
|
+
"type": "uint256"
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"name": "redeemBehalf",
|
|
338
|
+
"outputs": [
|
|
339
|
+
{
|
|
340
|
+
"internalType": "uint256",
|
|
341
|
+
"name": "",
|
|
342
|
+
"type": "uint256"
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
"stateMutability": "nonpayable",
|
|
346
|
+
"type": "function"
|
|
347
|
+
},
|
|
311
348
|
{
|
|
312
349
|
"inputs": [
|
|
313
350
|
{
|
|
@@ -227,6 +227,19 @@
|
|
|
227
227
|
"stateMutability": "view",
|
|
228
228
|
"type": "function"
|
|
229
229
|
},
|
|
230
|
+
{
|
|
231
|
+
"inputs": [],
|
|
232
|
+
"name": "exchangeRateCurrent",
|
|
233
|
+
"outputs": [
|
|
234
|
+
{
|
|
235
|
+
"internalType": "uint256",
|
|
236
|
+
"name": "",
|
|
237
|
+
"type": "uint256"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"stateMutability": "nonpayable",
|
|
241
|
+
"type": "function"
|
|
242
|
+
},
|
|
230
243
|
{
|
|
231
244
|
"inputs": [],
|
|
232
245
|
"name": "exchangeRateStored",
|
|
@@ -283,6 +296,30 @@
|
|
|
283
296
|
"stateMutability": "nonpayable",
|
|
284
297
|
"type": "function"
|
|
285
298
|
},
|
|
299
|
+
{
|
|
300
|
+
"inputs": [
|
|
301
|
+
{
|
|
302
|
+
"internalType": "address",
|
|
303
|
+
"name": "redeemer",
|
|
304
|
+
"type": "address"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"internalType": "uint256",
|
|
308
|
+
"name": "redeemTokens",
|
|
309
|
+
"type": "uint256"
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
"name": "redeemBehalf",
|
|
313
|
+
"outputs": [
|
|
314
|
+
{
|
|
315
|
+
"internalType": "uint256",
|
|
316
|
+
"name": "",
|
|
317
|
+
"type": "uint256"
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"stateMutability": "nonpayable",
|
|
321
|
+
"type": "function"
|
|
322
|
+
},
|
|
286
323
|
{
|
|
287
324
|
"inputs": [
|
|
288
325
|
{
|