ICorrectionsRemoverJob

Git Source

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

NameTypeDescription
_poolManagerFactoryIPoolManagerFactoryThe pool manager factory

PRICE_ORACLE

Returns the price oracle

function PRICE_ORACLE() external view returns (IPriceOracle _priceOracle);

Returns

NameTypeDescription
_priceOracleIPriceOracleThe price oracle

work

Removes the old corrections for a given pool

function work(IUniswapV3Pool _pool) external;

Parameters

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

NameTypeDescription
_poolIUniswapV3PoolThe Uniswap V3 pool

Returns

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

NameTypeDescription
_poolIUniswapV3PoolThe Uniswap V3 pool
_keeperaddressThe address of the keeper

Returns

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