Skip to main content

DualStakingRewardsFactory.sol

Methods

acceptOwnership()

Solidity

function acceptOwnership() external nonpayable

deploy(address,address,address,address,uint256,uint256,uint256,bool)

// permissioned functions

Solidity

function deploy(address _owner, address stakingToken, address rewardsTokenA, address rewardsTokenB, uint256 rewardAmountA, uint256 rewardAmountB, uint256 rewardsDuration, bool isLocked) external nonpayable

Parameters

NameTypeDescription
_owneraddressundefined
stakingTokenaddressundefined
rewardsTokenAaddressundefined
rewardsTokenBaddressundefined
rewardAmountAuint256undefined
rewardAmountBuint256undefined
rewardsDurationuint256undefined
isLockedboolundefined

nominateNewOwner(address)

Solidity

function nominateNewOwner(address _owner) external nonpayable

Parameters

NameTypeDescription
_owneraddressundefined

nominatedOwner()

Solidity

function nominatedOwner() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

notifyRewardAmount(address)

Solidity

function notifyRewardAmount(address stakingToken) external nonpayable

Parameters

NameTypeDescription
stakingTokenaddressundefined

notifyRewardAmounts()

// permissionless functions

Solidity

function notifyRewardAmounts() external nonpayable

owner()

Solidity

function owner() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

pullExtraTokens(address,uint256)

Solidity

function pullExtraTokens(address token, uint256 amount) external nonpayable

Parameters

NameTypeDescription
tokenaddressundefined
amountuint256undefined

stakingRewardsGenesis()

Solidity

function stakingRewardsGenesis() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

stakingRewardsInfoByStakingToken(address)

Solidity

function stakingRewardsInfoByStakingToken(address) external view returns (address stakingRewards, address rewardsTokenA, address rewardsTokenB, uint256 rewardAmountA, uint256 rewardAmountB, uint256 duration)

Parameters

NameTypeDescription
_0addressundefined

Returns

NameTypeDescription
stakingRewardsaddressundefined
rewardsTokenAaddressundefined
rewardsTokenBaddressundefined
rewardAmountAuint256undefined
rewardAmountBuint256undefined
durationuint256undefined

stakingTokens(uint256)

Solidity

function stakingTokens(uint256) external view returns (address)

Parameters

NameTypeDescription
_0uint256undefined

Returns

NameTypeDescription
_0addressundefined

update(address,uint256,uint256,uint256)

Solidity

function update(address stakingToken, uint256 rewardAmountA, uint256 rewardAmountB, uint256 rewardsDuration) external nonpayable

Parameters

NameTypeDescription
stakingTokenaddressundefined
rewardAmountAuint256undefined
rewardAmountBuint256undefined
rewardsDurationuint256undefined

Events

NewStakingPoolDeployed

Solidity

event NewStakingPoolDeployed(address owner, address stakingPool, address stakingToken, address rewardsTokenA, address rewardsTokenB, uint256 rewardAmountA, uint256 rewardAmountB, uint256 rewardsDuration, bool isLocked)

Parameters

NameTypeDescription
owneraddressundefined
stakingPooladdressundefined
stakingTokenaddressundefined
rewardsTokenAaddressundefined
rewardsTokenBaddressundefined
rewardAmountAuint256undefined
rewardAmountBuint256undefined
rewardsDurationuint256undefined
isLockedboolundefined

NotifyPool

Solidity

event NotifyPool(address stakingPool, address stakingToken, uint256 rewardA, uint256 rewardB, uint256 rewardsDuration)

Parameters

NameTypeDescription
stakingPooladdressundefined
stakingTokenaddressundefined
rewardAuint256undefined
rewardBuint256undefined
rewardsDurationuint256undefined

OwnerChanged

Solidity

event OwnerChanged(address oldOwner, address newOwner)

Parameters

NameTypeDescription
oldOwneraddressundefined
newOwneraddressundefined

OwnerNominated

Solidity

event OwnerNominated(address newOwner)

Parameters

NameTypeDescription
newOwneraddressundefined

UpdatePool

Solidity

event UpdatePool(address stakingPool, address stakingToken, uint256 rewardA, uint256 rewardB, uint256 rewardsDuration)

Parameters

NameTypeDescription
stakingPooladdressundefined
stakingTokenaddressundefined
rewardAuint256undefined
rewardBuint256undefined
rewardsDurationuint256undefined