@venusprotocol/protocol-reserve 1.0.0-dev.1
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/README.md +69 -0
- package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.json +183 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +297 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json +194 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json +233 -0
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.json +10 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.json +115 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.json +76 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.json +24 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.json +194 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.json +86 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.json +10 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.json +10 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.json +24 -0
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +4 -0
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.json +181 -0
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +4 -0
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.json +282 -0
- package/artifacts/build-info/c112788394311939ef4c47b76cde5898.json +1 -0
- package/artifacts/contracts/Interfaces/ComptrollerInterface.sol/ComptrollerInterface.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/ComptrollerInterface.sol/ComptrollerInterface.json +24 -0
- package/artifacts/contracts/Interfaces/IIncomeDestination.sol/IIncomeDestination.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IIncomeDestination.sol/IIncomeDestination.json +29 -0
- package/artifacts/contracts/Interfaces/IPrime.sol/IPrime.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IPrime.sol/IPrime.json +74 -0
- package/artifacts/contracts/Interfaces/IProtocolShareReserve.sol/IProtocolShareReserve.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IProtocolShareReserve.sol/IProtocolShareReserve.json +34 -0
- package/artifacts/contracts/Interfaces/IVToken.sol/IVToken.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/IVToken.sol/IVToken.json +24 -0
- package/artifacts/contracts/Interfaces/PoolRegistryInterface.sol/PoolRegistryInterface.dbg.json +4 -0
- package/artifacts/contracts/Interfaces/PoolRegistryInterface.sol/PoolRegistryInterface.json +35 -0
- package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.dbg.json +4 -0
- package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.json +741 -0
- package/artifacts/contracts/Test/Mocks/MockToken.sol/MockToken.dbg.json +4 -0
- package/artifacts/contracts/Test/Mocks/MockToken.sol/MockToken.json +315 -0
- package/contracts/Interfaces/ComptrollerInterface.sol +6 -0
- package/contracts/Interfaces/IIncomeDestination.sol +6 -0
- package/contracts/Interfaces/IPrime.sol +12 -0
- package/contracts/Interfaces/IProtocolShareReserve.sol +12 -0
- package/contracts/Interfaces/IVToken.sol +6 -0
- package/contracts/Interfaces/PoolRegistryInterface.sol +7 -0
- package/contracts/ProtocolReserve/ProtocolShareReserve.sol +378 -0
- package/contracts/Test/Mocks/MockToken.sol +22 -0
- package/contracts/interfaces/ComptrollerInterface.sol +6 -0
- package/contracts/interfaces/IProtocolShareReserve.sol +12 -0
- package/contracts/interfaces/PoolRegistryInterface.sol +7 -0
- package/contracts/test/Mocks/MockToken.sol +22 -0
- package/package.json +116 -0
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "MockToken",
|
|
4
|
+
"sourceName": "contracts/Test/Mocks/MockToken.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "string",
|
|
10
|
+
"name": "name_",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "string",
|
|
15
|
+
"name": "symbol_",
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "uint8",
|
|
20
|
+
"name": "decimals_",
|
|
21
|
+
"type": "uint8"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"stateMutability": "nonpayable",
|
|
25
|
+
"type": "constructor"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"anonymous": false,
|
|
29
|
+
"inputs": [
|
|
30
|
+
{
|
|
31
|
+
"indexed": true,
|
|
32
|
+
"internalType": "address",
|
|
33
|
+
"name": "owner",
|
|
34
|
+
"type": "address"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"indexed": true,
|
|
38
|
+
"internalType": "address",
|
|
39
|
+
"name": "spender",
|
|
40
|
+
"type": "address"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"indexed": false,
|
|
44
|
+
"internalType": "uint256",
|
|
45
|
+
"name": "value",
|
|
46
|
+
"type": "uint256"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"name": "Approval",
|
|
50
|
+
"type": "event"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"anonymous": false,
|
|
54
|
+
"inputs": [
|
|
55
|
+
{
|
|
56
|
+
"indexed": true,
|
|
57
|
+
"internalType": "address",
|
|
58
|
+
"name": "from",
|
|
59
|
+
"type": "address"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"indexed": true,
|
|
63
|
+
"internalType": "address",
|
|
64
|
+
"name": "to",
|
|
65
|
+
"type": "address"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"indexed": false,
|
|
69
|
+
"internalType": "uint256",
|
|
70
|
+
"name": "value",
|
|
71
|
+
"type": "uint256"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"name": "Transfer",
|
|
75
|
+
"type": "event"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"inputs": [
|
|
79
|
+
{
|
|
80
|
+
"internalType": "address",
|
|
81
|
+
"name": "owner",
|
|
82
|
+
"type": "address"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"internalType": "address",
|
|
86
|
+
"name": "spender",
|
|
87
|
+
"type": "address"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"name": "allowance",
|
|
91
|
+
"outputs": [
|
|
92
|
+
{
|
|
93
|
+
"internalType": "uint256",
|
|
94
|
+
"name": "",
|
|
95
|
+
"type": "uint256"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"stateMutability": "view",
|
|
99
|
+
"type": "function"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"inputs": [
|
|
103
|
+
{
|
|
104
|
+
"internalType": "address",
|
|
105
|
+
"name": "spender",
|
|
106
|
+
"type": "address"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"internalType": "uint256",
|
|
110
|
+
"name": "amount",
|
|
111
|
+
"type": "uint256"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"name": "approve",
|
|
115
|
+
"outputs": [
|
|
116
|
+
{
|
|
117
|
+
"internalType": "bool",
|
|
118
|
+
"name": "",
|
|
119
|
+
"type": "bool"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"stateMutability": "nonpayable",
|
|
123
|
+
"type": "function"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"inputs": [
|
|
127
|
+
{
|
|
128
|
+
"internalType": "address",
|
|
129
|
+
"name": "account",
|
|
130
|
+
"type": "address"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"name": "balanceOf",
|
|
134
|
+
"outputs": [
|
|
135
|
+
{
|
|
136
|
+
"internalType": "uint256",
|
|
137
|
+
"name": "",
|
|
138
|
+
"type": "uint256"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"stateMutability": "view",
|
|
142
|
+
"type": "function"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"inputs": [],
|
|
146
|
+
"name": "decimals",
|
|
147
|
+
"outputs": [
|
|
148
|
+
{
|
|
149
|
+
"internalType": "uint8",
|
|
150
|
+
"name": "",
|
|
151
|
+
"type": "uint8"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"stateMutability": "view",
|
|
155
|
+
"type": "function"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"inputs": [
|
|
159
|
+
{
|
|
160
|
+
"internalType": "address",
|
|
161
|
+
"name": "spender",
|
|
162
|
+
"type": "address"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"internalType": "uint256",
|
|
166
|
+
"name": "subtractedValue",
|
|
167
|
+
"type": "uint256"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"name": "decreaseAllowance",
|
|
171
|
+
"outputs": [
|
|
172
|
+
{
|
|
173
|
+
"internalType": "bool",
|
|
174
|
+
"name": "",
|
|
175
|
+
"type": "bool"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"stateMutability": "nonpayable",
|
|
179
|
+
"type": "function"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"inputs": [
|
|
183
|
+
{
|
|
184
|
+
"internalType": "uint256",
|
|
185
|
+
"name": "amount",
|
|
186
|
+
"type": "uint256"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"name": "faucet",
|
|
190
|
+
"outputs": [],
|
|
191
|
+
"stateMutability": "nonpayable",
|
|
192
|
+
"type": "function"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"inputs": [
|
|
196
|
+
{
|
|
197
|
+
"internalType": "address",
|
|
198
|
+
"name": "spender",
|
|
199
|
+
"type": "address"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"internalType": "uint256",
|
|
203
|
+
"name": "addedValue",
|
|
204
|
+
"type": "uint256"
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"name": "increaseAllowance",
|
|
208
|
+
"outputs": [
|
|
209
|
+
{
|
|
210
|
+
"internalType": "bool",
|
|
211
|
+
"name": "",
|
|
212
|
+
"type": "bool"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"stateMutability": "nonpayable",
|
|
216
|
+
"type": "function"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"inputs": [],
|
|
220
|
+
"name": "name",
|
|
221
|
+
"outputs": [
|
|
222
|
+
{
|
|
223
|
+
"internalType": "string",
|
|
224
|
+
"name": "",
|
|
225
|
+
"type": "string"
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"stateMutability": "view",
|
|
229
|
+
"type": "function"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"inputs": [],
|
|
233
|
+
"name": "symbol",
|
|
234
|
+
"outputs": [
|
|
235
|
+
{
|
|
236
|
+
"internalType": "string",
|
|
237
|
+
"name": "",
|
|
238
|
+
"type": "string"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"stateMutability": "view",
|
|
242
|
+
"type": "function"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"inputs": [],
|
|
246
|
+
"name": "totalSupply",
|
|
247
|
+
"outputs": [
|
|
248
|
+
{
|
|
249
|
+
"internalType": "uint256",
|
|
250
|
+
"name": "",
|
|
251
|
+
"type": "uint256"
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
"stateMutability": "view",
|
|
255
|
+
"type": "function"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"inputs": [
|
|
259
|
+
{
|
|
260
|
+
"internalType": "address",
|
|
261
|
+
"name": "to",
|
|
262
|
+
"type": "address"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"internalType": "uint256",
|
|
266
|
+
"name": "amount",
|
|
267
|
+
"type": "uint256"
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"name": "transfer",
|
|
271
|
+
"outputs": [
|
|
272
|
+
{
|
|
273
|
+
"internalType": "bool",
|
|
274
|
+
"name": "",
|
|
275
|
+
"type": "bool"
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"stateMutability": "nonpayable",
|
|
279
|
+
"type": "function"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"inputs": [
|
|
283
|
+
{
|
|
284
|
+
"internalType": "address",
|
|
285
|
+
"name": "from",
|
|
286
|
+
"type": "address"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"internalType": "address",
|
|
290
|
+
"name": "to",
|
|
291
|
+
"type": "address"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"internalType": "uint256",
|
|
295
|
+
"name": "amount",
|
|
296
|
+
"type": "uint256"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
"name": "transferFrom",
|
|
300
|
+
"outputs": [
|
|
301
|
+
{
|
|
302
|
+
"internalType": "bool",
|
|
303
|
+
"name": "",
|
|
304
|
+
"type": "bool"
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"stateMutability": "nonpayable",
|
|
308
|
+
"type": "function"
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"bytecode": "0x60a06040523480156200001157600080fd5b5060405162000f4538038062000f458339810160408190526200003491620001e8565b8251839083906200004d90600390602085019062000075565b5080516200006390600490602084019062000075565b50505060ff1660805250620002a99050565b82805462000083906200026d565b90600052602060002090601f016020900481019282620000a75760008555620000f2565b82601f10620000c257805160ff1916838001178555620000f2565b82800160010185558215620000f2579182015b82811115620000f2578251825591602001919060010190620000d5565b506200010092915062000104565b5090565b5b8082111562000100576000815560010162000105565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200014357600080fd5b81516001600160401b03808211156200016057620001606200011b565b604051601f8301601f19908116603f011681019082821181831017156200018b576200018b6200011b565b81604052838152602092508683858801011115620001a857600080fd5b600091505b83821015620001cc5785820183015181830184015290820190620001ad565b83821115620001de5760008385830101525b9695505050505050565b600080600060608486031215620001fe57600080fd5b83516001600160401b03808211156200021657600080fd5b620002248783880162000131565b945060208601519150808211156200023b57600080fd5b506200024a8682870162000131565b925050604084015160ff811681146200026257600080fd5b809150509250925092565b600181811c908216806200028257607f821691505b602082108103620002a357634e487b7160e01b600052602260045260246000fd5b50919050565b608051610c80620002c560003960006101460152610c806000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c80635791589711610081578063a457c2d71161005b578063a457c2d7146101d6578063a9059cbb146101e9578063dd62ed3e146101fc57600080fd5b8063579158971461018357806370a082311461019857806395d89b41146101ce57600080fd5b806323b872dd116100b257806323b872dd1461012c578063313ce5671461013f578063395093511461017057600080fd5b806306fdde03146100d9578063095ea7b3146100f757806318160ddd1461011a575b600080fd5b6100e1610242565b6040516100ee9190610a48565b60405180910390f35b61010a610105366004610ae4565b6102d4565b60405190151581526020016100ee565b6002545b6040519081526020016100ee565b61010a61013a366004610b0e565b6102ec565b60405160ff7f00000000000000000000000000000000000000000000000000000000000000001681526020016100ee565b61010a61017e366004610ae4565b610310565b610196610191366004610b4a565b61035c565b005b61011e6101a6366004610b63565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6100e1610369565b61010a6101e4366004610ae4565b610378565b61010a6101f7366004610ae4565b61044e565b61011e61020a366004610b85565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b60606003805461025190610bb8565b80601f016020809104026020016040519081016040528092919081815260200182805461027d90610bb8565b80156102ca5780601f1061029f576101008083540402835291602001916102ca565b820191906000526020600020905b8154815290600101906020018083116102ad57829003601f168201915b5050505050905090565b6000336102e281858561045c565b5060019392505050565b6000336102fa85828561060f565b6103058585856106e6565b506001949350505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906102e29082908690610357908790610c0b565b61045c565b6103663382610955565b50565b60606004805461025190610bb8565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015610441576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610305828686840361045c565b6000336102e28185856106e6565b73ffffffffffffffffffffffffffffffffffffffff83166104fe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610438565b73ffffffffffffffffffffffffffffffffffffffff82166105a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610438565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146106e057818110156106d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610438565b6106e0848484840361045c565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8316610789576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610438565b73ffffffffffffffffffffffffffffffffffffffff821661082c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610438565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156108e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610438565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36106e0565b73ffffffffffffffffffffffffffffffffffffffff82166109d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610438565b80600260008282546109e49190610c0b565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060208083528351808285015260005b81811015610a7557858101830151858201604001528201610a59565b81811115610a87576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610adf57600080fd5b919050565b60008060408385031215610af757600080fd5b610b0083610abb565b946020939093013593505050565b600080600060608486031215610b2357600080fd5b610b2c84610abb565b9250610b3a60208501610abb565b9150604084013590509250925092565b600060208284031215610b5c57600080fd5b5035919050565b600060208284031215610b7557600080fd5b610b7e82610abb565b9392505050565b60008060408385031215610b9857600080fd5b610ba183610abb565b9150610baf60208401610abb565b90509250929050565b600181811c90821680610bcc57607f821691505b602082108103610c05577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60008219821115610c45577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50019056fea26469706673582212209d4dbf50a33e22dd44012d38496fb2e02548961e1e8b3ef04a606cb97aaf2f3164736f6c634300080d0033",
|
|
312
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100d45760003560e01c80635791589711610081578063a457c2d71161005b578063a457c2d7146101d6578063a9059cbb146101e9578063dd62ed3e146101fc57600080fd5b8063579158971461018357806370a082311461019857806395d89b41146101ce57600080fd5b806323b872dd116100b257806323b872dd1461012c578063313ce5671461013f578063395093511461017057600080fd5b806306fdde03146100d9578063095ea7b3146100f757806318160ddd1461011a575b600080fd5b6100e1610242565b6040516100ee9190610a48565b60405180910390f35b61010a610105366004610ae4565b6102d4565b60405190151581526020016100ee565b6002545b6040519081526020016100ee565b61010a61013a366004610b0e565b6102ec565b60405160ff7f00000000000000000000000000000000000000000000000000000000000000001681526020016100ee565b61010a61017e366004610ae4565b610310565b610196610191366004610b4a565b61035c565b005b61011e6101a6366004610b63565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6100e1610369565b61010a6101e4366004610ae4565b610378565b61010a6101f7366004610ae4565b61044e565b61011e61020a366004610b85565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b60606003805461025190610bb8565b80601f016020809104026020016040519081016040528092919081815260200182805461027d90610bb8565b80156102ca5780601f1061029f576101008083540402835291602001916102ca565b820191906000526020600020905b8154815290600101906020018083116102ad57829003601f168201915b5050505050905090565b6000336102e281858561045c565b5060019392505050565b6000336102fa85828561060f565b6103058585856106e6565b506001949350505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906102e29082908690610357908790610c0b565b61045c565b6103663382610955565b50565b60606004805461025190610bb8565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015610441576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610305828686840361045c565b6000336102e28185856106e6565b73ffffffffffffffffffffffffffffffffffffffff83166104fe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610438565b73ffffffffffffffffffffffffffffffffffffffff82166105a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610438565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146106e057818110156106d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610438565b6106e0848484840361045c565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8316610789576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610438565b73ffffffffffffffffffffffffffffffffffffffff821661082c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610438565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156108e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610438565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36106e0565b73ffffffffffffffffffffffffffffffffffffffff82166109d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610438565b80600260008282546109e49190610c0b565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600060208083528351808285015260005b81811015610a7557858101830151858201604001528201610a59565b81811115610a87576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610adf57600080fd5b919050565b60008060408385031215610af757600080fd5b610b0083610abb565b946020939093013593505050565b600080600060608486031215610b2357600080fd5b610b2c84610abb565b9250610b3a60208501610abb565b9150604084013590509250925092565b600060208284031215610b5c57600080fd5b5035919050565b600060208284031215610b7557600080fd5b610b7e82610abb565b9392505050565b60008060408385031215610b9857600080fd5b610ba183610abb565b9150610baf60208401610abb565b90509250929050565b600181811c90821680610bcc57607f821691505b602082108103610c05577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60008219821115610c45577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50019056fea26469706673582212209d4dbf50a33e22dd44012d38496fb2e02548961e1e8b3ef04a606cb97aaf2f3164736f6c634300080d0033",
|
|
313
|
+
"linkReferences": {},
|
|
314
|
+
"deployedLinkReferences": {}
|
|
315
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// SPDX-License-Identifier: BSD-3-Clause
|
|
2
|
+
pragma solidity 0.8.13;
|
|
3
|
+
|
|
4
|
+
import { IIncomeDestination } from "./IIncomeDestination.sol";
|
|
5
|
+
|
|
6
|
+
interface IPrime is IIncomeDestination {
|
|
7
|
+
function accrueInterest(address vToken) external;
|
|
8
|
+
|
|
9
|
+
function vTokenForAsset(address asset) external view returns (address);
|
|
10
|
+
|
|
11
|
+
function allMarkets() external view returns (address[] memory);
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// SPDX-License-Identifier: BSD-3-Clause
|
|
2
|
+
pragma solidity 0.8.13;
|
|
3
|
+
|
|
4
|
+
interface IProtocolShareReserve {
|
|
5
|
+
/// @notice it represents the type of vToken income
|
|
6
|
+
enum IncomeType {
|
|
7
|
+
SPREAD,
|
|
8
|
+
LIQUIDATION
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function updateAssetsState(address comptroller, address asset, IncomeType incomeType) external;
|
|
12
|
+
}
|