All pages
Powered by GitBook
1 of 1

Loading...

PoolRegistryInterface

PoolRegistryInterface

Interface implemented by PoolRegistry.

Solidity API

getAllPools

Get all pools in PoolRegistry


getPoolByComptroller

Get a pool by comptroller address


getVTokenForAsset

Get the address of the VToken contract in the Pool where the underlying token is the provided asset


getPoolsSupportedByAsset

Get the addresss of the Pools supported that include a market for the provided asset


getVenusPoolMetadata

Get the metadata of a Pool by comptroller address


struct VenusPool {
  string name;
  address creator;
  address comptroller;
  uint256 blockPosted;
  uint256 timestampPosted;
}
struct VenusPoolMetaData {
  string category;
  string logoURL;
  string description;
}
function getAllPools() external view returns (struct PoolRegistryInterface.VenusPool[])
function getPoolByComptroller(address comptroller) external view returns (struct PoolRegistryInterface.VenusPool)
function getVTokenForAsset(address comptroller, address asset) external view returns (address)
function getPoolsSupportedByAsset(address asset) external view returns (address[])
function getVenusPoolMetadata(address comptroller) external view returns (struct PoolRegistryInterface.VenusPoolMetaData)