-
Notifications
You must be signed in to change notification settings - Fork 8
PoolUIHelper
senamakel edited this page Dec 14, 2024
·
4 revisions
contract IERC20 mahacontract IERC20 zaicontract IERC20 szaicontract IERC20 usdcstruct PoolInfoResponse {
uint256 mahaAprE8;
uint256 mahaRewardsPerYearE18;
uint256 mahaTotalSupply;
uint256 mahaUserBalance;
uint256 poolUsdTVLE8;
uint256 szaiTotalSupply;
uint256 szaiUserBalance;
uint256 usdcAprE8;
uint256 usdcRewardsPerYearE6;
uint256 usdcTotalSupply;
uint256 usdcUserBalance;
uint256 userShareE18;
uint256 withdrawalAmount;
uint256 withdrawalTimestamp;
uint256 zaiTotalSupply;
uint256 zaiUserBalance;
uint256 poolTotalSupply;
uint256 lpTotalSupply;
uint256 lpPriceE8;
uint256 userUsdBalanceStaked;
}constructor(address _maha, address _zai, address _szai, address _usdc) publicfunction getPoolInfo(address _stakingPool, uint256 _mahaPriceE8, address _who) public view returns (struct PoolUIHelper.PoolInfoResponse res)function getPoolInfoMultiple(address[] _stakingPools, uint256 _mahaPricesE8, address _who) external view returns (struct PoolUIHelper.PoolInfoResponse[] res)