Skip to content

Latest commit

 

History

History
254 lines (240 loc) · 8.92 KB

LiquidityMiningStorage.md

File metadata and controls

254 lines (240 loc) · 8.92 KB

LiquidityMiningStorage.sol

View Source: contracts/farm/LiquidityMiningStorage.sol

↗ Extends: AdminRole ↘ Derived Contracts: LiquidityMining, LiquidityMiningProxy

LiquidityMiningStorage contract

Structs

UserInfo

struct UserInfo {
 uint256 amount,
 uint256 rewardDebt,
 uint256 accumulatedReward
}

PoolInfo

struct PoolInfo {
 contract IERC20 poolToken,
 uint96 allocationPoint,
 uint256 lastRewardBlock,
 uint256 accumulatedRewardPerShare
}

Contract Members

Constants & Variables

//public members
uint256 public rewardTokensPerBlock;
uint256 public startBlock;
uint256 public bonusEndBlock;
uint256 public endBlock;
address public wrapper;
struct LiquidityMiningStorage.PoolInfo[] public poolInfoList;
uint256 public totalAllocationPoint;
mapping(uint256 => mapping(address => struct LiquidityMiningStorage.UserInfo)) public userInfoMap;
uint256 public totalUsersBalance;
contract IERC20 public SOV;
contract ILockedSOV public lockedSOV;
uint256 public unlockedImmediatelyPercent;
mapping(address => uint256) public poolTokensUnlockedImmediatelyPercent;

//internal members
mapping(address => uint256) internal poolIdList;

Functions

Contracts