@venusprotocol/isolated-pools 3.2.0 → 3.3.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/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV5.sol/AccessControlledV5.dbg.json +1 -1
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV5.sol/IAccessControlManagerV5.dbg.json +1 -1
- package/artifacts/@venusprotocol/solidity-utilities/contracts/TimeManagerV5.sol/TimeManagerV5.dbg.json +4 -0
- package/artifacts/@venusprotocol/{venus-protocol/contracts/XVSVault → solidity-utilities/contracts}/TimeManagerV5.sol/TimeManagerV5.json +3 -3
- package/artifacts/@venusprotocol/venus-protocol/contracts/Tokens/Prime/IPrime.sol/IPrime.dbg.json +1 -1
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/Address.sol/Address.dbg.json +1 -1
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/ECDSA.sol/ECDSA.dbg.json +1 -1
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/IBEP20.sol/IBEP20.dbg.json +1 -1
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/SafeBEP20.sol/SafeBEP20.dbg.json +1 -1
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/SafeCast.sol/SafeCast.dbg.json +1 -1
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/SafeMath.sol/SafeMath.dbg.json +1 -1
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSStore.sol/XVSStore.dbg.json +1 -1
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVault.sol/XVSVault.dbg.json +1 -1
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVault.sol/XVSVault.json +28 -2
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultErrorReporter.sol/XVSVaultErrorReporter.dbg.json +1 -1
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultProxy.sol/XVSVaultProxy.dbg.json +1 -1
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultProxy.sol/XVSVaultProxy.json +2 -2
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultAdminStorage.dbg.json +1 -1
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultAdminStorage.json +2 -2
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultStorage.dbg.json +1 -1
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultStorage.json +28 -2
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultStorageV1.dbg.json +1 -1
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultStorageV1.json +2 -2
- package/artifacts/build-info/8eba699f268bc7041b7f29e3b1d105df.json +1 -0
- package/artifacts/contracts/test/XVSStoreScenario.sol/XVSStoreScenario.dbg.json +1 -1
- package/artifacts/contracts/test/XVSVaultScenario.sol/XVSVaultScenario.dbg.json +1 -1
- package/artifacts/contracts/test/XVSVaultScenario.sol/XVSVaultScenario.json +28 -2
- package/deployments/arbitrumone/ComptrollerBeacon.json +206 -0
- package/deployments/arbitrumone/ComptrollerImpl.json +3227 -0
- package/deployments/arbitrumone/Comptroller_Core.json +187 -0
- package/deployments/arbitrumone/DefaultProxyAdmin.json +257 -0
- package/deployments/arbitrumone/JumpRateModelV2_base0bps_slope1500bps_jump25000bps_kink4500bps.json +608 -0
- package/deployments/arbitrumone/JumpRateModelV2_base0bps_slope350bps_jump25000bps_kink8000bps.json +608 -0
- package/deployments/arbitrumone/JumpRateModelV2_base0bps_slope875bps_jump25000bps_kink8000bps.json +608 -0
- package/deployments/arbitrumone/PoolRegistry.json +945 -0
- package/deployments/arbitrumone/PoolRegistry_Implementation.json +1194 -0
- package/deployments/arbitrumone/PoolRegistry_Proxy.json +267 -0
- package/deployments/arbitrumone/VTokenBeacon.json +206 -0
- package/deployments/arbitrumone/VTokenImpl.json +3269 -0
- package/deployments/arbitrumone/VToken_vARB_Core.json +257 -0
- package/deployments/arbitrumone/VToken_vUSDC_Core.json +257 -0
- package/deployments/arbitrumone/VToken_vUSDT_Core.json +257 -0
- package/deployments/arbitrumone/VToken_vWBTC_Core.json +257 -0
- package/deployments/arbitrumone/VToken_vWETH_Core.json +257 -0
- package/deployments/arbitrumone/solcInputs/0e89febeebc7444140de8e67c9067d2c.json +78 -0
- package/deployments/arbitrumone/solcInputs/6908ef056fe5b90d510a922d922ed1be.json +397 -0
- package/deployments/arbitrumone.json +8553 -895
- package/deployments/arbitrumone_addresses.json +18 -1
- package/deployments/bscmainnet/JumpRateModelV2_base0bps_slope90bps_jump30000bps_kink9000bps.json +608 -0
- package/deployments/bscmainnet/solcInputs/3c20dc65cc123659b5918437b44f9306.json +403 -0
- package/deployments/bscmainnet.json +360 -0
- package/deployments/bscmainnet_addresses.json +1 -0
- package/dist/deploy/019-deploy-ir-models.js +2 -0
- package/dist/deployments/bscmainnet.json +360 -0
- package/dist/hardhat.config.js +1 -0
- package/dist/helpers/deploymentConfig.d.ts +8 -0
- package/dist/helpers/deploymentConfig.js +160 -3
- package/dist/typechain/factories/IVToken__factory.d.ts +1 -5
- package/dist/typechain/factories/IVToken__factory.js +1 -201
- package/dist/typechain/factories/TimeManagerV5__factory.d.ts +1 -1
- package/dist/typechain/factories/TimeManagerV5__factory.js +1 -1
- package/dist/typechain/factories/XVSVaultAdminStorage__factory.d.ts +1 -1
- package/dist/typechain/factories/XVSVaultAdminStorage__factory.js +1 -1
- package/dist/typechain/factories/XVSVaultProxy__factory.d.ts +1 -1
- package/dist/typechain/factories/XVSVaultProxy__factory.js +1 -1
- package/dist/typechain/factories/XVSVaultScenario__factory.d.ts +1 -1
- package/dist/typechain/factories/XVSVaultScenario__factory.js +27 -1
- package/dist/typechain/factories/XVSVaultStorageV1__factory.d.ts +1 -1
- package/dist/typechain/factories/XVSVaultStorageV1__factory.js +1 -1
- package/dist/typechain/factories/XVSVaultStorage__factory.d.ts +1 -1
- package/dist/typechain/factories/XVSVaultStorage__factory.js +27 -1
- package/dist/typechain/factories/XVSVault__factory.d.ts +1 -1
- package/dist/typechain/factories/XVSVault__factory.js +27 -1
- package/dist/typechain/index.d.ts +2 -2
- package/dist/typechain/index.js +4 -4
- package/package.json +4 -4
- package/typechain/IVToken.d.ts +4 -341
- package/typechain/XVSVault.d.ts +39 -0
- package/typechain/XVSVaultScenario.d.ts +39 -0
- package/typechain/XVSVaultStorage.d.ts +39 -0
- package/typechain/factories/IVToken__factory.ts +1 -201
- package/typechain/factories/TimeManagerV5__factory.ts +1 -1
- package/typechain/factories/XVSVaultAdminStorage__factory.ts +1 -1
- package/typechain/factories/XVSVaultProxy__factory.ts +1 -1
- package/typechain/factories/XVSVaultScenario__factory.ts +27 -1
- package/typechain/factories/XVSVaultStorageV1__factory.ts +1 -1
- package/typechain/factories/XVSVaultStorage__factory.ts +27 -1
- package/typechain/factories/XVSVault__factory.ts +27 -1
- package/typechain/index.ts +2 -2
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/TimeManagerV5.sol/TimeManagerV5.dbg.json +0 -4
- package/artifacts/build-info/a6010b45c0c8965ed7c62ff62b41af46.json +0 -1
|
@@ -3748,6 +3748,366 @@
|
|
|
3748
3748
|
}
|
|
3749
3749
|
]
|
|
3750
3750
|
},
|
|
3751
|
+
"JumpRateModelV2_base0bps_slope90bps_jump30000bps_kink9000bps": {
|
|
3752
|
+
"address": "0x8037f793A298789736fc1cb7e3154573647CDD11",
|
|
3753
|
+
"abi": [
|
|
3754
|
+
{
|
|
3755
|
+
"inputs": [
|
|
3756
|
+
{
|
|
3757
|
+
"internalType": "uint256",
|
|
3758
|
+
"name": "baseRatePerYear_",
|
|
3759
|
+
"type": "uint256"
|
|
3760
|
+
},
|
|
3761
|
+
{
|
|
3762
|
+
"internalType": "uint256",
|
|
3763
|
+
"name": "multiplierPerYear_",
|
|
3764
|
+
"type": "uint256"
|
|
3765
|
+
},
|
|
3766
|
+
{
|
|
3767
|
+
"internalType": "uint256",
|
|
3768
|
+
"name": "jumpMultiplierPerYear_",
|
|
3769
|
+
"type": "uint256"
|
|
3770
|
+
},
|
|
3771
|
+
{
|
|
3772
|
+
"internalType": "uint256",
|
|
3773
|
+
"name": "kink_",
|
|
3774
|
+
"type": "uint256"
|
|
3775
|
+
},
|
|
3776
|
+
{
|
|
3777
|
+
"internalType": "contract IAccessControlManagerV8",
|
|
3778
|
+
"name": "accessControlManager_",
|
|
3779
|
+
"type": "address"
|
|
3780
|
+
},
|
|
3781
|
+
{
|
|
3782
|
+
"internalType": "bool",
|
|
3783
|
+
"name": "timeBased_",
|
|
3784
|
+
"type": "bool"
|
|
3785
|
+
},
|
|
3786
|
+
{
|
|
3787
|
+
"internalType": "uint256",
|
|
3788
|
+
"name": "blocksPerYear_",
|
|
3789
|
+
"type": "uint256"
|
|
3790
|
+
}
|
|
3791
|
+
],
|
|
3792
|
+
"stateMutability": "nonpayable",
|
|
3793
|
+
"type": "constructor"
|
|
3794
|
+
},
|
|
3795
|
+
{
|
|
3796
|
+
"inputs": [],
|
|
3797
|
+
"name": "InvalidBlocksPerYear",
|
|
3798
|
+
"type": "error"
|
|
3799
|
+
},
|
|
3800
|
+
{
|
|
3801
|
+
"inputs": [],
|
|
3802
|
+
"name": "InvalidTimeBasedConfiguration",
|
|
3803
|
+
"type": "error"
|
|
3804
|
+
},
|
|
3805
|
+
{
|
|
3806
|
+
"inputs": [
|
|
3807
|
+
{
|
|
3808
|
+
"internalType": "address",
|
|
3809
|
+
"name": "sender",
|
|
3810
|
+
"type": "address"
|
|
3811
|
+
},
|
|
3812
|
+
{
|
|
3813
|
+
"internalType": "address",
|
|
3814
|
+
"name": "calledContract",
|
|
3815
|
+
"type": "address"
|
|
3816
|
+
},
|
|
3817
|
+
{
|
|
3818
|
+
"internalType": "string",
|
|
3819
|
+
"name": "methodSignature",
|
|
3820
|
+
"type": "string"
|
|
3821
|
+
}
|
|
3822
|
+
],
|
|
3823
|
+
"name": "Unauthorized",
|
|
3824
|
+
"type": "error"
|
|
3825
|
+
},
|
|
3826
|
+
{
|
|
3827
|
+
"anonymous": false,
|
|
3828
|
+
"inputs": [
|
|
3829
|
+
{
|
|
3830
|
+
"indexed": false,
|
|
3831
|
+
"internalType": "uint256",
|
|
3832
|
+
"name": "baseRatePerBlockOrTimestamp",
|
|
3833
|
+
"type": "uint256"
|
|
3834
|
+
},
|
|
3835
|
+
{
|
|
3836
|
+
"indexed": false,
|
|
3837
|
+
"internalType": "uint256",
|
|
3838
|
+
"name": "multiplierPerBlockOrTimestamp",
|
|
3839
|
+
"type": "uint256"
|
|
3840
|
+
},
|
|
3841
|
+
{
|
|
3842
|
+
"indexed": false,
|
|
3843
|
+
"internalType": "uint256",
|
|
3844
|
+
"name": "jumpMultiplierPerBlockOrTimestamp",
|
|
3845
|
+
"type": "uint256"
|
|
3846
|
+
},
|
|
3847
|
+
{
|
|
3848
|
+
"indexed": false,
|
|
3849
|
+
"internalType": "uint256",
|
|
3850
|
+
"name": "kink",
|
|
3851
|
+
"type": "uint256"
|
|
3852
|
+
}
|
|
3853
|
+
],
|
|
3854
|
+
"name": "NewInterestParams",
|
|
3855
|
+
"type": "event"
|
|
3856
|
+
},
|
|
3857
|
+
{
|
|
3858
|
+
"inputs": [],
|
|
3859
|
+
"name": "accessControlManager",
|
|
3860
|
+
"outputs": [
|
|
3861
|
+
{
|
|
3862
|
+
"internalType": "contract IAccessControlManagerV8",
|
|
3863
|
+
"name": "",
|
|
3864
|
+
"type": "address"
|
|
3865
|
+
}
|
|
3866
|
+
],
|
|
3867
|
+
"stateMutability": "view",
|
|
3868
|
+
"type": "function"
|
|
3869
|
+
},
|
|
3870
|
+
{
|
|
3871
|
+
"inputs": [],
|
|
3872
|
+
"name": "baseRatePerBlock",
|
|
3873
|
+
"outputs": [
|
|
3874
|
+
{
|
|
3875
|
+
"internalType": "uint256",
|
|
3876
|
+
"name": "",
|
|
3877
|
+
"type": "uint256"
|
|
3878
|
+
}
|
|
3879
|
+
],
|
|
3880
|
+
"stateMutability": "view",
|
|
3881
|
+
"type": "function"
|
|
3882
|
+
},
|
|
3883
|
+
{
|
|
3884
|
+
"inputs": [],
|
|
3885
|
+
"name": "blocksOrSecondsPerYear",
|
|
3886
|
+
"outputs": [
|
|
3887
|
+
{
|
|
3888
|
+
"internalType": "uint256",
|
|
3889
|
+
"name": "",
|
|
3890
|
+
"type": "uint256"
|
|
3891
|
+
}
|
|
3892
|
+
],
|
|
3893
|
+
"stateMutability": "view",
|
|
3894
|
+
"type": "function"
|
|
3895
|
+
},
|
|
3896
|
+
{
|
|
3897
|
+
"inputs": [],
|
|
3898
|
+
"name": "getBlockNumberOrTimestamp",
|
|
3899
|
+
"outputs": [
|
|
3900
|
+
{
|
|
3901
|
+
"internalType": "uint256",
|
|
3902
|
+
"name": "",
|
|
3903
|
+
"type": "uint256"
|
|
3904
|
+
}
|
|
3905
|
+
],
|
|
3906
|
+
"stateMutability": "view",
|
|
3907
|
+
"type": "function"
|
|
3908
|
+
},
|
|
3909
|
+
{
|
|
3910
|
+
"inputs": [
|
|
3911
|
+
{
|
|
3912
|
+
"internalType": "uint256",
|
|
3913
|
+
"name": "cash",
|
|
3914
|
+
"type": "uint256"
|
|
3915
|
+
},
|
|
3916
|
+
{
|
|
3917
|
+
"internalType": "uint256",
|
|
3918
|
+
"name": "borrows",
|
|
3919
|
+
"type": "uint256"
|
|
3920
|
+
},
|
|
3921
|
+
{
|
|
3922
|
+
"internalType": "uint256",
|
|
3923
|
+
"name": "reserves",
|
|
3924
|
+
"type": "uint256"
|
|
3925
|
+
},
|
|
3926
|
+
{
|
|
3927
|
+
"internalType": "uint256",
|
|
3928
|
+
"name": "badDebt",
|
|
3929
|
+
"type": "uint256"
|
|
3930
|
+
}
|
|
3931
|
+
],
|
|
3932
|
+
"name": "getBorrowRate",
|
|
3933
|
+
"outputs": [
|
|
3934
|
+
{
|
|
3935
|
+
"internalType": "uint256",
|
|
3936
|
+
"name": "",
|
|
3937
|
+
"type": "uint256"
|
|
3938
|
+
}
|
|
3939
|
+
],
|
|
3940
|
+
"stateMutability": "view",
|
|
3941
|
+
"type": "function"
|
|
3942
|
+
},
|
|
3943
|
+
{
|
|
3944
|
+
"inputs": [
|
|
3945
|
+
{
|
|
3946
|
+
"internalType": "uint256",
|
|
3947
|
+
"name": "cash",
|
|
3948
|
+
"type": "uint256"
|
|
3949
|
+
},
|
|
3950
|
+
{
|
|
3951
|
+
"internalType": "uint256",
|
|
3952
|
+
"name": "borrows",
|
|
3953
|
+
"type": "uint256"
|
|
3954
|
+
},
|
|
3955
|
+
{
|
|
3956
|
+
"internalType": "uint256",
|
|
3957
|
+
"name": "reserves",
|
|
3958
|
+
"type": "uint256"
|
|
3959
|
+
},
|
|
3960
|
+
{
|
|
3961
|
+
"internalType": "uint256",
|
|
3962
|
+
"name": "reserveFactorMantissa",
|
|
3963
|
+
"type": "uint256"
|
|
3964
|
+
},
|
|
3965
|
+
{
|
|
3966
|
+
"internalType": "uint256",
|
|
3967
|
+
"name": "badDebt",
|
|
3968
|
+
"type": "uint256"
|
|
3969
|
+
}
|
|
3970
|
+
],
|
|
3971
|
+
"name": "getSupplyRate",
|
|
3972
|
+
"outputs": [
|
|
3973
|
+
{
|
|
3974
|
+
"internalType": "uint256",
|
|
3975
|
+
"name": "",
|
|
3976
|
+
"type": "uint256"
|
|
3977
|
+
}
|
|
3978
|
+
],
|
|
3979
|
+
"stateMutability": "view",
|
|
3980
|
+
"type": "function"
|
|
3981
|
+
},
|
|
3982
|
+
{
|
|
3983
|
+
"inputs": [],
|
|
3984
|
+
"name": "isInterestRateModel",
|
|
3985
|
+
"outputs": [
|
|
3986
|
+
{
|
|
3987
|
+
"internalType": "bool",
|
|
3988
|
+
"name": "",
|
|
3989
|
+
"type": "bool"
|
|
3990
|
+
}
|
|
3991
|
+
],
|
|
3992
|
+
"stateMutability": "pure",
|
|
3993
|
+
"type": "function"
|
|
3994
|
+
},
|
|
3995
|
+
{
|
|
3996
|
+
"inputs": [],
|
|
3997
|
+
"name": "isTimeBased",
|
|
3998
|
+
"outputs": [
|
|
3999
|
+
{
|
|
4000
|
+
"internalType": "bool",
|
|
4001
|
+
"name": "",
|
|
4002
|
+
"type": "bool"
|
|
4003
|
+
}
|
|
4004
|
+
],
|
|
4005
|
+
"stateMutability": "view",
|
|
4006
|
+
"type": "function"
|
|
4007
|
+
},
|
|
4008
|
+
{
|
|
4009
|
+
"inputs": [],
|
|
4010
|
+
"name": "jumpMultiplierPerBlock",
|
|
4011
|
+
"outputs": [
|
|
4012
|
+
{
|
|
4013
|
+
"internalType": "uint256",
|
|
4014
|
+
"name": "",
|
|
4015
|
+
"type": "uint256"
|
|
4016
|
+
}
|
|
4017
|
+
],
|
|
4018
|
+
"stateMutability": "view",
|
|
4019
|
+
"type": "function"
|
|
4020
|
+
},
|
|
4021
|
+
{
|
|
4022
|
+
"inputs": [],
|
|
4023
|
+
"name": "kink",
|
|
4024
|
+
"outputs": [
|
|
4025
|
+
{
|
|
4026
|
+
"internalType": "uint256",
|
|
4027
|
+
"name": "",
|
|
4028
|
+
"type": "uint256"
|
|
4029
|
+
}
|
|
4030
|
+
],
|
|
4031
|
+
"stateMutability": "view",
|
|
4032
|
+
"type": "function"
|
|
4033
|
+
},
|
|
4034
|
+
{
|
|
4035
|
+
"inputs": [],
|
|
4036
|
+
"name": "multiplierPerBlock",
|
|
4037
|
+
"outputs": [
|
|
4038
|
+
{
|
|
4039
|
+
"internalType": "uint256",
|
|
4040
|
+
"name": "",
|
|
4041
|
+
"type": "uint256"
|
|
4042
|
+
}
|
|
4043
|
+
],
|
|
4044
|
+
"stateMutability": "view",
|
|
4045
|
+
"type": "function"
|
|
4046
|
+
},
|
|
4047
|
+
{
|
|
4048
|
+
"inputs": [
|
|
4049
|
+
{
|
|
4050
|
+
"internalType": "uint256",
|
|
4051
|
+
"name": "baseRatePerYear",
|
|
4052
|
+
"type": "uint256"
|
|
4053
|
+
},
|
|
4054
|
+
{
|
|
4055
|
+
"internalType": "uint256",
|
|
4056
|
+
"name": "multiplierPerYear",
|
|
4057
|
+
"type": "uint256"
|
|
4058
|
+
},
|
|
4059
|
+
{
|
|
4060
|
+
"internalType": "uint256",
|
|
4061
|
+
"name": "jumpMultiplierPerYear",
|
|
4062
|
+
"type": "uint256"
|
|
4063
|
+
},
|
|
4064
|
+
{
|
|
4065
|
+
"internalType": "uint256",
|
|
4066
|
+
"name": "kink_",
|
|
4067
|
+
"type": "uint256"
|
|
4068
|
+
}
|
|
4069
|
+
],
|
|
4070
|
+
"name": "updateJumpRateModel",
|
|
4071
|
+
"outputs": [],
|
|
4072
|
+
"stateMutability": "nonpayable",
|
|
4073
|
+
"type": "function"
|
|
4074
|
+
},
|
|
4075
|
+
{
|
|
4076
|
+
"inputs": [
|
|
4077
|
+
{
|
|
4078
|
+
"internalType": "uint256",
|
|
4079
|
+
"name": "cash",
|
|
4080
|
+
"type": "uint256"
|
|
4081
|
+
},
|
|
4082
|
+
{
|
|
4083
|
+
"internalType": "uint256",
|
|
4084
|
+
"name": "borrows",
|
|
4085
|
+
"type": "uint256"
|
|
4086
|
+
},
|
|
4087
|
+
{
|
|
4088
|
+
"internalType": "uint256",
|
|
4089
|
+
"name": "reserves",
|
|
4090
|
+
"type": "uint256"
|
|
4091
|
+
},
|
|
4092
|
+
{
|
|
4093
|
+
"internalType": "uint256",
|
|
4094
|
+
"name": "badDebt",
|
|
4095
|
+
"type": "uint256"
|
|
4096
|
+
}
|
|
4097
|
+
],
|
|
4098
|
+
"name": "utilizationRate",
|
|
4099
|
+
"outputs": [
|
|
4100
|
+
{
|
|
4101
|
+
"internalType": "uint256",
|
|
4102
|
+
"name": "",
|
|
4103
|
+
"type": "uint256"
|
|
4104
|
+
}
|
|
4105
|
+
],
|
|
4106
|
+
"stateMutability": "pure",
|
|
4107
|
+
"type": "function"
|
|
4108
|
+
}
|
|
4109
|
+
]
|
|
4110
|
+
},
|
|
3751
4111
|
"JumpRateModelV2_base200bps_slope1000bps_jump25000bps_kink5000bps": {
|
|
3752
4112
|
"address": "0x0820d5DA817Ac2eAf3757829B255B56354188bd1",
|
|
3753
4113
|
"abi": [
|
package/dist/hardhat.config.js
CHANGED
|
@@ -65,6 +65,7 @@ const DEPLOYER_PRIVATE_KEY = process.env.DEPLOYER_PRIVATE_KEY;
|
|
|
65
65
|
],
|
|
66
66
|
opbnbmainnet: ["node_modules/@venusprotocol/oracle/deployments/opbnbmainnet"],
|
|
67
67
|
arbitrumsepolia: ["node_modules/@venusprotocol/protocol-reserve/deployments/arbitrumsepolia"],
|
|
68
|
+
arbitrumone: ["node_modules/@venusprotocol/protocol-reserve/deployments/arbitrumone"],
|
|
68
69
|
},
|
|
69
70
|
};
|
|
70
71
|
}
|
|
@@ -9,6 +9,7 @@ export type NetworkConfig = {
|
|
|
9
9
|
opbnbtestnet: DeploymentConfig;
|
|
10
10
|
opbnbmainnet: DeploymentConfig;
|
|
11
11
|
arbitrumsepolia: DeploymentConfig;
|
|
12
|
+
arbitrumone: DeploymentConfig;
|
|
12
13
|
};
|
|
13
14
|
export type PreconfiguredAddresses = {
|
|
14
15
|
[contract: string]: string;
|
|
@@ -164,6 +165,13 @@ export declare const preconfiguredAddresses: {
|
|
|
164
165
|
CriticalTimelock: string;
|
|
165
166
|
AccessControlManager: string;
|
|
166
167
|
};
|
|
168
|
+
arbitrumone: {
|
|
169
|
+
VTreasury: string;
|
|
170
|
+
NormalTimelock: string;
|
|
171
|
+
FastTrackTimelock: string;
|
|
172
|
+
CriticalTimelock: string;
|
|
173
|
+
AccessControlManager: string;
|
|
174
|
+
};
|
|
167
175
|
};
|
|
168
176
|
export declare const globalConfig: NetworkConfig;
|
|
169
177
|
export declare function getConfig(networkName: string): Promise<DeploymentConfig>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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 arbitrumone_json_1 = require("@venusprotocol/governance-contracts/deployments/arbitrumone.json");
|
|
4
5
|
const arbitrumsepolia_json_1 = require("@venusprotocol/governance-contracts/deployments/arbitrumsepolia.json");
|
|
5
6
|
const bscmainnet_json_1 = require("@venusprotocol/governance-contracts/deployments/bscmainnet.json");
|
|
6
7
|
const bsctestnet_json_1 = require("@venusprotocol/governance-contracts/deployments/bsctestnet.json");
|
|
@@ -8,6 +9,7 @@ const ethereum_json_1 = require("@venusprotocol/governance-contracts/deployments
|
|
|
8
9
|
const opbnbmainnet_json_1 = require("@venusprotocol/governance-contracts/deployments/opbnbmainnet.json");
|
|
9
10
|
const opbnbtestnet_json_1 = require("@venusprotocol/governance-contracts/deployments/opbnbtestnet.json");
|
|
10
11
|
const sepolia_json_1 = require("@venusprotocol/governance-contracts/deployments/sepolia.json");
|
|
12
|
+
const arbitrumone_json_2 = require("@venusprotocol/venus-protocol/deployments/arbitrumone.json");
|
|
11
13
|
const arbitrumsepolia_json_2 = require("@venusprotocol/venus-protocol/deployments/arbitrumsepolia.json");
|
|
12
14
|
const bscmainnet_json_2 = require("@venusprotocol/venus-protocol/deployments/bscmainnet.json");
|
|
13
15
|
const bsctestnet_json_2 = require("@venusprotocol/venus-protocol/deployments/bsctestnet.json");
|
|
@@ -50,6 +52,7 @@ const DEFAULT_REDUCE_RESERVES_BLOCK_DELTA = "7200";
|
|
|
50
52
|
const REDUCE_RESERVES_BLOCK_DELTA_OPBNBTESTNET = "300";
|
|
51
53
|
const REDUCE_RESERVES_BLOCK_DELTA_OPBNBMAINNET = "86400";
|
|
52
54
|
const REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA = "86400";
|
|
55
|
+
const REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_ONE = "86400";
|
|
53
56
|
exports.preconfiguredAddresses = {
|
|
54
57
|
hardhat: {
|
|
55
58
|
VTreasury: "account:deployer",
|
|
@@ -119,6 +122,13 @@ exports.preconfiguredAddresses = {
|
|
|
119
122
|
CriticalTimelock: exports.ARBITRUM_SEPOLIA_MULTISIG,
|
|
120
123
|
AccessControlManager: arbitrumsepolia_json_1.contracts.AccessControlManager.address,
|
|
121
124
|
},
|
|
125
|
+
arbitrumone: {
|
|
126
|
+
VTreasury: arbitrumone_json_2.contracts.VTreasuryV8.address,
|
|
127
|
+
NormalTimelock: exports.ARBITRUM_ONE_MULTISIG,
|
|
128
|
+
FastTrackTimelock: exports.ARBITRUM_ONE_MULTISIG,
|
|
129
|
+
CriticalTimelock: exports.ARBITRUM_ONE_MULTISIG,
|
|
130
|
+
AccessControlManager: arbitrumone_json_1.contracts.AccessControlManager.address,
|
|
131
|
+
},
|
|
122
132
|
};
|
|
123
133
|
const poolRegistryPermissions = () => {
|
|
124
134
|
const methods = [
|
|
@@ -2068,10 +2078,10 @@ exports.globalConfig = {
|
|
|
2068
2078
|
asset: "WBNB",
|
|
2069
2079
|
symbol: "vWBNB_LiquidStakedBNB",
|
|
2070
2080
|
rateModel: InterestRateModels.JumpRate.toString(),
|
|
2071
|
-
baseRatePerYear:
|
|
2072
|
-
multiplierPerYear: (0, utils_1.convertToUnit)("0.
|
|
2081
|
+
baseRatePerYear: "0",
|
|
2082
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.009", 18),
|
|
2073
2083
|
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
|
|
2074
|
-
kink_: (0, utils_1.convertToUnit)("0.
|
|
2084
|
+
kink_: (0, utils_1.convertToUnit)("0.9", 18),
|
|
2075
2085
|
collateralFactor: (0, utils_1.convertToUnit)("0.45", 18),
|
|
2076
2086
|
liquidationThreshold: (0, utils_1.convertToUnit)("0.5", 18),
|
|
2077
2087
|
reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
|
|
@@ -3887,6 +3897,151 @@ exports.globalConfig = {
|
|
|
3887
3897
|
],
|
|
3888
3898
|
preconfiguredAddresses: exports.preconfiguredAddresses.arbitrumsepolia,
|
|
3889
3899
|
},
|
|
3900
|
+
arbitrumone: {
|
|
3901
|
+
tokensConfig: [
|
|
3902
|
+
{
|
|
3903
|
+
isMock: false,
|
|
3904
|
+
name: "Wrapped BTC",
|
|
3905
|
+
symbol: "WBTC",
|
|
3906
|
+
decimals: 8,
|
|
3907
|
+
tokenAddress: "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f",
|
|
3908
|
+
},
|
|
3909
|
+
{
|
|
3910
|
+
isMock: false,
|
|
3911
|
+
name: "Wrapped Ether",
|
|
3912
|
+
symbol: "WETH",
|
|
3913
|
+
decimals: 18,
|
|
3914
|
+
tokenAddress: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
|
3915
|
+
},
|
|
3916
|
+
{
|
|
3917
|
+
isMock: false,
|
|
3918
|
+
name: "USD Coin",
|
|
3919
|
+
symbol: "USDC",
|
|
3920
|
+
decimals: 6,
|
|
3921
|
+
tokenAddress: "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
|
|
3922
|
+
},
|
|
3923
|
+
{
|
|
3924
|
+
isMock: false,
|
|
3925
|
+
name: "Tether USD",
|
|
3926
|
+
symbol: "USDT",
|
|
3927
|
+
decimals: 6,
|
|
3928
|
+
tokenAddress: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",
|
|
3929
|
+
},
|
|
3930
|
+
{
|
|
3931
|
+
isMock: false,
|
|
3932
|
+
name: "Arbitrum",
|
|
3933
|
+
symbol: "ARB",
|
|
3934
|
+
decimals: 18,
|
|
3935
|
+
tokenAddress: "0x912ce59144191c1204e64559fe8253a0e49e6548",
|
|
3936
|
+
},
|
|
3937
|
+
],
|
|
3938
|
+
poolConfig: [
|
|
3939
|
+
{
|
|
3940
|
+
id: "Core",
|
|
3941
|
+
name: "Core",
|
|
3942
|
+
closeFactor: (0, utils_1.convertToUnit)("0.5", 18),
|
|
3943
|
+
liquidationIncentive: (0, utils_1.convertToUnit)("1.1", 18),
|
|
3944
|
+
minLiquidatableCollateral: (0, utils_1.convertToUnit)("100", 18),
|
|
3945
|
+
vtokens: [
|
|
3946
|
+
{
|
|
3947
|
+
name: "Venus WBTC (Core)",
|
|
3948
|
+
asset: "WBTC",
|
|
3949
|
+
symbol: "vWBTC_Core",
|
|
3950
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
3951
|
+
baseRatePerYear: "0",
|
|
3952
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
|
|
3953
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
3954
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
3955
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
|
|
3956
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.80", 18),
|
|
3957
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
|
|
3958
|
+
initialSupply: (0, utils_1.convertToUnit)("0.0731263", 8),
|
|
3959
|
+
supplyCap: (0, utils_1.convertToUnit)("900", 8),
|
|
3960
|
+
borrowCap: (0, utils_1.convertToUnit)("500", 8),
|
|
3961
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_ONE,
|
|
3962
|
+
vTokenReceiver: exports.preconfiguredAddresses.arbitrumone.VTreasury,
|
|
3963
|
+
},
|
|
3964
|
+
{
|
|
3965
|
+
name: "Venus WETH (Core)",
|
|
3966
|
+
asset: "WETH",
|
|
3967
|
+
symbol: "vWETH_Core",
|
|
3968
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
3969
|
+
baseRatePerYear: "0",
|
|
3970
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.035", 18),
|
|
3971
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
3972
|
+
kink_: (0, utils_1.convertToUnit)("0.8", 18),
|
|
3973
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
|
|
3974
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.80", 18),
|
|
3975
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
|
|
3976
|
+
initialSupply: (0, utils_1.convertToUnit)("1.317651", 18),
|
|
3977
|
+
supplyCap: (0, utils_1.convertToUnit)("26000", 18),
|
|
3978
|
+
borrowCap: (0, utils_1.convertToUnit)("23500", 18),
|
|
3979
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_ONE,
|
|
3980
|
+
vTokenReceiver: exports.preconfiguredAddresses.arbitrumone.VTreasury,
|
|
3981
|
+
},
|
|
3982
|
+
{
|
|
3983
|
+
name: "Venus USDC (Core)",
|
|
3984
|
+
asset: "USDC",
|
|
3985
|
+
symbol: "vUSDC_Core",
|
|
3986
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
3987
|
+
baseRatePerYear: "0",
|
|
3988
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.0875", 18),
|
|
3989
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
3990
|
+
kink_: (0, utils_1.convertToUnit)("0.8", 18),
|
|
3991
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.78", 18),
|
|
3992
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.80", 18),
|
|
3993
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
|
|
3994
|
+
initialSupply: (0, utils_1.convertToUnit)("5000", 6),
|
|
3995
|
+
supplyCap: (0, utils_1.convertToUnit)("54000000", 6),
|
|
3996
|
+
borrowCap: (0, utils_1.convertToUnit)("49000000", 6),
|
|
3997
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_ONE,
|
|
3998
|
+
vTokenReceiver: exports.preconfiguredAddresses.arbitrumone.VTreasury,
|
|
3999
|
+
},
|
|
4000
|
+
{
|
|
4001
|
+
name: "Venus USDT (Core)",
|
|
4002
|
+
asset: "USDT",
|
|
4003
|
+
symbol: "vUSDT_Core",
|
|
4004
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
4005
|
+
baseRatePerYear: "0",
|
|
4006
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.0875", 18),
|
|
4007
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
4008
|
+
kink_: (0, utils_1.convertToUnit)("0.8", 18),
|
|
4009
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.78", 18),
|
|
4010
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.80", 18),
|
|
4011
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
|
|
4012
|
+
initialSupply: (0, utils_1.convertToUnit)("4999.994418", 6),
|
|
4013
|
+
supplyCap: (0, utils_1.convertToUnit)("20000000", 6),
|
|
4014
|
+
borrowCap: (0, utils_1.convertToUnit)("18000000", 6),
|
|
4015
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_ONE,
|
|
4016
|
+
vTokenReceiver: exports.preconfiguredAddresses.arbitrumone.VTreasury,
|
|
4017
|
+
},
|
|
4018
|
+
{
|
|
4019
|
+
name: "Venus ARB (Core)",
|
|
4020
|
+
asset: "ARB",
|
|
4021
|
+
symbol: "vARB_Core",
|
|
4022
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
4023
|
+
baseRatePerYear: "0",
|
|
4024
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
|
|
4025
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
4026
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
4027
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.55", 18),
|
|
4028
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.60", 18),
|
|
4029
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
|
|
4030
|
+
initialSupply: (0, utils_1.convertToUnit)("4453.694805", 18),
|
|
4031
|
+
supplyCap: (0, utils_1.convertToUnit)("16000000", 18),
|
|
4032
|
+
borrowCap: (0, utils_1.convertToUnit)("9000000", 18),
|
|
4033
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_ONE,
|
|
4034
|
+
vTokenReceiver: exports.preconfiguredAddresses.arbitrumone.VTreasury,
|
|
4035
|
+
},
|
|
4036
|
+
],
|
|
4037
|
+
},
|
|
4038
|
+
],
|
|
4039
|
+
accessControlConfig: [
|
|
4040
|
+
...poolRegistryPermissions(),
|
|
4041
|
+
...normalTimelockPermissions(exports.preconfiguredAddresses.arbitrumone.NormalTimelock),
|
|
4042
|
+
],
|
|
4043
|
+
preconfiguredAddresses: exports.preconfiguredAddresses.arbitrumone,
|
|
4044
|
+
},
|
|
3890
4045
|
};
|
|
3891
4046
|
async function getConfig(networkName) {
|
|
3892
4047
|
switch (networkName) {
|
|
@@ -3906,6 +4061,8 @@ async function getConfig(networkName) {
|
|
|
3906
4061
|
return exports.globalConfig.opbnbmainnet;
|
|
3907
4062
|
case "arbitrumsepolia":
|
|
3908
4063
|
return exports.globalConfig.arbitrumsepolia;
|
|
4064
|
+
case "arbitrumone":
|
|
4065
|
+
return exports.globalConfig.arbitrumone;
|
|
3909
4066
|
case "development":
|
|
3910
4067
|
return exports.globalConfig.bsctestnet;
|
|
3911
4068
|
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;
|