@@ -190,53 +190,22 @@ To get the details of all the registered pools in the directory.
190
190
| [ 0] | array of VenusPool | Arrays of all Venus pools' data. |
191
191
192
192
193
- ### getPoolByID
194
-
195
-
196
- ``` solidity
197
- function getPoolByID(uint256 poolId)
198
- external
199
- view
200
- returns (VenusPool memory)
201
- ```
202
-
203
-
204
-
205
- Get the registered pool details by pool id.
206
-
207
-
208
- #### Parameters
209
-
210
-
211
-
212
- | Name | Type | Description |
213
- | ---- | ---- | ----------- |
214
- | poolId | uint256 | Pool id of the pool. |
215
-
216
-
217
- #### Return Values
218
-
219
-
220
-
221
- | Name | Type | Description |
222
- | ---- | ---- | ----------- |
223
- | [ 0] | VenusPool | Venus pool data |
224
193
194
+ ### getVenusPoolMetadata
225
195
226
196
227
- ### getPoolByComptroller
228
197
229
198
230
199
``` solidity
231
- function getPoolByComptroller(address comptroller )
200
+ function getVenusPoolMetadata(uint256 poolId )
232
201
external
233
202
view
234
- returns (VenusPool memory)
203
+ returns (VenusPoolMetaData memory)
235
204
```
236
205
237
206
238
207
239
- Get the registered pool details by comptroller address .
208
+ Get the registered pool Meta data by pool ID .
240
209
241
210
242
211
#### Parameters
@@ -254,23 +223,23 @@ Get the registered pool details by comptroller address.
254
223
255
224
| Name | Type | Description |
256
225
| ---- | ---- | ----------- |
257
- | [ 0] | VenusPool | Venus pool data |
226
+ | [ 0] | VenusPoolMetaData | Meta data of the Venus pool |
258
227
259
228
260
- ### getPoolIDByComptroller
261
229
230
+ ### getBookmarks
262
231
263
232
264
233
``` solidity
265
- function getPoolIDByComptroller (address comptroller )
234
+ function getBookmarks (address account )
266
235
external
267
236
view
268
- returns (uint256 )
237
+ returns (address[] memory )
269
238
```
270
239
271
240
272
241
273
- Get the registered pool ID by comptroller address .
242
+ Get the book marked pools by the account .
274
243
275
244
276
245
#### Parameters
@@ -279,7 +248,7 @@ Get the registered pool ID by comptroller address.
279
248
280
249
| Name | Type | Description |
281
250
| ---- | ---- | ----------- |
282
- | poolId | uint256 | Pool id of the pool . |
251
+ | account | address | Account address . |
283
252
284
253
285
254
#### Return Values
@@ -288,50 +257,15 @@ Get the registered pool ID by comptroller address.
288
257
289
258
| Name | Type | Description |
290
259
| ---- | ---- | ----------- |
291
- | [ 0] | uint256 | pool ID |
292
-
260
+ | [ 0] | array | Array of the pools' addresses. |
293
261
294
262
295
- ### getVenusPoolMetadata
296
-
297
-
298
-
299
-
300
- ``` solidity
301
- function getVenusPoolMetadata(uint256 poolId)
302
- external
303
- view
304
- returns (VenusPoolMetaData memory)
305
- ```
306
-
307
-
308
-
309
- Get the registered pool Meta data by pool ID.
310
-
311
-
312
- #### Parameters
313
-
314
-
315
-
316
- | Name | Type | Description |
317
- | ---- | ---- | ----------- |
318
- | comptroller | address | comptroller address of the pool. |
319
-
320
-
321
- #### Return Values
322
-
323
-
324
-
325
- | Name | Type | Description |
326
- | ---- | ---- | ----------- |
327
- | [ 0] | VenusPoolMetaData | Meta data of the Venus pool |
328
263
329
264
330
265
### addMarket
331
266
332
267
333
268
334
-
335
269
``` solidity
336
270
function addMarket(
337
271
AddMarketInput memory input
0 commit comments