IPositionMinterJob
Inherits: IKeep3rJob
Runs the job handling the position creation in WETH/TOKEN pools
Functions
POOL_MANAGER_FACTORY
Returns the pool manager factory
function POOL_MANAGER_FACTORY() external view returns (IPoolManagerFactory _poolManagerFactory);
Returns
Name | Type | Description |
---|---|---|
_poolManagerFactory | IPoolManagerFactory | The pool manager factory |
work
Creates the needed positions in the target pool manager and rewards the keeper for doing so
Will revert if the job is paused or if the keeper is not valid
function work(IPoolManager _poolManager) external;
Parameters
Name | Type | Description |
---|---|---|
_poolManager | IPoolManager | The address of the target pool manager |
isWorkable
Returns true if the specified pool manager can be worked
function isWorkable(IPoolManager _poolManager) external returns (bool _workable);
Parameters
Name | Type | Description |
---|---|---|
_poolManager | IPoolManager | The address of the target pool manager |
Returns
Name | Type | Description |
---|---|---|
_workable | bool | True if the pool manager can be worked |
isWorkable
Returns true if the specified keeper can work with the target pool manager
function isWorkable(IPoolManager _poolManager, address _keeper) external returns (bool _workable);
Parameters
Name | Type | Description |
---|---|---|
_poolManager | IPoolManager | The address of the target pool manager |
_keeper | address | The address of the keeper |
Returns
Name | Type | Description |
---|---|---|
_workable | bool | True if the pool manager can be worked |
Events
Worked
Emitted when a pool manager is worked
event Worked(IPoolManager _poolManager);
Errors
PositionMinterJob_InvalidPoolManager
Thrown when the pool manager cannot be verified
error PositionMinterJob_InvalidPoolManager(IPoolManager _poolManager);