PremiaStakingStorage

Git Source

State Variables

STORAGE_SLOT

bytes32 internal constant STORAGE_SLOT = keccak256("premia.contracts.staking.PremiaStaking");

Functions

layout

function layout() internal pure returns (Layout storage l);

Structs

Withdrawal

struct Withdrawal {
    uint256 amount;
    uint256 startDate;
}

UserInfo

struct UserInfo {
    uint256 reward;
    uint256 rewardDebt;
    uint256 unstakeRewardDebt;
    uint64 stakePeriod;
    uint64 lockedUntil;
}

Layout

struct Layout {
    uint256 pendingWithdrawal;
    uint256 _deprecated_withdrawalDelay;
    mapping(address => Withdrawal) withdrawals;
    uint256 availableRewards;
    uint256 lastRewardUpdate;
    uint256 totalPower;
    mapping(address => UserInfo) userInfo;
    uint256 accRewardPerShare;
    uint256 accUnstakeRewardPerShare;
    uint256 availableUnstakeRewards;
}