FarmingFactory
Last updated
Last updated
Farming pool Factory contract. Executes the functionality of deploying new farming pools (for Shibaswap liquidity), as well as their settings and management.
bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
- admin role identifier.
address public esKnine;
- esKNINE token address.
address public router;
- UniswapV2Router02 (ShibaSwap) contract address.
address public wbone;
- wrapped native coin address.
address public farmingImplementation;
- contract storing the farming implementation code (FarmingInstanceV2) address.
ZapFees public zapFees;
- ZapFees struct object.
struct ZapFees {
uint8 entry;
- zapping entry fee.
uint8 exit;
- zapping exit fee.
}
event CreateFarming(
address proxyDeployed,
- deployed farming pool (FarmingProxyV2) address.
address currentImplementation,
- current implementation (FarmingInstanceV2) address.
address token0,
- token0
address from the liquidity pool.
address token1,
- token1
address from the liquidity pool.
);
- upon createFarming method call.
event NativeReceived(uint256 amount);
- upon receiving the native coin.
Struct describing the liquidity pool used for farming pool creation.
Struct describing the reward pool:
Reward token address (for the main reward pool this is esKNINE),
Reward distribution start time and end time,
Reward per second.
Creates new farming pool based on the provided liquidity and reward pools info.
Adds rew
bonus reward pool to the farming
farming pool.
Initializer function, not called after initialization.
Set the farming logic implementation contract address.
Set the address of UniswapV2Router02 (ShibaSwap).
Set the wrapped native coin address.
Set the esKnine token address.
Replace zapping and unzapping fee.
Stop the rewards distribution of a specific bonus pool at a specific farming pool.
Stop all rewards distribution (main reward pool and each bonus reward pool) for a specific farming.
Change the RPS value
of the main reward pool at the specified farming
farming pool.
Withdraw transferred tokens from the contract.
Get a list of all farming pools ever deployed using this factory.