@venusprotocol/isolated-pools 3.1.0-dev.4 → 3.1.0-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.
Files changed (53) hide show
  1. package/deployments/arbitrumone.json +5 -0
  2. package/deployments/arbitrumone_addresses.json +5 -0
  3. package/deployments/arbitrumsepolia/.chainId +1 -0
  4. package/deployments/arbitrumsepolia/ComptrollerBeacon.json +206 -0
  5. package/deployments/arbitrumsepolia/ComptrollerImpl.json +3227 -0
  6. package/deployments/arbitrumsepolia/Comptroller_Core.json +187 -0
  7. package/deployments/arbitrumsepolia/DefaultProxyAdmin.json +257 -0
  8. package/deployments/arbitrumsepolia/JumpRateModelV2_base0bps_slope750bps_jump25000bps_kink8000bps.json +608 -0
  9. package/deployments/arbitrumsepolia/JumpRateModelV2_base0bps_slope900bps_jump30000bps_kink4500bps.json +608 -0
  10. package/deployments/arbitrumsepolia/MockARB.json +458 -0
  11. package/deployments/arbitrumsepolia/MockUSDC.json +458 -0
  12. package/deployments/arbitrumsepolia/MockUSDT.json +458 -0
  13. package/deployments/arbitrumsepolia/MockWBTC.json +458 -0
  14. package/deployments/arbitrumsepolia/PoolLens.json +1441 -0
  15. package/deployments/arbitrumsepolia/PoolRegistry.json +945 -0
  16. package/deployments/arbitrumsepolia/PoolRegistry_Implementation.json +1194 -0
  17. package/deployments/arbitrumsepolia/PoolRegistry_Proxy.json +267 -0
  18. package/deployments/arbitrumsepolia/VTokenBeacon.json +206 -0
  19. package/deployments/arbitrumsepolia/VTokenImpl.json +3269 -0
  20. package/deployments/arbitrumsepolia/VToken_vARB_Core.json +257 -0
  21. package/deployments/arbitrumsepolia/VToken_vUSDC_Core.json +257 -0
  22. package/deployments/arbitrumsepolia/VToken_vUSDT_Core.json +257 -0
  23. package/deployments/arbitrumsepolia/VToken_vWBTC_Core.json +257 -0
  24. package/deployments/arbitrumsepolia/VToken_vWETH_Core.json +257 -0
  25. package/deployments/arbitrumsepolia/solcInputs/0e89febeebc7444140de8e67c9067d2c.json +78 -0
  26. package/deployments/arbitrumsepolia/solcInputs/556e7926402a9f7d641047851d56b7a7.json +181 -0
  27. package/deployments/arbitrumsepolia/solcInputs/59b8275146729f23ba56d7f2829ce867.json +300 -0
  28. package/deployments/arbitrumsepolia/solcInputs/944a1fbb33c889bd3a2ad5ce1a25132e.json +253 -0
  29. package/deployments/arbitrumsepolia/solcInputs/ab048682e1128bf58892ce9ad2539f59.json +252 -0
  30. package/deployments/arbitrumsepolia/solcInputs/de43f7e3d0d5d3c7b52604521edc0d0b.json +397 -0
  31. package/deployments/arbitrumsepolia.json +9736 -0
  32. package/deployments/arbitrumsepolia_addresses.json +27 -0
  33. package/deployments/ethereum/JumpRateModelV2_base0bps_slope1500bps_jump25000bps_kink8000bps.json +27 -27
  34. package/deployments/ethereum/VToken_vTUSD_Core.json +257 -0
  35. package/deployments/ethereum/solcInputs/9b1ce7dc3f6775f0734e7fb93d5ebf4f.json +394 -0
  36. package/deployments/ethereum.json +75 -1
  37. package/deployments/ethereum_addresses.json +2 -1
  38. package/deployments/sepolia/JumpRateModelV2_base0bps_slope1500bps_jump25000bps_kink8000bps.json +27 -27
  39. package/deployments/sepolia/MockTUSD.json +458 -0
  40. package/deployments/sepolia/VToken_vTUSD_Core.json +257 -0
  41. package/deployments/sepolia.json +384 -1
  42. package/deployments/sepolia_addresses.json +3 -1
  43. package/dist/deployments/ethereum.json +75 -1
  44. package/dist/deployments/sepolia.json +384 -1
  45. package/dist/hardhat.config.js +31 -0
  46. package/dist/helpers/deploymentConfig.d.ts +10 -0
  47. package/dist/helpers/deploymentConfig.js +213 -2
  48. package/dist/helpers/deploymentUtils.js +1 -2
  49. package/dist/typechain/factories/IVToken__factory.d.ts +1 -5
  50. package/dist/typechain/factories/IVToken__factory.js +1 -201
  51. package/package.json +2 -2
  52. package/typechain/IVToken.d.ts +4 -341
  53. package/typechain/factories/IVToken__factory.ts +1 -201
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getMaxBorrowRateMantissa = exports.getBidderDeploymentValues = exports.getTokenAddress = exports.getTokenConfig = exports.getConfig = exports.globalConfig = exports.preconfiguredAddresses = exports.OPBNBMAINNET_MULTISIG = exports.OPBNBTESTNET_MULTISIG = exports.ETHEREUM_MULTISIG = exports.SEPOLIA_MULTISIG = exports.blocksPerYear = exports.SECONDS_PER_YEAR = exports.OPBNB_BLOCKS_PER_YEAR = exports.ETH_BLOCKS_PER_YEAR = exports.BSC_BLOCKS_PER_YEAR = exports.InterestRateModels = void 0;
3
+ exports.getMaxBorrowRateMantissa = exports.getBidderDeploymentValues = exports.getTokenAddress = exports.getTokenConfig = exports.getConfig = exports.globalConfig = exports.preconfiguredAddresses = exports.ARBITRUM_ONE_MULTISIG = exports.ARBITRUM_SEPOLIA_MULTISIG = exports.OPBNBMAINNET_MULTISIG = exports.OPBNBTESTNET_MULTISIG = exports.ETHEREUM_MULTISIG = exports.SEPOLIA_MULTISIG = exports.blocksPerYear = exports.SECONDS_PER_YEAR = exports.OPBNB_BLOCKS_PER_YEAR = exports.ETH_BLOCKS_PER_YEAR = exports.BSC_BLOCKS_PER_YEAR = exports.InterestRateModels = void 0;
4
+ const arbitrumsepolia_json_1 = require("@venusprotocol/governance-contracts/deployments/arbitrumsepolia.json");
4
5
  const bscmainnet_json_1 = require("@venusprotocol/governance-contracts/deployments/bscmainnet.json");
5
6
  const bsctestnet_json_1 = require("@venusprotocol/governance-contracts/deployments/bsctestnet.json");
6
7
  const ethereum_json_1 = require("@venusprotocol/governance-contracts/deployments/ethereum.json");
7
8
  const opbnbmainnet_json_1 = require("@venusprotocol/governance-contracts/deployments/opbnbmainnet.json");
8
9
  const opbnbtestnet_json_1 = require("@venusprotocol/governance-contracts/deployments/opbnbtestnet.json");
9
10
  const sepolia_json_1 = require("@venusprotocol/governance-contracts/deployments/sepolia.json");
11
+ const arbitrumsepolia_json_2 = require("@venusprotocol/venus-protocol/deployments/arbitrumsepolia.json");
10
12
  const bscmainnet_json_2 = require("@venusprotocol/venus-protocol/deployments/bscmainnet.json");
11
13
  const bsctestnet_json_2 = require("@venusprotocol/venus-protocol/deployments/bsctestnet.json");
12
14
  const ethereum_json_2 = require("@venusprotocol/venus-protocol/deployments/ethereum.json");
@@ -34,15 +36,19 @@ exports.blocksPerYear = {
34
36
  ethereum: exports.ETH_BLOCKS_PER_YEAR,
35
37
  opbnbtestnet: exports.OPBNB_BLOCKS_PER_YEAR,
36
38
  opbnbmainnet: exports.OPBNB_BLOCKS_PER_YEAR,
37
- isTimeBased: 0,
39
+ arbitrumsepolia: 0,
40
+ arbitrumone: 0, // for time based contracts
38
41
  };
39
42
  exports.SEPOLIA_MULTISIG = "0x94fa6078b6b8a26f0b6edffbe6501b22a10470fb";
40
43
  exports.ETHEREUM_MULTISIG = "0x285960C5B22fD66A736C7136967A3eB15e93CC67";
41
44
  exports.OPBNBTESTNET_MULTISIG = "0xb15f6EfEbC276A3b9805df81b5FB3D50C2A62BDf";
42
45
  exports.OPBNBMAINNET_MULTISIG = "0xC46796a21a3A9FAB6546aF3434F2eBfFd0604207";
46
+ exports.ARBITRUM_SEPOLIA_MULTISIG = "0x1426A5Ae009c4443188DA8793751024E358A61C2";
47
+ exports.ARBITRUM_ONE_MULTISIG = "0x14e0E151b33f9802b3e75b621c1457afc44DcAA0";
43
48
  const DEFAULT_REDUCE_RESERVES_BLOCK_DELTA = "7200";
44
49
  const REDUCE_RESERVES_BLOCK_DELTA_OPBNBTESTNET = "300";
45
50
  const REDUCE_RESERVES_BLOCK_DELTA_OPBNBMAINNET = "86400";
51
+ const REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA = "86400";
46
52
  exports.preconfiguredAddresses = {
47
53
  hardhat: {
48
54
  VTreasury: "account:deployer",
@@ -105,6 +111,13 @@ exports.preconfiguredAddresses = {
105
111
  CriticalTimelock: exports.OPBNBMAINNET_MULTISIG,
106
112
  AccessControlManager: opbnbmainnet_json_1.contracts.AccessControlManager.address,
107
113
  },
114
+ arbitrumsepolia: {
115
+ VTreasury: arbitrumsepolia_json_2.contracts.VTreasuryV8.address,
116
+ NormalTimelock: exports.ARBITRUM_SEPOLIA_MULTISIG,
117
+ FastTrackTimelock: exports.ARBITRUM_SEPOLIA_MULTISIG,
118
+ CriticalTimelock: exports.ARBITRUM_SEPOLIA_MULTISIG,
119
+ AccessControlManager: arbitrumsepolia_json_1.contracts.AccessControlManager.address,
120
+ },
108
121
  };
109
122
  const poolRegistryPermissions = () => {
110
123
  const methods = [
@@ -2326,6 +2339,13 @@ exports.globalConfig = {
2326
2339
  decimals: 18,
2327
2340
  tokenAddress: hardhat_1.ethers.constants.AddressZero,
2328
2341
  },
2342
+ {
2343
+ isMock: true,
2344
+ name: "TrueUSD",
2345
+ symbol: "TUSD",
2346
+ decimals: 18,
2347
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
2348
+ },
2329
2349
  ],
2330
2350
  poolConfig: [
2331
2351
  {
@@ -2461,6 +2481,24 @@ exports.globalConfig = {
2461
2481
  reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
2462
2482
  vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
2463
2483
  },
2484
+ {
2485
+ name: "Venus TUSD (Core)",
2486
+ asset: "TUSD",
2487
+ symbol: "vTUSD_Core",
2488
+ rateModel: InterestRateModels.JumpRate.toString(),
2489
+ baseRatePerYear: "0",
2490
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
2491
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
2492
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
2493
+ collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
2494
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.77", 18),
2495
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
2496
+ initialSupply: (0, utils_1.convertToUnit)(5000, 18),
2497
+ supplyCap: (0, utils_1.convertToUnit)(2000000, 18),
2498
+ borrowCap: (0, utils_1.convertToUnit)(1800000, 18),
2499
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
2500
+ vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury, // TBD
2501
+ },
2464
2502
  ],
2465
2503
  rewards: [
2466
2504
  // XVS Rewards Over 90 days (648000 blocks)
@@ -2808,6 +2846,13 @@ exports.globalConfig = {
2808
2846
  decimals: 18,
2809
2847
  tokenAddress: "0x6b175474e89094c44da98b954eedeac495271d0f",
2810
2848
  },
2849
+ {
2850
+ isMock: false,
2851
+ name: "TrueUSD",
2852
+ symbol: "TUSD",
2853
+ decimals: 18,
2854
+ tokenAddress: "0x0000000000085d4780B73119b644AE5ecd22b376",
2855
+ },
2811
2856
  ],
2812
2857
  poolConfig: [
2813
2858
  {
@@ -2925,6 +2970,24 @@ exports.globalConfig = {
2925
2970
  reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
2926
2971
  vTokenReceiver: exports.preconfiguredAddresses.ethereum.VTreasury,
2927
2972
  },
2973
+ {
2974
+ name: "Venus TUSD (Core)",
2975
+ asset: "TUSD",
2976
+ symbol: "vTUSD_Core",
2977
+ rateModel: InterestRateModels.JumpRate.toString(),
2978
+ baseRatePerYear: "0",
2979
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
2980
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
2981
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
2982
+ collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
2983
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.77", 18),
2984
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
2985
+ initialSupply: (0, utils_1.convertToUnit)(5000, 18),
2986
+ supplyCap: (0, utils_1.convertToUnit)(2000000, 18),
2987
+ borrowCap: (0, utils_1.convertToUnit)(1800000, 18),
2988
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
2989
+ vTokenReceiver: exports.preconfiguredAddresses.ethereum.VTreasury, // TBD
2990
+ },
2928
2991
  ],
2929
2992
  rewards: [
2930
2993
  // XVS Rewards Over 90 days (648000 blocks)
@@ -3397,6 +3460,152 @@ exports.globalConfig = {
3397
3460
  ],
3398
3461
  preconfiguredAddresses: exports.preconfiguredAddresses.opbnbmainnet,
3399
3462
  },
3463
+ arbitrumsepolia: {
3464
+ tokensConfig: [
3465
+ {
3466
+ isMock: true,
3467
+ name: "Wrapped BTC",
3468
+ symbol: "WBTC",
3469
+ decimals: 8,
3470
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
3471
+ },
3472
+ {
3473
+ isMock: false,
3474
+ name: "Wrapped Ether",
3475
+ symbol: "WETH",
3476
+ decimals: 18,
3477
+ tokenAddress: "0x980B62Da83eFf3D4576C647993b0c1D7faf17c73",
3478
+ },
3479
+ {
3480
+ isMock: true,
3481
+ name: "USD Coin",
3482
+ symbol: "USDC",
3483
+ decimals: 6,
3484
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
3485
+ },
3486
+ {
3487
+ isMock: true,
3488
+ name: "Tether USD",
3489
+ symbol: "USDT",
3490
+ decimals: 6,
3491
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
3492
+ },
3493
+ {
3494
+ isMock: true,
3495
+ name: "Arbitrum",
3496
+ symbol: "ARB",
3497
+ decimals: 18,
3498
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
3499
+ },
3500
+ ],
3501
+ poolConfig: [
3502
+ {
3503
+ id: "Core",
3504
+ name: "Core",
3505
+ closeFactor: (0, utils_1.convertToUnit)("0.5", 18),
3506
+ liquidationIncentive: (0, utils_1.convertToUnit)("1.1", 18),
3507
+ minLiquidatableCollateral: (0, utils_1.convertToUnit)("100", 18),
3508
+ vtokens: [
3509
+ {
3510
+ name: "Venus WBTC (Core)",
3511
+ asset: "WBTC",
3512
+ symbol: "vWBTC_Core",
3513
+ rateModel: InterestRateModels.JumpRate.toString(),
3514
+ baseRatePerYear: "0",
3515
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
3516
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
3517
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
3518
+ collateralFactor: (0, utils_1.convertToUnit)("0.7", 18),
3519
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.75", 18),
3520
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
3521
+ initialSupply: (0, utils_1.convertToUnit)("0.03553143", 8),
3522
+ supplyCap: (0, utils_1.convertToUnit)(1, 8),
3523
+ borrowCap: (0, utils_1.convertToUnit)("0.55", 8),
3524
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
3525
+ vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
3526
+ },
3527
+ {
3528
+ name: "Venus WETH (Core)",
3529
+ asset: "WETH",
3530
+ symbol: "vWETH_Core",
3531
+ rateModel: InterestRateModels.JumpRate.toString(),
3532
+ baseRatePerYear: "0",
3533
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
3534
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
3535
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
3536
+ collateralFactor: (0, utils_1.convertToUnit)("0.7", 18),
3537
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.75", 18),
3538
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
3539
+ initialSupply: (0, utils_1.convertToUnit)("0.610978879332136515", 18),
3540
+ supplyCap: (0, utils_1.convertToUnit)(25, 18),
3541
+ borrowCap: (0, utils_1.convertToUnit)(16, 18),
3542
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
3543
+ vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
3544
+ },
3545
+ {
3546
+ name: "Venus USDC (Core)",
3547
+ asset: "USDC",
3548
+ symbol: "vUSDC_Core",
3549
+ rateModel: InterestRateModels.JumpRate.toString(),
3550
+ baseRatePerYear: "0",
3551
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.075", 18),
3552
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
3553
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
3554
+ collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
3555
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.77", 18),
3556
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
3557
+ initialSupply: (0, utils_1.convertToUnit)("1800", 6),
3558
+ supplyCap: (0, utils_1.convertToUnit)(150000, 6),
3559
+ borrowCap: (0, utils_1.convertToUnit)(130000, 6),
3560
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
3561
+ vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
3562
+ },
3563
+ {
3564
+ name: "Venus USDT (Core)",
3565
+ asset: "USDT",
3566
+ symbol: "vUSDT_Core",
3567
+ rateModel: InterestRateModels.JumpRate.toString(),
3568
+ baseRatePerYear: "0",
3569
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.075", 18),
3570
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
3571
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
3572
+ collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
3573
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.77", 18),
3574
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
3575
+ initialSupply: (0, utils_1.convertToUnit)("1800", 6),
3576
+ supplyCap: (0, utils_1.convertToUnit)(150000, 6),
3577
+ borrowCap: (0, utils_1.convertToUnit)(130000, 6),
3578
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
3579
+ vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
3580
+ },
3581
+ {
3582
+ name: "Venus ARB (Core)",
3583
+ asset: "ARB",
3584
+ symbol: "vARB_Core",
3585
+ rateModel: InterestRateModels.JumpRate.toString(),
3586
+ baseRatePerYear: "0",
3587
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
3588
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
3589
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
3590
+ collateralFactor: (0, utils_1.convertToUnit)("0.7", 18),
3591
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.75", 18),
3592
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
3593
+ initialSupply: (0, utils_1.convertToUnit)("0.610978879332136515", 18),
3594
+ supplyCap: (0, utils_1.convertToUnit)(25, 18),
3595
+ borrowCap: (0, utils_1.convertToUnit)(16, 18),
3596
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
3597
+ vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
3598
+ },
3599
+ ],
3600
+ rewards: [],
3601
+ },
3602
+ ],
3603
+ accessControlConfig: [
3604
+ ...poolRegistryPermissions(),
3605
+ ...normalTimelockPermissions(exports.preconfiguredAddresses.arbitrumsepolia.NormalTimelock),
3606
+ ],
3607
+ preconfiguredAddresses: exports.preconfiguredAddresses.arbitrumsepolia,
3608
+ },
3400
3609
  };
3401
3610
  async function getConfig(networkName) {
3402
3611
  switch (networkName) {
@@ -3414,6 +3623,8 @@ async function getConfig(networkName) {
3414
3623
  return exports.globalConfig.opbnbtestnet;
3415
3624
  case "opbnbmainnet":
3416
3625
  return exports.globalConfig.opbnbmainnet;
3626
+ case "arbitrumsepolia":
3627
+ return exports.globalConfig.arbitrumsepolia;
3417
3628
  case "development":
3418
3629
  return exports.globalConfig.bsctestnet;
3419
3630
  default:
@@ -94,7 +94,6 @@ const getUnregisteredRewardsDistributors = async (poolConfig, hre) => {
94
94
  exports.getUnregisteredRewardsDistributors = getUnregisteredRewardsDistributors;
95
95
  const getBlockOrTimestampBasedDeploymentInfo = (network) => {
96
96
  const isTimeBased = process.env.IS_TIME_BASED_DEPLOYMENT === "true";
97
- const blocksPerYearKey = isTimeBased ? "isTimeBased" : network;
98
- return { isTimeBased: isTimeBased, blocksPerYear: deploymentConfig_1.blocksPerYear[blocksPerYearKey] };
97
+ return { isTimeBased: isTimeBased, blocksPerYear: deploymentConfig_1.blocksPerYear[network] };
99
98
  };
100
99
  exports.getBlockOrTimestampBasedDeploymentInfo = getBlockOrTimestampBasedDeploymentInfo;
@@ -3,11 +3,7 @@ import { Provider } from "@ethersproject/providers";
3
3
  import type { IVToken, IVTokenInterface } from "../IVToken";
4
4
  export declare class IVToken__factory {
5
5
  static readonly abi: {
6
- inputs: {
7
- internalType: string;
8
- name: string;
9
- type: string;
10
- }[];
6
+ inputs: never[];
11
7
  name: string;
12
8
  outputs: {
13
9
  internalType: string;
@@ -6,206 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IVToken__factory = void 0;
7
7
  const ethers_1 = require("ethers");
8
8
  const _abi = [
9
- {
10
- inputs: [
11
- {
12
- internalType: "address",
13
- name: "account",
14
- type: "address",
15
- },
16
- ],
17
- name: "borrowBalanceCurrent",
18
- outputs: [
19
- {
20
- internalType: "uint256",
21
- name: "",
22
- type: "uint256",
23
- },
24
- ],
25
- stateMutability: "nonpayable",
26
- type: "function",
27
- },
28
- {
29
- inputs: [
30
- {
31
- internalType: "address",
32
- name: "borrower",
33
- type: "address",
34
- },
35
- {
36
- internalType: "uint256",
37
- name: "borrowAmount",
38
- type: "uint256",
39
- },
40
- ],
41
- name: "borrowBehalf",
42
- outputs: [
43
- {
44
- internalType: "uint256",
45
- name: "",
46
- type: "uint256",
47
- },
48
- ],
49
- stateMutability: "nonpayable",
50
- type: "function",
51
- },
52
- {
53
- inputs: [],
54
- name: "exchangeRateCurrent",
55
- outputs: [
56
- {
57
- internalType: "uint256",
58
- name: "",
59
- type: "uint256",
60
- },
61
- ],
62
- stateMutability: "nonpayable",
63
- type: "function",
64
- },
65
- {
66
- inputs: [
67
- {
68
- internalType: "address",
69
- name: "receiver",
70
- type: "address",
71
- },
72
- {
73
- internalType: "uint256",
74
- name: "mintAmount",
75
- type: "uint256",
76
- },
77
- ],
78
- name: "mintBehalf",
79
- outputs: [
80
- {
81
- internalType: "uint256",
82
- name: "",
83
- type: "uint256",
84
- },
85
- ],
86
- stateMutability: "nonpayable",
87
- type: "function",
88
- },
89
- {
90
- inputs: [
91
- {
92
- internalType: "uint256",
93
- name: "redeemTokens",
94
- type: "uint256",
95
- },
96
- ],
97
- name: "redeem",
98
- outputs: [
99
- {
100
- internalType: "uint256",
101
- name: "",
102
- type: "uint256",
103
- },
104
- ],
105
- stateMutability: "nonpayable",
106
- type: "function",
107
- },
108
- {
109
- inputs: [
110
- {
111
- internalType: "address",
112
- name: "redeemer",
113
- type: "address",
114
- },
115
- {
116
- internalType: "uint256",
117
- name: "redeemTokens",
118
- type: "uint256",
119
- },
120
- ],
121
- name: "redeemBehalf",
122
- outputs: [
123
- {
124
- internalType: "uint256",
125
- name: "",
126
- type: "uint256",
127
- },
128
- ],
129
- stateMutability: "nonpayable",
130
- type: "function",
131
- },
132
- {
133
- inputs: [
134
- {
135
- internalType: "address",
136
- name: "redeemer",
137
- type: "address",
138
- },
139
- {
140
- internalType: "uint256",
141
- name: "redeemAmount",
142
- type: "uint256",
143
- },
144
- ],
145
- name: "redeemUnderlyingBehalf",
146
- outputs: [
147
- {
148
- internalType: "uint256",
149
- name: "",
150
- type: "uint256",
151
- },
152
- ],
153
- stateMutability: "nonpayable",
154
- type: "function",
155
- },
156
- {
157
- inputs: [
158
- {
159
- internalType: "address",
160
- name: "borrower",
161
- type: "address",
162
- },
163
- {
164
- internalType: "uint256",
165
- name: "repayAmount",
166
- type: "uint256",
167
- },
168
- ],
169
- name: "repayBorrowBehalf",
170
- outputs: [
171
- {
172
- internalType: "uint256",
173
- name: "",
174
- type: "uint256",
175
- },
176
- ],
177
- stateMutability: "nonpayable",
178
- type: "function",
179
- },
180
- {
181
- inputs: [
182
- {
183
- internalType: "address",
184
- name: "from",
185
- type: "address",
186
- },
187
- {
188
- internalType: "address",
189
- name: "to",
190
- type: "address",
191
- },
192
- {
193
- internalType: "uint256",
194
- name: "amount",
195
- type: "uint256",
196
- },
197
- ],
198
- name: "transferFrom",
199
- outputs: [
200
- {
201
- internalType: "bool",
202
- name: "",
203
- type: "bool",
204
- },
205
- ],
206
- stateMutability: "nonpayable",
207
- type: "function",
208
- },
209
9
  {
210
10
  inputs: [],
211
11
  name: "underlying",
@@ -216,7 +16,7 @@ const _abi = [
216
16
  type: "address",
217
17
  },
218
18
  ],
219
- stateMutability: "nonpayable",
19
+ stateMutability: "view",
220
20
  type: "function",
221
21
  },
222
22
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venusprotocol/isolated-pools",
3
- "version": "3.1.0-dev.4",
3
+ "version": "3.1.0-dev.6",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",
@@ -73,7 +73,7 @@
73
73
  "@typescript-eslint/parser": "^5.27.1",
74
74
  "@venusprotocol/governance-contracts": "2.0.0",
75
75
  "@venusprotocol/oracle": "2.0.0",
76
- "@venusprotocol/protocol-reserve": "2.0.0",
76
+ "@venusprotocol/protocol-reserve": "2.1.0",
77
77
  "@venusprotocol/venus-protocol": "8.0.0",
78
78
  "bignumber.js": "9.0.0",
79
79
  "chai": "^4.3.6",