PoolRegistryInterface
PoolRegistryInterface
Interface implemented by PoolRegistry.
Solidity API
struct EnclabsPool {
string name;
address creator;
address comptroller;
uint256 blockPosted;
uint256 timestampPosted;
}struct EnclabsPoolMetaData {
string category;
string logoURL;
string description;
}getAllPools
Get all pools in PoolRegistry
function getAllPools() external view returns (struct PoolRegistryInterface.EnclabsPool[])getPoolByComptroller
Get a pool by comptroller address
function getPoolByComptroller(address comptroller) external view returns (struct PoolRegistryInterface.EnclabsPool)getVTokenForAsset
Get the address of the VToken contract in the Pool where the underlying token is the provided asset
function getVTokenForAsset(address comptroller, address asset) external view returns (address)getPoolsSupportedByAsset
Get the addresss of the Pools supported that include a market for the provided asset
function getPoolsSupportedByAsset(address asset) external view returns (address[])getEnclabsPoolMetadata
Get the metadata of a Pool by comptroller address
function getEnclabsPoolMetadata(address comptroller) external view returns (struct PoolRegistryInterface.EnclabsPoolMetaData)
Last updated