IDragonswapV2Staker
Last updated
Last updated
Allows staking nonfungible liquidity tokens in exchange for reward tokens
The DragonswapV2 Factory
The nonfungible position manager with which this staking contract is compatible
The max duration of an incentive in seconds
The max amount of seconds into the future the incentive startTime can be set
Represents a staking incentive
incentiveId
bytes32
The ID of the incentive computed from its parameters
totalRewardUnclaimed
uint256
The amount of reward token not yet claimed by users
totalSecondsClaimedX128
uint160
Total liquidity-seconds claimed, represented as a UQ32.128
numberOfStakes
uint96
The count of deposits that are currently staked for the incentive
Returns information about a deposited NFT
owner
address
The owner of the deposited NFT
numberOfStakes
uint48
Counter of how many incentives for which the liquidity is staked
tickLower
int24
The lower tick of the range
tickUpper
int24
The upper tick of the range
Returns information about a staked liquidity NFT
tokenId
uint256
The ID of the staked token
incentiveId
bytes32
The ID of the incentive for which the token is staked
secondsPerLiquidityInsideInitialX128
uint160
secondsPerLiquidity represented as a UQ32.128
liquidity
uint128
The amount of liquidity in the NFT as of the last time the rewards were computed
Returns amounts of reward tokens owed to a given address according to the last time all stakes were updated
rewardToken
contract IERC20Minimal
The token for which to check rewards
owner
address
The owner for which the rewards owed are checked
rewardsOwed
uint256
The amount of the reward token claimable by the owner
Creates a new liquidity mining incentive program
key
struct IDragonswapV2Staker.IncentiveKey
Details of the incentive to create
reward
uint256
The amount of reward tokens to be distributed
Ends an incentive after the incentive end time has passed and all stakes have been withdrawn
key
struct IDragonswapV2Staker.IncentiveKey
Details of the incentive to end
refund
uint256
The remaining reward tokens when the incentive is ended
Transfers ownership of a deposit from the sender to the given recipient
tokenId
uint256
The ID of the token (and the deposit) to transfer
to
address
The new owner of the deposit
Withdraws a DragonswapV2 LP token tokenId
from this contract to the recipient to
tokenId
uint256
The unique identifier of an DragonswapV2 LP token
to
address
The address where the LP token will be sent
data
bytes
An optional data array that will be passed along to the to
address via the NFT safeTransferFrom
Stakes a DragonswapV2 LP token
key
struct IDragonswapV2Staker.IncentiveKey
The key of the incentive for which to stake the NFT
tokenId
uint256
The ID of the token to stake
Unstakes a DragonswapV2 LP token
key
struct IDragonswapV2Staker.IncentiveKey
The key of the incentive for which to unstake the NFT
tokenId
uint256
The ID of the token to unstake
Transfers amountRequested
of accrued rewardToken
rewards from the contract to the recipient to
rewardToken
contract IERC20Minimal
The token being distributed as a reward
to
address
The address where claimed rewards will be sent to
amountRequested
uint256
The amount of reward tokens to claim. Claims entire reward amount if set to 0.
reward
uint256
The amount of reward tokens claimed
Calculates the reward amount that will be received for the given stake
key
struct IDragonswapV2Staker.IncentiveKey
The key of the incentive
tokenId
uint256
The ID of the token
reward
uint256
The reward accrued to the NFT for the given incentive thus far
secondsInsideX128
uint160
The seconds inside the tick range
Event emitted when a liquidity mining incentive has been created
rewardToken
contract IERC20Minimal
The token being distributed as a reward
pool
contract IDragonswapV2Pool
The DragonswapV2 pool
startTime
uint256
The time when the incentive program begins
endTime
uint256
The time when rewards stop accruing
refundee
address
The address which receives any remaining reward tokens after the end time
reward
uint256
The amount of reward tokens to be distributed
Event that can be emitted when a liquidity mining incentive has ended
incentiveId
bytes32
The incentive which is ending
refund
uint256
The amount of reward tokens refunded
Emitted when ownership of a deposit changes
tokenId
uint256
The ID of the deposit (and token) that is being transferred
oldOwner
address
The owner before the deposit was transferred
newOwner
address
The owner after the deposit was transferred
Event emitted when a DragonswapV2 LP token has been staked
tokenId
uint256
The unique identifier of an DragonswapV2 LP token
liquidity
bytes32
The amount of liquidity staked
incentiveId
uint128
The incentive in which the token is staking
Event emitted when a DragonswapV2 LP token has been unstaked
tokenId
uint256
The unique identifier of an DragonswapV2 LP token
incentiveId
bytes32
The incentive in which the token is staking
Event emitted when a reward token has been claimed
to
address
The address where claimed rewards were sent to
reward
uint256
The amount of reward tokens claimed
Parameters:
Return Values:
Return Values:
Parameters:
Return Values:
Parameters:
Return Values:
Parameters:
Parameters:
Return Values:
Parameters:
Parameters:
Parameters:
Parameters:
Parameters:
Return Values:
Parameters:
Return Values:
Parameters:
Parameters:
Parameters:
Parameters:
Parameters:
Parameters: