ICorrectionsRemoverJob
Inherits: IKeep3rJob
Removes the old corrections for a given pool
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 |
PRICE_ORACLE
Returns the price oracle
function PRICE_ORACLE() external view returns (IPriceOracle _priceOracle);
Returns
Name | Type | Description |
---|---|---|
_priceOracle | IPriceOracle | The price oracle |
work
Removes the old corrections for a given pool
function work(IUniswapV3Pool _pool) external;
Parameters
Name | Type | Description |
---|---|---|
_pool | IUniswapV3Pool | The Uniswap V3 pool |
isWorkable
Returns true if the oracle has old corrections for the specified pool
function isWorkable(IUniswapV3Pool _pool) external view returns (bool _workable);
Parameters
Name | Type | Description |
---|---|---|
_pool | IUniswapV3Pool | The Uniswap V3 pool |
Returns
Name | Type | Description |
---|---|---|
_workable | bool | True if the pool can be worked |
isWorkable
Returns true if the oracle has old corrections for the specified pool
function isWorkable(IUniswapV3Pool _pool, address _keeper) external returns (bool _workable);
Parameters
Name | Type | Description |
---|---|---|
_pool | IUniswapV3Pool | The Uniswap V3 pool |
_keeper | address | The address of the keeper |
Returns
Name | Type | Description |
---|---|---|
_workable | bool | True if the pool can be worked |
Events
Worked
Emitted when then job is worked
event Worked(IUniswapV3Pool _pool);
Errors
CorrectionsRemoverJob_InvalidPool
Throws if we can't verify the pool
error CorrectionsRemoverJob_InvalidPool(IUniswapV3Pool _pool);