Skip to content

Latest commit

 

History

History
241 lines (230 loc) · 9.01 KB

StakingRewardsStorage.md

File metadata and controls

241 lines (230 loc) · 9.01 KB

Staking Rewards Storage Contract. (StakingRewardsStorage.sol)

View Source: contracts/governance/StakingRewards/StakingRewardsStorage.sol

↗ Extends: Ownable ↘ Derived Contracts: StakingRewards, StakingRewardsProxy

StakingRewardsStorage contract

Just the storage part of staking rewards contract, no functions, only constant, variables and required structures (mappings). Used by StackingRewardsProxy.

  • What is SOV staking rewards - SIP-0024? The purpose of the SOV staking rewards - SIP-0024 is to reward, "marginal stakers" (ie, stakers by choice, not currently vesting) with liquid SOV at the beginning of each new staking interval.

Contract Members

Constants & Variables

//public members
contract IERC20 public SOV;
contract IStaking public staking;
uint256 public constant TWO_WEEKS;
uint256 public constant BASE_RATE;
uint256 public constant DIVISOR;
uint256 public maxDuration;
uint256 public startTime;
uint256 public stopBlock;
mapping(address => uint256) public withdrawals;
mapping(address => uint256) public claimedBalances;
uint256 public deploymentBlock;
mapping(uint256 => uint256) public checkpointBlockDetails;
uint256 public averageBlockTime;

//private members
bool private _initialized;
bool private _initializing;

Functions

Contracts