FarmDeployer
Inherits: Ownable, ReentrancyGuard
Author: Sperax Foundation.
Exposes base functionalities which will be useful in every deployer.
State Variables
FARM_REGISTRY
farmImplementation
farmId
Functions
constructor
Constructor.
Parameters
Name | Type | Description |
---|---|---|
|
| Address of the Demeter Farm Registry. |
|
| Id of the farm. |
updateFarmImplementation
Update farm implementation's address.
Only callable by the owner.
Ensure that _newFarmId
is correct for the new farm implementation.
Parameters
Name | Type | Description |
---|---|---|
|
| New farm implementation's address. |
|
| ID of the new farm. |
_collectFee
Collect fee and transfer it to feeReceiver.
Function fetches all the fee params from farmRegistry.
_validateNonZeroAddr
Validate address.