Prime lens
Last updated
function calculateAPR(address market, address user) external view returns (struct IPrimeV2.APRInfo aprInfo)struct APRInfo {
uint256 supplyAPR; // supply APR of the user in BPS
uint256 borrowAPR; // borrow APR of the user in BPS
uint256 totalScore; // total score of the market
uint256 userScore; // score of the user
uint256 xvsBalanceForScore; // XVS balance of the user used for score
uint256 capital; // capital of the user
uint256 cappedSupply; // capped supply of the user
uint256 cappedBorrow; // capped borrow of the user
uint256 supplyCapUSD; // supply cap of the user in USD
uint256 borrowCapUSD; // borrow cap of the user in USD
}function estimateAPR(address market, address user, uint256 borrow, uint256 supply, uint256 xvsStaked) external view returns (struct IPrimeV2.APRInfo aprInfo)function incomeDistributionYearly(address vToken) public view returns (uint256 amount)