Liquidity Farming Factory

FarmFactory

FarmPoolFactory contract is used to create and manage farm pools


allPools

address[] allPools

public array to store deployed farming pool addresses


addPool

function addPool(address _lpToken, address _rewardToken, uint256 _rewardPerSec) external

admin function to add farm pool

Parameters

Name
Type
Description

_lpToken

address

address of LP token

_rewardToken

address

address of reward token

_rewardPerSec

uint256


startPool

function startPool(address _pool, uint256 _warmUpPeriod, uint256 _reward) external

admin function to start farming

Parameters

Name
Type
Description

_pool

address

address of the farming pool

_warmUpPeriod

uint256

_reward

uint256

farming reward in tokens


transferPoolLP

function transferPoolLP(address _pool, address _recipient) external

admin function to transfer LP tokens from farming contract to user's wallet

Parameters

Name
Type
Description

_pool

address

address of farm pool contract

_recipient

address

user's wallet address


allPoolsLength

function allPoolsLength() external view returns (uint256)

Returns the number of Farming Pools deployed

Last updated