@venusprotocol/venus-protocol 9.8.0-dev.20 → 9.8.0-dev.22
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/deploy/005-deploy-VTreasuryV8.ts +0 -1
- package/deploy/009-configure-vaults.ts +0 -1
- package/deployments/bscmainnet/JumpRateModel_base25bps_slope367bps_jump20000bps_kink7500bps_bpy42048000.json +394 -0
- package/deployments/bscmainnet.json +256 -0
- package/deployments/bscmainnet_addresses.json +1 -0
- package/dist/deploy/005-deploy-VTreasuryV8.js +0 -1
- package/dist/deploy/009-configure-vaults.js +0 -1
- package/dist/deployments/bscmainnet.json +256 -0
- package/dist/hardhat.config.js +0 -15
- package/dist/helpers/chains.d.ts +3 -4
- package/dist/helpers/chains.js +0 -2
- package/dist/helpers/markets/bscmainnet.d.ts +2 -2
- package/dist/helpers/markets/bscmainnet.js +2 -2
- package/dist/helpers/markets/index.d.ts +0 -1
- package/dist/helpers/markets/index.js +0 -1
- package/dist/helpers/tokens/index.d.ts +2 -5
- package/dist/helpers/tokens/index.js +0 -1
- package/package.json +1 -1
- package/deployments/berachainbepolia/.chainId +0 -1
- package/deployments/berachainbepolia/VTreasuryV8.json +0 -329
- package/deployments/berachainbepolia/solcInputs/fd1cb03a4a5faafbc2c9f8079ca92876.json +0 -283
- package/deployments/berachainbepolia.json +0 -200
- package/deployments/berachainbepolia_addresses.json +0 -7
|
@@ -53,7 +53,6 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
|
53
53
|
basemainnet: basemainnetGovernanceDeployments.contracts.NormalTimelock.address,
|
|
54
54
|
unichainsepolia: unichainsepoliaGovernanceDeployments.contracts.NormalTimelock.address,
|
|
55
55
|
unichainmainnet: unichainmainnetGovernanceDeployments.contracts.NormalTimelock.address,
|
|
56
|
-
berachainbepolia: "0xAb3DBA18664B96AD54459D06Ca8BD18C9146d5CE", // berachainbepoliaGovernanceDeployments.contracts.NormalTimelock.address
|
|
57
56
|
bscmainnet: await getTimelock(),
|
|
58
57
|
bsctestnet: await getTimelock(),
|
|
59
58
|
hardhat: deployer,
|
|
@@ -46,7 +46,6 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
|
46
46
|
basemainnet: basemainnetGovernanceDeployments.contracts.NormalTimelock.address,
|
|
47
47
|
unichainsepolia: unichainsepoliaGovernanceDeployments.contracts.NormalTimelock.address,
|
|
48
48
|
unichainmainnet: unichainmainnetGovernanceDeployments.contracts.NormalTimelock.address,
|
|
49
|
-
berachainbepolia: "0xAb3DBA18664B96AD54459D06Ca8BD18C9146d5CE", // berachainbepoliaGovernanceDeployments.contracts.NormalTimelock.address
|
|
50
49
|
hardhat: deployer,
|
|
51
50
|
};
|
|
52
51
|
|
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "0xE74FE49e07c8f0Cc4398a481206e2d835b88b8F4",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"internalType": "uint256",
|
|
8
|
+
"name": "baseRatePerYear",
|
|
9
|
+
"type": "uint256"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"internalType": "uint256",
|
|
13
|
+
"name": "multiplierPerYear",
|
|
14
|
+
"type": "uint256"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"internalType": "uint256",
|
|
18
|
+
"name": "jumpMultiplierPerYear",
|
|
19
|
+
"type": "uint256"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"internalType": "uint256",
|
|
23
|
+
"name": "kink_",
|
|
24
|
+
"type": "uint256"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"internalType": "uint256",
|
|
28
|
+
"name": "blocksPerYear_",
|
|
29
|
+
"type": "uint256"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"payable": false,
|
|
33
|
+
"stateMutability": "nonpayable",
|
|
34
|
+
"type": "constructor"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"anonymous": false,
|
|
38
|
+
"inputs": [
|
|
39
|
+
{
|
|
40
|
+
"indexed": false,
|
|
41
|
+
"internalType": "uint256",
|
|
42
|
+
"name": "baseRatePerBlock",
|
|
43
|
+
"type": "uint256"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"indexed": false,
|
|
47
|
+
"internalType": "uint256",
|
|
48
|
+
"name": "multiplierPerBlock",
|
|
49
|
+
"type": "uint256"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"indexed": false,
|
|
53
|
+
"internalType": "uint256",
|
|
54
|
+
"name": "jumpMultiplierPerBlock",
|
|
55
|
+
"type": "uint256"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"indexed": false,
|
|
59
|
+
"internalType": "uint256",
|
|
60
|
+
"name": "kink",
|
|
61
|
+
"type": "uint256"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"name": "NewInterestParams",
|
|
65
|
+
"type": "event"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"constant": true,
|
|
69
|
+
"inputs": [],
|
|
70
|
+
"name": "baseRatePerBlock",
|
|
71
|
+
"outputs": [
|
|
72
|
+
{
|
|
73
|
+
"internalType": "uint256",
|
|
74
|
+
"name": "",
|
|
75
|
+
"type": "uint256"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"payable": false,
|
|
79
|
+
"stateMutability": "view",
|
|
80
|
+
"type": "function"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"constant": true,
|
|
84
|
+
"inputs": [],
|
|
85
|
+
"name": "blocksPerYear",
|
|
86
|
+
"outputs": [
|
|
87
|
+
{
|
|
88
|
+
"internalType": "uint256",
|
|
89
|
+
"name": "",
|
|
90
|
+
"type": "uint256"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"payable": false,
|
|
94
|
+
"stateMutability": "view",
|
|
95
|
+
"type": "function"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"constant": true,
|
|
99
|
+
"inputs": [
|
|
100
|
+
{
|
|
101
|
+
"internalType": "uint256",
|
|
102
|
+
"name": "cash",
|
|
103
|
+
"type": "uint256"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"internalType": "uint256",
|
|
107
|
+
"name": "borrows",
|
|
108
|
+
"type": "uint256"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"internalType": "uint256",
|
|
112
|
+
"name": "reserves",
|
|
113
|
+
"type": "uint256"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"name": "getBorrowRate",
|
|
117
|
+
"outputs": [
|
|
118
|
+
{
|
|
119
|
+
"internalType": "uint256",
|
|
120
|
+
"name": "",
|
|
121
|
+
"type": "uint256"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"payable": false,
|
|
125
|
+
"stateMutability": "view",
|
|
126
|
+
"type": "function"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"constant": true,
|
|
130
|
+
"inputs": [
|
|
131
|
+
{
|
|
132
|
+
"internalType": "uint256",
|
|
133
|
+
"name": "cash",
|
|
134
|
+
"type": "uint256"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"internalType": "uint256",
|
|
138
|
+
"name": "borrows",
|
|
139
|
+
"type": "uint256"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"internalType": "uint256",
|
|
143
|
+
"name": "reserves",
|
|
144
|
+
"type": "uint256"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"internalType": "uint256",
|
|
148
|
+
"name": "reserveFactorMantissa",
|
|
149
|
+
"type": "uint256"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"name": "getSupplyRate",
|
|
153
|
+
"outputs": [
|
|
154
|
+
{
|
|
155
|
+
"internalType": "uint256",
|
|
156
|
+
"name": "",
|
|
157
|
+
"type": "uint256"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"payable": false,
|
|
161
|
+
"stateMutability": "view",
|
|
162
|
+
"type": "function"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"constant": true,
|
|
166
|
+
"inputs": [],
|
|
167
|
+
"name": "isInterestRateModel",
|
|
168
|
+
"outputs": [
|
|
169
|
+
{
|
|
170
|
+
"internalType": "bool",
|
|
171
|
+
"name": "",
|
|
172
|
+
"type": "bool"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"payable": false,
|
|
176
|
+
"stateMutability": "view",
|
|
177
|
+
"type": "function"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"constant": true,
|
|
181
|
+
"inputs": [],
|
|
182
|
+
"name": "jumpMultiplierPerBlock",
|
|
183
|
+
"outputs": [
|
|
184
|
+
{
|
|
185
|
+
"internalType": "uint256",
|
|
186
|
+
"name": "",
|
|
187
|
+
"type": "uint256"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"payable": false,
|
|
191
|
+
"stateMutability": "view",
|
|
192
|
+
"type": "function"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"constant": true,
|
|
196
|
+
"inputs": [],
|
|
197
|
+
"name": "kink",
|
|
198
|
+
"outputs": [
|
|
199
|
+
{
|
|
200
|
+
"internalType": "uint256",
|
|
201
|
+
"name": "",
|
|
202
|
+
"type": "uint256"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"payable": false,
|
|
206
|
+
"stateMutability": "view",
|
|
207
|
+
"type": "function"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"constant": true,
|
|
211
|
+
"inputs": [],
|
|
212
|
+
"name": "multiplierPerBlock",
|
|
213
|
+
"outputs": [
|
|
214
|
+
{
|
|
215
|
+
"internalType": "uint256",
|
|
216
|
+
"name": "",
|
|
217
|
+
"type": "uint256"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"payable": false,
|
|
221
|
+
"stateMutability": "view",
|
|
222
|
+
"type": "function"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"constant": true,
|
|
226
|
+
"inputs": [
|
|
227
|
+
{
|
|
228
|
+
"internalType": "uint256",
|
|
229
|
+
"name": "cash",
|
|
230
|
+
"type": "uint256"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"internalType": "uint256",
|
|
234
|
+
"name": "borrows",
|
|
235
|
+
"type": "uint256"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"internalType": "uint256",
|
|
239
|
+
"name": "reserves",
|
|
240
|
+
"type": "uint256"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"name": "utilizationRate",
|
|
244
|
+
"outputs": [
|
|
245
|
+
{
|
|
246
|
+
"internalType": "uint256",
|
|
247
|
+
"name": "",
|
|
248
|
+
"type": "uint256"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"payable": false,
|
|
252
|
+
"stateMutability": "pure",
|
|
253
|
+
"type": "function"
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"transactionHash": "0xc02ad58d9b6bfc49797777ee6017039d1bbf54a893de0eb34d77133a73c7d21f",
|
|
257
|
+
"receipt": {
|
|
258
|
+
"to": null,
|
|
259
|
+
"from": "0x8BDA9f9E1fEF0DFd404Fef338D9fE4c543d172e1",
|
|
260
|
+
"contractAddress": "0xE74FE49e07c8f0Cc4398a481206e2d835b88b8F4",
|
|
261
|
+
"transactionIndex": 59,
|
|
262
|
+
"gasUsed": "510816",
|
|
263
|
+
"logsBloom": "0x00000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000080000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
264
|
+
"blockHash": "0x0d573cd36f13819536e17f3662e0234f570f0629e0f175dddca31354291754ba",
|
|
265
|
+
"transactionHash": "0xc02ad58d9b6bfc49797777ee6017039d1bbf54a893de0eb34d77133a73c7d21f",
|
|
266
|
+
"logs": [
|
|
267
|
+
{
|
|
268
|
+
"transactionIndex": 59,
|
|
269
|
+
"blockNumber": 60091396,
|
|
270
|
+
"transactionHash": "0xc02ad58d9b6bfc49797777ee6017039d1bbf54a893de0eb34d77133a73c7d21f",
|
|
271
|
+
"address": "0xE74FE49e07c8f0Cc4398a481206e2d835b88b8F4",
|
|
272
|
+
"topics": ["0x6960ab234c7ef4b0c9197100f5393cfcde7c453ac910a27bd2000aa1dd4c068d"],
|
|
273
|
+
"data": "0x00000000000000000000000000000000000000000000000000000000038b39730000000000000000000000000000000000000000000000000000000034060df80000000000000000000000000000000000000000000000000000000b13138a670000000000000000000000000000000000000000000000000a688906bd8b0000",
|
|
274
|
+
"logIndex": 272,
|
|
275
|
+
"blockHash": "0x0d573cd36f13819536e17f3662e0234f570f0629e0f175dddca31354291754ba"
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"blockNumber": 60091396,
|
|
279
|
+
"cumulativeGasUsed": "8152855",
|
|
280
|
+
"status": 1,
|
|
281
|
+
"byzantium": true
|
|
282
|
+
},
|
|
283
|
+
"args": ["2500000000000000", "36700000000000000", "2000000000000000000", "750000000000000000", 42048000],
|
|
284
|
+
"numDeployments": 1,
|
|
285
|
+
"solcInputHash": "501a636c0cfe94ed0788c4114ed4912e",
|
|
286
|
+
"metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"baseRatePerYear\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"multiplierPerYear\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"jumpMultiplierPerYear\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"kink_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blocksPerYear_\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"baseRatePerBlock\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"multiplierPerBlock\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"jumpMultiplierPerBlock\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"kink\",\"type\":\"uint256\"}],\"name\":\"NewInterestParams\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"baseRatePerBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"blocksPerYear\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"cash\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrows\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserves\",\"type\":\"uint256\"}],\"name\":\"getBorrowRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"cash\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrows\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserves\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveFactorMantissa\",\"type\":\"uint256\"}],\"name\":\"getSupplyRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isInterestRateModel\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"jumpMultiplierPerBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"kink\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"multiplierPerBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"cash\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"borrows\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserves\",\"type\":\"uint256\"}],\"name\":\"utilizationRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Venus\",\"methods\":{\"constructor\":{\"params\":{\"baseRatePerYear\":\"The approximate target base APR, as a mantissa (scaled by 1e18)\",\"blocksPerYear_\":\"The approximate number of blocks per year to assume\",\"jumpMultiplierPerYear\":\"The multiplierPerBlock after hitting a specified utilization point\",\"kink_\":\"The utilization point at which the jump multiplier is applied\",\"multiplierPerYear\":\"The rate of increase in interest rate wrt utilization (scaled by 1e18)\"}},\"getBorrowRate(uint256,uint256,uint256)\":{\"params\":{\"borrows\":\"The amount of borrows in the market\",\"cash\":\"The amount of cash in the market\",\"reserves\":\"The amount of reserves in the market\"},\"return\":\"The borrow rate percentage per block as a mantissa (scaled by 1e18)\"},\"getSupplyRate(uint256,uint256,uint256,uint256)\":{\"params\":{\"borrows\":\"The amount of borrows in the market\",\"cash\":\"The amount of cash in the market\",\"reserveFactorMantissa\":\"The current reserve factor for the market\",\"reserves\":\"The amount of reserves in the market\"},\"return\":\"The supply rate percentage per block as a mantissa (scaled by 1e18)\"},\"utilizationRate(uint256,uint256,uint256)\":{\"params\":{\"borrows\":\"The amount of borrows in the market\",\"cash\":\"The amount of cash in the market\",\"reserves\":\"The amount of reserves in the market (currently unused)\"},\"return\":\"The utilization rate as a mantissa between [0, 1e18]\"}},\"title\":\"Venus's JumpRateModel Contract\"},\"userdoc\":{\"methods\":{\"constructor\":\"Construct an interest rate model\",\"getBorrowRate(uint256,uint256,uint256)\":{\"notice\":\"Calculates the current borrow rate per block, with the error code expected by the market\"},\"getSupplyRate(uint256,uint256,uint256,uint256)\":{\"notice\":\"Calculates the current supply rate per block\"},\"utilizationRate(uint256,uint256,uint256)\":{\"notice\":\"Calculates the utilization rate of the market: `borrows / (cash + borrows - reserves)`\"}}}},\"settings\":{\"compilationTarget\":{\"contracts/InterestRateModels/JumpRateModel.sol\":\"JumpRateModel\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/InterestRateModels/InterestRateModel.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity ^0.5.16;\\n\\n/**\\n * @title Venus's InterestRateModel Interface\\n * @author Venus\\n */\\ncontract InterestRateModel {\\n /// @notice Indicator that this is an InterestRateModel contract (for inspection)\\n bool public constant isInterestRateModel = true;\\n\\n /**\\n * @notice Calculates the current borrow interest rate per block\\n * @param cash The total amount of cash the market has\\n * @param borrows The total amount of borrows the market has outstanding\\n * @param reserves The total amnount of reserves the market has\\n * @return The borrow rate per block (as a percentage, and scaled by 1e18)\\n */\\n function getBorrowRate(uint cash, uint borrows, uint reserves) external view returns (uint);\\n\\n /**\\n * @notice Calculates the current supply interest rate per block\\n * @param cash The total amount of cash the market has\\n * @param borrows The total amount of borrows the market has outstanding\\n * @param reserves The total amnount of reserves the market has\\n * @param reserveFactorMantissa The current reserve factor the market has\\n * @return The supply rate per block (as a percentage, and scaled by 1e18)\\n */\\n function getSupplyRate(\\n uint cash,\\n uint borrows,\\n uint reserves,\\n uint reserveFactorMantissa\\n ) external view returns (uint);\\n}\\n\",\"keccak256\":\"0x786416e63346afec50151e44b993dbbdb12f94cd3f2c9dba631afe237353605f\"},\"contracts/InterestRateModels/JumpRateModel.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity ^0.5.16;\\n\\nimport \\\"../Utils/SafeMath.sol\\\";\\nimport \\\"./InterestRateModel.sol\\\";\\n\\n/**\\n * @title Venus's JumpRateModel Contract\\n * @author Venus\\n */\\ncontract JumpRateModel is InterestRateModel {\\n using SafeMath for uint;\\n\\n event NewInterestParams(uint baseRatePerBlock, uint multiplierPerBlock, uint jumpMultiplierPerBlock, uint kink);\\n\\n /**\\n * @notice The approximate number of blocks per year that is assumed by the interest rate model\\n */\\n uint public blocksPerYear;\\n\\n /**\\n * @notice The multiplier of utilization rate that gives the slope of the interest rate\\n */\\n uint public multiplierPerBlock;\\n\\n /**\\n * @notice The base interest rate which is the y-intercept when utilization rate is 0\\n */\\n uint public baseRatePerBlock;\\n\\n /**\\n * @notice The multiplierPerBlock after hitting a specified utilization point\\n */\\n uint public jumpMultiplierPerBlock;\\n\\n /**\\n * @notice The utilization point at which the jump multiplier is applied\\n */\\n uint public kink;\\n\\n /**\\n * @notice Construct an interest rate model\\n * @param baseRatePerYear The approximate target base APR, as a mantissa (scaled by 1e18)\\n * @param multiplierPerYear The rate of increase in interest rate wrt utilization (scaled by 1e18)\\n * @param jumpMultiplierPerYear The multiplierPerBlock after hitting a specified utilization point\\n * @param kink_ The utilization point at which the jump multiplier is applied\\n * @param blocksPerYear_ The approximate number of blocks per year to assume\\n */\\n constructor(\\n uint baseRatePerYear,\\n uint multiplierPerYear,\\n uint jumpMultiplierPerYear,\\n uint kink_,\\n uint blocksPerYear_\\n ) public {\\n blocksPerYear = blocksPerYear_;\\n baseRatePerBlock = baseRatePerYear.div(blocksPerYear_);\\n multiplierPerBlock = multiplierPerYear.div(blocksPerYear_);\\n jumpMultiplierPerBlock = jumpMultiplierPerYear.div(blocksPerYear_);\\n kink = kink_;\\n\\n emit NewInterestParams(baseRatePerBlock, multiplierPerBlock, jumpMultiplierPerBlock, kink);\\n }\\n\\n /**\\n * @notice Calculates the utilization rate of the market: `borrows / (cash + borrows - reserves)`\\n * @param cash The amount of cash in the market\\n * @param borrows The amount of borrows in the market\\n * @param reserves The amount of reserves in the market (currently unused)\\n * @return The utilization rate as a mantissa between [0, 1e18]\\n */\\n function utilizationRate(uint cash, uint borrows, uint reserves) public pure returns (uint) {\\n // Utilization rate is 0 when there are no borrows\\n if (borrows == 0) {\\n return 0;\\n }\\n\\n return borrows.mul(1e18).div(cash.add(borrows).sub(reserves));\\n }\\n\\n /**\\n * @notice Calculates the current borrow rate per block, with the error code expected by the market\\n * @param cash The amount of cash in the market\\n * @param borrows The amount of borrows in the market\\n * @param reserves The amount of reserves in the market\\n * @return The borrow rate percentage per block as a mantissa (scaled by 1e18)\\n */\\n function getBorrowRate(uint cash, uint borrows, uint reserves) public view returns (uint) {\\n uint util = utilizationRate(cash, borrows, reserves);\\n\\n if (util <= kink) {\\n return util.mul(multiplierPerBlock).div(1e18).add(baseRatePerBlock);\\n } else {\\n uint normalRate = kink.mul(multiplierPerBlock).div(1e18).add(baseRatePerBlock);\\n uint excessUtil = util.sub(kink);\\n return excessUtil.mul(jumpMultiplierPerBlock).div(1e18).add(normalRate);\\n }\\n }\\n\\n /**\\n * @notice Calculates the current supply rate per block\\n * @param cash The amount of cash in the market\\n * @param borrows The amount of borrows in the market\\n * @param reserves The amount of reserves in the market\\n * @param reserveFactorMantissa The current reserve factor for the market\\n * @return The supply rate percentage per block as a mantissa (scaled by 1e18)\\n */\\n function getSupplyRate(\\n uint cash,\\n uint borrows,\\n uint reserves,\\n uint reserveFactorMantissa\\n ) public view returns (uint) {\\n uint oneMinusReserveFactor = uint(1e18).sub(reserveFactorMantissa);\\n uint borrowRate = getBorrowRate(cash, borrows, reserves);\\n uint rateToPool = borrowRate.mul(oneMinusReserveFactor).div(1e18);\\n return utilizationRate(cash, borrows, reserves).mul(rateToPool).div(1e18);\\n }\\n}\\n\",\"keccak256\":\"0x87c701db44c54772c6884ef71da11a78747be65a705065c25d8deb8b85b98c98\"},\"contracts/Utils/SafeMath.sol\":{\"content\":\"pragma solidity ^0.5.16;\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\\n * checks.\\n *\\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\\n * in bugs, because programmers usually assume that an overflow raises an\\n * error, which is the standard behavior in high level programming languages.\\n * `SafeMath` restores this intuition by reverting the transaction when an\\n * operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeMath {\\n /**\\n * @dev Returns the addition of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `+` operator.\\n *\\n * Requirements:\\n * - Addition cannot overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n return add(a, b, \\\"SafeMath: addition overflow\\\");\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n * - Subtraction cannot overflow.\\n */\\n function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a, errorMessage);\\n\\n return c;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n return sub(a, b, \\\"SafeMath: subtraction overflow\\\");\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b <= a, errorMessage);\\n uint256 c = a - b;\\n\\n return c;\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `*` operator.\\n *\\n * Requirements:\\n * - Multiplication cannot overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) {\\n return 0;\\n }\\n\\n uint256 c = a * b;\\n require(c / a == b, \\\"SafeMath: multiplication overflow\\\");\\n\\n return c;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers. Reverts on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\\n return div(a, b, \\\"SafeMath: division by zero\\\");\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers. Reverts with custom message on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n // Solidity only automatically asserts when dividing by 0\\n require(b > 0, errorMessage);\\n uint256 c = a / b;\\n // assert(a == b * c + a % b); // There is no case in which this doesn't hold\\n\\n return c;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * Reverts when dividing by zero.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\\n return mod(a, b, \\\"SafeMath: modulo by zero\\\");\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * Reverts with custom message when dividing by zero.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b != 0, errorMessage);\\n return a % b;\\n }\\n}\\n\",\"keccak256\":\"0x9431fd772ed4abc038cdfe9ce6c0066897bd1685ad45848748d1952935d5b8ef\"}},\"version\":1}",
|
|
287
|
+
"bytecode": "0x608060405234801561001057600080fd5b50604051610812380380610812833981810160405260a081101561003357600080fd5b50805160208083015160408401516060850151608090950151600081905593949193909261006c908690839061039d6100ff821b17901c565b60025561008484826100ff602090811b61039d17901c565b60015561009c83826100ff602090811b61039d17901c565b60038190556004839055600254600154604080519283526020830191909152818101929092526060810184905290517f6960ab234c7ef4b0c9197100f5393cfcde7c453ac910a27bd2000aa1dd4c068d9181900360800190a150505050506101f0565b600061014783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061014e60201b60201c565b9392505050565b600081836101da5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561019f578181015183820152602001610187565b50505050905090810190601f1680156101cc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816101e657fe5b0495945050505050565b610613806101ff6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063a385fb9611610066578063a385fb9614610120578063b816881614610128578063b9f9850a14610157578063f14039de1461015f578063fd2da3391461016757610093565b806315f24053146100985780632191f92a146100d35780636e71e2d8146100ef5780638726bb8914610118575b600080fd5b6100c1600480360360608110156100ae57600080fd5b508035906020810135906040013561016f565b60408051918252519081900360200190f35b6100db610247565b604080519115158252519081900360200190f35b6100c16004803603606081101561010557600080fd5b508035906020810135906040013561024c565b6100c161029e565b6100c16102a4565b6100c16004803603608081101561013e57600080fd5b50803590602081013590604081013590606001356102aa565b6100c1610329565b6100c161032f565b6100c1610335565b60008061017d85858561024c565b905060045481116101cf576101c76002546101bb670de0b6b3a76400006101af6001548661033b90919063ffffffff16565b9063ffffffff61039d16565b9063ffffffff6103df16565b915050610240565b60006101fa6002546101bb670de0b6b3a76400006101af60015460045461033b90919063ffffffff16565b905060006102136004548461042190919063ffffffff16565b905061023a826101bb670de0b6b3a76400006101af6003548661033b90919063ffffffff16565b93505050505b9392505050565b600181565b60008261025b57506000610240565b61029661027e83610272878763ffffffff6103df16565b9063ffffffff61042116565b6101af85670de0b6b3a764000063ffffffff61033b16565b949350505050565b60015481565b60005481565b6000806102c5670de0b6b3a76400008463ffffffff61042116565b905060006102d487878761016f565b905060006102f4670de0b6b3a76400006101af848663ffffffff61033b16565b905061031d670de0b6b3a76400006101af836103118c8c8c61024c565b9063ffffffff61033b16565b98975050505050505050565b60035481565b60025481565b60045481565b60008261034a57506000610397565b8282028284828161035757fe5b04146103945760405162461bcd60e51b81526004018080602001828103825260218152602001806105be6021913960400191505060405180910390fd5b90505b92915050565b600061039483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610463565b600061039483836040518060400160405280601b81526020017f536166654d6174683a206164646974696f6e206f766572666c6f770000000000815250610505565b600061039483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610563565b600081836104ef5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156104b457818101518382015260200161049c565b50505050905090810190601f1680156104e15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816104fb57fe5b0495945050505050565b6000838301828582101561055a5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156104b457818101518382015260200161049c565b50949350505050565b600081848411156105b55760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156104b457818101518382015260200161049c565b50505090039056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a7231582076f402780e45198caeb5a97509b16371116a983a8839bd7e095f45668ff596b864736f6c63430005100032",
|
|
288
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063a385fb9611610066578063a385fb9614610120578063b816881614610128578063b9f9850a14610157578063f14039de1461015f578063fd2da3391461016757610093565b806315f24053146100985780632191f92a146100d35780636e71e2d8146100ef5780638726bb8914610118575b600080fd5b6100c1600480360360608110156100ae57600080fd5b508035906020810135906040013561016f565b60408051918252519081900360200190f35b6100db610247565b604080519115158252519081900360200190f35b6100c16004803603606081101561010557600080fd5b508035906020810135906040013561024c565b6100c161029e565b6100c16102a4565b6100c16004803603608081101561013e57600080fd5b50803590602081013590604081013590606001356102aa565b6100c1610329565b6100c161032f565b6100c1610335565b60008061017d85858561024c565b905060045481116101cf576101c76002546101bb670de0b6b3a76400006101af6001548661033b90919063ffffffff16565b9063ffffffff61039d16565b9063ffffffff6103df16565b915050610240565b60006101fa6002546101bb670de0b6b3a76400006101af60015460045461033b90919063ffffffff16565b905060006102136004548461042190919063ffffffff16565b905061023a826101bb670de0b6b3a76400006101af6003548661033b90919063ffffffff16565b93505050505b9392505050565b600181565b60008261025b57506000610240565b61029661027e83610272878763ffffffff6103df16565b9063ffffffff61042116565b6101af85670de0b6b3a764000063ffffffff61033b16565b949350505050565b60015481565b60005481565b6000806102c5670de0b6b3a76400008463ffffffff61042116565b905060006102d487878761016f565b905060006102f4670de0b6b3a76400006101af848663ffffffff61033b16565b905061031d670de0b6b3a76400006101af836103118c8c8c61024c565b9063ffffffff61033b16565b98975050505050505050565b60035481565b60025481565b60045481565b60008261034a57506000610397565b8282028284828161035757fe5b04146103945760405162461bcd60e51b81526004018080602001828103825260218152602001806105be6021913960400191505060405180910390fd5b90505b92915050565b600061039483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610463565b600061039483836040518060400160405280601b81526020017f536166654d6174683a206164646974696f6e206f766572666c6f770000000000815250610505565b600061039483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610563565b600081836104ef5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156104b457818101518382015260200161049c565b50505050905090810190601f1680156104e15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816104fb57fe5b0495945050505050565b6000838301828582101561055a5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156104b457818101518382015260200161049c565b50949350505050565b600081848411156105b55760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156104b457818101518382015260200161049c565b50505090039056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a7231582076f402780e45198caeb5a97509b16371116a983a8839bd7e095f45668ff596b864736f6c63430005100032",
|
|
289
|
+
"devdoc": {
|
|
290
|
+
"author": "Venus",
|
|
291
|
+
"methods": {
|
|
292
|
+
"constructor": {
|
|
293
|
+
"params": {
|
|
294
|
+
"baseRatePerYear": "The approximate target base APR, as a mantissa (scaled by 1e18)",
|
|
295
|
+
"blocksPerYear_": "The approximate number of blocks per year to assume",
|
|
296
|
+
"jumpMultiplierPerYear": "The multiplierPerBlock after hitting a specified utilization point",
|
|
297
|
+
"kink_": "The utilization point at which the jump multiplier is applied",
|
|
298
|
+
"multiplierPerYear": "The rate of increase in interest rate wrt utilization (scaled by 1e18)"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"getBorrowRate(uint256,uint256,uint256)": {
|
|
302
|
+
"params": {
|
|
303
|
+
"borrows": "The amount of borrows in the market",
|
|
304
|
+
"cash": "The amount of cash in the market",
|
|
305
|
+
"reserves": "The amount of reserves in the market"
|
|
306
|
+
},
|
|
307
|
+
"return": "The borrow rate percentage per block as a mantissa (scaled by 1e18)"
|
|
308
|
+
},
|
|
309
|
+
"getSupplyRate(uint256,uint256,uint256,uint256)": {
|
|
310
|
+
"params": {
|
|
311
|
+
"borrows": "The amount of borrows in the market",
|
|
312
|
+
"cash": "The amount of cash in the market",
|
|
313
|
+
"reserveFactorMantissa": "The current reserve factor for the market",
|
|
314
|
+
"reserves": "The amount of reserves in the market"
|
|
315
|
+
},
|
|
316
|
+
"return": "The supply rate percentage per block as a mantissa (scaled by 1e18)"
|
|
317
|
+
},
|
|
318
|
+
"utilizationRate(uint256,uint256,uint256)": {
|
|
319
|
+
"params": {
|
|
320
|
+
"borrows": "The amount of borrows in the market",
|
|
321
|
+
"cash": "The amount of cash in the market",
|
|
322
|
+
"reserves": "The amount of reserves in the market (currently unused)"
|
|
323
|
+
},
|
|
324
|
+
"return": "The utilization rate as a mantissa between [0, 1e18]"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"title": "Venus's JumpRateModel Contract"
|
|
328
|
+
},
|
|
329
|
+
"userdoc": {
|
|
330
|
+
"methods": {
|
|
331
|
+
"constructor": "Construct an interest rate model",
|
|
332
|
+
"getBorrowRate(uint256,uint256,uint256)": {
|
|
333
|
+
"notice": "Calculates the current borrow rate per block, with the error code expected by the market"
|
|
334
|
+
},
|
|
335
|
+
"getSupplyRate(uint256,uint256,uint256,uint256)": {
|
|
336
|
+
"notice": "Calculates the current supply rate per block"
|
|
337
|
+
},
|
|
338
|
+
"utilizationRate(uint256,uint256,uint256)": {
|
|
339
|
+
"notice": "Calculates the utilization rate of the market: `borrows / (cash + borrows - reserves)`"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"storageLayout": {
|
|
344
|
+
"storage": [
|
|
345
|
+
{
|
|
346
|
+
"astId": 9793,
|
|
347
|
+
"contract": "contracts/InterestRateModels/JumpRateModel.sol:JumpRateModel",
|
|
348
|
+
"label": "blocksPerYear",
|
|
349
|
+
"offset": 0,
|
|
350
|
+
"slot": "0",
|
|
351
|
+
"type": "t_uint256"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"astId": 9795,
|
|
355
|
+
"contract": "contracts/InterestRateModels/JumpRateModel.sol:JumpRateModel",
|
|
356
|
+
"label": "multiplierPerBlock",
|
|
357
|
+
"offset": 0,
|
|
358
|
+
"slot": "1",
|
|
359
|
+
"type": "t_uint256"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"astId": 9797,
|
|
363
|
+
"contract": "contracts/InterestRateModels/JumpRateModel.sol:JumpRateModel",
|
|
364
|
+
"label": "baseRatePerBlock",
|
|
365
|
+
"offset": 0,
|
|
366
|
+
"slot": "2",
|
|
367
|
+
"type": "t_uint256"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"astId": 9799,
|
|
371
|
+
"contract": "contracts/InterestRateModels/JumpRateModel.sol:JumpRateModel",
|
|
372
|
+
"label": "jumpMultiplierPerBlock",
|
|
373
|
+
"offset": 0,
|
|
374
|
+
"slot": "3",
|
|
375
|
+
"type": "t_uint256"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"astId": 9801,
|
|
379
|
+
"contract": "contracts/InterestRateModels/JumpRateModel.sol:JumpRateModel",
|
|
380
|
+
"label": "kink",
|
|
381
|
+
"offset": 0,
|
|
382
|
+
"slot": "4",
|
|
383
|
+
"type": "t_uint256"
|
|
384
|
+
}
|
|
385
|
+
],
|
|
386
|
+
"types": {
|
|
387
|
+
"t_uint256": {
|
|
388
|
+
"encoding": "inplace",
|
|
389
|
+
"label": "uint256",
|
|
390
|
+
"numberOfBytes": "32"
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|