lending_pool_metadata_for_company
Schema: lib_lending
Description
This function is used to retrieve common lending pool metadata for all lending pool contracts tied to a specific company. It returns an easier-to-use subset of the data returned by lib.address_metadata_for_company.
Usage
Signature
lib_lending.lending_pool_metadata_for_company(company text)
Parameters
Name | Type | Description |
---|---|---|
company | text | The name of the company to retrieve lending pool metadata for. |
Results
The function returns a table with the following columns:
Name | Type | Description |
---|---|---|
account | text | The address of the lending pool contract. |
alias | text | An alias (display name) for the lending pool contract. |
symbol | text | The symbol for the lending pool token (e.g. the cToken in Compound forks) |
decimals | int | The number of decimals used by the LP token for the lending pool |
underlying_token_address | text | The address of the underlying lent/borrowed token |
underlying_token_symbol | text | The symbol of the underlying lent/borrowed token |
underlying_token_decimals | text | The number of decimals used by the underlying lent/borrowed token |
Examples
Get lending pool metadata for company "ABC Corp"
select * from lib_lending.lending_pool_metadata_for_company('ABC Corp');