Skip to main content

SingleStakingRewardsFactory.sol

Methods

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

// permissioned functions

Solidity

function deploy(address stakingToken, address rewardsToken, uint256 rewardAmount, uint256 rewardsDuration, bool isLocked, address manager) external nonpayable

Parameters

NameTypeDescription
stakingTokenaddressundefined
rewardsTokenaddressundefined
rewardAmountuint256undefined
rewardsDurationuint256undefined
isLockedboolundefined
manageraddressundefined

isOwner()

Solidity

function isOwner() external view returns (bool)
Details

Returns true if the caller is the current owner.

Returns

NameTypeDescription
_0boolundefined

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)
Details

Returns the address of the current owner.

Returns

NameTypeDescription
_0addressundefined

pullExtraTokens(address,uint256)

Solidity

function pullExtraTokens(address token, uint256 amount) external nonpayable

Parameters

NameTypeDescription
tokenaddressundefined
amountuint256undefined

renounceOwnership()

Solidity

function renounceOwnership() external nonpayable
Details

Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner. * > Note: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.

stakingRewardsGenesis()

Solidity

function stakingRewardsGenesis() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

stakingRewardsInfoByStakingToken(address)

Solidity

function stakingRewardsInfoByStakingToken(address) external view returns (address stakingRewards, address rewardsToken, uint256 rewardAmount, uint256 duration)

Parameters

NameTypeDescription
_0addressundefined

Returns

NameTypeDescription
stakingRewardsaddressundefined
rewardsTokenaddressundefined
rewardAmountuint256undefined
durationuint256undefined

stakingTokens(uint256)

Solidity

function stakingTokens(uint256) external view returns (address)

Parameters

NameTypeDescription
_0uint256undefined

Returns

NameTypeDescription
_0addressundefined

transferOwnership(address)

Solidity

function transferOwnership(address newOwner) external nonpayable
Details

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters

NameTypeDescription
newOwneraddressundefined

update(address,uint256,uint256)

Solidity

function update(address stakingToken, uint256 rewardAmount, uint256 rewardsDuration) external nonpayable

Parameters

NameTypeDescription
stakingTokenaddressundefined
rewardAmountuint256undefined
rewardsDurationuint256undefined

Events

NewStakingPoolDeployed

Solidity

event NewStakingPoolDeployed(address owner, address stakingPool, address stakingToken, address rewardsToken, uint256 rewardAmount, uint256 rewardsDuration, bool isLocked)

Parameters

NameTypeDescription
owneraddressundefined
stakingPooladdressundefined
stakingTokenaddressundefined
rewardsTokenaddressundefined
rewardAmountuint256undefined
rewardsDurationuint256undefined
isLockedboolundefined

NotifyPool

Solidity

event NotifyPool(address stakingPool, address stakingToken, uint256 reward, uint256 rewardsDuration)

Parameters

NameTypeDescription
stakingPooladdressundefined
stakingTokenaddressundefined
rewarduint256undefined
rewardsDurationuint256undefined

OwnershipTransferred

Solidity

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined

UpdatePool

Solidity

event UpdatePool(address stakingPool, address stakingToken, uint256 reward, uint256 rewardsDuration)

Parameters

NameTypeDescription
stakingPooladdressundefined
stakingTokenaddressundefined
rewarduint256undefined
rewardsDurationuint256undefined