API reference v1.0
Introduction
periphery
tokenomics
IAlgebraLimitFarming

IAlgebraLimitFarming

IAlgebraLimitFarming

Algebra Farming Interface Allows farming nonfungible liquidity tokens in exchange for reward tokens

Events

LimitFarmingCreated

LimitFarmingCreated(contract IERC20Minimal,contract IERC20Minimal,contract IAlgebraPool,uint256,uint256,uint256,uint256,struct IAlgebraFarming.Tiers,address,uint32)

Event emitted when a liquidity mining incentive has been created

NameTypeDescription
rewardTokencontract IERC20MinimalThe token being distributed as a reward
bonusRewardTokencontract IERC20MinimalThe token being distributed as a bonus reward
poolcontract IAlgebraPoolThe Algebra pool
startTimeuint256The time when the incentive program begins
endTimeuint256The time when rewards stop accruing
rewarduint256The amount of reward tokens to be distributed
bonusRewarduint256The amount of bonus reward tokens to be distributed
tiersstruct IAlgebraFarming.TiersThe amounts of locked token for liquidity multipliers
multiplierTokenaddressThe address of token which can be locked to get liquidity multiplier
enterStartTimeuint32The time when enter becomes possible

RewardAmountsDecreased

RewardAmountsDecreased(uint256,uint256,bytes32)

NameTypeDescription
rewarduint256
bonusRewarduint256
incentiveIdbytes32

Functions

maxIncentiveDuration

maxIncentiveDuration() view external

The max duration of an incentive in seconds

Returns:

NameTypeDescription
[0]uint256

maxIncentiveStartLeadTime

maxIncentiveStartLeadTime() view external

The max amount of seconds into the future the incentive startTime can be set

Returns:

NameTypeDescription
[0]uint256

farms

farms(uint256,bytes32) view external

Returns information about a farmd liquidity NFT

NameTypeDescription
tokenIduint256The ID of the farmd token
incentiveIdbytes32The ID of the incentive for which the token is farmd

Returns:

NameTypeDescription
liquidityuint128
tickLowerint24
tickUpperint24

createLimitFarming

createLimitFarming(struct IIncentiveKey.IncentiveKey,struct IAlgebraFarming.Tiers,struct IAlgebraLimitFarming.IncentiveParams) external

NameTypeDescription
keystruct IIncentiveKey.IncentiveKey
tiersstruct IAlgebraFarming.Tiers
paramsstruct IAlgebraLimitFarming.IncentiveParams

Returns:

NameTypeDescription
virtualPooladdress

addRewards

addRewards(struct IIncentiveKey.IncentiveKey,uint256,uint256) external

NameTypeDescription
keystruct IIncentiveKey.IncentiveKey
rewarduint256
bonusRewarduint256

decreaseRewardsAmount

decreaseRewardsAmount(struct IIncentiveKey.IncentiveKey,uint256,uint256) external

NameTypeDescription
keystruct IIncentiveKey.IncentiveKey
rewardAmountuint256
bonusRewardAmountuint256