Skip to main content
Helpful?

Custom Error Selectors

These are custom error selectors for Uniswap v4 contracts.

IPoolManager.sol

Error SelectorHex Value
IPoolManager.CurrencyNotSettled.selector0x5212cba1
IPoolManager.PoolNotInitialized.selector0x486aa307
IPoolManager.AlreadyUnlocked.selector0x5090d6c6
IPoolManager.ManagerLocked.selector0x54e3ca0d
IPoolManager.TickSpacingTooLarge.selector0xb02b5dc2
IPoolManager.TickSpacingTooSmall.selector0x16fe7696
IPoolManager.CurrenciesOutOfOrderOrEqual.selector0xeaa6c6eb
IPoolManager.UnauthorizedDynamicLPFeeUpdate.selector0x30d21641
IPoolManager.SwapAmountCannotBeZero.selector0xbe8b8507
IPoolManager.NonZeroNativeValue.selector0x19d245cf

Hooks.sol

Error SelectorHex Value
Hooks.HookAddressNotValid.selector0xe65af6a0
Hooks.InvalidHookResponse.selector0x1e048e1d
Hooks.FailedHookCall.selector0x36bc48c5
Hooks.HookDeltaExceedsSwapAmount.selector0xfa0b71d6

Pool.sol

Error SelectorHex Value
Pool.TicksMisordered.selector0xc4433ed5
Pool.TickLowerOutOfBounds.selector0xd5e2f7ab
Pool.TickUpperOutOfBounds.selector0x1ad777f8
Pool.TickLiquidityOverflow.selector0xb8e3c385
Pool.TickNotInitialized.selector0x82a774d3
Pool.PoolAlreadyInitialized.selector0x7983c051
Pool.PoolNotInitialized.selector0x486aa307
Pool.PriceLimitAlreadyExceeded.selector0x7c9c6e8f
Pool.PriceLimitOutOfBounds.selector0x9e4d7cc7
Pool.NoLiquidityToReceiveFees.selector0xa74f97ab
Pool.InvalidFeeForExactOut.selector0x96206246

IProtocolFees.sol

Error SelectorHex Value
IProtocolFees.ProtocolFeeCannotBeFetched.selector0x1ee49702
IProtocolFees.InvalidProtocolFee.selector0xba97f838
IProtocolFees.InvalidCaller.selector0x48f5c3ed

LPFeeLibrary.sol

Error SelectorHex Value
LPFeeLibrary.FeeTooLarge.selector0xfc5bee12

Position.sol

Error SelectorHex Value
Position.CannotUpdateEmptyPosition.selector0xaefeb924

Reserves.sol

Error SelectorHex Value
Reserves.ReservesMustBeSynced.selector0x8774be48

SqrtPriceMath.sol

Error SelectorHex Value
SqrtPriceMath.InvalidPriceOrLiquidity.selector0x4f2461b8
SqrtPriceMath.InvalidPrice.selector0x00bfc921
SqrtPriceMath.NotEnoughLiquidity.selector0x4323a555
SqrtPriceMath.PriceOverflow.selector0xf5c787f1

TickBitmap.sol

Error SelectorHex Value
TickBitmap.TickMisaligned.selector0xd4d8f3e6

TickMath.sol

Error SelectorHex Value
TickMath.InvalidTick.selector0xce8ef7fc
TickMath.InvalidSqrtPrice.selector0x31efafe8
Helpful?