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
Name | Type | Description |
---|---|---|
stakingToken | address | undefined |
rewardsToken | address | undefined |
rewardAmount | uint256 | undefined |
rewardsDuration | uint256 | undefined |
isLocked | bool | undefined |
manager | address | undefined |
isOwner()
Solidity
function isOwner() external view returns (bool)
Details
Returns true if the caller is the current owner.
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
notifyRewardAmount(address)
Solidity
function notifyRewardAmount(address stakingToken) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
stakingToken | address | undefined |
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
Name | Type | Description |
---|---|---|
_0 | address | undefined |
pullExtraTokens(address,uint256)
Solidity
function pullExtraTokens(address token, uint256 amount) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
token | address | undefined |
amount | uint256 | undefined |
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
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
stakingRewardsInfoByStakingToken(address)
Solidity
function stakingRewardsInfoByStakingToken(address) external view returns (address stakingRewards, address rewardsToken, uint256 rewardAmount, uint256 duration)
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
stakingRewards | address | undefined |
rewardsToken | address | undefined |
rewardAmount | uint256 | undefined |
duration | uint256 | undefined |
stakingTokens(uint256)
Solidity
function stakingTokens(uint256) external view returns (address)
Parameters
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
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
Name | Type | Description |
---|---|---|
newOwner | address | undefined |
update(address,uint256,uint256)
Solidity
function update(address stakingToken, uint256 rewardAmount, uint256 rewardsDuration) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
stakingToken | address | undefined |
rewardAmount | uint256 | undefined |
rewardsDuration | uint256 | undefined |
Events
NewStakingPoolDeployed
Solidity
event NewStakingPoolDeployed(address owner, address stakingPool, address stakingToken, address rewardsToken, uint256 rewardAmount, uint256 rewardsDuration, bool isLocked)
Parameters
Name | Type | Description |
---|---|---|
owner | address | undefined |
stakingPool | address | undefined |
stakingToken | address | undefined |
rewardsToken | address | undefined |
rewardAmount | uint256 | undefined |
rewardsDuration | uint256 | undefined |
isLocked | bool | undefined |
NotifyPool
Solidity
event NotifyPool(address stakingPool, address stakingToken, uint256 reward, uint256 rewardsDuration)
Parameters
Name | Type | Description |
---|---|---|
stakingPool | address | undefined |
stakingToken | address | undefined |
reward | uint256 | undefined |
rewardsDuration | uint256 | undefined |
OwnershipTransferred
Solidity
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Parameters
Name | Type | Description |
---|---|---|
previousOwner indexed | address | undefined |
newOwner indexed | address | undefined |
UpdatePool
Solidity
event UpdatePool(address stakingPool, address stakingToken, uint256 reward, uint256 rewardsDuration)
Parameters
Name | Type | Description |
---|---|---|
stakingPool | address | undefined |
stakingToken | address | undefined |
reward | uint256 | undefined |
rewardsDuration | uint256 | undefined |