For the complete documentation index, see llms.txt. This page is also available as Markdown.

BaseHook

Git Source

Inherits: IHooks

State Variables

POOL_MANAGER

IPoolManager public immutable POOL_MANAGER = IPoolManager(UNIV4_POOL_MANAGER)

Functions

poolManagerOnly

Only the pool manager may call this function

modifier poolManagerOnly() ;

_poolManagerOnly

function _poolManagerOnly() internal view;

selfOnly

Only this address may call this function

_selfOnly

onlyValidPools

Only pools with hooks set to this contract may call this function

_onlyValidPools

getHookPermissions

validateHookAddress

lockAcquired

beforeInitialize

afterInitialize

beforeAddLiquidity

beforeRemoveLiquidity

afterAddLiquidity

afterRemoveLiquidity

beforeSwap

afterSwap

beforeDonate

afterDonate

Errors

NotPoolManager

NotSelf

InvalidPool

LockFailure

HookNotImplemented

Last updated

Was this helpful?