Skip to main content

StakingSingleRewards.sol

Methods

balanceOf(address)

Solidity

function balanceOf(address account) external view returns (uint256)

Parameters

NameTypeDescription
accountaddressundefined

Returns

NameTypeDescription
_0uint256undefined

earned(address)

Solidity

function earned(address account) external view returns (uint256)

Parameters

NameTypeDescription
accountaddressundefined

Returns

NameTypeDescription
_0uint256undefined

exit()

Solidity

function exit() external nonpayable

getReward()

Solidity

function getReward() external nonpayable

isLocked()

Solidity

function isLocked() external view returns (bool)

Returns

NameTypeDescription
_0boolundefined

isPaused()

Solidity

function isPaused() external view returns (bool)

Returns

NameTypeDescription
_0boolundefined

lastTimeRewardApplicable()

Solidity

function lastTimeRewardApplicable() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

lastUpdateTime()

Solidity

function lastUpdateTime() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

manager()

Solidity

function manager() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

notifyRewardAmount(uint256,uint256)

Solidity

function notifyRewardAmount(uint256 reward, uint256 rewardsDuration) external nonpayable

Parameters

NameTypeDescription
rewarduint256undefined
rewardsDurationuint256undefined

periodFinish()

Solidity

function periodFinish() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

recoverERC20(address,uint256)

Solidity

function recoverERC20(address tokenAddress, uint256 tokenAmount) external nonpayable

Parameters

NameTypeDescription
tokenAddressaddressundefined
tokenAmountuint256undefined

rewardPerDay()

Solidity

function rewardPerDay() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

rewardPerToken()

Solidity

function rewardPerToken() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

rewardPerTokenStored()

Solidity

function rewardPerTokenStored() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

rewardRate()

Solidity

function rewardRate() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

rewards(address)

Solidity

function rewards(address) external view returns (uint256)

Parameters

NameTypeDescription
_0addressundefined

Returns

NameTypeDescription
_0uint256undefined

rewardsDistribution()

Solidity

function rewardsDistribution() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

rewardsToken()

Solidity

function rewardsToken() external view returns (contract IERC20)

Returns

NameTypeDescription
_0contract IERC20undefined

stake(uint256)

Solidity

function stake(uint256 amount) external nonpayable

Parameters

NameTypeDescription
amountuint256undefined

stakingToken()

Solidity

function stakingToken() external view returns (contract IERC20)

Returns

NameTypeDescription
_0contract IERC20undefined

togglePause()

Solidity

function togglePause() external nonpayable

toggleWithdrawBeforeEnd()

Solidity

function toggleWithdrawBeforeEnd() external nonpayable

totalSupply()

Solidity

function totalSupply() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

userRewardPerTokenPaid(address)

Solidity

function userRewardPerTokenPaid(address) external view returns (uint256)

Parameters

NameTypeDescription
_0addressundefined

Returns

NameTypeDescription
_0uint256undefined

withdraw(uint256)

Solidity

function withdraw(uint256 amount) external nonpayable

Parameters

NameTypeDescription
amountuint256undefined

Events

Recovered

Solidity

event Recovered(address token, uint256 amount)

Parameters

NameTypeDescription
tokenaddressundefined
amountuint256undefined

RewardAdded

Solidity

event RewardAdded(uint256 reward, uint256 periodFinish)

Parameters

NameTypeDescription
rewarduint256undefined
periodFinishuint256undefined

RewardPaid

Solidity

event RewardPaid(address indexed user, uint256 reward)

Parameters

NameTypeDescription
user indexedaddressundefined
rewarduint256undefined

Staked

Solidity

event Staked(address indexed user, uint256 amount)

Parameters

NameTypeDescription
user indexedaddressundefined
amountuint256undefined

Withdrawn

Solidity

event Withdrawn(address indexed user, uint256 amount)

Parameters

NameTypeDescription
user indexedaddressundefined
amountuint256undefined