IStakingRewards.sol
Methods
claimPendingRewards(uint256)
Solidity
function claimPendingRewards(uint256 poolId) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
poolId | uint256 | undefined |
createPool(address,address,uint256,uint256,uint256)
Solidity
function createPool(address stakingToken, address rewardToken, uint256 rewardRate, uint256 start, uint256 end) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
stakingToken | address | undefined |
rewardToken | address | undefined |
rewardRate | uint256 | undefined |
start | uint256 | undefined |
end | uint256 | undefined |
depositRewards(uint256,uint256)
Solidity
function depositRewards(uint256 poolId, uint256 amount) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
poolId | uint256 | undefined |
amount | uint256 | undefined |
getPool(uint256)
Solidity
function getPool(uint256 poolId) external view returns (struct IStakingRewards.Pool pool)
Parameters
Name | Type | Description |
---|---|---|
poolId | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
pool | IStakingRewards.Pool | undefined |
getPools()
Solidity
function getPools() external view returns (struct IStakingRewards.Pool[] pools, string[] symbols)
Returns
Name | Type | Description |
---|---|---|
pools | IStakingRewards.Pool[] | undefined |
symbols | string[] | undefined |
getRewardsForAPool(address,uint256)
Solidity
function getRewardsForAPool(address account, uint256 poolId) external view returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
account | address | undefined |
poolId | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
setJobState(uint256,bool)
Solidity
function setJobState(uint256 poolId, bool pause) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
poolId | uint256 | undefined |
pause | bool | undefined |
stake(uint256,uint256)
Solidity
function stake(uint256 amount, uint256 poolId) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 | undefined |
poolId | uint256 | undefined |
stakeFor(address,uint256,uint256)
Solidity
function stakeFor(address user, uint256 amount, uint256 poolId) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
user | address | undefined |
amount | uint256 | undefined |
poolId | uint256 | undefined |
unstake(uint256)
Solidity
function unstake(uint256 poolId) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
poolId | uint256 | undefined |
withdrawRewards(uint256,uint256,address)
Solidity
function withdrawRewards(uint256 poolId, uint256 amount, address receiver) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
poolId | uint256 | undefined |
amount | uint256 | undefined |
receiver | address | undefined |
Events
RewardPaid
Solidity
event RewardPaid(address indexed user, uint256 poolId, uint256 reward)
Parameters
Name | Type | Description |
---|---|---|
user indexed | address | undefined |
poolId | uint256 | undefined |
reward | uint256 | undefined |
RewardsDeposited
Solidity
event RewardsDeposited(address depositor, uint256 poolId, uint256 amount)
Parameters
Name | Type | Description |
---|---|---|
depositor | address | undefined |
poolId | uint256 | undefined |
amount | uint256 | undefined |
RewardsWithdrawn
Solidity
event RewardsWithdrawn(uint256 amount, uint256 poolId)
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 | undefined |
poolId | uint256 | undefined |
Staked
Solidity
event Staked(address indexed user, uint256 amount, uint256 poolId)
Parameters
Name | Type | Description |
---|---|---|
user indexed | address | undefined |
amount | uint256 | undefined |
poolId | uint256 | undefined |
Withdrawn
Solidity
event Withdrawn(address indexed user, uint256 amount, uint256 poolId)
Parameters
Name | Type | Description |
---|---|---|
user indexed | address | undefined |
amount | uint256 | undefined |
poolId | uint256 | undefined |