Overview
Data Structuresβ
struct Incentive {
uint128 totalRewardUnclaimed;
uint128 numberOfStakes;
uint160 totalSecondsClaimedX128;
}
struct Deposit {
address owner;
uint96 numberOfStakes;
}
struct Stake {
uint160 secondsPerLiquidityInsideInitialX128;
uint128 liquidity;
}
struct IncentiveKey {
IERC20Minimal rewardToken;
IDragonswapV2Pool pool;
uint256 startTime;
uint256 endTime;
address refundee;
}Incentivesβ
createIncentive(CreateIncentiveParams memory params)β
createIncentive(CreateIncentiveParams memory params)βendIncentive(EndIncentiveParams memory params)β
endIncentive(EndIncentiveParams memory params)βDeposit/Withdraw Tokenβ
onERC721Received(address, address from, uint256 tokenId, bytes calldata data)β
onERC721Received(address, address from, uint256 tokenId, bytes calldata data)βwithdrawToken(uint256 tokenId, address to, bytes memory data)β
withdrawToken(uint256 tokenId, address to, bytes memory data)βStake/Unstake/Rewardsβ
stakeTokenβ
stakeTokenβclaimRewardβ
claimRewardβunstakeTokenβ
unstakeTokenβgetRewardInfoβ
getRewardInfoβLast updated