ICorrectionsApplierJob

Git Source

Inherits: IKeep3rJob

Applies corrections to manipulated 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

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, uint16 _manipulatedIndex, uint16 _period) external;

Parameters

NameTypeDescription
_poolIUniswapV3PoolThe Uniswap V3 pool
_manipulatedIndexuint16
_perioduint16

Events

Worked

Emitted when then job is worked

event Worked(IUniswapV3Pool _pool, uint16 _manipulatedIndex, uint16 _period);

Errors

CorrectionsApplierJob_InvalidPool

Throws if we can't verify the pool

error CorrectionsApplierJob_InvalidPool(IUniswapV3Pool _pool);