IAlgebraFarming

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

Events

IncentiveDetached

IncentiveDetached(contract IERC20Minimal,contract IERC20Minimal,contract IAlgebraPool,address,uint256,uint256)

Event emitted when a liquidity mining incentive has been stopped from the outside

IncentiveAttached

IncentiveAttached(contract IERC20Minimal,contract IERC20Minimal,contract IAlgebraPool,address,uint256,uint256)

Event emitted when a liquidity mining incentive has been runned again from the outside

FarmEntered

FarmEntered(uint256,bytes32,uint128,uint256)

Event emitted when a Algebra LP token has been farmd

FarmEnded

FarmEnded(uint256,bytes32,address,address,address,uint256,uint256)

Event emitted when a Algebra LP token has been exitFarmingd

IncentiveMaker

IncentiveMaker(address)

Emitted when the incentive maker is changed

FarmingCenter

FarmingCenter(address)

Emitted when the farming center is changed

RewardsAdded

RewardsAdded(uint256,uint256,bytes32)

Event emitted when rewards were added

RewardClaimed

RewardClaimed(address,uint256,address,address)

Event emitted when a reward token has been claimed

Functions

nonfungiblePositionManager

nonfungiblePositionManager() view external

The nonfungible position manager with which this farming contract is compatible

Returns:

farmingCenter

farmingCenter() view external

The farming Center

Returns:

deployer

deployer() external

The pool deployer

Returns:

setIncentiveMaker

setIncentiveMaker(address) external

Updates the incentive maker

incentives

incentives(bytes32) view external

Represents a farming incentive

Returns:

detachIncentive

detachIncentive(struct IIncentiveKey.IncentiveKey) external

Detach incentive from the pool

attachIncentive

attachIncentive(struct IIncentiveKey.IncentiveKey) external

Attach incentive to the pool

rewards

rewards(address,contract IERC20Minimal) view external

Returns amounts of reward tokens owed to a given address according to the last time all farms were updated

Returns:

setFarmingCenterAddress

setFarmingCenterAddress(address) external

Updates farming center address

enterFarming

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

enter farming for Algebra LP token

exitFarming

exitFarming(struct IIncentiveKey.IncentiveKey,uint256,address) external

exitFarmings for Algebra LP token

claimReward

claimReward(contract IERC20Minimal,address,uint256) external

Transfers `amountRequested` of accrued `rewardToken` rewards from the contract to the recipient `to`

Returns:

claimRewardFrom

claimRewardFrom(contract IERC20Minimal,address,address,uint256) external

Transfers `amountRequested` of accrued `rewardToken` rewards from the contract to the recipient `to` only for FarmingCenter

Returns:

getRewardInfo

getRewardInfo(struct IIncentiveKey.IncentiveKey,uint256) external

Calculates the reward amount that will be received for the given farm

Returns: