StakingDualRewards.sol
Methods
acceptOwnership()
Solidity
function acceptOwnership() external nonpayable
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 |
dualRewardsDistribution()
Solidity
function dualRewardsDistribution() external view returns (address)
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
earnedA(address)
Solidity
function earnedA(address account) external view returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
account | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
earnedB(address)
Solidity
function earnedB(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 |
lastPauseTime()
Solidity
function lastPauseTime() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | 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 |
nominateNewOwner(address)
Solidity
function nominateNewOwner(address _owner) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
_owner | address | undefined |
nominatedOwner()
Solidity
function nominatedOwner() external view returns (address)
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
notifyRewardAmount(uint256,uint256,uint256)
Solidity
function notifyRewardAmount(uint256 rewardA, uint256 rewardB, uint256 rewardsDuration) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
rewardA | uint256 | undefined |
rewardB | uint256 | undefined |
rewardsDuration | uint256 | undefined |
owner()
Solidity
function owner() external view returns (address)
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
paused()
Solidity
function paused() external view returns (bool)
Returns
Name | Type | Description |
---|---|---|
_0 | bool | 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 |
rewardAPerDay()
Solidity
function rewardAPerDay() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
rewardBPerDay()
Solidity
function rewardBPerDay() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
rewardPerTokenA()
Solidity
function rewardPerTokenA() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
rewardPerTokenAStored()
Solidity
function rewardPerTokenAStored() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
rewardPerTokenB()
Solidity
function rewardPerTokenB() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
rewardPerTokenBStored()
Solidity
function rewardPerTokenBStored() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
rewardRateA()
Solidity
function rewardRateA() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
rewardRateB()
Solidity
function rewardRateB() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
rewardsA(address)
Solidity
function rewardsA(address) external view returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
rewardsB(address)
Solidity
function rewardsB(address) external view returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
rewardsTokenA()
Solidity
function rewardsTokenA() external view returns (contract IERC20)
Returns
Name | Type | Description |
---|---|---|
_0 | contract IERC20 | undefined |
rewardsTokenB()
Solidity
function rewardsTokenB() external view returns (contract IERC20)
Returns
Name | Type | Description |
---|---|---|
_0 | contract IERC20 | undefined |
setPaused(bool)
Change the paused state of the contract
Solidity
function setPaused(bool _paused) external nonpayable
Details
Only the contract owner may call this.
Parameters
Name | Type | Description |
---|---|---|
_paused | bool | 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 |
toggleWithdrawBeforeEnd()
Solidity
function toggleWithdrawBeforeEnd() external nonpayable
totalSupply()
Solidity
function totalSupply() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
userRewardPerTokenAPaid(address)
Solidity
function userRewardPerTokenAPaid(address) external view returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
userRewardPerTokenBPaid(address)
Solidity
function userRewardPerTokenBPaid(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
OwnerChanged
Solidity
event OwnerChanged(address oldOwner, address newOwner)
Parameters
Name | Type | Description |
---|---|---|
oldOwner | address | undefined |
newOwner | address | undefined |
OwnerNominated
Solidity
event OwnerNominated(address newOwner)
Parameters
Name | Type | Description |
---|---|---|
newOwner | address | undefined |
PauseChanged
Solidity
event PauseChanged(bool isPaused)
Parameters
Name | Type | Description |
---|---|---|
isPaused | bool | undefined |
Recovered
Solidity
event Recovered(address token, uint256 amount)
Parameters
Name | Type | Description |
---|---|---|
token | address | undefined |
amount | uint256 | undefined |
RewardAdded
Solidity
event RewardAdded(uint256 rewardA, uint256 rewardB, uint256 periodFinish)
Parameters
Name | Type | Description |
---|---|---|
rewardA | uint256 | undefined |
rewardB | uint256 | undefined |
periodFinish | uint256 | undefined |
RewardPaid
Solidity
event RewardPaid(address indexed user, address rewardToken, uint256 reward)
Parameters
Name | Type | Description |
---|---|---|
user indexed | address | undefined |
rewardToken | 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 |