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
event LiquidityLockCreated(uint256 indexed lockId, address indexed pool, bytes32 indexed poolId, address position, uint256 positionId, uint256 amount, uint64 unlockAt, address beneficiary, address feeRecipient);: Emitted when a new lock is created, recording the pool, position, locked amount, unlock time, beneficiary, and fee recipient.event LiquidityLockExtended(uint256 indexed lockId, uint64 unlockAt);: Emitted when the beneficiary pushes the lock's unlock time further back.event LiquidityLockReleased(uint256 indexed lockId, address to);: Emitted when the liquidity of a lock past its unlock time is transferred to the beneficiary.event LiquidityLockFeesCollected(uint256 indexed lockId, address to, uint256 amount0, uint256 amount1);: Emitted along with the amounts of both tokens when fees earned by a locked position are paid out to the fee recipient.function getLiquidityLock(uint256 lockId) external view returns (LiquidityLock memory);: Returns the current lock information (pool, position, amount, unlock time, beneficiary, etc.) for a given lockId as is.function liquidityLocksOfPool(address pool, bytes32 poolId, uint256 start, uint256 limit) external view returns (uint256[] memory);: Returns the IDs of locks created for a specific pool, in creation order, starting from start, up to a maximum of limit, paginated.function lockedLiquidity(address pool, bytes32 poolId) external view returns (uint256 permanent, uint256 timed, uint64 earliestUnlock);: It sums up locks that have not yet been released and returns, per pool, the total amount locked permanently, the total amount locked for a fixed term, and the earliest unlock time among them, and the cost does not increase as the number of locks grows.function extendLiquidityLock(uint256 lockId, uint64 unlockAt) external;: Only the lock's beneficiary can call this, and the lock can only be extended to a time later than its existing unlock time.function releaseLiquidityLock(uint256 lockId) external;: Once a lock's unlock time has passed, anyone can call to transfer the pool tokens or position to the beneficiary.function collectLiquidityLockFees(uint256 lockId) external returns (uint256 amount0, uint256 amount1);: Anyone can call to pay out the fees earned by the two tokens of a locked position to the fee recipient, without reducing the position's liquidity itself.
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
- Readers must verify this themselves: Any contract could mimic this interface and merely emit the events, so a reported lock does not necessarily mean actual holding. Readers must cross-check actual holdings against the position's ownerOf or the pool token's balanceOf, confirm that position is the position manager matching that pool, and verify with audited code that there is no upgrade, admin privilege, or approval path that could move the liquidity before unlockAt.
- A small lock can push forward the earliest unlock time: Anyone can lock a small amount of liquidity for a short period to push forward a pool's earliestUnlock, making the pool look less safe even though a large amount of liquidity may actually be locked for a long time. Readers who want to know how long most of the liquidity is protected should check individual locks via liquidityLocksOfPool.
- Pool tokens whose balance changes: For pool tokens that take a fee on transfer, only the amount actually received is recorded, and upon release the beneficiary also receives less than amount. Tokens that take an additional fee on the sending side end up affecting other locks' shares, so release reverts until the token stops that behavior. Tokens whose balance can decrease, such as through rebasing, may leave the locker holding less than it is supposed to hold.
- Reentrancy via callbacks: Pool tokens or position managers are external contracts that can call back into the locker during lock creation, release, or fee collection. If the locker does not prevent reentrancy during this process, a method that measures amount from balance changes can end up counting the same token twice.
- Risk inherent to the pool itself: Liquidity can only be withdrawn to the extent that the pool allows. A pool composed of tokens that can block transfers can prevent liquidity from leaving even upon release, or render its value worthless in the meantime. A lock only guarantees that liquidity cannot exit early, it does not guarantee that liquidity's value.