Algebra eternal (v2-like) farming
Returns information about a farmd liquidity NFT
Developer note: farms[tokenId][incentiveHash] => Farm
AlgebraFarming
constructor(contract IAlgebraPoolDeployer,contract INonfungiblePositionManager)
public
Name | Type | Description |
---|---|---|
onlyIncentiveMaker
createEternalFarming(struct IIncentiveKey.IncentiveKey,uint256,uint256,uint128,uint128,address,struct IAlgebraFarming.Tiers)
external
Creates a new liquidity mining incentive program
Returns:
onlyIncentiveMaker
detachIncentive(struct IIncentiveKey.IncentiveKey)
external
Detach incentive from the pool
onlyIncentiveMaker
attachIncentive(struct IIncentiveKey.IncentiveKey)
external
Attach incentive to the pool
addRewards(struct IIncentiveKey.IncentiveKey,uint256,uint256)
external
onlyIncentiveMaker
setRates(struct IIncentiveKey.IncentiveKey,uint128,uint128)
external
onlyFarmingCenter
enterFarming(struct IIncentiveKey.IncentiveKey,uint256,uint256)
external
enter farming for Algebra LP token
onlyFarmingCenter
exitFarming(struct IIncentiveKey.IncentiveKey,uint256,address)
external
exitFarmings for Algebra LP token
getRewardInfo(struct IIncentiveKey.IncentiveKey,uint256)
view external
reward amounts can be outdated, actual amounts could be obtained via static call of `collectRewards` in FarmingCenter
Returns:
onlyFarmingCenter
collectRewards(struct IIncentiveKey.IncentiveKey,uint256,address)
external
reward amounts should be updated before calling this method
Returns:
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|