StakingSingleRewards.sol
Methods
balanceOf(address)
Solidity
function balanceOf(address account) external view returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
account | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
earned(address)
Solidity
function earned(address account) external view returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
account | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
exit()
Solidity
function exit() external nonpayable
getReward()
Solidity
function getReward() external nonpayable
isLocked()
Solidity
function isLocked() external view returns (bool)
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
isPaused()
Solidity
function isPaused() external view returns (bool)
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
lastTimeRewardApplicable()
Solidity
function lastTimeRewardApplicable() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
lastUpdateTime()
Solidity
function lastUpdateTime() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
manager()
Solidity
function manager() external view returns (address)
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
notifyRewardAmount(uint256,uint256)
Solidity
function notifyRewardAmount(uint256 reward, uint256 rewardsDuration) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
reward | uint256 | undefined |
rewardsDuration | uint256 | undefined |
periodFinish()
Solidity
function periodFinish() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
recoverERC20(address,uint256)
Solidity
function recoverERC20(address tokenAddress, uint256 tokenAmount) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
tokenAddress | address | undefined |
tokenAmount | uint256 | undefined |
rewardPerDay()
Solidity
function rewardPerDay() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
rewardPerToken()
Solidity
function rewardPerToken() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
rewardPerTokenStored()
Solidity
function rewardPerTokenStored() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
rewardRate()
Solidity
function rewardRate() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
rewards(address)
Solidity
function rewards(address) external view returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
rewardsDistribution()
Solidity
function rewardsDistribution() external view returns (address)
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
rewardsToken()
Solidity
function rewardsToken() external view returns (contract IERC20)
Returns
Name | Type | Description |
---|---|---|
_0 | contract IERC20 | undefined |
stake(uint256)
Solidity
function stake(uint256 amount) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 | undefined |
stakingToken()
Solidity
function stakingToken() external view returns (contract IERC20)
Returns
Name | Type | Description |
---|---|---|
_0 | contract IERC20 | undefined |
togglePause()
Solidity
function togglePause() external nonpayable
toggleWithdrawBeforeEnd()
Solidity
function toggleWithdrawBeforeEnd() external nonpayable
totalSupply()
Solidity
function totalSupply() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
userRewardPerTokenPaid(address)
Solidity
function userRewardPerTokenPaid(address) external view returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
withdraw(uint256)
Solidity
function withdraw(uint256 amount) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 | undefined |
Events
Recovered
Solidity
event Recovered(address token, uint256 amount)
Parameters
Name | Type | Description |
---|---|---|
token | address | undefined |
amount | uint256 | undefined |
RewardAdded
Solidity
event RewardAdded(uint256 reward, uint256 periodFinish)
Parameters
Name | Type | Description |
---|---|---|
reward | uint256 | undefined |
periodFinish | uint256 | undefined |
RewardPaid
Solidity
event RewardPaid(address indexed user, uint256 reward)
Parameters
Name | Type | Description |
---|---|---|
user indexed | address | undefined |
reward | uint256 | undefined |
Staked
Solidity
event Staked(address indexed user, uint256 amount)
Parameters
Name | Type | Description |
---|---|---|
user indexed | address | undefined |
amount | uint256 | undefined |
Withdrawn
Solidity
event Withdrawn(address indexed user, uint256 amount)
Parameters
Name | Type | Description |
---|---|---|
user indexed | address | undefined |
amount | uint256 | undefined |