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
Name | Type | Description |
---|---|---|
|
| Address of the Demeter Farm Registry. |
|
| Id of the farm. |
|
| Address of CamelotV3 factory. |
|
| Address of Camelot NonfungiblePositionManager contract. |
|
| Address of CamelotUtils (Camelot helper) contract. |
|
| 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
Name | Type | Description |
---|---|---|
|
| Data for deployment. |
Returns
Name | Type | Description |
---|---|---|
|
| Address of the deployed farm. |