Get Account Liquidity
Qore
function accountLiquidityOf(address account) external view returns (uint collateralInUSD, uint supplyInUSD, uint borrowInUSD);Solidity
Qore qore = Qore(<qoreAddress>);
(uint collateralInUSD, uint supplyInUSD, uint borrowInUSD) = qore.accountLiquidityOf(<accountAddress>);Ethers.js
const qore = await ethers.getContractAt(<qoreABI>, <qoreAddress>);
const { collateralInUSD, supplyInUSD, borrowInUSD } = await qore.accountLiquidityOf(<accountAddress>);Last updated
Was this helpful?