Query data
Learn how to query data via the protocol
Query Contract Data
Get Pool Overview State
To get the current state of the pool, you can call the function
function getPoolDynamicOverviewState()struct IPoolOverviewStateDynamic {
address poolAddr; // the contract address for the pool
uint256 state; // the current state of the pool e.g. active or paused
uint256 totalAssetsDeposited; // total assets deposited to date
uint256 totalAssetsWithdrawn; // total assets withdrawn to date
uint256 totalAssets; // the current amount of assets in the pool
uint256 totalShares; // the total amount of vault tokens outstanding
uint256 exchangeRate; // the current share to assets exchange rate
uint256 exchangeRateAtSetDay; // the exchange rate on the day it is set
uint256 exchangeRateSetDay; // the day the exchange rate is set
uint256 exchangeRateChangeRate; // the daily rate of change for the exchange rate (only relevant for linear and term methods)
uint256 exchangeRateCompoundingRate; // the daily rate of change for the exchange rate (only relevant for linear, compounding, and term methods)
uint256 exchangeRateAtMaturity; // the exchange rate on the maturity date (term pools only)
uint256 exchangeRateMaturityDay; // the maturity date of the loan (term pools only)
uint256 interestRate; // the current APY in bps being earned by lenders (linear, compounding, term)
uint256 indicativeInterestRate; // the current target APY for the pool
uint256 collateralRate; // the current collateral rate in APY for the pool (dynamic pools only)
//
IPoolWithdrawDynamic[] activeWithdraws;
}Get Pool Configuration
Get Account Overview
Last updated