@venusprotocol/liquidity-hub 2.1.0-dev.6 → 2.1.0-dev.8
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 +17 -13
- package/contracts/YieldGroup/YieldGroup.sol +1 -1
- package/contracts/YieldGroup/YieldGroupCentrifuge.sol +7 -0
- package/contracts/YieldGroup/YieldGroupFRV.sol +1 -0
- package/contracts/YieldGroup/base/NavGuard.sol +5 -4
- package/contracts/YieldGroup/base/YieldGroupBase.sol +95 -9
- package/contracts/YieldGroup/base/YieldGroupBaseStorage.sol +10 -2
- package/contracts/adapters/AdapterCentrifuge.sol +16 -1
- package/contracts/adapters/AdapterCoreV1.sol +29 -15
- package/contracts/adapters/AdapterFRV.sol +17 -7
- package/contracts/adapters/AdapterFlux.sol +15 -3
- package/contracts/adapters/AdapterSpokeV1.sol +15 -3
- package/contracts/interfaces/IMigrator.sol +8 -6
- package/contracts/interfaces/INavGuard.sol +9 -8
- package/contracts/interfaces/IResourceAdapter.sol +12 -3
- package/contracts/interfaces/IYieldGroupBase.sol +56 -7
- package/contracts/interfaces/external/IVToken.sol +9 -0
- package/contracts/migrator/Migrator.sol +21 -9
- package/deployments/bscmainnet/AdapterCoreV1.json +26 -2
- package/deployments/bscmainnet/AdapterFRV.json +26 -2
- package/deployments/bscmainnet/AdapterFlux.json +26 -2
- package/deployments/bscmainnet/AdapterSpokeV1.json +26 -2
- package/deployments/bscmainnet/Migrator.json +28 -4
- package/deployments/bscmainnet/YieldGroupCoreImpl.json +69 -2
- package/deployments/bscmainnet/YieldGroupFRVImpl.json +69 -2
- package/deployments/bscmainnet/YieldGroupFluxImpl.json +69 -2
- package/deployments/bscmainnet/YieldGroupSpokeImpl.json +69 -2
- package/deployments/bscmainnet_addresses.json +9 -9
- package/deployments/bsctestnet/AdapterCoreV1.json +26 -2
- package/deployments/bsctestnet/AdapterFRV.json +26 -2
- package/deployments/bsctestnet/AdapterFlux.json +26 -2
- package/deployments/bsctestnet/AdapterSpokeV1.json +26 -2
- package/deployments/bsctestnet/Migrator.json +28 -4
- package/deployments/bsctestnet/YieldGroupCoreImpl.json +69 -2
- package/deployments/bsctestnet/YieldGroupFRVImpl.json +69 -2
- package/deployments/bsctestnet/YieldGroupFluxImpl.json +69 -2
- package/deployments/bsctestnet/YieldGroupSpokeImpl.json +69 -2
- package/deployments/bsctestnet_addresses.json +9 -9
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
3
|
-
"block":
|
|
2
|
+
"address": "0x40bBb4d943BeEd8Dc9646c570c9C91fac9dd2457",
|
|
3
|
+
"block": 141872695,
|
|
4
4
|
"chainId": 97,
|
|
5
5
|
"contract": "YieldGroupFRV",
|
|
6
6
|
"abi": [
|
|
@@ -387,6 +387,24 @@
|
|
|
387
387
|
"outputs": [],
|
|
388
388
|
"stateMutability": "nonpayable"
|
|
389
389
|
},
|
|
390
|
+
{
|
|
391
|
+
"type": "function",
|
|
392
|
+
"name": "syncReceipt",
|
|
393
|
+
"inputs": [
|
|
394
|
+
{
|
|
395
|
+
"name": "resource",
|
|
396
|
+
"type": "address",
|
|
397
|
+
"internalType": "address"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "maxAdded",
|
|
401
|
+
"type": "uint256",
|
|
402
|
+
"internalType": "uint256"
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
"outputs": [],
|
|
406
|
+
"stateMutability": "nonpayable"
|
|
407
|
+
},
|
|
390
408
|
{
|
|
391
409
|
"type": "function",
|
|
392
410
|
"name": "totalAssets",
|
|
@@ -400,6 +418,25 @@
|
|
|
400
418
|
],
|
|
401
419
|
"stateMutability": "view"
|
|
402
420
|
},
|
|
421
|
+
{
|
|
422
|
+
"type": "function",
|
|
423
|
+
"name": "trackedReceipt",
|
|
424
|
+
"inputs": [
|
|
425
|
+
{
|
|
426
|
+
"name": "resource",
|
|
427
|
+
"type": "address",
|
|
428
|
+
"internalType": "address"
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"outputs": [
|
|
432
|
+
{
|
|
433
|
+
"name": "",
|
|
434
|
+
"type": "uint256",
|
|
435
|
+
"internalType": "uint256"
|
|
436
|
+
}
|
|
437
|
+
],
|
|
438
|
+
"stateMutability": "view"
|
|
439
|
+
},
|
|
403
440
|
{
|
|
404
441
|
"type": "function",
|
|
405
442
|
"name": "unpauseResource",
|
|
@@ -530,6 +567,31 @@
|
|
|
530
567
|
],
|
|
531
568
|
"anonymous": false
|
|
532
569
|
},
|
|
570
|
+
{
|
|
571
|
+
"type": "event",
|
|
572
|
+
"name": "ReceiptSynced",
|
|
573
|
+
"inputs": [
|
|
574
|
+
{
|
|
575
|
+
"name": "resource",
|
|
576
|
+
"type": "address",
|
|
577
|
+
"indexed": true,
|
|
578
|
+
"internalType": "address"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"name": "oldShares",
|
|
582
|
+
"type": "uint256",
|
|
583
|
+
"indexed": false,
|
|
584
|
+
"internalType": "uint256"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"name": "newShares",
|
|
588
|
+
"type": "uint256",
|
|
589
|
+
"indexed": false,
|
|
590
|
+
"internalType": "uint256"
|
|
591
|
+
}
|
|
592
|
+
],
|
|
593
|
+
"anonymous": false
|
|
594
|
+
},
|
|
533
595
|
{
|
|
534
596
|
"type": "event",
|
|
535
597
|
"name": "ResourceAccrualFailed",
|
|
@@ -776,6 +838,11 @@
|
|
|
776
838
|
"name": "OnlySelf",
|
|
777
839
|
"inputs": []
|
|
778
840
|
},
|
|
841
|
+
{
|
|
842
|
+
"type": "error",
|
|
843
|
+
"name": "ReceiptTrackingOff",
|
|
844
|
+
"inputs": []
|
|
845
|
+
},
|
|
779
846
|
{
|
|
780
847
|
"type": "error",
|
|
781
848
|
"name": "ResourceAlreadyRegistered",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
3
|
-
"block":
|
|
2
|
+
"address": "0x1c38e8c91c335Ac2B052E882eB8F7c069E63Da4d",
|
|
3
|
+
"block": 141872695,
|
|
4
4
|
"chainId": 97,
|
|
5
5
|
"contract": "YieldGroup",
|
|
6
6
|
"abi": [
|
|
@@ -460,6 +460,24 @@
|
|
|
460
460
|
"outputs": [],
|
|
461
461
|
"stateMutability": "nonpayable"
|
|
462
462
|
},
|
|
463
|
+
{
|
|
464
|
+
"type": "function",
|
|
465
|
+
"name": "syncReceipt",
|
|
466
|
+
"inputs": [
|
|
467
|
+
{
|
|
468
|
+
"name": "resource",
|
|
469
|
+
"type": "address",
|
|
470
|
+
"internalType": "address"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"name": "maxAdded",
|
|
474
|
+
"type": "uint256",
|
|
475
|
+
"internalType": "uint256"
|
|
476
|
+
}
|
|
477
|
+
],
|
|
478
|
+
"outputs": [],
|
|
479
|
+
"stateMutability": "nonpayable"
|
|
480
|
+
},
|
|
463
481
|
{
|
|
464
482
|
"type": "function",
|
|
465
483
|
"name": "totalAssets",
|
|
@@ -473,6 +491,25 @@
|
|
|
473
491
|
],
|
|
474
492
|
"stateMutability": "view"
|
|
475
493
|
},
|
|
494
|
+
{
|
|
495
|
+
"type": "function",
|
|
496
|
+
"name": "trackedReceipt",
|
|
497
|
+
"inputs": [
|
|
498
|
+
{
|
|
499
|
+
"name": "resource",
|
|
500
|
+
"type": "address",
|
|
501
|
+
"internalType": "address"
|
|
502
|
+
}
|
|
503
|
+
],
|
|
504
|
+
"outputs": [
|
|
505
|
+
{
|
|
506
|
+
"name": "",
|
|
507
|
+
"type": "uint256",
|
|
508
|
+
"internalType": "uint256"
|
|
509
|
+
}
|
|
510
|
+
],
|
|
511
|
+
"stateMutability": "view"
|
|
512
|
+
},
|
|
476
513
|
{
|
|
477
514
|
"type": "function",
|
|
478
515
|
"name": "unpauseResource",
|
|
@@ -622,6 +659,31 @@
|
|
|
622
659
|
],
|
|
623
660
|
"anonymous": false
|
|
624
661
|
},
|
|
662
|
+
{
|
|
663
|
+
"type": "event",
|
|
664
|
+
"name": "ReceiptSynced",
|
|
665
|
+
"inputs": [
|
|
666
|
+
{
|
|
667
|
+
"name": "resource",
|
|
668
|
+
"type": "address",
|
|
669
|
+
"indexed": true,
|
|
670
|
+
"internalType": "address"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"name": "oldShares",
|
|
674
|
+
"type": "uint256",
|
|
675
|
+
"indexed": false,
|
|
676
|
+
"internalType": "uint256"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"name": "newShares",
|
|
680
|
+
"type": "uint256",
|
|
681
|
+
"indexed": false,
|
|
682
|
+
"internalType": "uint256"
|
|
683
|
+
}
|
|
684
|
+
],
|
|
685
|
+
"anonymous": false
|
|
686
|
+
},
|
|
625
687
|
{
|
|
626
688
|
"type": "event",
|
|
627
689
|
"name": "ResourceAccrualFailed",
|
|
@@ -897,6 +959,11 @@
|
|
|
897
959
|
"name": "OnlySelf",
|
|
898
960
|
"inputs": []
|
|
899
961
|
},
|
|
962
|
+
{
|
|
963
|
+
"type": "error",
|
|
964
|
+
"name": "ReceiptTrackingOff",
|
|
965
|
+
"inputs": []
|
|
966
|
+
},
|
|
900
967
|
{
|
|
901
968
|
"type": "error",
|
|
902
969
|
"name": "ResourceAlreadyRegistered",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
3
|
-
"block":
|
|
2
|
+
"address": "0x1c38e8c91c335Ac2B052E882eB8F7c069E63Da4d",
|
|
3
|
+
"block": 141872695,
|
|
4
4
|
"chainId": 97,
|
|
5
5
|
"contract": "YieldGroup",
|
|
6
6
|
"abi": [
|
|
@@ -460,6 +460,24 @@
|
|
|
460
460
|
"outputs": [],
|
|
461
461
|
"stateMutability": "nonpayable"
|
|
462
462
|
},
|
|
463
|
+
{
|
|
464
|
+
"type": "function",
|
|
465
|
+
"name": "syncReceipt",
|
|
466
|
+
"inputs": [
|
|
467
|
+
{
|
|
468
|
+
"name": "resource",
|
|
469
|
+
"type": "address",
|
|
470
|
+
"internalType": "address"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"name": "maxAdded",
|
|
474
|
+
"type": "uint256",
|
|
475
|
+
"internalType": "uint256"
|
|
476
|
+
}
|
|
477
|
+
],
|
|
478
|
+
"outputs": [],
|
|
479
|
+
"stateMutability": "nonpayable"
|
|
480
|
+
},
|
|
463
481
|
{
|
|
464
482
|
"type": "function",
|
|
465
483
|
"name": "totalAssets",
|
|
@@ -473,6 +491,25 @@
|
|
|
473
491
|
],
|
|
474
492
|
"stateMutability": "view"
|
|
475
493
|
},
|
|
494
|
+
{
|
|
495
|
+
"type": "function",
|
|
496
|
+
"name": "trackedReceipt",
|
|
497
|
+
"inputs": [
|
|
498
|
+
{
|
|
499
|
+
"name": "resource",
|
|
500
|
+
"type": "address",
|
|
501
|
+
"internalType": "address"
|
|
502
|
+
}
|
|
503
|
+
],
|
|
504
|
+
"outputs": [
|
|
505
|
+
{
|
|
506
|
+
"name": "",
|
|
507
|
+
"type": "uint256",
|
|
508
|
+
"internalType": "uint256"
|
|
509
|
+
}
|
|
510
|
+
],
|
|
511
|
+
"stateMutability": "view"
|
|
512
|
+
},
|
|
476
513
|
{
|
|
477
514
|
"type": "function",
|
|
478
515
|
"name": "unpauseResource",
|
|
@@ -622,6 +659,31 @@
|
|
|
622
659
|
],
|
|
623
660
|
"anonymous": false
|
|
624
661
|
},
|
|
662
|
+
{
|
|
663
|
+
"type": "event",
|
|
664
|
+
"name": "ReceiptSynced",
|
|
665
|
+
"inputs": [
|
|
666
|
+
{
|
|
667
|
+
"name": "resource",
|
|
668
|
+
"type": "address",
|
|
669
|
+
"indexed": true,
|
|
670
|
+
"internalType": "address"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"name": "oldShares",
|
|
674
|
+
"type": "uint256",
|
|
675
|
+
"indexed": false,
|
|
676
|
+
"internalType": "uint256"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"name": "newShares",
|
|
680
|
+
"type": "uint256",
|
|
681
|
+
"indexed": false,
|
|
682
|
+
"internalType": "uint256"
|
|
683
|
+
}
|
|
684
|
+
],
|
|
685
|
+
"anonymous": false
|
|
686
|
+
},
|
|
625
687
|
{
|
|
626
688
|
"type": "event",
|
|
627
689
|
"name": "ResourceAccrualFailed",
|
|
@@ -897,6 +959,11 @@
|
|
|
897
959
|
"name": "OnlySelf",
|
|
898
960
|
"inputs": []
|
|
899
961
|
},
|
|
962
|
+
{
|
|
963
|
+
"type": "error",
|
|
964
|
+
"name": "ReceiptTrackingOff",
|
|
965
|
+
"inputs": []
|
|
966
|
+
},
|
|
900
967
|
{
|
|
901
968
|
"type": "error",
|
|
902
969
|
"name": "ResourceAlreadyRegistered",
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
"chainId": 97,
|
|
4
4
|
"addresses": {
|
|
5
5
|
"AdapterCentrifuge": "0x63Ce07c3F1500B283B6d3451BdC3E3C6211a6c7F",
|
|
6
|
-
"AdapterCoreV1": "
|
|
7
|
-
"AdapterFRV": "
|
|
8
|
-
"AdapterFlux": "
|
|
9
|
-
"AdapterSpokeV1": "
|
|
6
|
+
"AdapterCoreV1": "0x32DfFD70B8E91C20B708d03C8051ad59F2C6391D",
|
|
7
|
+
"AdapterFRV": "0x790960cBC0B5A88765cFE89C5bD604163f4E2D9C",
|
|
8
|
+
"AdapterFlux": "0xC17f2F74057a6beeeb32F3D1F6c8C6A7067e86f0",
|
|
9
|
+
"AdapterSpokeV1": "0xbeAE38F78944F62c00943Fc7e335E0D59c359E98",
|
|
10
10
|
"CentrifugeBeacon": "0x1dcAAB89344eA7F4c2271598e4ED4Fd6a66A451C",
|
|
11
11
|
"CentrifugeSource_USDT": "0x8DFF12277C44E73cbF551ceB6E5Ae1eD4CC85542",
|
|
12
12
|
"CoreBeacon": "0xbBEe25aE7d2Db035Afc327fb0096fC88FDfF3170",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"HubRegistryImpl": "0x4D2C18fB4520c2e4f7C754979e9a4F3BbC1BCe92",
|
|
23
23
|
"HubRegistryProxyAdmin": "0x9f8413eEE33D434F6D4f40C83181f32A831c9ef7",
|
|
24
24
|
"Hub_USDT": "0x7cE6ADF754D0eC81A6CF8ACd9C7454F45077dc61",
|
|
25
|
-
"Migrator": "
|
|
25
|
+
"Migrator": "0x907d344E53A6e51Cb3E01cb76495D6C5325d72e8",
|
|
26
26
|
"MockCentrifugeShare_USDT": "0xFF5254510b85D00a4f28fEb850bddF18d6deB043",
|
|
27
27
|
"MockCentrifugeVault_USDT": "0x8a3C1f806B635230b74741066DE9B0Aa902F83dC",
|
|
28
28
|
"SpokeBeacon": "0x58099BEaa6A00F493eF67fF953866DDA4a502389",
|
|
29
29
|
"SpokeSource_USDT": "0xb9Bf8232474aF0A18BbA0CbCc3bA10efD51542e2",
|
|
30
30
|
"YieldGroupCentrifugeImpl": "0xDF8bfE261508b0814973AB2598A168f648Ed6fa6",
|
|
31
|
-
"YieldGroupCoreImpl": "
|
|
32
|
-
"YieldGroupFRVImpl": "
|
|
33
|
-
"YieldGroupFluxImpl": "
|
|
34
|
-
"YieldGroupSpokeImpl": "
|
|
31
|
+
"YieldGroupCoreImpl": "0x1c38e8c91c335Ac2B052E882eB8F7c069E63Da4d",
|
|
32
|
+
"YieldGroupFRVImpl": "0x40bBb4d943BeEd8Dc9646c570c9C91fac9dd2457",
|
|
33
|
+
"YieldGroupFluxImpl": "0x1c38e8c91c335Ac2B052E882eB8F7c069E63Da4d",
|
|
34
|
+
"YieldGroupSpokeImpl": "0x1c38e8c91c335Ac2B052E882eB8F7c069E63Da4d"
|
|
35
35
|
}
|
|
36
36
|
}
|