@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": "0xcffcDBCfEDBf33FB22bdd5FadB3916b871711A06",
|
|
3
|
+
"block": 132740470,
|
|
4
4
|
"chainId": 56,
|
|
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": "0xedB1c751Eb03274e9D15D0609B4593CC113fB09F",
|
|
3
|
+
"block": 132740470,
|
|
4
4
|
"chainId": 56,
|
|
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": "0xedB1c751Eb03274e9D15D0609B4593CC113fB09F",
|
|
3
|
+
"block": 132740470,
|
|
4
4
|
"chainId": 56,
|
|
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": 56,
|
|
4
4
|
"addresses": {
|
|
5
5
|
"AdapterCentrifuge": "0xaa9D52758890997D91950E595886FF9CDEca81ae",
|
|
6
|
-
"AdapterCoreV1": "
|
|
7
|
-
"AdapterFRV": "
|
|
8
|
-
"AdapterFlux": "
|
|
9
|
-
"AdapterSpokeV1": "
|
|
6
|
+
"AdapterCoreV1": "0x0f62927d18Fd35712622C2c6C3F730EB8a18b71B",
|
|
7
|
+
"AdapterFRV": "0x40fDc0fef94D607EE4341230afb09bcDB0B949E2",
|
|
8
|
+
"AdapterFlux": "0x4Afb747ce8dDef689d5484FFdfB69Ac8bC7cAc8B",
|
|
9
|
+
"AdapterSpokeV1": "0xD08596E58325724C824100bA87f2470493Fe342d",
|
|
10
10
|
"CentrifugeBeacon": "0xAe90Cfb3E2Bc97508F58E7e076Acf38f3bfC820f",
|
|
11
11
|
"CentrifugeSource_USDC": "0x84bAeCF7Ac76039f731a0780EB59A03b2C7B593c",
|
|
12
12
|
"CentrifugeSource_USDT": "0xDA5AFfeb43719f517676E031a727071c7D400983",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"Hub_U": "0x0e5AA174d4F31b757a237eb1999DE151596788B0",
|
|
31
31
|
"Hub_USDC": "0x9D2D9592cF8DFbf59107fAab703d08494BE14617",
|
|
32
32
|
"Hub_USDT": "0x18AfDACF30F8671021dec4b78297E39d2FE87226",
|
|
33
|
-
"Migrator": "
|
|
33
|
+
"Migrator": "0xb0D77DC86d4E6a8282eECF3d4d456B3b94F2a7aD",
|
|
34
34
|
"SpokeBeacon": "0x652AAa1CD21f47a92D04680C1d9Bf99cC1Fb8975",
|
|
35
35
|
"SpokeSource_U": "0xcA3f9AFD7C4c1022E4A37a12671Ef57B8A7bfc51",
|
|
36
36
|
"SpokeSource_USDC": "0x4cd4aB2F88E39D3F3e481bb2555EcdF00266f717",
|
|
37
37
|
"SpokeSource_USDT": "0x3cC1eDE91419dC7EC199a06704EC8ECAb665a684",
|
|
38
38
|
"YieldGroupCentrifugeImpl": "0x4996aa488f5269B5C544Dab1C2d1126F6bBdFF24",
|
|
39
|
-
"YieldGroupCoreImpl": "
|
|
40
|
-
"YieldGroupFRVImpl": "
|
|
41
|
-
"YieldGroupFluxImpl": "
|
|
42
|
-
"YieldGroupSpokeImpl": "
|
|
39
|
+
"YieldGroupCoreImpl": "0xedB1c751Eb03274e9D15D0609B4593CC113fB09F",
|
|
40
|
+
"YieldGroupFRVImpl": "0xcffcDBCfEDBf33FB22bdd5FadB3916b871711A06",
|
|
41
|
+
"YieldGroupFluxImpl": "0xedB1c751Eb03274e9D15D0609B4593CC113fB09F",
|
|
42
|
+
"YieldGroupSpokeImpl": "0xedB1c751Eb03274e9D15D0609B4593CC113fB09F"
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
3
|
-
"block":
|
|
2
|
+
"address": "0x32DfFD70B8E91C20B708d03C8051ad59F2C6391D",
|
|
3
|
+
"block": 141872695,
|
|
4
4
|
"chainId": 97,
|
|
5
5
|
"contract": "AdapterCoreV1",
|
|
6
6
|
"abi": [
|
|
@@ -158,6 +158,30 @@
|
|
|
158
158
|
],
|
|
159
159
|
"stateMutability": "view"
|
|
160
160
|
},
|
|
161
|
+
{
|
|
162
|
+
"type": "function",
|
|
163
|
+
"name": "receiptValue",
|
|
164
|
+
"inputs": [
|
|
165
|
+
{
|
|
166
|
+
"name": "resource",
|
|
167
|
+
"type": "address",
|
|
168
|
+
"internalType": "address"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "vBal",
|
|
172
|
+
"type": "uint256",
|
|
173
|
+
"internalType": "uint256"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"outputs": [
|
|
177
|
+
{
|
|
178
|
+
"name": "",
|
|
179
|
+
"type": "uint256",
|
|
180
|
+
"internalType": "uint256"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"stateMutability": "view"
|
|
184
|
+
},
|
|
161
185
|
{
|
|
162
186
|
"type": "function",
|
|
163
187
|
"name": "resourceName",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
3
|
-
"block":
|
|
2
|
+
"address": "0x790960cBC0B5A88765cFE89C5bD604163f4E2D9C",
|
|
3
|
+
"block": 141872695,
|
|
4
4
|
"chainId": 97,
|
|
5
5
|
"contract": "AdapterFRV",
|
|
6
6
|
"abi": [
|
|
@@ -132,6 +132,30 @@
|
|
|
132
132
|
],
|
|
133
133
|
"stateMutability": "view"
|
|
134
134
|
},
|
|
135
|
+
{
|
|
136
|
+
"type": "function",
|
|
137
|
+
"name": "receiptValue",
|
|
138
|
+
"inputs": [
|
|
139
|
+
{
|
|
140
|
+
"name": "resource",
|
|
141
|
+
"type": "address",
|
|
142
|
+
"internalType": "address"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "shares",
|
|
146
|
+
"type": "uint256",
|
|
147
|
+
"internalType": "uint256"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"outputs": [
|
|
151
|
+
{
|
|
152
|
+
"name": "",
|
|
153
|
+
"type": "uint256",
|
|
154
|
+
"internalType": "uint256"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"stateMutability": "view"
|
|
158
|
+
},
|
|
135
159
|
{
|
|
136
160
|
"type": "function",
|
|
137
161
|
"name": "resourceName",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
3
|
-
"block":
|
|
2
|
+
"address": "0xC17f2F74057a6beeeb32F3D1F6c8C6A7067e86f0",
|
|
3
|
+
"block": 141872695,
|
|
4
4
|
"chainId": 97,
|
|
5
5
|
"contract": "AdapterFlux",
|
|
6
6
|
"abi": [
|
|
@@ -151,6 +151,30 @@
|
|
|
151
151
|
],
|
|
152
152
|
"stateMutability": "view"
|
|
153
153
|
},
|
|
154
|
+
{
|
|
155
|
+
"type": "function",
|
|
156
|
+
"name": "receiptValue",
|
|
157
|
+
"inputs": [
|
|
158
|
+
{
|
|
159
|
+
"name": "resource",
|
|
160
|
+
"type": "address",
|
|
161
|
+
"internalType": "address"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "shares",
|
|
165
|
+
"type": "uint256",
|
|
166
|
+
"internalType": "uint256"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"outputs": [
|
|
170
|
+
{
|
|
171
|
+
"name": "",
|
|
172
|
+
"type": "uint256",
|
|
173
|
+
"internalType": "uint256"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"stateMutability": "view"
|
|
177
|
+
},
|
|
154
178
|
{
|
|
155
179
|
"type": "function",
|
|
156
180
|
"name": "resourceName",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
3
|
-
"block":
|
|
2
|
+
"address": "0xbeAE38F78944F62c00943Fc7e335E0D59c359E98",
|
|
3
|
+
"block": 141872695,
|
|
4
4
|
"chainId": 97,
|
|
5
5
|
"contract": "AdapterSpokeV1",
|
|
6
6
|
"abi": [
|
|
@@ -158,6 +158,30 @@
|
|
|
158
158
|
],
|
|
159
159
|
"stateMutability": "view"
|
|
160
160
|
},
|
|
161
|
+
{
|
|
162
|
+
"type": "function",
|
|
163
|
+
"name": "receiptValue",
|
|
164
|
+
"inputs": [
|
|
165
|
+
{
|
|
166
|
+
"name": "resource",
|
|
167
|
+
"type": "address",
|
|
168
|
+
"internalType": "address"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "vBal",
|
|
172
|
+
"type": "uint256",
|
|
173
|
+
"internalType": "uint256"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"outputs": [
|
|
177
|
+
{
|
|
178
|
+
"name": "",
|
|
179
|
+
"type": "uint256",
|
|
180
|
+
"internalType": "uint256"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"stateMutability": "view"
|
|
184
|
+
},
|
|
161
185
|
{
|
|
162
186
|
"type": "function",
|
|
163
187
|
"name": "resourceName",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
3
|
-
"block":
|
|
2
|
+
"address": "0x907d344E53A6e51Cb3E01cb76495D6C5325d72e8",
|
|
3
|
+
"block": 124402350,
|
|
4
4
|
"chainId": 97,
|
|
5
5
|
"contract": "Migrator",
|
|
6
6
|
"abi": [
|
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
"name": "vbnb_",
|
|
17
17
|
"type": "address",
|
|
18
18
|
"internalType": "contract IVBep20"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "hubRegistry_",
|
|
22
|
+
"type": "address",
|
|
23
|
+
"internalType": "contract IHubRegistry"
|
|
19
24
|
}
|
|
20
25
|
],
|
|
21
26
|
"stateMutability": "nonpayable"
|
|
@@ -24,6 +29,19 @@
|
|
|
24
29
|
"type": "receive",
|
|
25
30
|
"stateMutability": "payable"
|
|
26
31
|
},
|
|
32
|
+
{
|
|
33
|
+
"type": "function",
|
|
34
|
+
"name": "HUB_REGISTRY",
|
|
35
|
+
"inputs": [],
|
|
36
|
+
"outputs": [
|
|
37
|
+
{
|
|
38
|
+
"name": "",
|
|
39
|
+
"type": "address",
|
|
40
|
+
"internalType": "contract IHubRegistry"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"stateMutability": "view"
|
|
44
|
+
},
|
|
27
45
|
{
|
|
28
46
|
"type": "function",
|
|
29
47
|
"name": "VBNB",
|
|
@@ -292,8 +310,14 @@
|
|
|
292
310
|
},
|
|
293
311
|
{
|
|
294
312
|
"type": "error",
|
|
295
|
-
"name": "
|
|
296
|
-
"inputs": [
|
|
313
|
+
"name": "HubNotRegistered",
|
|
314
|
+
"inputs": [
|
|
315
|
+
{
|
|
316
|
+
"name": "hub",
|
|
317
|
+
"type": "address",
|
|
318
|
+
"internalType": "address"
|
|
319
|
+
}
|
|
320
|
+
]
|
|
297
321
|
},
|
|
298
322
|
{
|
|
299
323
|
"type": "error",
|
|
@@ -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",
|