ERC-8463 Pool Liquidity Lock Interface (Pool Liquidity Locks)

Draft · Vaults & DeFi · created 2026-10-20

Defines a common interface for locker contracts that lock pool liquidity tokens or positions either permanently or until a specific time, letting scanners and lending protocols read locked liquidity and its unlock time with a single call.

Why it is needed

When a new token launches, you commonly hear that "liquidity is locked," but since every locker (a contract that locks liquidity) has different functions, events, and ID schemes, a scanner can only show the lockers it has integrated with directly and nothing else. ERC-8376 scores the proportion of pool liquidity that is locked and the remaining time on the shortest lock, but takes both which address to pull that figure from (lockSinks) and, for pools where the position is an NFT, the locked liquidity figure itself, purely as externally supplied inputs. Without a common interface, there is no way to verify these figures. Lending protocols that take pool positions as collateral also need to know when that liquidity cannot be withdrawn, and launchpads need a stable identifier to point to the lock they declared. A single call is needed to read permanent locks and term locks, pool tokens and position NFTs, uniformly.

What to implement

In depth

Components of a lock

A lock consists of pool (the pool or v4 pool manager), poolId (the pool identifier within a singleton pool manager, 0 otherwise), position (the pool token or position manager), positionId (the position token id, 0 for pool tokens), amount (the amount of pool tokens held or the position's liquidity, 0 once released), unlockAt (the minimum block timestamp at which release is possible, a permanent lock if type(uint64).max), beneficiary (the account that receives the liquidity upon release), and feeRecipient (the account that receives position fees, always the zero address for pool token locks). position and positionId are used together so that ids issued by different position managers do not collide.

Three pool types

The original text divides pools into three types. A v2-style pair is one where the pool contract itself is the ERC-20 pool token. A v3-style pool exists one per token pair and fee tier, where a position is an ERC-721 token with a tickLower to tickUpper range and liquidity, and the pool's active liquidity is the sum of the positions that include the current tick. A v4-style pool is identified by a poolId within a single singleton pool manager contract, where specific bits of the hook address (beforeSwap=7, afterSwap=6, return-value-override flags=3,2) can change pre- and post-swap behavior and fees, and fees can be static or dynamic (changeable by the hook, with a 0x800000 flag at creation).

Lock creation rules

When creating a lock, the locker must actually hold that liquidity. For pool tokens, only the amount actually received is recorded as amount, and for positions, the liquidity at the moment the locker becomes the owner is recorded. pool and poolId must be taken from the pool token itself or the position manager's records, not from the caller. It reverts if amount is 0, if unlockAt is not later than the current block time, or if beneficiary is the zero address. For position locks, it additionally reverts if positionId is 0 or feeRecipient is the zero address, while for pool token locks, feeRecipient must conversely be the zero address. A created lock receives a unique lockId that is never reused and emits LiquidityLockCreated.

Constraints while holding

The locker must not move the pool token or position it holds, reduce the position's liquidity, or approve such authority to another account by any method other than release (releaseLiquidityLock). pool, poolId, position, positionId, beneficiary, and feeRecipient never change, amount does not change except becoming 0 upon release, and unlockAt only changes through extension. The locker must also revert any other call that changes its state while creation, release, or fee collection is in progress, in order to prevent reentrancy via callbacks. In position managers where anyone can add to a position, a locked position can end up with more liquidity than its recorded amount.

Extension

extendLiquidityLock can only be called by that lock's beneficiary, and it reverts if the lock does not exist, has already been released, or the new unlockAt is not later than the current unlockAt. On success it updates unlockAt and emits LiquidityLockExtended, and extending to type(uint64).max makes it a permanent lock. A lock whose unlockAt has already passed but has not yet been released can also be extended; if the new time is later than the current block time it becomes locked again, and if that new time has also already passed it remains immediately releasable.

Unsubscription

releaseLiquidityLock can be called by anyone, but it reverts if the lock does not exist, has already been released, or the block time is earlier than unlockAt, and a permanent lock reverts at any time. On success it transfers the entire position or the full pool token amount only to the beneficiary, sets amount to 0, and emits LiquidityLockReleased. Positions are transferred using ERC-721 transferFrom, which has no recipient callback, so beneficiaries that cannot receive callbacks are not blocked, and for pool tokens, the locker's token balance is never reduced by more than amount, so other locks' shares are not affected.

Fee collection and detector inputs

collectLiquidityLockFees can be called by anyone to pay the fees earned by a position only to feeRecipient, without reducing the liquidity itself (it reverts for pool token locks or released locks). Meanwhile, the lockedLiquidity and lpLockRemaining inputs used by the ERC-8376 detector are computed, as of a window end time t, as the sum of permanent locks plus the sum of fixed-term locks whose unlockAt is later than t, and the remaining time is computed as the shortest unlockAt minus t among them (effectively MAX, meaning infinite, if only permanent locks exist). Fixed-term locks that have already become releasable are excluded, as they are not considered protective. In addition, a position owned by a burn address (a burned position) may be treated as permanently locked, but only when it has been confirmed that there is no manipulation path in that position manager's and pool's hooks or fees that could extract the liquidity.

Standard status

ERC-8463 was written in October 2026 and is currently in Draft status. The specification's detailed rules or interface identifiers may change through future discussion, or the proposal itself may stall without further progress.

Things to watch out for

Original ERC · ← ERCs