@venusprotocol/isolated-pools 4.0.0-dev.1 → 4.0.0-dev.3

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 (41) hide show
  1. package/deployments/ethereum/VToken_vBAL_Core.json +257 -0
  2. package/deployments/ethereum.json +74 -0
  3. package/deployments/ethereum_addresses.json +1 -0
  4. package/deployments/sepolia/MockBAL.json +458 -0
  5. package/deployments/sepolia/VToken_vBAL_Core.json +257 -0
  6. package/deployments/sepolia.json +383 -0
  7. package/deployments/sepolia_addresses.json +2 -0
  8. package/deployments/unichainsepolia/.chainId +1 -0
  9. package/deployments/unichainsepolia/ComptrollerBeacon.json +206 -0
  10. package/deployments/unichainsepolia/ComptrollerImpl.json +3396 -0
  11. package/deployments/unichainsepolia/Comptroller_Core.json +187 -0
  12. package/deployments/unichainsepolia/DefaultProxyAdmin.json +200 -0
  13. package/deployments/unichainsepolia/JumpRateModelV2_base0bps_slope1500bps_jump25000bps_kink4500bps.json +608 -0
  14. package/deployments/unichainsepolia/JumpRateModelV2_base0bps_slope350bps_jump25000bps_kink8000bps.json +608 -0
  15. package/deployments/unichainsepolia/JumpRateModelV2_base0bps_slope875bps_jump25000bps_kink8000bps.json +608 -0
  16. package/deployments/unichainsepolia/MockUSDC.json +458 -0
  17. package/deployments/unichainsepolia/MockUSDT.json +458 -0
  18. package/deployments/unichainsepolia/MockcbBTC.json +458 -0
  19. package/deployments/unichainsepolia/PoolLens.json +1416 -0
  20. package/deployments/unichainsepolia/PoolRegistry.json +940 -0
  21. package/deployments/unichainsepolia/PoolRegistry_Implementation.json +1194 -0
  22. package/deployments/unichainsepolia/PoolRegistry_Proxy.json +262 -0
  23. package/deployments/unichainsepolia/VTokenBeacon.json +206 -0
  24. package/deployments/unichainsepolia/VTokenImpl.json +3269 -0
  25. package/deployments/unichainsepolia/VToken_vUSDC_Core.json +257 -0
  26. package/deployments/unichainsepolia/VToken_vUSDT_Core.json +257 -0
  27. package/deployments/unichainsepolia/VToken_vWETH_Core.json +257 -0
  28. package/deployments/unichainsepolia/VToken_vcbBTC_Core.json +257 -0
  29. package/deployments/unichainsepolia/solcInputs/c212fc042711833007fc5b7f861edfce.json +451 -0
  30. package/deployments/unichainsepolia.json +9754 -0
  31. package/deployments/unichainsepolia_addresses.json +26 -0
  32. package/dist/deployments/ethereum.json +74 -0
  33. package/dist/deployments/sepolia.json +383 -0
  34. package/dist/hardhat.config.js +20 -0
  35. package/dist/helpers/deploymentConfig.d.ts +9 -0
  36. package/dist/helpers/deploymentConfig.js +209 -1
  37. package/dist/typechain/factories/IVToken__factory.d.ts +1 -5
  38. package/dist/typechain/factories/IVToken__factory.js +1 -201
  39. package/package.json +1 -1
  40. package/typechain/IVToken.d.ts +4 -341
  41. package/typechain/factories/IVToken__factory.ts +1 -201
@@ -1,6 +1,6 @@
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.BASE_MAINNET_MULTISIG = exports.BASE_SEPOLIA_MULTISIG = exports.OP_MAINNET_MULTISIG = exports.OP_SEPOLIA_MULTISIG = exports.ZKSYNC_MAINNET_MULTISIG = exports.ZKSYNC_SEPOLIA_MULTISIG = 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;
3
+ exports.getMaxBorrowRateMantissa = exports.getBidderDeploymentValues = exports.getTokenAddress = exports.getTokenConfig = exports.getConfig = exports.globalConfig = exports.preconfiguredAddresses = exports.UNICHAIN_SEPOLIA_MULTISIG = exports.BASE_MAINNET_MULTISIG = exports.BASE_SEPOLIA_MULTISIG = exports.OP_MAINNET_MULTISIG = exports.OP_SEPOLIA_MULTISIG = exports.ZKSYNC_MAINNET_MULTISIG = exports.ZKSYNC_SEPOLIA_MULTISIG = 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
4
  const arbitrumone_json_1 = require("@venusprotocol/governance-contracts/deployments/arbitrumone.json");
5
5
  const arbitrumsepolia_json_1 = require("@venusprotocol/governance-contracts/deployments/arbitrumsepolia.json");
6
6
  const basemainnet_json_1 = require("@venusprotocol/governance-contracts/deployments/basemainnet.json");
@@ -53,6 +53,7 @@ exports.blocksPerYear = {
53
53
  opmainnet: 0,
54
54
  basesepolia: 0,
55
55
  basemainnet: 0,
56
+ unichainsepolia: 0,
56
57
  isTimeBased: 0, // for time based contracts
57
58
  };
58
59
  exports.SEPOLIA_MULTISIG = "0x94fa6078b6b8a26f0b6edffbe6501b22a10470fb";
@@ -67,6 +68,7 @@ exports.OP_SEPOLIA_MULTISIG = "0xd57365EE4E850e881229e2F8Aa405822f289e78d";
67
68
  exports.OP_MAINNET_MULTISIG = "0x2e94dd14E81999CdBF5deDE31938beD7308354b3";
68
69
  exports.BASE_SEPOLIA_MULTISIG = "0xdf3b635d2b535f906BB02abb22AED71346E36a00";
69
70
  exports.BASE_MAINNET_MULTISIG = "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C";
71
+ exports.UNICHAIN_SEPOLIA_MULTISIG = "0x9831D3A641E8c7F082EEA75b8249c99be9D09a34";
70
72
  const DEFAULT_REDUCE_RESERVES_BLOCK_DELTA = "7200";
71
73
  const REDUCE_RESERVES_BLOCK_DELTA_ETHEREUM = "7200";
72
74
  const REDUCE_RESERVES_BLOCK_DELTA_OPBNBTESTNET = "300";
@@ -79,6 +81,7 @@ const REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_MAINNET = "86400";
79
81
  const REDUCE_RESERVES_BLOCK_DELTA_OP_MAINNET = "86400";
80
82
  const REDUCE_RESERVES_BLOCK_DELTA_BASE_SEPOLIA = "86400";
81
83
  const REDUCE_RESERVES_BLOCK_DELTA_BASE_MAINNET = "86400";
84
+ const REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_SEPOLIA = "86400";
82
85
  exports.preconfiguredAddresses = {
83
86
  hardhat: {
84
87
  VTreasury: "account:deployer",
@@ -195,6 +198,13 @@ exports.preconfiguredAddresses = {
195
198
  CriticalTimelock: basemainnet_json_1.contracts.CriticalTimelock.address,
196
199
  AccessControlManager: "0x9E6CeEfDC6183e4D0DF8092A9B90cDF659687daB",
197
200
  },
201
+ unichainsepolia: {
202
+ VTreasury: "0x0C7CB62F2194cD701bcE8FD8067b43A3Bb76428e",
203
+ NormalTimelock: exports.UNICHAIN_SEPOLIA_MULTISIG,
204
+ FastTrackTimelock: exports.UNICHAIN_SEPOLIA_MULTISIG,
205
+ CriticalTimelock: exports.UNICHAIN_SEPOLIA_MULTISIG,
206
+ AccessControlManager: "0x854C064EA6b503A97980F481FA3B7279012fdeDd",
207
+ },
198
208
  };
199
209
  const poolRegistryPermissions = () => {
200
210
  const methods = [
@@ -2960,6 +2970,13 @@ exports.globalConfig = {
2960
2970
  decimals: 18,
2961
2971
  tokenAddress: hardhat_1.ethers.constants.AddressZero,
2962
2972
  },
2973
+ {
2974
+ isMock: true,
2975
+ name: "Balancer",
2976
+ symbol: "BAL",
2977
+ decimals: 18,
2978
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
2979
+ },
2963
2980
  ],
2964
2981
  poolConfig: [
2965
2982
  {
@@ -3239,6 +3256,24 @@ exports.globalConfig = {
3239
3256
  reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
3240
3257
  vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
3241
3258
  },
3259
+ {
3260
+ name: "Venus BAL (Core)",
3261
+ asset: "BAL",
3262
+ symbol: "vBAL_Core",
3263
+ rateModel: InterestRateModels.JumpRate.toString(),
3264
+ baseRatePerYear: "0",
3265
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
3266
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
3267
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
3268
+ collateralFactor: (0, utils_1.convertToUnit)("0.57", 18),
3269
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.59", 18),
3270
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
3271
+ initialSupply: (0, utils_1.convertToUnit)("4000", 18),
3272
+ supplyCap: (0, utils_1.convertToUnit)(1500000, 18),
3273
+ borrowCap: (0, utils_1.convertToUnit)(700000, 18),
3274
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
3275
+ vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
3276
+ },
3242
3277
  ],
3243
3278
  rewards: [
3244
3279
  // XVS Rewards Over 90 days (648000 blocks)
@@ -3906,6 +3941,13 @@ exports.globalConfig = {
3906
3941
  decimals: 18,
3907
3942
  tokenAddress: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD",
3908
3943
  },
3944
+ {
3945
+ isMock: false,
3946
+ name: "Balancer",
3947
+ symbol: "BAL",
3948
+ decimals: 18,
3949
+ tokenAddress: "0xba100000625a3754423978a60c9317c58a424e3D",
3950
+ },
3909
3951
  ],
3910
3952
  poolConfig: [
3911
3953
  {
@@ -4173,6 +4215,24 @@ exports.globalConfig = {
4173
4215
  reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
4174
4216
  vTokenReceiver: "0x9c489E4efba90A67299C1097a8628e233C33BB7B",
4175
4217
  },
4218
+ {
4219
+ name: "Venus BAL (Core)",
4220
+ asset: "BAL",
4221
+ symbol: "vBAL_Core",
4222
+ rateModel: InterestRateModels.JumpRate.toString(),
4223
+ baseRatePerYear: "0",
4224
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
4225
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
4226
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
4227
+ collateralFactor: (0, utils_1.convertToUnit)("0.57", 18),
4228
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.59", 18),
4229
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
4230
+ initialSupply: (0, utils_1.convertToUnit)("4000", 18),
4231
+ supplyCap: (0, utils_1.convertToUnit)(1500000, 18),
4232
+ borrowCap: (0, utils_1.convertToUnit)(700000, 18),
4233
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
4234
+ vTokenReceiver: "0x36cc7B13029B5DEe4034745FB4F24034f3F2ffc6",
4235
+ },
4176
4236
  ],
4177
4237
  rewards: [
4178
4238
  // XVS Rewards Over 90 days (648000 blocks)
@@ -6559,6 +6619,152 @@ exports.globalConfig = {
6559
6619
  ],
6560
6620
  preconfiguredAddresses: exports.preconfiguredAddresses.basemainnet,
6561
6621
  },
6622
+ unichainsepolia: {
6623
+ tokensConfig: [
6624
+ {
6625
+ isMock: true,
6626
+ name: "Coinbase Wrapped BTC",
6627
+ symbol: "cbBTC",
6628
+ decimals: 8,
6629
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
6630
+ },
6631
+ {
6632
+ isMock: false,
6633
+ name: "Wrapped Ether",
6634
+ symbol: "WETH",
6635
+ decimals: 18,
6636
+ tokenAddress: "0x4200000000000000000000000000000000000006",
6637
+ },
6638
+ {
6639
+ isMock: true,
6640
+ name: "USD Coin",
6641
+ symbol: "USDC",
6642
+ decimals: 6,
6643
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
6644
+ },
6645
+ {
6646
+ isMock: true,
6647
+ name: "Tether USD",
6648
+ symbol: "USDT",
6649
+ decimals: 6,
6650
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
6651
+ },
6652
+ {
6653
+ isMock: false,
6654
+ name: "Venus",
6655
+ symbol: "XVS",
6656
+ decimals: 18,
6657
+ tokenAddress: "0xC0e51E865bc9Fed0a32Cc0B2A65449567Bc5c741",
6658
+ },
6659
+ ],
6660
+ poolConfig: [
6661
+ {
6662
+ id: "Core",
6663
+ name: "Core",
6664
+ closeFactor: (0, utils_1.convertToUnit)("0.5", 18),
6665
+ liquidationIncentive: (0, utils_1.convertToUnit)("1.1", 18),
6666
+ minLiquidatableCollateral: (0, utils_1.convertToUnit)("100", 18),
6667
+ vtokens: [
6668
+ {
6669
+ name: "Venus USDC (Core)",
6670
+ asset: "USDC",
6671
+ symbol: "vUSDC_Core",
6672
+ rateModel: InterestRateModels.JumpRate.toString(),
6673
+ baseRatePerYear: "0",
6674
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.0875", 18),
6675
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
6676
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
6677
+ collateralFactor: (0, utils_1.convertToUnit)("0.78", 18),
6678
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.8", 18),
6679
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
6680
+ initialSupply: (0, utils_1.convertToUnit)("5000", 6),
6681
+ supplyCap: (0, utils_1.convertToUnit)(20000000, 6),
6682
+ borrowCap: (0, utils_1.convertToUnit)(18000000, 6),
6683
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_SEPOLIA,
6684
+ vTokenReceiver: exports.preconfiguredAddresses.unichainsepolia.VTreasury,
6685
+ },
6686
+ {
6687
+ name: "Venus USDT (Core)",
6688
+ asset: "USDT",
6689
+ symbol: "vUSDT_Core",
6690
+ rateModel: InterestRateModels.JumpRate.toString(),
6691
+ baseRatePerYear: "0",
6692
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.0875", 18),
6693
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
6694
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
6695
+ collateralFactor: (0, utils_1.convertToUnit)("0.78", 18),
6696
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.8", 18),
6697
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
6698
+ initialSupply: (0, utils_1.convertToUnit)("5000", 6),
6699
+ supplyCap: (0, utils_1.convertToUnit)(20000000, 6),
6700
+ borrowCap: (0, utils_1.convertToUnit)(18000000, 6),
6701
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_SEPOLIA,
6702
+ vTokenReceiver: exports.preconfiguredAddresses.unichainsepolia.VTreasury,
6703
+ },
6704
+ {
6705
+ name: "Venus WETH (Core)",
6706
+ asset: "WETH",
6707
+ symbol: "vWETH_Core",
6708
+ rateModel: InterestRateModels.JumpRate.toString(),
6709
+ baseRatePerYear: "0",
6710
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.035", 18),
6711
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
6712
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
6713
+ collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
6714
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.8", 18),
6715
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
6716
+ initialSupply: (0, utils_1.convertToUnit)("2", 18),
6717
+ supplyCap: (0, utils_1.convertToUnit)(260000, 18),
6718
+ borrowCap: (0, utils_1.convertToUnit)(23500, 18),
6719
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_SEPOLIA,
6720
+ vTokenReceiver: exports.preconfiguredAddresses.unichainsepolia.VTreasury,
6721
+ },
6722
+ {
6723
+ name: "Venus cbBTC (Core)",
6724
+ asset: "cbBTC",
6725
+ symbol: "vcbBTC_Core",
6726
+ rateModel: InterestRateModels.JumpRate.toString(),
6727
+ baseRatePerYear: "0",
6728
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
6729
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
6730
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
6731
+ collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
6732
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.8", 18),
6733
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
6734
+ initialSupply: (0, utils_1.convertToUnit)("0.08", 8),
6735
+ supplyCap: (0, utils_1.convertToUnit)(900, 8),
6736
+ borrowCap: (0, utils_1.convertToUnit)(500, 8),
6737
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_SEPOLIA,
6738
+ vTokenReceiver: exports.preconfiguredAddresses.unichainsepolia.VTreasury,
6739
+ },
6740
+ ],
6741
+ rewards: [
6742
+ // XVS Rewards Over 3600 days (311040000 seconds)
6743
+ // WETH: 360 XVS for Suppliers
6744
+ // 360 XVS for Borrowers
6745
+ // WBTC: 360 XVS for Suppliers
6746
+ // 360 XVS for Borrowers
6747
+ // USDT: 360 XVS for Suppliers
6748
+ // 360 XVS for Borrowers
6749
+ // USDC: 360 XVS for Suppliers
6750
+ // 360 XVS for Borrowers
6751
+ // ZK: 360 XVS for Suppliers
6752
+ // 360 XVS for Borrowers
6753
+ {
6754
+ asset: "XVS",
6755
+ markets: ["USDC", "USDT", "WETH", "cbBTC"],
6756
+ supplySpeeds: ["1157407407407", "1157407407407", "1157407407407", "1157407407407"],
6757
+ borrowSpeeds: ["1157407407407", "1157407407407", "1157407407407", "1157407407407"],
6758
+ },
6759
+ ],
6760
+ },
6761
+ ],
6762
+ accessControlConfig: [
6763
+ ...poolRegistryPermissions(),
6764
+ ...normalTimelockPermissions(exports.preconfiguredAddresses.unichainsepolia.NormalTimelock),
6765
+ ],
6766
+ preconfiguredAddresses: exports.preconfiguredAddresses.unichainsepolia,
6767
+ },
6562
6768
  };
6563
6769
  async function getConfig(networkName) {
6564
6770
  switch (networkName) {
@@ -6592,6 +6798,8 @@ async function getConfig(networkName) {
6592
6798
  return exports.globalConfig.basesepolia;
6593
6799
  case "basemainnet":
6594
6800
  return exports.globalConfig.basemainnet;
6801
+ case "unichainsepolia":
6802
+ return exports.globalConfig.unichainsepolia;
6595
6803
  case "development":
6596
6804
  return exports.globalConfig.bsctestnet;
6597
6805
  default:
@@ -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": "4.0.0-dev.1",
3
+ "version": "4.0.0-dev.3",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",