Skip to content

PoolUIHelper

senamakel edited this page Dec 14, 2024 · 4 revisions

Solidity API

PoolUIHelper

maha

contract IERC20 maha

zai

contract IERC20 zai

szai

contract IERC20 szai

usdc

contract IERC20 usdc

PoolInfoResponse

struct 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

constructor(address _maha, address _zai, address _szai, address _usdc) public

getPoolInfo

function getPoolInfo(address _stakingPool, uint256 _mahaPriceE8, address _who) public view returns (struct PoolUIHelper.PoolInfoResponse res)

getPoolInfoMultiple

function getPoolInfoMultiple(address[] _stakingPools, uint256 _mahaPricesE8, address _who) external view returns (struct PoolUIHelper.PoolInfoResponse[] res)

Clone this wiki locally