GovStaking


Functions:

Events:

Modifiers:

Graphs:


Function Definitions:

constructor()

constructor(contract IContractRegistry _contractRegistry) public 

getVoiceCredits()

getVoiceCredits(address _address) public  returns (uint256)

todo - check if multiplier is needed for calculating square root of smaller balances

Parameter NameTypeDescription

_address

address

address to get voice credits for

getWithdrawableBalance()

getWithdrawableBalance(address _address) public  returns (uint256)

balanceOf()

balanceOf(address _address) external  returns (uint256)

lastTimeRewardApplicable()

lastTimeRewardApplicable() public  returns (uint256)

rewardPerToken()

rewardPerToken() public  returns (uint256)

earned()

earned(address _account) public  returns (uint256)

getRewardForDuration()

getRewardForDuration() external  returns (uint256)

stake()

stake(uint256 _amount, uint256 _lengthOfTime) external 

increaseLock()

increaseLock(uint256 _lengthOfTime) external 

increaseStake()

increaseStake(uint256 _amount) external 

withdraw()

withdraw(uint256 _amount) public 

getReward()

getReward() public 

exit()

exit() external 

recalculateVoiceCredits()

recalculateVoiceCredits(address _address) public 

setEscrowDuration()

setEscrowDuration(uint256 duration) external 

notifyRewardAmount()

notifyRewardAmount(uint256 _reward) external 

updatePeriodFinish()

updatePeriodFinish(uint256 _timestamp) external 

Events

StakingDeposited

StakingDeposited(address _address, uint256 amount)

StakingWithdrawn

StakingWithdrawn(address _address, uint256 amount)

RewardPaid

RewardPaid(address _address, uint256 reward)

RewardAdded

RewardAdded(uint256 reward)

EscrowDurationUpdated

EscrowDurationUpdated(uint256 _previousDuration, uint256 _newDuration)

Modifiers

updateReward()

updateReward(address _account)

Graphs

Dependency Graph

Inheritance Graph

Last updated