@venusprotocol/liquidity-hub 0.0.0
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/LICENSE +98 -0
- package/README.md +422 -0
- package/contracts/Hub/Hub.sol +1614 -0
- package/contracts/Hub/HubStorage.sol +106 -0
- package/contracts/Hub/lib/HubAdminLib.sol +292 -0
- package/contracts/YieldGroup/YieldGroup.sol +128 -0
- package/contracts/YieldGroup/YieldGroupFRV.sol +107 -0
- package/contracts/YieldGroup/base/YieldGroupBase.sol +797 -0
- package/contracts/YieldGroup/base/YieldGroupBaseStorage.sol +73 -0
- package/contracts/adapters/AdapterCoreV1.sol +309 -0
- package/contracts/adapters/AdapterFRV.sol +276 -0
- package/contracts/adapters/AdapterFlux.sol +173 -0
- package/contracts/interfaces/IHub.sol +551 -0
- package/contracts/interfaces/IHubRegistry.sol +120 -0
- package/contracts/interfaces/IMigrator.sol +134 -0
- package/contracts/interfaces/IResourceAdapter.sol +154 -0
- package/contracts/interfaces/IYieldGroup.sol +119 -0
- package/contracts/interfaces/IYieldGroupBase.sol +507 -0
- package/contracts/interfaces/IYieldGroupFRV.sol +61 -0
- package/contracts/interfaces/external/IComptroller.sol +57 -0
- package/contracts/interfaces/external/IFRVVault.sol +113 -0
- package/contracts/interfaces/external/IFToken.sol +46 -0
- package/contracts/interfaces/external/IFluidLendingResolver.sol +63 -0
- package/contracts/interfaces/external/IVBep20.sol +39 -0
- package/contracts/interfaces/external/IVToken.sol +125 -0
- package/contracts/interfaces/external/IWBNB.sol +16 -0
- package/contracts/migrator/Migrator.sol +182 -0
- package/contracts/registry/HubRegistry.sol +179 -0
- package/deployments/bscmainnet/AdapterCoreV1.json +336 -0
- package/deployments/bscmainnet/AdapterFRV.json +225 -0
- package/deployments/bscmainnet/AdapterFlux.json +249 -0
- package/deployments/bscmainnet/CoreBeacon.json +110 -0
- package/deployments/bscmainnet/CoreSource_U.json +1083 -0
- package/deployments/bscmainnet/CoreSource_USDC.json +1083 -0
- package/deployments/bscmainnet/CoreSource_USDT.json +1083 -0
- package/deployments/bscmainnet/FRVBeacon.json +110 -0
- package/deployments/bscmainnet/FRVSource_U.json +978 -0
- package/deployments/bscmainnet/FRVSource_USDC.json +978 -0
- package/deployments/bscmainnet/FRVSource_USDT.json +978 -0
- package/deployments/bscmainnet/FluxBeacon.json +110 -0
- package/deployments/bscmainnet/FluxSource_U.json +1083 -0
- package/deployments/bscmainnet/FluxSource_USDC.json +1083 -0
- package/deployments/bscmainnet/FluxSource_USDT.json +1083 -0
- package/deployments/bscmainnet/HubBeacon.json +110 -0
- package/deployments/bscmainnet/HubImpl.json +2216 -0
- package/deployments/bscmainnet/HubRegistry.json +386 -0
- package/deployments/bscmainnet/HubRegistryImpl.json +386 -0
- package/deployments/bscmainnet/Hub_U.json +2216 -0
- package/deployments/bscmainnet/Hub_USDC.json +2216 -0
- package/deployments/bscmainnet/Hub_USDT.json +2216 -0
- package/deployments/bscmainnet/Migrator.json +375 -0
- package/deployments/bscmainnet/YieldGroupCoreImpl.json +1083 -0
- package/deployments/bscmainnet/YieldGroupFRVImpl.json +978 -0
- package/deployments/bscmainnet/YieldGroupFluxImpl.json +1083 -0
- package/deployments/bscmainnet_addresses.json +32 -0
- package/deployments/bsctestnet/AdapterCoreV1.json +336 -0
- package/deployments/bsctestnet/AdapterFRV.json +225 -0
- package/deployments/bsctestnet/AdapterFlux.json +249 -0
- package/deployments/bsctestnet/CoreBeacon.json +110 -0
- package/deployments/bsctestnet/CoreSource_USDT.json +1083 -0
- package/deployments/bsctestnet/FRVBeacon.json +110 -0
- package/deployments/bsctestnet/FRVSource_USDT.json +978 -0
- package/deployments/bsctestnet/FluxBeacon.json +110 -0
- package/deployments/bsctestnet/FluxSource_USDT.json +1083 -0
- package/deployments/bsctestnet/HubBeacon.json +110 -0
- package/deployments/bsctestnet/HubImpl.json +2216 -0
- package/deployments/bsctestnet/HubRegistry.json +386 -0
- package/deployments/bsctestnet/HubRegistryImpl.json +386 -0
- package/deployments/bsctestnet/HubRegistryProxyAdmin.json +157 -0
- package/deployments/bsctestnet/Hub_USDT.json +2216 -0
- package/deployments/bsctestnet/Migrator.json +375 -0
- package/deployments/bsctestnet/YieldGroupCoreImpl.json +1083 -0
- package/deployments/bsctestnet/YieldGroupFRVImpl.json +978 -0
- package/deployments/bsctestnet/YieldGroupFluxImpl.json +1083 -0
- package/deployments/bsctestnet_addresses.json +25 -0
- package/package.json +46 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bscmainnet",
|
|
3
|
+
"chainId": 56,
|
|
4
|
+
"addresses": {
|
|
5
|
+
"AdapterCoreV1": "0x4E514a0C7aB9d140eE204dfA0017574270D92944",
|
|
6
|
+
"AdapterFRV": "0x1FA0365bDd603452CE96BE3c0e12Db5515a35902",
|
|
7
|
+
"AdapterFlux": "0xA81bDf813A428053E764C34Bc679b3E4d0807be3",
|
|
8
|
+
"CoreBeacon": "0x195a0F1BCF73C3Beb609a1271E8E08b8E4c098C6",
|
|
9
|
+
"CoreSource_U": "0x8A680F77A5367FA7cD33a02f51896Cb1d55159c3",
|
|
10
|
+
"CoreSource_USDC": "0x299D9Be7CEfff91c68F13F267d525CFC18e965ef",
|
|
11
|
+
"CoreSource_USDT": "0xC9E6ceD9589363f8dC5695Be2C79AB4dDaECC94B",
|
|
12
|
+
"FRVBeacon": "0x8A5EceDD726246682402430b9B24c19bF61B7f1d",
|
|
13
|
+
"FRVSource_U": "0x30908eddB9E94add7AC9944a0adda66d80B89143",
|
|
14
|
+
"FRVSource_USDC": "0x438388847eE16850Ab4f5b82dc7954c0d043B716",
|
|
15
|
+
"FRVSource_USDT": "0x621eF38cE0C4e7060fF0bF3D609E3D46EC144bE7",
|
|
16
|
+
"FluxBeacon": "0x9bb6a3Ac5955fA8dc236560CA9D51483d1d79f15",
|
|
17
|
+
"FluxSource_U": "0xe31B8851c3fa9B3dD39a04a2ed9493869A410616",
|
|
18
|
+
"FluxSource_USDC": "0xA65bB4b20542268B64CF08871a98D75342AFE927",
|
|
19
|
+
"FluxSource_USDT": "0xe3df38E12E37ED80E1b3ccf2bdf84F9e1527ce14",
|
|
20
|
+
"HubBeacon": "0x0f20e1004962e2DF16c16FC15460Dc6480626321",
|
|
21
|
+
"HubImpl": "0x44BCabAF2e63A7B883EDeA6A721d47b4bC081d02",
|
|
22
|
+
"HubRegistry": "0x6D93Fd479f2d37445CFBe132412e316a0364acc2",
|
|
23
|
+
"HubRegistryImpl": "0x4426a09d5425ca2103896A88C1e9a1F5779a4d3a",
|
|
24
|
+
"Hub_U": "0x0e5AA174d4F31b757a237eb1999DE151596788B0",
|
|
25
|
+
"Hub_USDC": "0x9D2D9592cF8DFbf59107fAab703d08494BE14617",
|
|
26
|
+
"Hub_USDT": "0x18AfDACF30F8671021dec4b78297E39d2FE87226",
|
|
27
|
+
"Migrator": "0xb0D77DC86d4E6a8282eECF3d4d456B3b94F2a7aD",
|
|
28
|
+
"YieldGroupCoreImpl": "0x3BccED778CAaf97AE8ff8Bedc16d2165aA15771b",
|
|
29
|
+
"YieldGroupFRVImpl": "0x72D115b1Be69a2065fED0B0574F95B3E46BD4502",
|
|
30
|
+
"YieldGroupFluxImpl": "0xFD49a719E0bF7f588F77bBEdf10dd8E843774499"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "0xDf669957448eCB23309eEFda4de230c62d22AE33",
|
|
3
|
+
"block": 119459720,
|
|
4
|
+
"chainId": 97,
|
|
5
|
+
"contract": "AdapterCoreV1",
|
|
6
|
+
"abi": [
|
|
7
|
+
{
|
|
8
|
+
"type": "constructor",
|
|
9
|
+
"inputs": [],
|
|
10
|
+
"stateMutability": "nonpayable"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "function",
|
|
14
|
+
"name": "EXP_SCALE",
|
|
15
|
+
"inputs": [],
|
|
16
|
+
"outputs": [
|
|
17
|
+
{
|
|
18
|
+
"name": "",
|
|
19
|
+
"type": "uint256",
|
|
20
|
+
"internalType": "uint256"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"stateMutability": "view"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "function",
|
|
27
|
+
"name": "MANTISSA_ONE",
|
|
28
|
+
"inputs": [],
|
|
29
|
+
"outputs": [
|
|
30
|
+
{
|
|
31
|
+
"name": "",
|
|
32
|
+
"type": "uint256",
|
|
33
|
+
"internalType": "uint256"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"stateMutability": "view"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "function",
|
|
40
|
+
"name": "accrue",
|
|
41
|
+
"inputs": [
|
|
42
|
+
{
|
|
43
|
+
"name": "resource",
|
|
44
|
+
"type": "address",
|
|
45
|
+
"internalType": "address"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"outputs": [],
|
|
49
|
+
"stateMutability": "nonpayable"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "function",
|
|
53
|
+
"name": "asset",
|
|
54
|
+
"inputs": [
|
|
55
|
+
{
|
|
56
|
+
"name": "resource",
|
|
57
|
+
"type": "address",
|
|
58
|
+
"internalType": "address"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"outputs": [
|
|
62
|
+
{
|
|
63
|
+
"name": "",
|
|
64
|
+
"type": "address",
|
|
65
|
+
"internalType": "address"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"stateMutability": "view"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "function",
|
|
72
|
+
"name": "deposit",
|
|
73
|
+
"inputs": [
|
|
74
|
+
{
|
|
75
|
+
"name": "resource",
|
|
76
|
+
"type": "address",
|
|
77
|
+
"internalType": "address"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "amount",
|
|
81
|
+
"type": "uint256",
|
|
82
|
+
"internalType": "uint256"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"outputs": [
|
|
86
|
+
{
|
|
87
|
+
"name": "deposited",
|
|
88
|
+
"type": "uint256",
|
|
89
|
+
"internalType": "uint256"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"stateMutability": "nonpayable"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "function",
|
|
96
|
+
"name": "maxDeposit",
|
|
97
|
+
"inputs": [
|
|
98
|
+
{
|
|
99
|
+
"name": "resource",
|
|
100
|
+
"type": "address",
|
|
101
|
+
"internalType": "address"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"outputs": [
|
|
105
|
+
{
|
|
106
|
+
"name": "",
|
|
107
|
+
"type": "uint256",
|
|
108
|
+
"internalType": "uint256"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"stateMutability": "view"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"type": "function",
|
|
115
|
+
"name": "maxWithdraw",
|
|
116
|
+
"inputs": [
|
|
117
|
+
{
|
|
118
|
+
"name": "resource",
|
|
119
|
+
"type": "address",
|
|
120
|
+
"internalType": "address"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "holder",
|
|
124
|
+
"type": "address",
|
|
125
|
+
"internalType": "address"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"outputs": [
|
|
129
|
+
{
|
|
130
|
+
"name": "",
|
|
131
|
+
"type": "uint256",
|
|
132
|
+
"internalType": "uint256"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"stateMutability": "view"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "function",
|
|
139
|
+
"name": "receiptBalance",
|
|
140
|
+
"inputs": [
|
|
141
|
+
{
|
|
142
|
+
"name": "resource",
|
|
143
|
+
"type": "address",
|
|
144
|
+
"internalType": "address"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "holder",
|
|
148
|
+
"type": "address",
|
|
149
|
+
"internalType": "address"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"outputs": [
|
|
153
|
+
{
|
|
154
|
+
"name": "",
|
|
155
|
+
"type": "uint256",
|
|
156
|
+
"internalType": "uint256"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"stateMutability": "view"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"type": "function",
|
|
163
|
+
"name": "spotAPYBps",
|
|
164
|
+
"inputs": [
|
|
165
|
+
{
|
|
166
|
+
"name": "resource",
|
|
167
|
+
"type": "address",
|
|
168
|
+
"internalType": "address"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "blocksPerYear",
|
|
172
|
+
"type": "uint256",
|
|
173
|
+
"internalType": "uint256"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"outputs": [
|
|
177
|
+
{
|
|
178
|
+
"name": "",
|
|
179
|
+
"type": "uint64",
|
|
180
|
+
"internalType": "uint64"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"stateMutability": "view"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"type": "function",
|
|
187
|
+
"name": "totalAssets",
|
|
188
|
+
"inputs": [
|
|
189
|
+
{
|
|
190
|
+
"name": "resource",
|
|
191
|
+
"type": "address",
|
|
192
|
+
"internalType": "address"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "holder",
|
|
196
|
+
"type": "address",
|
|
197
|
+
"internalType": "address"
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"outputs": [
|
|
201
|
+
{
|
|
202
|
+
"name": "",
|
|
203
|
+
"type": "uint256",
|
|
204
|
+
"internalType": "uint256"
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"stateMutability": "view"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"type": "function",
|
|
211
|
+
"name": "validateRegistration",
|
|
212
|
+
"inputs": [
|
|
213
|
+
{
|
|
214
|
+
"name": "resource",
|
|
215
|
+
"type": "address",
|
|
216
|
+
"internalType": "address"
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"outputs": [],
|
|
220
|
+
"stateMutability": "view"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"type": "function",
|
|
224
|
+
"name": "withdraw",
|
|
225
|
+
"inputs": [
|
|
226
|
+
{
|
|
227
|
+
"name": "resource",
|
|
228
|
+
"type": "address",
|
|
229
|
+
"internalType": "address"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "amount",
|
|
233
|
+
"type": "uint256",
|
|
234
|
+
"internalType": "uint256"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "to",
|
|
238
|
+
"type": "address",
|
|
239
|
+
"internalType": "address"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"outputs": [],
|
|
243
|
+
"stateMutability": "nonpayable"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"type": "error",
|
|
247
|
+
"name": "NotDelegateCall",
|
|
248
|
+
"inputs": []
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"type": "error",
|
|
252
|
+
"name": "TreasuryFeeUnsupported",
|
|
253
|
+
"inputs": [
|
|
254
|
+
{
|
|
255
|
+
"name": "resource",
|
|
256
|
+
"type": "address",
|
|
257
|
+
"internalType": "address"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "treasuryPercent",
|
|
261
|
+
"type": "uint256",
|
|
262
|
+
"internalType": "uint256"
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"type": "error",
|
|
268
|
+
"name": "VTokenAccrueFailed",
|
|
269
|
+
"inputs": [
|
|
270
|
+
{
|
|
271
|
+
"name": "resource",
|
|
272
|
+
"type": "address",
|
|
273
|
+
"internalType": "address"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "errorCode",
|
|
277
|
+
"type": "uint256",
|
|
278
|
+
"internalType": "uint256"
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"type": "error",
|
|
284
|
+
"name": "VTokenMintFailed",
|
|
285
|
+
"inputs": [
|
|
286
|
+
{
|
|
287
|
+
"name": "resource",
|
|
288
|
+
"type": "address",
|
|
289
|
+
"internalType": "address"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "errorCode",
|
|
293
|
+
"type": "uint256",
|
|
294
|
+
"internalType": "uint256"
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"type": "error",
|
|
300
|
+
"name": "VTokenRedeemFailed",
|
|
301
|
+
"inputs": [
|
|
302
|
+
{
|
|
303
|
+
"name": "resource",
|
|
304
|
+
"type": "address",
|
|
305
|
+
"internalType": "address"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "errorCode",
|
|
309
|
+
"type": "uint256",
|
|
310
|
+
"internalType": "uint256"
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"type": "error",
|
|
316
|
+
"name": "VTokenUnderfilled",
|
|
317
|
+
"inputs": [
|
|
318
|
+
{
|
|
319
|
+
"name": "resource",
|
|
320
|
+
"type": "address",
|
|
321
|
+
"internalType": "address"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "requested",
|
|
325
|
+
"type": "uint256",
|
|
326
|
+
"internalType": "uint256"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "actual",
|
|
330
|
+
"type": "uint256",
|
|
331
|
+
"internalType": "uint256"
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "0xeF0E85ab9A23F50EB4595CF7e2F5461feF7E7fc5",
|
|
3
|
+
"block": 119459746,
|
|
4
|
+
"chainId": 97,
|
|
5
|
+
"contract": "AdapterFRV",
|
|
6
|
+
"abi": [
|
|
7
|
+
{
|
|
8
|
+
"type": "constructor",
|
|
9
|
+
"inputs": [],
|
|
10
|
+
"stateMutability": "nonpayable"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "function",
|
|
14
|
+
"name": "accrue",
|
|
15
|
+
"inputs": [
|
|
16
|
+
{
|
|
17
|
+
"name": "resource",
|
|
18
|
+
"type": "address",
|
|
19
|
+
"internalType": "address"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"outputs": [],
|
|
23
|
+
"stateMutability": "nonpayable"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "function",
|
|
27
|
+
"name": "asset",
|
|
28
|
+
"inputs": [
|
|
29
|
+
{
|
|
30
|
+
"name": "resource",
|
|
31
|
+
"type": "address",
|
|
32
|
+
"internalType": "address"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"outputs": [
|
|
36
|
+
{
|
|
37
|
+
"name": "",
|
|
38
|
+
"type": "address",
|
|
39
|
+
"internalType": "address"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"stateMutability": "view"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "function",
|
|
46
|
+
"name": "deposit",
|
|
47
|
+
"inputs": [
|
|
48
|
+
{
|
|
49
|
+
"name": "resource",
|
|
50
|
+
"type": "address",
|
|
51
|
+
"internalType": "address"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "amount",
|
|
55
|
+
"type": "uint256",
|
|
56
|
+
"internalType": "uint256"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"outputs": [
|
|
60
|
+
{
|
|
61
|
+
"name": "deposited",
|
|
62
|
+
"type": "uint256",
|
|
63
|
+
"internalType": "uint256"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"stateMutability": "nonpayable"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "function",
|
|
70
|
+
"name": "maxDeposit",
|
|
71
|
+
"inputs": [
|
|
72
|
+
{
|
|
73
|
+
"name": "resource",
|
|
74
|
+
"type": "address",
|
|
75
|
+
"internalType": "address"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"outputs": [
|
|
79
|
+
{
|
|
80
|
+
"name": "",
|
|
81
|
+
"type": "uint256",
|
|
82
|
+
"internalType": "uint256"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"stateMutability": "view"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "function",
|
|
89
|
+
"name": "maxWithdraw",
|
|
90
|
+
"inputs": [
|
|
91
|
+
{
|
|
92
|
+
"name": "resource",
|
|
93
|
+
"type": "address",
|
|
94
|
+
"internalType": "address"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "holder",
|
|
98
|
+
"type": "address",
|
|
99
|
+
"internalType": "address"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"outputs": [
|
|
103
|
+
{
|
|
104
|
+
"name": "",
|
|
105
|
+
"type": "uint256",
|
|
106
|
+
"internalType": "uint256"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"stateMutability": "view"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "function",
|
|
113
|
+
"name": "receiptBalance",
|
|
114
|
+
"inputs": [
|
|
115
|
+
{
|
|
116
|
+
"name": "resource",
|
|
117
|
+
"type": "address",
|
|
118
|
+
"internalType": "address"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "holder",
|
|
122
|
+
"type": "address",
|
|
123
|
+
"internalType": "address"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"outputs": [
|
|
127
|
+
{
|
|
128
|
+
"name": "",
|
|
129
|
+
"type": "uint256",
|
|
130
|
+
"internalType": "uint256"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"stateMutability": "view"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"type": "function",
|
|
137
|
+
"name": "spotAPYBps",
|
|
138
|
+
"inputs": [
|
|
139
|
+
{
|
|
140
|
+
"name": "resource",
|
|
141
|
+
"type": "address",
|
|
142
|
+
"internalType": "address"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "",
|
|
146
|
+
"type": "uint256",
|
|
147
|
+
"internalType": "uint256"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"outputs": [
|
|
151
|
+
{
|
|
152
|
+
"name": "",
|
|
153
|
+
"type": "uint64",
|
|
154
|
+
"internalType": "uint64"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"stateMutability": "view"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"type": "function",
|
|
161
|
+
"name": "totalAssets",
|
|
162
|
+
"inputs": [
|
|
163
|
+
{
|
|
164
|
+
"name": "resource",
|
|
165
|
+
"type": "address",
|
|
166
|
+
"internalType": "address"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "holder",
|
|
170
|
+
"type": "address",
|
|
171
|
+
"internalType": "address"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"outputs": [
|
|
175
|
+
{
|
|
176
|
+
"name": "",
|
|
177
|
+
"type": "uint256",
|
|
178
|
+
"internalType": "uint256"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"stateMutability": "view"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"type": "function",
|
|
185
|
+
"name": "validateRegistration",
|
|
186
|
+
"inputs": [
|
|
187
|
+
{
|
|
188
|
+
"name": "resource",
|
|
189
|
+
"type": "address",
|
|
190
|
+
"internalType": "address"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"outputs": [],
|
|
194
|
+
"stateMutability": "pure"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"type": "function",
|
|
198
|
+
"name": "withdraw",
|
|
199
|
+
"inputs": [
|
|
200
|
+
{
|
|
201
|
+
"name": "resource",
|
|
202
|
+
"type": "address",
|
|
203
|
+
"internalType": "address"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "amount",
|
|
207
|
+
"type": "uint256",
|
|
208
|
+
"internalType": "uint256"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "to",
|
|
212
|
+
"type": "address",
|
|
213
|
+
"internalType": "address"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"outputs": [],
|
|
217
|
+
"stateMutability": "nonpayable"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"type": "error",
|
|
221
|
+
"name": "NotDelegateCall",
|
|
222
|
+
"inputs": []
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
}
|