@venusprotocol/protocol-reserve 1.4.0 → 1.5.0-dev.2
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/bscmainnet/RiskFundV2.json +78 -14
- package/deployments/bscmainnet/solcInputs/e599bc05495d18590ac88167d546a0ef.json +228 -0
- package/deployments/bscmainnet.json +49 -1
- package/deployments/bscmainnet_addresses.json +1 -1
- package/dist/deploy/006-risk-fund-v2.d.ts +7 -0
- package/dist/deploy/006-risk-fund-v2.d.ts.map +1 -0
- package/dist/deploy/006-risk-fund-v2.js +25 -0
- package/dist/deploy/006-risk-fund-v2.js.map +1 -0
- package/package.json +2 -3
- package/typechain/AbstractTokenConverter.d.ts +0 -1775
- package/typechain/AccessControl.d.ts +0 -388
- package/typechain/AccessControlledV8.d.ts +0 -341
- package/typechain/BeaconProxy.d.ts +0 -126
- package/typechain/BoundValidatorInterface.d.ts +0 -126
- package/typechain/ContextUpgradeable.d.ts +0 -92
- package/typechain/ConverterNetwork.d.ts +0 -723
- package/typechain/ERC165.d.ts +0 -116
- package/typechain/ERC1967Upgrade.d.ts +0 -126
- package/typechain/ERC20.d.ts +0 -441
- package/typechain/IAbstractTokenConverter.d.ts +0 -773
- package/typechain/IAccessControl.d.ts +0 -333
- package/typechain/IAccessControlManagerV8.d.ts +0 -504
- package/typechain/IBeacon.d.ts +0 -101
- package/typechain/IComptroller.d.ts +0 -136
- package/typechain/IConverterNetwork.d.ts +0 -292
- package/typechain/IERC165.d.ts +0 -116
- package/typechain/IERC1822Proxiable.d.ts +0 -101
- package/typechain/IERC1967.d.ts +0 -126
- package/typechain/IERC20.d.ts +0 -324
- package/typechain/IERC20Metadata.d.ts +0 -363
- package/typechain/IERC20PermitUpgradeable.d.ts +0 -187
- package/typechain/IERC20Upgradeable.d.ts +0 -324
- package/typechain/IIncomeDestination.d.ts +0 -122
- package/typechain/IPoolRegistry.d.ts +0 -155
- package/typechain/IProtocolShareReserve.d.ts +0 -127
- package/typechain/IRiskFund.d.ts +0 -200
- package/typechain/IRiskFundConverter.d.ts +0 -138
- package/typechain/IRiskFundGetters.d.ts +0 -103
- package/typechain/IShortfall.d.ts +0 -110
- package/typechain/IVToken.d.ts +0 -98
- package/typechain/IXVSVault.d.ts +0 -95
- package/typechain/Initializable.d.ts +0 -92
- package/typechain/MaxLoopsLimitHelper.d.ts +0 -128
- package/typechain/MaxLoopsLimitHelpersStorage.d.ts +0 -101
- package/typechain/MockACM.d.ts +0 -615
- package/typechain/MockArraySorter.d.ts +0 -118
- package/typechain/MockConverter.d.ts +0 -1969
- package/typechain/MockDeflatingToken.d.ts +0 -486
- package/typechain/MockRiskFundConverter.d.ts +0 -2479
- package/typechain/MockToken.d.ts +0 -505
- package/typechain/OracleInterface.d.ts +0 -98
- package/typechain/Ownable.d.ts +0 -181
- package/typechain/Ownable2StepUpgradeable.d.ts +0 -261
- package/typechain/OwnableUpgradeable.d.ts +0 -193
- package/typechain/PausableUpgradeable.d.ts +0 -129
- package/typechain/ProtocolShareReserve.d.ts +0 -1214
- package/typechain/Proxy.d.ts +0 -78
- package/typechain/ReentrancyGuardUpgradeable.d.ts +0 -92
- package/typechain/ReserveHelpersStorage.d.ts +0 -300
- package/typechain/ResilientOracle.d.ts +0 -1034
- package/typechain/ResilientOracleInterface.d.ts +0 -192
- package/typechain/RiskFundConverter.d.ts +0 -2235
- package/typechain/RiskFundV1Storage.d.ts +0 -353
- package/typechain/RiskFundV2.d.ts +0 -965
- package/typechain/RiskFundV2Storage.d.ts +0 -372
- package/typechain/SingleTokenConverter.d.ts +0 -1944
- package/typechain/TwapInterface.d.ts +0 -124
- package/typechain/UpgradeableBeacon.d.ts +0 -240
- package/typechain/VBep20Interface.d.ts +0 -379
- package/typechain/XVSVaultTreasury.d.ts +0 -515
- package/typechain/common.d.ts +0 -35
- package/typechain/factories/AbstractTokenConverter__factory.ts +0 -1297
- package/typechain/factories/AccessControl__factory.ts +0 -227
- package/typechain/factories/AccessControlledV8__factory.ts +0 -196
- package/typechain/factories/BeaconProxy__factory.ts +0 -133
- package/typechain/factories/BoundValidatorInterface__factory.ts +0 -59
- package/typechain/factories/ContextUpgradeable__factory.ts +0 -39
- package/typechain/factories/ConverterNetwork__factory.ts +0 -502
- package/typechain/factories/ERC165__factory.ts +0 -39
- package/typechain/factories/ERC1967Upgrade__factory.ts +0 -71
- package/typechain/factories/ERC20__factory.ts +0 -340
- package/typechain/factories/IAbstractTokenConverter__factory.ts +0 -466
- package/typechain/factories/IAccessControlManagerV8__factory.ts +0 -301
- package/typechain/factories/IAccessControl__factory.ts +0 -198
- package/typechain/factories/IBeacon__factory.ts +0 -36
- package/typechain/factories/IComptroller__factory.ts +0 -68
- package/typechain/factories/IConverterNetwork__factory.ts +0 -142
- package/typechain/factories/IERC165__factory.ts +0 -42
- package/typechain/factories/IERC1822Proxiable__factory.ts +0 -39
- package/typechain/factories/IERC1967__factory.ts +0 -68
- package/typechain/factories/IERC20Metadata__factory.ts +0 -248
- package/typechain/factories/IERC20PermitUpgradeable__factory.ts +0 -105
- package/typechain/factories/IERC20Upgradeable__factory.ts +0 -209
- package/typechain/factories/IERC20__factory.ts +0 -203
- package/typechain/factories/IIncomeDestination__factory.ts +0 -44
- package/typechain/factories/IPoolRegistry__factory.ts +0 -66
- package/typechain/factories/IProtocolShareReserve__factory.ts +0 -53
- package/typechain/factories/IRiskFundConverter__factory.ts +0 -63
- package/typechain/factories/IRiskFundGetters__factory.ts +0 -39
- package/typechain/factories/IRiskFund__factory.ts +0 -89
- package/typechain/factories/IShortfall__factory.ts +0 -36
- package/typechain/factories/IVToken__factory.ts +0 -36
- package/typechain/factories/IXVSVault__factory.ts +0 -36
- package/typechain/factories/Initializable__factory.ts +0 -36
- package/typechain/factories/MaxLoopsLimitHelper__factory.ts +0 -74
- package/typechain/factories/MaxLoopsLimitHelpersStorage__factory.ts +0 -75
- package/typechain/factories/MockACM__factory.ts +0 -411
- package/typechain/factories/MockArraySorter__factory.ts +0 -85
- package/typechain/factories/MockConverter__factory.ts +0 -1439
- package/typechain/factories/MockDeflatingToken__factory.ts +0 -389
- package/typechain/factories/MockRiskFundConverter__factory.ts +0 -1828
- package/typechain/factories/MockToken__factory.ts +0 -398
- package/typechain/factories/OracleInterface__factory.ts +0 -45
- package/typechain/factories/Ownable2StepUpgradeable__factory.ts +0 -134
- package/typechain/factories/OwnableUpgradeable__factory.ts +0 -91
- package/typechain/factories/Ownable__factory.ts +0 -75
- package/typechain/factories/PausableUpgradeable__factory.ts +0 -78
- package/typechain/factories/ProtocolShareReserve__factory.ts +0 -874
- package/typechain/factories/Proxy__factory.ts +0 -28
- package/typechain/factories/ReentrancyGuardUpgradeable__factory.ts +0 -43
- package/typechain/factories/ReserveHelpersStorage__factory.ts +0 -188
- package/typechain/factories/ResilientOracleInterface__factory.ts +0 -94
- package/typechain/factories/ResilientOracle__factory.ts +0 -710
- package/typechain/factories/RiskFundConverter__factory.ts +0 -1694
- package/typechain/factories/RiskFundV1Storage__factory.ts +0 -223
- package/typechain/factories/RiskFundV2Storage__factory.ts +0 -236
- package/typechain/factories/RiskFundV2__factory.ts +0 -672
- package/typechain/factories/SingleTokenConverter__factory.ts +0 -1441
- package/typechain/factories/TwapInterface__factory.ts +0 -61
- package/typechain/factories/UpgradeableBeacon__factory.ts +0 -163
- package/typechain/factories/VBep20Interface__factory.ts +0 -261
- package/typechain/factories/XVSVaultTreasury__factory.ts +0 -365
- package/typechain/index.ts +0 -126
|
@@ -6901,7 +6901,7 @@
|
|
|
6901
6901
|
]
|
|
6902
6902
|
},
|
|
6903
6903
|
"RiskFundV2": {
|
|
6904
|
-
"address": "
|
|
6904
|
+
"address": "0x2F377545Fd095fA59A56Cb1fD7456A2a0B781Cb6",
|
|
6905
6905
|
"abi": [
|
|
6906
6906
|
{
|
|
6907
6907
|
"inputs": [],
|
|
@@ -7172,6 +7172,31 @@
|
|
|
7172
7172
|
"name": "SweepToken",
|
|
7173
7173
|
"type": "event"
|
|
7174
7174
|
},
|
|
7175
|
+
{
|
|
7176
|
+
"anonymous": false,
|
|
7177
|
+
"inputs": [
|
|
7178
|
+
{
|
|
7179
|
+
"indexed": true,
|
|
7180
|
+
"internalType": "address",
|
|
7181
|
+
"name": "token",
|
|
7182
|
+
"type": "address"
|
|
7183
|
+
},
|
|
7184
|
+
{
|
|
7185
|
+
"indexed": true,
|
|
7186
|
+
"internalType": "address",
|
|
7187
|
+
"name": "comptroller",
|
|
7188
|
+
"type": "address"
|
|
7189
|
+
},
|
|
7190
|
+
{
|
|
7191
|
+
"indexed": false,
|
|
7192
|
+
"internalType": "uint256",
|
|
7193
|
+
"name": "amount",
|
|
7194
|
+
"type": "uint256"
|
|
7195
|
+
}
|
|
7196
|
+
],
|
|
7197
|
+
"name": "SweepTokenFromPool",
|
|
7198
|
+
"type": "event"
|
|
7199
|
+
},
|
|
7175
7200
|
{
|
|
7176
7201
|
"anonymous": false,
|
|
7177
7202
|
"inputs": [
|
|
@@ -7414,6 +7439,29 @@
|
|
|
7414
7439
|
"stateMutability": "nonpayable",
|
|
7415
7440
|
"type": "function"
|
|
7416
7441
|
},
|
|
7442
|
+
{
|
|
7443
|
+
"inputs": [
|
|
7444
|
+
{
|
|
7445
|
+
"internalType": "address",
|
|
7446
|
+
"name": "tokenAddress",
|
|
7447
|
+
"type": "address"
|
|
7448
|
+
},
|
|
7449
|
+
{
|
|
7450
|
+
"internalType": "address",
|
|
7451
|
+
"name": "comptroller",
|
|
7452
|
+
"type": "address"
|
|
7453
|
+
},
|
|
7454
|
+
{
|
|
7455
|
+
"internalType": "uint256",
|
|
7456
|
+
"name": "amount",
|
|
7457
|
+
"type": "uint256"
|
|
7458
|
+
}
|
|
7459
|
+
],
|
|
7460
|
+
"name": "sweepTokenFromPool",
|
|
7461
|
+
"outputs": [],
|
|
7462
|
+
"stateMutability": "nonpayable",
|
|
7463
|
+
"type": "function"
|
|
7464
|
+
},
|
|
7417
7465
|
{
|
|
7418
7466
|
"inputs": [
|
|
7419
7467
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"RiskFundConverter": "0xA5622D276CcbB8d9BBE3D1ffd1BB11a0032E53F0",
|
|
15
15
|
"RiskFundConverter_Implementation": "0x2fB02b3D49D45967DA471C7685Ce524d833520Dc",
|
|
16
16
|
"RiskFundConverter_Proxy": "0xA5622D276CcbB8d9BBE3D1ffd1BB11a0032E53F0",
|
|
17
|
-
"RiskFundV2": "
|
|
17
|
+
"RiskFundV2": "0x2F377545Fd095fA59A56Cb1fD7456A2a0B781Cb6",
|
|
18
18
|
"SingleTokenConverterBeacon": "0x4c9D57b05B245c40235D720A5f3A592f3DfF11ca",
|
|
19
19
|
"SingleTokenConverterImp": "0xe80f5A2adE24bEd740408B944197b3c24f2f2e91",
|
|
20
20
|
"USDCPrimeConverter": "0xa758c9C215B6c4198F0a0e3FA46395Fa15Db691b",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"006-risk-fund-v2.d.ts","sourceRoot":"","sources":["../../deploy/006-risk-fund-v2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAE1D,QAAA,MAAM,IAAI;wCAA6C,yBAAyB;;CAU/E,CAAC;AAIF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const func = ({ getNamedAccounts, deployments }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
13
|
+
const { deploy } = deployments;
|
|
14
|
+
const { deployer } = yield getNamedAccounts();
|
|
15
|
+
yield deploy("RiskFundV2", {
|
|
16
|
+
contract: "RiskFundV2",
|
|
17
|
+
from: deployer,
|
|
18
|
+
args: [],
|
|
19
|
+
log: true,
|
|
20
|
+
autoMine: true,
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
func.tags = ["RiskFundV2"];
|
|
24
|
+
exports.default = func;
|
|
25
|
+
//# sourceMappingURL=006-risk-fund-v2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"006-risk-fund-v2.js","sourceRoot":"","sources":["../../deploy/006-risk-fund-v2.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,MAAM,IAAI,GAAG,CAAO,EAAE,gBAAgB,EAAE,WAAW,EAA6B,EAAE,EAAE;IAClF,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC;IAC/B,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,gBAAgB,EAAE,CAAC;IAC9C,MAAM,MAAM,CAAC,YAAY,EAAE;QACzB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,IAAI;QACT,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEF,IAAI,CAAC,IAAI,GAAG,CAAC,YAAY,CAAC,CAAC;AAE3B,kBAAe,IAAI,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venusprotocol/protocol-reserve",
|
|
3
3
|
"description": "Venus Protocol contracts to manage the income generated by the protocol",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.0-dev.2",
|
|
5
5
|
"author": "Venus",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=18.0.0"
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"artifacts",
|
|
11
11
|
"dist",
|
|
12
12
|
"deployments",
|
|
13
|
-
"contracts"
|
|
14
|
-
"typechain"
|
|
13
|
+
"contracts"
|
|
15
14
|
],
|
|
16
15
|
"keywords": [
|
|
17
16
|
"blockchain",
|