CamelotV3Farm
Inherits: E721Farm, OperableDeposit, ClaimableFee
Author: Sperax Foundation.
This contract is the implementation of the Camelot V3 farm.
State Variables
tickLowerAllowed
tickUpperAllowed
camelotPool
camelotV3Factory
camelotUtils
nfpmUtils
MIN_TICK
MAX_TICK
Functions
initialize
Initializer function of this farm.
Parameters
increaseDeposit
Allow user to increase liquidity for a deposit.
Parameters
decreaseDeposit
Withdraw liquidity partially from an existing deposit.
Parameters
getTokenAmounts
Function to be called by Demeter Rewarder to get tokens and amounts associated with the farm's liquidity.
Returns
_claimPoolFee
Claim pool fee implementation from ClaimableFee
feature.
Parameters
_getLiquidity
Validate the position for the pool and get Liquidity.
The position must adhere to the price ranges.
Only allow specific pool token to be staked.
Parameters
Returns
_validateTickRange
Validate the ticks (upper and lower).
Get the info of the required token.
Check if the token belongs to correct pool.
Check if the token adheres to the tick range.
The ticks must be within the max range and must be multiple of tickSpacing.
Parameters