Limit Farming
Code#
Address#
AlgebraLimitFarming is deployed at 0x9923f42a02A82dA63EE0DbbC5f8E311e3DD8A1f8 on the Polygon mainnet.
Events#
LimitFarmingCreated#
Emitted when a liquidity mining incentive has been created
rewardTokenThe token being distributed as a rewardbonusRewardTokenThe token being distributed as a bonus rewardpoolThe Algebra poolstartTimeThe time when the incentive program beginsendTimeThe time when rewards stop accruingrewardThe amount of reward tokens to be distributedbonusRewardThe amount of bonus reward tokens to be distributedtiersThe amounts of locked token for liquidity multipliersmultiplierTokenThe address of token which can be locked to get liquidity multiplierminimalAllowedPositionWidthThe minimal allowed position width (tickUpper - tickLower)enterStartTimeThe time when enter becomes possible
RewardAmountsDecreased#
Read-Only Functions#
maxIncentiveDuration#
The max duration of an incentive in seconds
maxIncentiveStartLeadTime#
The max amount of seconds into the future the incentive startTime can be set
maxIncentiveStartLeadTime#
Returns information about a farmd liquidity NFT
Params
tokenIdThe ID of the farmd tokenincentiveIdThe ID of the incentive for which the token is farmed
Return
liquidityThe amount of liquidity in the NFT as of the last time the rewards were computedtickLowerThe lower end of the tick range for the positiontickUpperThe upper end of the tick range for the position
State-Changing Functions#
createLimitFarming#
Params
rewardThe amount of reward tokens to be distributedbonusRewardThe amount of bonus reward tokens to be distributedminimalPositionWidthThe minimal allowed width of position (tickUpper - tickLower)multiplierTokenThe address of token which can be locked to get liquidity multiplierenterStartTimeThe time when enter should become possible }