Skip to main content

Hifi Pool Registry

Constant Functions

pools

function pools(
address pool
) external returns (bool)

Whether AMM pool is being tracked or not.

Parameters

NameTypeDescription
pooladdressThe pool for which to make the query.

Return Values

NameTypeDescription
[0]boolbool true = pool is tracked, otherwise not.

Non-Constant Functions

trackPool

function trackPool(
contract IHifiPool pool
) external

Tracks a new pool.

Emits a {TrackPool} event.

Requirements:

  • The pool shouldn't be tracked.

Parameters

NameTypeDescription
poolcontract IHifiPoolThe address of the pool to track.

untrackPool

function untrackPool(
contract IHifiPool pool
) external

Untracks a pool.

Emits an {UntrackPool} event.

Requirements:

  • The pool should be tracked.

Parameters

NameTypeDescription
poolcontract IHifiPoolThe address of the pool to untrack

Events

TrackPool

event TrackPool(
contract IHifiPool pool
)

Parameters

NameType
poolcontract IHifiPool

UntrackPool

event UntrackPool(
contract IHifiPool pool
)

Parameters

NameType
poolcontract IHifiPool

Custom Errors

HifiPoolRegistry__PoolAlreadyTracked

error HifiPoolRegistry__PoolAlreadyTracked(contract IHifiPool pool)

Emitted when the pool to be tracked is already tracked.

HifiPoolRegistry__PoolNotTracked

error HifiPoolRegistry__PoolNotTracked(contract IHifiPool pool)

Emitted when the pool to be untracked is not tracked.