Skip to main content

StakingDualRewards.sol

Methods

acceptOwnership()

Solidity

function acceptOwnership() external nonpayable

balanceOf(address)

Solidity

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

Parameters

NameTypeDescription
accountaddressundefined

Returns

NameTypeDescription
_0uint256undefined

dualRewardsDistribution()

Solidity

function dualRewardsDistribution() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

earnedA(address)

Solidity

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

Parameters

NameTypeDescription
accountaddressundefined

Returns

NameTypeDescription
_0uint256undefined

earnedB(address)

Solidity

function earnedB(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

lastPauseTime()

Solidity

function lastPauseTime() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

lastTimeRewardApplicable()

Solidity

function lastTimeRewardApplicable() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

lastUpdateTime()

Solidity

function lastUpdateTime() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

nominateNewOwner(address)

Solidity

function nominateNewOwner(address _owner) external nonpayable

Parameters

NameTypeDescription
_owneraddressundefined

nominatedOwner()

Solidity

function nominatedOwner() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

notifyRewardAmount(uint256,uint256,uint256)

Solidity

function notifyRewardAmount(uint256 rewardA, uint256 rewardB, uint256 rewardsDuration) external nonpayable

Parameters

NameTypeDescription
rewardAuint256undefined
rewardBuint256undefined
rewardsDurationuint256undefined

owner()

Solidity

function owner() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

paused()

Solidity

function paused() external view returns (bool)

Returns

NameTypeDescription
_0boolundefined

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

rewardAPerDay()

Solidity

function rewardAPerDay() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

rewardBPerDay()

Solidity

function rewardBPerDay() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

rewardPerTokenA()

Solidity

function rewardPerTokenA() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

rewardPerTokenAStored()

Solidity

function rewardPerTokenAStored() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

rewardPerTokenB()

Solidity

function rewardPerTokenB() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

rewardPerTokenBStored()

Solidity

function rewardPerTokenBStored() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

rewardRateA()

Solidity

function rewardRateA() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

rewardRateB()

Solidity

function rewardRateB() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

rewardsA(address)

Solidity

function rewardsA(address) external view returns (uint256)

Parameters

NameTypeDescription
_0addressundefined

Returns

NameTypeDescription
_0uint256undefined

rewardsB(address)

Solidity

function rewardsB(address) external view returns (uint256)

Parameters

NameTypeDescription
_0addressundefined

Returns

NameTypeDescription
_0uint256undefined

rewardsTokenA()

Solidity

function rewardsTokenA() external view returns (contract IERC20)

Returns

NameTypeDescription
_0contract IERC20undefined

rewardsTokenB()

Solidity

function rewardsTokenB() external view returns (contract IERC20)

Returns

NameTypeDescription
_0contract IERC20undefined

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

NameTypeDescription
_pausedboolundefined

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

toggleWithdrawBeforeEnd()

Solidity

function toggleWithdrawBeforeEnd() external nonpayable

totalSupply()

Solidity

function totalSupply() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

userRewardPerTokenAPaid(address)

Solidity

function userRewardPerTokenAPaid(address) external view returns (uint256)

Parameters

NameTypeDescription
_0addressundefined

Returns

NameTypeDescription
_0uint256undefined

userRewardPerTokenBPaid(address)

Solidity

function userRewardPerTokenBPaid(address) external view returns (uint256)

Parameters

NameTypeDescription
_0addressundefined

Returns

NameTypeDescription
_0uint256undefined

withdraw(uint256)

Solidity

function withdraw(uint256 amount) external nonpayable

Parameters

NameTypeDescription
amountuint256undefined

Events

OwnerChanged

Solidity

event OwnerChanged(address oldOwner, address newOwner)

Parameters

NameTypeDescription
oldOwneraddressundefined
newOwneraddressundefined

OwnerNominated

Solidity

event OwnerNominated(address newOwner)

Parameters

NameTypeDescription
newOwneraddressundefined

PauseChanged

Solidity

event PauseChanged(bool isPaused)

Parameters

NameTypeDescription
isPausedboolundefined

Recovered

Solidity

event Recovered(address token, uint256 amount)

Parameters

NameTypeDescription
tokenaddressundefined
amountuint256undefined

RewardAdded

Solidity

event RewardAdded(uint256 rewardA, uint256 rewardB, uint256 periodFinish)

Parameters

NameTypeDescription
rewardAuint256undefined
rewardBuint256undefined
periodFinishuint256undefined

RewardPaid

Solidity

event RewardPaid(address indexed user, address rewardToken, uint256 reward)

Parameters

NameTypeDescription
user indexedaddressundefined
rewardTokenaddressundefined
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