CamelotV3FarmDeployer
Inherits: FarmDeployer
Author: Sperax Foundation.
This contract allows anyone to calculate fees, pay fees and create farms.
State Variables
CAMELOT_V3_FACTORY
NFPM
CAMELOT_UTILS
CAMELOT_NFPM_UTILS
Functions
constructor
Constructor of the contract.
Parameters
_farmRegistry
address
Address of the Demeter Farm Registry.
_farmId
string
Id of the farm.
_camelotV3Factory
address
Address of CamelotV3 factory.
_nfpm
address
Address of Camelot NonfungiblePositionManager contract.
_camelotUtils
address
Address of CamelotUtils (Camelot helper) contract.
_nfpmUtils
address
Address of Camelot INonfungiblePositionManagerUtils (NonfungiblePositionManager helper) contract.
createFarm
Deploys a new CamelotV3 farm.
The caller of this function should approve feeAmount to this contract before calling this function.
Parameters
_data
FarmData
Data for deployment.
Returns
<none>
address
Address of the deployed farm.