Query data
Learn how to query data via the protocol
Query Contract Data
As a Lender, all of the important information regarding the vault can be called back from the contract.
Get Pool Overview State
To get the current state of the pool, you can call the function
function getPoolDynamicOverviewState()and it will return the Dynamic Pool Overview data in the following structure
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
To get the current parameters and configuration of the pool, you can call...
function getPoolDynamicConfigurationState()
external
view
returns (IPoolConfigurationStateDynamic memory);and it will return the following data
Get Account Overview
To get data on a specific wallet address ("account"), you can call the following function...
and it will return the following data
Last updated