@venusprotocol/isolated-pools 2.3.0-dev.11 → 2.3.0-dev.12
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/deployments/bsctestnet/ComptrollerImpl.json +515 -93
- package/deployments/bsctestnet/VTokenImpl.json +58 -58
- package/deployments/bsctestnet/solcInputs/7318bb84b7982deaa03619459125b507.json +276 -0
- package/deployments/bsctestnet.json +304 -5
- package/deployments/bsctestnet_addresses.json +2 -2
- package/dist/deploy/016-deploy-beacon-implementations.d.ts +3 -0
- package/dist/deploy/016-deploy-beacon-implementations.js +28 -0
- package/dist/hardhat.config.js +2 -2
- package/package.json +1 -1
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
]
|
|
111
111
|
},
|
|
112
112
|
"ComptrollerImpl": {
|
|
113
|
-
"address": "
|
|
113
|
+
"address": "0x329Bc34E6A46243d21955A4369cD66bdD52E6C22",
|
|
114
114
|
"abi": [
|
|
115
115
|
{
|
|
116
116
|
"inputs": [
|
|
@@ -415,6 +415,25 @@
|
|
|
415
415
|
"name": "Initialized",
|
|
416
416
|
"type": "event"
|
|
417
417
|
},
|
|
418
|
+
{
|
|
419
|
+
"anonymous": false,
|
|
420
|
+
"inputs": [
|
|
421
|
+
{
|
|
422
|
+
"indexed": true,
|
|
423
|
+
"internalType": "address",
|
|
424
|
+
"name": "vToken",
|
|
425
|
+
"type": "address"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"indexed": false,
|
|
429
|
+
"internalType": "bool",
|
|
430
|
+
"name": "enable",
|
|
431
|
+
"type": "bool"
|
|
432
|
+
}
|
|
433
|
+
],
|
|
434
|
+
"name": "IsForcedLiquidationEnabledUpdated",
|
|
435
|
+
"type": "event"
|
|
436
|
+
},
|
|
418
437
|
{
|
|
419
438
|
"anonymous": false,
|
|
420
439
|
"inputs": [
|
|
@@ -649,6 +668,25 @@
|
|
|
649
668
|
"name": "NewPriceOracle",
|
|
650
669
|
"type": "event"
|
|
651
670
|
},
|
|
671
|
+
{
|
|
672
|
+
"anonymous": false,
|
|
673
|
+
"inputs": [
|
|
674
|
+
{
|
|
675
|
+
"indexed": false,
|
|
676
|
+
"internalType": "contract IPrime",
|
|
677
|
+
"name": "oldPrimeToken",
|
|
678
|
+
"type": "address"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"indexed": false,
|
|
682
|
+
"internalType": "contract IPrime",
|
|
683
|
+
"name": "newPrimeToken",
|
|
684
|
+
"type": "address"
|
|
685
|
+
}
|
|
686
|
+
],
|
|
687
|
+
"name": "NewPrimeToken",
|
|
688
|
+
"type": "event"
|
|
689
|
+
},
|
|
652
690
|
{
|
|
653
691
|
"anonymous": false,
|
|
654
692
|
"inputs": [
|
|
@@ -657,6 +695,12 @@
|
|
|
657
695
|
"internalType": "address",
|
|
658
696
|
"name": "rewardsDistributor",
|
|
659
697
|
"type": "address"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"indexed": true,
|
|
701
|
+
"internalType": "address",
|
|
702
|
+
"name": "rewardToken",
|
|
703
|
+
"type": "address"
|
|
660
704
|
}
|
|
661
705
|
],
|
|
662
706
|
"name": "NewRewardsDistributor",
|
|
@@ -838,6 +882,29 @@
|
|
|
838
882
|
"stateMutability": "view",
|
|
839
883
|
"type": "function"
|
|
840
884
|
},
|
|
885
|
+
{
|
|
886
|
+
"inputs": [
|
|
887
|
+
{
|
|
888
|
+
"internalType": "address",
|
|
889
|
+
"name": "vToken",
|
|
890
|
+
"type": "address"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"internalType": "address",
|
|
894
|
+
"name": "borrower",
|
|
895
|
+
"type": "address"
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"internalType": "uint256",
|
|
899
|
+
"name": "borrowAmount",
|
|
900
|
+
"type": "uint256"
|
|
901
|
+
}
|
|
902
|
+
],
|
|
903
|
+
"name": "borrowVerify",
|
|
904
|
+
"outputs": [],
|
|
905
|
+
"stateMutability": "nonpayable",
|
|
906
|
+
"type": "function"
|
|
907
|
+
},
|
|
841
908
|
{
|
|
842
909
|
"inputs": [
|
|
843
910
|
{
|
|
@@ -1143,12 +1210,12 @@
|
|
|
1143
1210
|
{
|
|
1144
1211
|
"inputs": [
|
|
1145
1212
|
{
|
|
1146
|
-
"internalType": "
|
|
1147
|
-
"name": "
|
|
1213
|
+
"internalType": "address",
|
|
1214
|
+
"name": "",
|
|
1148
1215
|
"type": "address"
|
|
1149
1216
|
}
|
|
1150
1217
|
],
|
|
1151
|
-
"name": "
|
|
1218
|
+
"name": "isForcedLiquidationEnabled",
|
|
1152
1219
|
"outputs": [
|
|
1153
1220
|
{
|
|
1154
1221
|
"internalType": "bool",
|
|
@@ -1213,6 +1280,44 @@
|
|
|
1213
1280
|
"stateMutability": "nonpayable",
|
|
1214
1281
|
"type": "function"
|
|
1215
1282
|
},
|
|
1283
|
+
{
|
|
1284
|
+
"inputs": [
|
|
1285
|
+
{
|
|
1286
|
+
"internalType": "address",
|
|
1287
|
+
"name": "vTokenBorrowed",
|
|
1288
|
+
"type": "address"
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"internalType": "address",
|
|
1292
|
+
"name": "vTokenCollateral",
|
|
1293
|
+
"type": "address"
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"internalType": "address",
|
|
1297
|
+
"name": "liquidator",
|
|
1298
|
+
"type": "address"
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
"internalType": "address",
|
|
1302
|
+
"name": "borrower",
|
|
1303
|
+
"type": "address"
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"internalType": "uint256",
|
|
1307
|
+
"name": "actualRepayAmount",
|
|
1308
|
+
"type": "uint256"
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"internalType": "uint256",
|
|
1312
|
+
"name": "seizeTokens",
|
|
1313
|
+
"type": "uint256"
|
|
1314
|
+
}
|
|
1315
|
+
],
|
|
1316
|
+
"name": "liquidateBorrowVerify",
|
|
1317
|
+
"outputs": [],
|
|
1318
|
+
"stateMutability": "nonpayable",
|
|
1319
|
+
"type": "function"
|
|
1320
|
+
},
|
|
1216
1321
|
{
|
|
1217
1322
|
"inputs": [
|
|
1218
1323
|
{
|
|
@@ -1315,6 +1420,34 @@
|
|
|
1315
1420
|
"stateMutability": "view",
|
|
1316
1421
|
"type": "function"
|
|
1317
1422
|
},
|
|
1423
|
+
{
|
|
1424
|
+
"inputs": [
|
|
1425
|
+
{
|
|
1426
|
+
"internalType": "address",
|
|
1427
|
+
"name": "vToken",
|
|
1428
|
+
"type": "address"
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
"internalType": "address",
|
|
1432
|
+
"name": "minter",
|
|
1433
|
+
"type": "address"
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
"internalType": "uint256",
|
|
1437
|
+
"name": "actualMintAmount",
|
|
1438
|
+
"type": "uint256"
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
"internalType": "uint256",
|
|
1442
|
+
"name": "mintTokens",
|
|
1443
|
+
"type": "uint256"
|
|
1444
|
+
}
|
|
1445
|
+
],
|
|
1446
|
+
"name": "mintVerify",
|
|
1447
|
+
"outputs": [],
|
|
1448
|
+
"stateMutability": "nonpayable",
|
|
1449
|
+
"type": "function"
|
|
1450
|
+
},
|
|
1318
1451
|
{
|
|
1319
1452
|
"inputs": [],
|
|
1320
1453
|
"name": "oracle",
|
|
@@ -1543,6 +1676,47 @@
|
|
|
1543
1676
|
"stateMutability": "nonpayable",
|
|
1544
1677
|
"type": "function"
|
|
1545
1678
|
},
|
|
1679
|
+
{
|
|
1680
|
+
"inputs": [],
|
|
1681
|
+
"name": "prime",
|
|
1682
|
+
"outputs": [
|
|
1683
|
+
{
|
|
1684
|
+
"internalType": "contract IPrime",
|
|
1685
|
+
"name": "",
|
|
1686
|
+
"type": "address"
|
|
1687
|
+
}
|
|
1688
|
+
],
|
|
1689
|
+
"stateMutability": "view",
|
|
1690
|
+
"type": "function"
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"inputs": [
|
|
1694
|
+
{
|
|
1695
|
+
"internalType": "address",
|
|
1696
|
+
"name": "vToken",
|
|
1697
|
+
"type": "address"
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
"internalType": "address",
|
|
1701
|
+
"name": "redeemer",
|
|
1702
|
+
"type": "address"
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
"internalType": "uint256",
|
|
1706
|
+
"name": "redeemAmount",
|
|
1707
|
+
"type": "uint256"
|
|
1708
|
+
},
|
|
1709
|
+
{
|
|
1710
|
+
"internalType": "uint256",
|
|
1711
|
+
"name": "redeemTokens",
|
|
1712
|
+
"type": "uint256"
|
|
1713
|
+
}
|
|
1714
|
+
],
|
|
1715
|
+
"name": "redeemVerify",
|
|
1716
|
+
"outputs": [],
|
|
1717
|
+
"stateMutability": "nonpayable",
|
|
1718
|
+
"type": "function"
|
|
1719
|
+
},
|
|
1546
1720
|
{
|
|
1547
1721
|
"inputs": [],
|
|
1548
1722
|
"name": "renounceOwnership",
|
|
@@ -1550,6 +1724,72 @@
|
|
|
1550
1724
|
"stateMutability": "nonpayable",
|
|
1551
1725
|
"type": "function"
|
|
1552
1726
|
},
|
|
1727
|
+
{
|
|
1728
|
+
"inputs": [
|
|
1729
|
+
{
|
|
1730
|
+
"internalType": "address",
|
|
1731
|
+
"name": "vToken",
|
|
1732
|
+
"type": "address"
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
"internalType": "address",
|
|
1736
|
+
"name": "payer",
|
|
1737
|
+
"type": "address"
|
|
1738
|
+
},
|
|
1739
|
+
{
|
|
1740
|
+
"internalType": "address",
|
|
1741
|
+
"name": "borrower",
|
|
1742
|
+
"type": "address"
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
"internalType": "uint256",
|
|
1746
|
+
"name": "actualRepayAmount",
|
|
1747
|
+
"type": "uint256"
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
"internalType": "uint256",
|
|
1751
|
+
"name": "borrowerIndex",
|
|
1752
|
+
"type": "uint256"
|
|
1753
|
+
}
|
|
1754
|
+
],
|
|
1755
|
+
"name": "repayBorrowVerify",
|
|
1756
|
+
"outputs": [],
|
|
1757
|
+
"stateMutability": "nonpayable",
|
|
1758
|
+
"type": "function"
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"inputs": [
|
|
1762
|
+
{
|
|
1763
|
+
"internalType": "address",
|
|
1764
|
+
"name": "vTokenCollateral",
|
|
1765
|
+
"type": "address"
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
"internalType": "address",
|
|
1769
|
+
"name": "vTokenBorrowed",
|
|
1770
|
+
"type": "address"
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
"internalType": "address",
|
|
1774
|
+
"name": "liquidator",
|
|
1775
|
+
"type": "address"
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
"internalType": "address",
|
|
1779
|
+
"name": "borrower",
|
|
1780
|
+
"type": "address"
|
|
1781
|
+
},
|
|
1782
|
+
{
|
|
1783
|
+
"internalType": "uint256",
|
|
1784
|
+
"name": "seizeTokens",
|
|
1785
|
+
"type": "uint256"
|
|
1786
|
+
}
|
|
1787
|
+
],
|
|
1788
|
+
"name": "seizeVerify",
|
|
1789
|
+
"outputs": [],
|
|
1790
|
+
"stateMutability": "nonpayable",
|
|
1791
|
+
"type": "function"
|
|
1792
|
+
},
|
|
1553
1793
|
{
|
|
1554
1794
|
"inputs": [
|
|
1555
1795
|
{
|
|
@@ -1622,6 +1862,24 @@
|
|
|
1622
1862
|
"stateMutability": "nonpayable",
|
|
1623
1863
|
"type": "function"
|
|
1624
1864
|
},
|
|
1865
|
+
{
|
|
1866
|
+
"inputs": [
|
|
1867
|
+
{
|
|
1868
|
+
"internalType": "address",
|
|
1869
|
+
"name": "vTokenBorrowed",
|
|
1870
|
+
"type": "address"
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
"internalType": "bool",
|
|
1874
|
+
"name": "enable",
|
|
1875
|
+
"type": "bool"
|
|
1876
|
+
}
|
|
1877
|
+
],
|
|
1878
|
+
"name": "setForcedLiquidation",
|
|
1879
|
+
"outputs": [],
|
|
1880
|
+
"stateMutability": "nonpayable",
|
|
1881
|
+
"type": "function"
|
|
1882
|
+
},
|
|
1625
1883
|
{
|
|
1626
1884
|
"inputs": [
|
|
1627
1885
|
{
|
|
@@ -1710,6 +1968,19 @@
|
|
|
1710
1968
|
"stateMutability": "nonpayable",
|
|
1711
1969
|
"type": "function"
|
|
1712
1970
|
},
|
|
1971
|
+
{
|
|
1972
|
+
"inputs": [
|
|
1973
|
+
{
|
|
1974
|
+
"internalType": "contract IPrime",
|
|
1975
|
+
"name": "_prime",
|
|
1976
|
+
"type": "address"
|
|
1977
|
+
}
|
|
1978
|
+
],
|
|
1979
|
+
"name": "setPrimeToken",
|
|
1980
|
+
"outputs": [],
|
|
1981
|
+
"stateMutability": "nonpayable",
|
|
1982
|
+
"type": "function"
|
|
1983
|
+
},
|
|
1713
1984
|
{
|
|
1714
1985
|
"inputs": [
|
|
1715
1986
|
{
|
|
@@ -1755,6 +2026,34 @@
|
|
|
1755
2026
|
"stateMutability": "nonpayable",
|
|
1756
2027
|
"type": "function"
|
|
1757
2028
|
},
|
|
2029
|
+
{
|
|
2030
|
+
"inputs": [
|
|
2031
|
+
{
|
|
2032
|
+
"internalType": "address",
|
|
2033
|
+
"name": "vToken",
|
|
2034
|
+
"type": "address"
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
"internalType": "address",
|
|
2038
|
+
"name": "src",
|
|
2039
|
+
"type": "address"
|
|
2040
|
+
},
|
|
2041
|
+
{
|
|
2042
|
+
"internalType": "address",
|
|
2043
|
+
"name": "dst",
|
|
2044
|
+
"type": "address"
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
"internalType": "uint256",
|
|
2048
|
+
"name": "transferTokens",
|
|
2049
|
+
"type": "uint256"
|
|
2050
|
+
}
|
|
2051
|
+
],
|
|
2052
|
+
"name": "transferVerify",
|
|
2053
|
+
"outputs": [],
|
|
2054
|
+
"stateMutability": "nonpayable",
|
|
2055
|
+
"type": "function"
|
|
2056
|
+
},
|
|
1758
2057
|
{
|
|
1759
2058
|
"inputs": [
|
|
1760
2059
|
{
|
|
@@ -49633,7 +49932,7 @@
|
|
|
49633
49932
|
]
|
|
49634
49933
|
},
|
|
49635
49934
|
"VTokenImpl": {
|
|
49636
|
-
"address": "
|
|
49935
|
+
"address": "0xE21251bC79Ee0abebA71FaABDC2Ad36762A0b82F",
|
|
49637
49936
|
"abi": [
|
|
49638
49937
|
{
|
|
49639
49938
|
"inputs": [],
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"chainId": "97",
|
|
4
4
|
"addresses": {
|
|
5
5
|
"ComptrollerBeacon": "0xdDDD7725C073105fB2AbfCbdeC16708fC4c24B74",
|
|
6
|
-
"ComptrollerImpl": "
|
|
6
|
+
"ComptrollerImpl": "0x329Bc34E6A46243d21955A4369cD66bdD52E6C22",
|
|
7
7
|
"Comptroller_DeFi": "0x23a73971A6B9f6580c048B9CB188869B2A2aA2aD",
|
|
8
8
|
"Comptroller_GameFi": "0x1F4f0989C51f12DAcacD4025018176711f3Bf289",
|
|
9
9
|
"Comptroller_LiquidStakedBNB": "0x596B11acAACF03217287939f88d63b51d3771704",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"SwapRouter_StableCoins": "0x8Ff3c0a74b4CBD4dFA3A35Cca756490bE351F936",
|
|
92
92
|
"SwapRouter_Tron": "0x1D8cA5AFB88F07489786A3d2E0FF50F3F9314d97",
|
|
93
93
|
"VTokenBeacon": "0xBF85A90673E61956f8c79b9150BAB7893b791bDd",
|
|
94
|
-
"VTokenImpl": "
|
|
94
|
+
"VTokenImpl": "0xE21251bC79Ee0abebA71FaABDC2Ad36762A0b82F",
|
|
95
95
|
"VToken_vALPACA_DeFi": "0xb7caC5Ef82cb7f9197ee184779bdc52c5490C02a",
|
|
96
96
|
"VToken_vANKR_DeFi": "0xb677e080148368EeeE70fA3865d07E92c6500174",
|
|
97
97
|
"VToken_vBNBx_LiquidStakedBNB": "0x644A149853E5507AdF3e682218b8AC86cdD62951",
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const hardhat_1 = require("hardhat");
|
|
4
|
+
// This deploy script deploys implementations for Comptroller and/or VToken that should be updated through a VIP afterwards
|
|
5
|
+
const func = async function (hre) {
|
|
6
|
+
const { deployments, getNamedAccounts } = hre;
|
|
7
|
+
const { deploy } = deployments;
|
|
8
|
+
const { deployer } = await getNamedAccounts();
|
|
9
|
+
const poolRegistry = await hardhat_1.ethers.getContract("PoolRegistry");
|
|
10
|
+
// Comptroller Implementation
|
|
11
|
+
await deploy("ComptrollerImpl", {
|
|
12
|
+
contract: "Comptroller",
|
|
13
|
+
from: deployer,
|
|
14
|
+
args: [poolRegistry.address],
|
|
15
|
+
log: true,
|
|
16
|
+
autoMine: true,
|
|
17
|
+
});
|
|
18
|
+
// VToken Implementation
|
|
19
|
+
await deploy("VTokenImpl", {
|
|
20
|
+
contract: "VToken",
|
|
21
|
+
from: deployer,
|
|
22
|
+
args: [],
|
|
23
|
+
log: true,
|
|
24
|
+
autoMine: true,
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
func.tags = ["Implementations"];
|
|
28
|
+
exports.default = func;
|
package/dist/hardhat.config.js
CHANGED
|
@@ -242,7 +242,7 @@ const config = {
|
|
|
242
242
|
etherscan: {
|
|
243
243
|
customChains: [
|
|
244
244
|
{
|
|
245
|
-
network: "
|
|
245
|
+
network: "bsctestnet",
|
|
246
246
|
chainId: 97,
|
|
247
247
|
urls: {
|
|
248
248
|
apiURL: "https://api-testnet.bscscan.com/api",
|
|
@@ -276,7 +276,7 @@ const config = {
|
|
|
276
276
|
],
|
|
277
277
|
apiKey: {
|
|
278
278
|
bscmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
279
|
-
|
|
279
|
+
bsctestnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
280
280
|
opbnbtestnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
281
281
|
opbnbmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
282
282
|
},
|