Skip to content

Latest commit

 

History

History
216 lines (196 loc) · 6.85 KB

StakingPoolInfo.md

File metadata and controls

216 lines (196 loc) · 6.85 KB

StakingPoolInfo.sol

View Source: contracts/pool/Staking/StakingPoolInfo.sol

↗ Extends: StakingPoolReward ↘ Derived Contracts: StakingPools

StakingPoolInfo

Functions

function (IStore s) internal nonpayable StakingPoolReward 

Arguments

Name Type Description
s IStore
Source Code
constructor(IStore s) StakingPoolReward(s) {}

getInfo

Gets the info of a given staking pool by key

function getInfo(bytes32 key, address you) external view
returns(struct IStakingPools.StakingPoolInfoType)

Arguments

Name Type Description
key bytes32 Provide the staking pool key to fetch info for
you address Specify the address to customize the info for
Source Code
function getInfo(bytes32 key, address you) external view override returns (StakingPoolInfoType memory) {
    return s.getInfoInternal(key, you);
  }

Contracts