IDragonswapV2Staker
Allows staking nonfungible liquidity tokens in exchange for reward tokens
Functionsโ
factoryโ
The DragonswapV2 Factory
nonfungiblePositionManagerโ
The nonfungible position manager with which this staking contract is compatible
maxIncentiveDurationโ
The max duration of an incentive in seconds
maxIncentiveStartLeadTimeโ
The max amount of seconds into the future the incentive startTime can be set
incentivesโ
Represents a staking incentive
Parameters:โ
Return Values:โ
depositsโ
Returns information about a deposited NFT
Return Values:โ
stakesโ
Returns information about a staked liquidity NFT
Parameters:โ
Return Values:โ
rewardsโ
Returns amounts of reward tokens owed to a given address according to the last time all stakes were updated
Parameters:โ
Return Values:โ
createIncentiveโ
Creates a new liquidity mining incentive program
Parameters:โ
endIncentiveโ
Ends an incentive after the incentive end time has passed and all stakes have been withdrawn
Parameters:โ
Return Values:โ
transferDepositโ
Transfers ownership of a deposit from the sender to the given recipient
Parameters:โ
withdrawTokenโ
Withdraws a DragonswapV2 LP token tokenId
from this contract to the recipient to
Parameters:โ
stakeTokenโ
Stakes a DragonswapV2 LP token
Parameters:โ
unstakeTokenโ
Unstakes a DragonswapV2 LP token
Parameters:โ
claimRewardโ
Transfers amountRequested
of accrued rewardToken
rewards from the contract to the recipient to
Parameters:โ
Return Values:โ
getRewardInfoโ
Calculates the reward amount that will be received for the given stake
Parameters:โ
Return Values:โ
Eventsโ
IncentiveCreatedโ
Event emitted when a liquidity mining incentive has been created
Parameters:โ
IncentiveEndedโ
Event that can be emitted when a liquidity mining incentive has ended
Parameters:โ
DepositTransferredโ
Emitted when ownership of a deposit changes
Parameters:โ
TokenStakedโ
Event emitted when a DragonswapV2 LP token has been staked
Parameters:โ
TokenUnstakedโ
Event emitted when a DragonswapV2 LP token has been unstaked
Parameters:โ
RewardClaimedโ
Event emitted when a reward token has been claimed
Parameters:โ
Last updated