Skip to content

Commit 94f3159

Browse files
defcon022coreyar
authored andcommitted
Updated pool registry doc.
1 parent 6969f6a commit 94f3159

File tree

1 file changed

+11
-77
lines changed

1 file changed

+11
-77
lines changed

isolated-lending/pool-registry.md

Lines changed: 11 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -190,53 +190,22 @@ To get the details of all the registered pools in the directory.
190190
| [0] | array of VenusPool | Arrays of all Venus pools' data. |
191191

192192

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 |
224193

194+
### getVenusPoolMetadata
225195

226196

227-
### getPoolByComptroller
228197

229198

230199
```solidity
231-
function getPoolByComptroller(address comptroller)
200+
function getVenusPoolMetadata(uint256 poolId)
232201
external
233202
view
234-
returns (VenusPool memory)
203+
returns (VenusPoolMetaData memory)
235204
```
236205

237206

238207

239-
Get the registered pool details by comptroller address.
208+
Get the registered pool Meta data by pool ID.
240209

241210

242211
#### Parameters
@@ -254,23 +223,23 @@ Get the registered pool details by comptroller address.
254223

255224
| Name | Type | Description |
256225
| ---- | ---- | ----------- |
257-
| [0] | VenusPool | Venus pool data |
226+
| [0] | VenusPoolMetaData | Meta data of the Venus pool |
258227

259228

260-
### getPoolIDByComptroller
261229

230+
### getBookmarks
262231

263232

264233
```solidity
265-
function getPoolIDByComptroller(address comptroller)
234+
function getBookmarks(address account)
266235
external
267236
view
268-
returns (uint256)
237+
returns (address[] memory)
269238
```
270239

271240

272241

273-
Get the registered pool ID by comptroller address.
242+
Get the book marked pools by the account.
274243

275244

276245
#### Parameters
@@ -279,7 +248,7 @@ Get the registered pool ID by comptroller address.
279248

280249
| Name | Type | Description |
281250
| ---- | ---- | ----------- |
282-
| poolId | uint256 | Pool id of the pool. |
251+
| account | address | Account address. |
283252

284253

285254
#### Return Values
@@ -288,50 +257,15 @@ Get the registered pool ID by comptroller address.
288257

289258
| Name | Type | Description |
290259
| ---- | ---- | ----------- |
291-
| [0] | uint256 | pool ID |
292-
260+
| [0] | array | Array of the pools' addresses. |
293261

294262

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 |
328263

329264

330265
### addMarket
331266

332267

333268

334-
335269
```solidity
336270
function addMarket(
337271
AddMarketInput memory input

0 commit comments

Comments
 (0)