Market Information
Qore
struct MarketInfo {
bool isListed;
uint borrowCap;
uint collateralFactor;
}
function marketInfoOf(address qToken) external view returns (MarketInfo memory);Solidity
Qore qore = Qore(<qoreAddress>);
MarketInfo memory info = qore.marketInfoOf(<qTokenAddress>);Ethers.js
const qore = await ethers.getContractAt(<qoreABI>, <qoreAddress>);
const info = await qore.marketInfoOf(<qTokenAddress>);
const { collateralInUSD, supplyInUSD, borrowInUSD } = info;Last updated
Was this helpful?