IPositionMinterJob

Git Source

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

NameTypeDescription
_poolManagerFactoryIPoolManagerFactoryThe 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

NameTypeDescription
_poolManagerIPoolManagerThe 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

NameTypeDescription
_poolManagerIPoolManagerThe address of the target pool manager

Returns

NameTypeDescription
_workableboolTrue 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

NameTypeDescription
_poolManagerIPoolManagerThe address of the target pool manager
_keeperaddressThe address of the keeper

Returns

NameTypeDescription
_workableboolTrue 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);