Abstract base contract for Algebra farmings
The nonfungible position manager with which this farming contract is compatible
The pool deployer
The farming Center
Represents a farming incentive
Developer note: bytes32 refers to the return value of IncentiveId.compute
Returns amounts of reward tokens owed to a given address according to the last time all farms were updated
Developer note: rewards[owner][rewardToken] => uint256
onlyOwner
setIncentiveMaker(address)
external
Updates the incentive maker
Name | Type | Description |
---|---|---|
_incentiveMaker | address | The new incentive maker address |
onlyOwner
setFarmingCenterAddress(address)
external
Updates farming center address
Name | Type | Description |
---|---|---|
_farmingCenter | address | The new farming center contract address |
claimReward(contract IERC20Minimal,address,uint256)
external
Transfers `amountRequested` of accrued `rewardToken` rewards from the contract to the recipient `to`
Name | Type | Description |
---|---|---|
rewardToken | contract IERC20Minimal | The token being distributed as a reward |
to | address | The address where claimed rewards will be sent to |
amountRequested | uint256 | The amount of reward tokens to claim. Claims entire reward amount if set to 0. |
Returns:
Name | Type | Description |
---|---|---|
reward | uint256 |
onlyFarmingCenter
claimRewardFrom(contract IERC20Minimal,address,address,uint256)
external
Transfers `amountRequested` of accrued `rewardToken` rewards from the contract to the recipient `to` only for FarmingCenter
Name | Type | Description |
---|---|---|
rewardToken | contract IERC20Minimal | The token being distributed as a reward |
from | address | The address of position owner |
to | address | The address where claimed rewards will be sent to |
amountRequested | uint256 | The amount of reward tokens to claim. Claims entire reward amount if set to 0. |
Returns:
Name | Type | Description |
---|---|---|
reward | uint256 |