IOracleSlippage

Enables slippage checks against oracle prices

Functions

checkOracleSlippage

Ensures that the current (synthetic) tick over the path is no worse than maximumTickDivergence ticks away from the average as of secondsAgo

function checkOracleSlippage(bytes memory path, uint24 maximumTickDivergence, uint32 secondsAgo) external view;

Parameters

checkOracleSlippage

Ensures that the weighted average current (synthetic) tick over the path is no worse than maximumTickDivergence ticks away from the average as of secondsAgo

function checkOracleSlippage(
    bytes[] memory paths,
    uint128[] memory amounts,
    uint24 maximumTickDivergence,
    uint32 secondsAgo
) external view;

Parameters

Last updated