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
Name | Type | Description |
---|---|---|
_owner | address | undefined |
stakingToken | address | undefined |
rewardsTokenA | address | undefined |
rewardsTokenB | address | undefined |
rewardAmountA | uint256 | undefined |
rewardAmountB | uint256 | undefined |
rewardsDuration | uint256 | undefined |
isLocked | bool | 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(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)
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 |
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 rewardsTokenA, address rewardsTokenB, uint256 rewardAmountA, uint256 rewardAmountB, uint256 duration)
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
stakingRewards | address | undefined |
rewardsTokenA | address | undefined |
rewardsTokenB | address | undefined |
rewardAmountA | uint256 | undefined |
rewardAmountB | 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 |
update(address,uint256,uint256,uint256)
Solidity
function update(address stakingToken, uint256 rewardAmountA, uint256 rewardAmountB, uint256 rewardsDuration) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
stakingToken | address | undefined |
rewardAmountA | uint256 | undefined |
rewardAmountB | uint256 | undefined |
rewardsDuration | uint256 | undefined |
Events
NewStakingPoolDeployed
Solidity
event NewStakingPoolDeployed(address owner, address stakingPool, address stakingToken, address rewardsTokenA, address rewardsTokenB, uint256 rewardAmountA, uint256 rewardAmountB, uint256 rewardsDuration, bool isLocked)
Parameters
Name | Type | Description |
---|---|---|
owner | address | undefined |
stakingPool | address | undefined |
stakingToken | address | undefined |
rewardsTokenA | address | undefined |
rewardsTokenB | address | undefined |
rewardAmountA | uint256 | undefined |
rewardAmountB | uint256 | undefined |
rewardsDuration | uint256 | undefined |
isLocked | bool | undefined |
NotifyPool
Solidity
event NotifyPool(address stakingPool, address stakingToken, uint256 rewardA, uint256 rewardB, uint256 rewardsDuration)
Parameters
Name | Type | Description |
---|---|---|
stakingPool | address | undefined |
stakingToken | address | undefined |
rewardA | uint256 | undefined |
rewardB | uint256 | undefined |
rewardsDuration | uint256 | undefined |
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 |
UpdatePool
Solidity
event UpdatePool(address stakingPool, address stakingToken, uint256 rewardA, uint256 rewardB, uint256 rewardsDuration)
Parameters
Name | Type | Description |
---|---|---|
stakingPool | address | undefined |
stakingToken | address | undefined |
rewardA | uint256 | undefined |
rewardB | uint256 | undefined |
rewardsDuration | uint256 | undefined |