@venusprotocol/isolated-pools 3.1.0-dev.3 → 3.1.0-dev.5

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 (47) 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/sepolia/MockPT-weETH-26DEC2024.json +458 -0
  34. package/deployments/sepolia/VToken_vPT-weETH-26DEC2024_LiquidStakedETH.json +257 -0
  35. package/deployments/sepolia/solcInputs/9b1ce7dc3f6775f0734e7fb93d5ebf4f.json +394 -0
  36. package/deployments/sepolia.json +383 -0
  37. package/deployments/sepolia_addresses.json +2 -0
  38. package/dist/deployments/sepolia.json +383 -0
  39. package/dist/hardhat.config.js +31 -0
  40. package/dist/helpers/deploymentConfig.d.ts +10 -0
  41. package/dist/helpers/deploymentConfig.js +188 -2
  42. package/dist/helpers/deploymentUtils.js +1 -2
  43. package/dist/typechain/factories/IVToken__factory.d.ts +5 -1
  44. package/dist/typechain/factories/IVToken__factory.js +201 -1
  45. package/package.json +2 -2
  46. package/typechain/IVToken.d.ts +341 -4
  47. package/typechain/factories/IVToken__factory.ts +201 -1
@@ -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 = [
@@ -2319,6 +2332,13 @@ exports.globalConfig = {
2319
2332
  decimals: 18,
2320
2333
  tokenAddress: hardhat_1.ethers.constants.AddressZero,
2321
2334
  },
2335
+ {
2336
+ isMock: true,
2337
+ name: "PT ether.fi weETH 26DEC2024",
2338
+ symbol: "PT-weETH-26DEC2024",
2339
+ decimals: 18,
2340
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
2341
+ },
2322
2342
  ],
2323
2343
  poolConfig: [
2324
2344
  {
@@ -2670,6 +2690,24 @@ exports.globalConfig = {
2670
2690
  reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
2671
2691
  vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
2672
2692
  },
2693
+ {
2694
+ name: "Venus PT-wETH-26DEC2024 (Liquid Staked ETH)",
2695
+ asset: "PT-weETH-26DEC2024",
2696
+ symbol: "vPT-weETH-26DEC2024_LiquidStakedETH",
2697
+ rateModel: InterestRateModels.JumpRate.toString(),
2698
+ baseRatePerYear: "0",
2699
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
2700
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("0.75", 18),
2701
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
2702
+ collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
2703
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.80", 18),
2704
+ reserveFactor: (0, utils_1.convertToUnit)("0.20", 18),
2705
+ initialSupply: (0, utils_1.convertToUnit)("1.799618792392372642", 18),
2706
+ supplyCap: (0, utils_1.convertToUnit)(3750, 18),
2707
+ borrowCap: (0, utils_1.convertToUnit)(375, 18),
2708
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
2709
+ vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
2710
+ },
2673
2711
  ],
2674
2712
  rewards: [
2675
2713
  // XVS Rewards Over 90 days (648000 blocks)
@@ -3372,6 +3410,152 @@ exports.globalConfig = {
3372
3410
  ],
3373
3411
  preconfiguredAddresses: exports.preconfiguredAddresses.opbnbmainnet,
3374
3412
  },
3413
+ arbitrumsepolia: {
3414
+ tokensConfig: [
3415
+ {
3416
+ isMock: true,
3417
+ name: "Wrapped BTC",
3418
+ symbol: "WBTC",
3419
+ decimals: 8,
3420
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
3421
+ },
3422
+ {
3423
+ isMock: false,
3424
+ name: "Wrapped Ether",
3425
+ symbol: "WETH",
3426
+ decimals: 18,
3427
+ tokenAddress: "0x980B62Da83eFf3D4576C647993b0c1D7faf17c73",
3428
+ },
3429
+ {
3430
+ isMock: true,
3431
+ name: "USD Coin",
3432
+ symbol: "USDC",
3433
+ decimals: 6,
3434
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
3435
+ },
3436
+ {
3437
+ isMock: true,
3438
+ name: "Tether USD",
3439
+ symbol: "USDT",
3440
+ decimals: 6,
3441
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
3442
+ },
3443
+ {
3444
+ isMock: true,
3445
+ name: "Arbitrum",
3446
+ symbol: "ARB",
3447
+ decimals: 18,
3448
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
3449
+ },
3450
+ ],
3451
+ poolConfig: [
3452
+ {
3453
+ id: "Core",
3454
+ name: "Core",
3455
+ closeFactor: (0, utils_1.convertToUnit)("0.5", 18),
3456
+ liquidationIncentive: (0, utils_1.convertToUnit)("1.1", 18),
3457
+ minLiquidatableCollateral: (0, utils_1.convertToUnit)("100", 18),
3458
+ vtokens: [
3459
+ {
3460
+ name: "Venus WBTC (Core)",
3461
+ asset: "WBTC",
3462
+ symbol: "vWBTC_Core",
3463
+ rateModel: InterestRateModels.JumpRate.toString(),
3464
+ baseRatePerYear: "0",
3465
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
3466
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
3467
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
3468
+ collateralFactor: (0, utils_1.convertToUnit)("0.7", 18),
3469
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.75", 18),
3470
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
3471
+ initialSupply: (0, utils_1.convertToUnit)("0.03553143", 8),
3472
+ supplyCap: (0, utils_1.convertToUnit)(1, 8),
3473
+ borrowCap: (0, utils_1.convertToUnit)("0.55", 8),
3474
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
3475
+ vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
3476
+ },
3477
+ {
3478
+ name: "Venus WETH (Core)",
3479
+ asset: "WETH",
3480
+ symbol: "vWETH_Core",
3481
+ rateModel: InterestRateModels.JumpRate.toString(),
3482
+ baseRatePerYear: "0",
3483
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
3484
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
3485
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
3486
+ collateralFactor: (0, utils_1.convertToUnit)("0.7", 18),
3487
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.75", 18),
3488
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
3489
+ initialSupply: (0, utils_1.convertToUnit)("0.610978879332136515", 18),
3490
+ supplyCap: (0, utils_1.convertToUnit)(25, 18),
3491
+ borrowCap: (0, utils_1.convertToUnit)(16, 18),
3492
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
3493
+ vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
3494
+ },
3495
+ {
3496
+ name: "Venus USDC (Core)",
3497
+ asset: "USDC",
3498
+ symbol: "vUSDC_Core",
3499
+ rateModel: InterestRateModels.JumpRate.toString(),
3500
+ baseRatePerYear: "0",
3501
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.075", 18),
3502
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
3503
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
3504
+ collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
3505
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.77", 18),
3506
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
3507
+ initialSupply: (0, utils_1.convertToUnit)("1800", 6),
3508
+ supplyCap: (0, utils_1.convertToUnit)(150000, 6),
3509
+ borrowCap: (0, utils_1.convertToUnit)(130000, 6),
3510
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
3511
+ vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
3512
+ },
3513
+ {
3514
+ name: "Venus USDT (Core)",
3515
+ asset: "USDT",
3516
+ symbol: "vUSDT_Core",
3517
+ rateModel: InterestRateModels.JumpRate.toString(),
3518
+ baseRatePerYear: "0",
3519
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.075", 18),
3520
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
3521
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
3522
+ collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
3523
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.77", 18),
3524
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
3525
+ initialSupply: (0, utils_1.convertToUnit)("1800", 6),
3526
+ supplyCap: (0, utils_1.convertToUnit)(150000, 6),
3527
+ borrowCap: (0, utils_1.convertToUnit)(130000, 6),
3528
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
3529
+ vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
3530
+ },
3531
+ {
3532
+ name: "Venus ARB (Core)",
3533
+ asset: "ARB",
3534
+ symbol: "vARB_Core",
3535
+ rateModel: InterestRateModels.JumpRate.toString(),
3536
+ baseRatePerYear: "0",
3537
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
3538
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
3539
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
3540
+ collateralFactor: (0, utils_1.convertToUnit)("0.7", 18),
3541
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.75", 18),
3542
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
3543
+ initialSupply: (0, utils_1.convertToUnit)("0.610978879332136515", 18),
3544
+ supplyCap: (0, utils_1.convertToUnit)(25, 18),
3545
+ borrowCap: (0, utils_1.convertToUnit)(16, 18),
3546
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
3547
+ vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
3548
+ },
3549
+ ],
3550
+ rewards: [],
3551
+ },
3552
+ ],
3553
+ accessControlConfig: [
3554
+ ...poolRegistryPermissions(),
3555
+ ...normalTimelockPermissions(exports.preconfiguredAddresses.arbitrumsepolia.NormalTimelock),
3556
+ ],
3557
+ preconfiguredAddresses: exports.preconfiguredAddresses.arbitrumsepolia,
3558
+ },
3375
3559
  };
3376
3560
  async function getConfig(networkName) {
3377
3561
  switch (networkName) {
@@ -3389,6 +3573,8 @@ async function getConfig(networkName) {
3389
3573
  return exports.globalConfig.opbnbtestnet;
3390
3574
  case "opbnbmainnet":
3391
3575
  return exports.globalConfig.opbnbmainnet;
3576
+ case "arbitrumsepolia":
3577
+ return exports.globalConfig.arbitrumsepolia;
3392
3578
  case "development":
3393
3579
  return exports.globalConfig.bsctestnet;
3394
3580
  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,7 +3,11 @@ 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: never[];
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
7
11
  name: string;
8
12
  outputs: {
9
13
  internalType: string;
@@ -6,6 +6,206 @@ 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
+ },
9
209
  {
10
210
  inputs: [],
11
211
  name: "underlying",
@@ -16,7 +216,7 @@ const _abi = [
16
216
  type: "address",
17
217
  },
18
218
  ],
19
- stateMutability: "view",
219
+ stateMutability: "nonpayable",
20
220
  type: "function",
21
221
  },
22
222
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venusprotocol/isolated-pools",
3
- "version": "3.1.0-dev.3",
3
+ "version": "3.1.0-dev.5",
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",