Skip to main content
Helpful?

BaseV4Quoter

Git Source | Generated with forge doc

Inherits: SafeCallback

Functions

constructor

constructor(IPoolManager _poolManager) SafeCallback(_poolManager);

selfOnly

Only this address may call this function. Used to mimic internal functions, using an external call to catch and parse revert reasons

modifier selfOnly();

_unlockCallback

function _unlockCallback(bytes calldata data) internal override returns (bytes memory);

_swap

if amountSpecified < 0, the swap is exactInput, otherwise exactOutput

Execute a swap and return the balance delta

function _swap(PoolKey memory poolKey, bool zeroForOne, int256 amountSpecified, bytes calldata hookData)
internal
returns (BalanceDelta swapDelta);

Errors

NotEnoughLiquidity

error NotEnoughLiquidity(PoolId poolId);

NotSelf

error NotSelf();

UnexpectedCallSuccess

error UnexpectedCallSuccess();
Helpful?