Verification checklist
- The per-tick cap is the uint128 maximum divided by the number of usable ticks. The count snaps ±887272 onto the spacing grid, counts both ends, and adds 1.
- Spacing 60 uses the ends -887220 and 887220, so the count is 29575. The quotient is 11505743598341114571880798222544994 and the remainder is 13905.
- Dividing by the raw span produces 29576. That quotient is smaller by 389022978034254617658939620724. The two off-grid ends of 52 add to 104, and that is the extra tick.
- The cap compares liquidityGross on that tick after the addition. Minting 1 more on a full tick reverts with LO. Two positions that do not share a boundary can leave the pool using twice the cap.
1. The cap divides the uint128 maximum by the tick count
tickSpacingToMaxLiquidityPerTick in Tick.sol v1.0.0 does not convert tokens. It starts from the two constants in TickMath. The minimum tick is -887272, and the maximum tick is 887272, the negation of the minimum. Integer division by the pool's spacing, then multiplication by that same spacing, snaps both ends onto the grid. The tick count is the upper end minus the lower end, divided by the spacing, plus 1. The return value keeps only the quotient of the uint128 maximum divided by that count.
The pool calls this function once from its constructor, with its own tickSpacing, and stores the result in maxLiquidityPerTick. The field is immutable. Later, every position update that touches a lower or upper tick passes that same value into Tick.update from UniswapV3Pool._updatePosition. update adds the delta onto the tick's existing liquidityGross through LiquidityMath.addDelta, then requires the gross after the addition to be no greater than the cap. If it is greater, the call reverts with the error string LO.
A check therefore has two steps, and the fee tier is not one of the inputs to the division. First read the pool's tickSpacing, recompute the count and the quotient, and compare the quotient with maxLiquidityPerTick. Then add the liquidity about to be minted to the gross already stored on that tick, and see whether the sum still fits under the quotient. Fee 3000 is only the factory key that selects spacing 60. It is not the divisor.
2. Spacing 60 has 29575 ticks, and the remainder is 13905
The v1.0.0 factory constructor stores spacing 60 for fee 3000. The outermost usable ticks are already computed in Spacing Check: Fee 3000 Stores Tick Spacing 60, and -887272 Is Outside the Grid. Solidity 0.7 integer division truncates toward zero, so -887272 divided by 60 is -14787, and multiplying by 60 returns -887220. The positive end snaps to 887220 the same way. This note counts ticks from those two ends. It does not treat -887272 itself as a tick that can be initialized.
The upper end minus the lower end is 1774440. Dividing 1774440 by 60 gives 29574, which is the number of gaps between the ends and does not yet count an endpoint. Adding 1 makes 29575. Dropping that 1 drops an endpoint that already sits on the grid, shrinks the divisor, and raises the per-tick cap. The contract adds 1.
The uint128 maximum is 340282366920938463463374607431768211455. Divided by 29575, the quotient is 11505743598341114571880798222544994 and the remainder is 13905. The contract stores only the quotient. The cap times 29575 is therefore 340282366920938463463374607431768197550, which is 13905 below the uint128 maximum. Those 13905 units are not liquidity withheld from one particular tick. They are the remainder of the division, and no tick receives them.
Writing every tick as the cap plus 1, then multiplying by 29575, exceeds the uint128 maximum by 15670. The sum does not fit in a uint128. That is what the division is for: if every tick's gross is full, the sum of those gross values still fits. The cap plus 1 fails because that worst case would overflow, not because the mint looks large in a worked example.
Do not treat this quotient as the maximum of an int128. The int128 maximum is 170141183460469231731687303715884105727, far above the per-tick cap. The cap plus 1 still fits in an int128, and it still fits in a uint128. The comparison after the gross is updated fails first, with LO. When a mint reverts, check whether the tick's gross would pass maxLiquidityPerTick before assuming the delta's integer type is too narrow.
3. Dividing by ±887272 produces a 29576th tick
Skipping the snap and subtracting the minimum tick from the maximum gives 1774544. Dividing 1774544 by 60 gives quotient 29575 and remainder 44. Adding 1, as the formula does, makes the divisor 29576. Dividing by 29576 produces 11505354575363080317263139282924270. That is 389022978034254617658939620724 below the real cap. Rejecting a mint against this smaller quotient blocks liquidity that the contract's LO check still accepts.
The extra tick is not rounding. It is the off-grid ends folded into the span. 887272 divided by 60 leaves 52, so each side has 52 ticks outside the grid. 52 plus 52 is 104. Dividing 104 by 60 leaves quotient 1 and remainder 44. That quotient of 1 is the difference between 29576 and 29575. The remainder 44 is the same 44 left when the raw span 1774544 is divided by 60. After the snap removes both blocks of 52, the span is 104 shorter, 1774440 divided by 60 no longer carries, and the count returns to 29575.
29576 is not a more conservative count. It includes a tick that does not exist, and the per-tick cap comes out lower. The phantom tick appears only when the two remainders add up to at least one spacing. Spacing 60 leaves 52 on each side, 104 is at least 60, and the fee-3000 pool is the factory tier that hits this case. The other two factory spacings do not.
4. Spacings 10 and 200 do not have the extra tick
The v1.0.0 factory constructor enables three fee tiers. Fee 500 stores spacing 10, fee 3000 stores spacing 60, and fee 10000 stores spacing 200. enableFeeAmount can later add another fee if the caller is the owner, the fee is below 1000000, the spacing is greater than 0 and below 16384, and that fee has not been written yet. This note does not put a later fee into the table. A pool already created computed its cap in the constructor. A fee enabled afterward does not rewrite that pool's maxLiquidityPerTick.
| Spacing | Grid low | Grid high | Off-grid on one side | Ticks | Per-tick cap | Remainder |
|---|---|---|---|---|---|---|
| 10 | -887270 | 887270 | 2 | 177455 | 1917569901783203986719870431555990 | 6005 |
| 60 | -887220 | 887220 | 52 | 29575 | 11505743598341114571880798222544994 | 13905 |
| 200 | -887200 | 887200 | 72 | 8873 | 38350317471085141830651933667504588 | 2131 |
Spacing 10 leaves 2 on one side, and the two sides add to 4. 4 is below 10, so integer division of the raw span does not add a tick beyond the grid. The count stays 177455, the cap is 1917569901783203986719870431555990, and the remainder is 6005. Spacing 200 leaves 72 on one side, the two sides add to 144, and 144 is below 200, so there is again no extra tick. The count is 8873, the cap is 38350317471085141830651933667504588, and the remainder is 2131. Of the three factory spacings, only 60 makes the raw ±887272 span and the snapped grid disagree by 1.
A wider spacing means fewer ticks and a larger per-tick cap. That does not mean the spacing-60 cap can be scaled by 200 over 60. 200 over 60 is 10 over 3. Multiplying the spacing-60 cap by 10 and dividing by 3 produces 38352478661137048572935994075149980, which is 2161190051906742284060407645392 above the real spacing-200 cap. The extra amount comes from the added endpoint and from the fact that the off-grid blocks of 52 and 72 do not shrink by the same ratio. The ratio of the tick counts is not the inverse ratio of the spacings, and the ratio of the caps is not the ratio of the spacings.
5. The cap binds the tick's gross, not the liquidity the pool is using
Tick.update receives liquidityGross on that tick after the addition. Every position that uses the tick as a lower or upper boundary adds into the same gross. One position consumes its liquidity once on the lower tick and once on the upper tick. When the position's liquidity equals the cap, both boundaries are full. Another position that touches either boundary, even to mint 1 more, makes the gross the cap plus 1 and reverts with LO.
When the boundaries are not shared, the liquidity the pool is using can exceed the per-tick cap. In the teaching case the current tick is 90. The first position uses ticks 0 and 120, with liquidity equal to the cap. The second uses ticks 60 and 180, also at the cap. Each of the four boundaries has gross equal to the cap, and none exceeds it. The pool does not add to in-range liquidity when the current tick is below the lower tick. 90 is not below 0 and not below 60. 90 is below 120 and below 180. Both mints take the branch where the current tick is inside the range, and the liquidity the pool is using becomes twice the cap.
This is the same kind of split as Liquidity Check: Gross on Four Ticks Sums to 2800, and the Pool Is Using 1000, and the numbers must not be added together. That note uses a smaller teaching liquidity to show that the sum of gross is not the liquidity the pool is using. This note shows that the cap binds each tick's gross. Two full positions that do not share a boundary can leave in-range liquidity at twice the cap. A third position on ticks 0 and 60 that mints only 1 fails on those two already-full ticks. The failure is the gross, not the size of that 1.
Decreasing liquidity makes the gross after the update smaller, so it still fits under the cap, and this LO comparison does not fail because liquidity was removed. After a decrease brings the gross back to 0, the bitmap can flip that tick off. Which bit in which word flips is Bitmap Check: The Next Spacing Tick Is 60, and This Call Returns 180. The cap in this note does not change the word and bit arithmetic. It only decides whether that tick's gross can grow.
To check a deployed pool, read in this order. Read tickSpacing and confirm it is 10, 60, or 200 from the factory constructor, or another spacing written later by enableFeeAmount. Then compute the grid ends, the tick count, the quotient, and the remainder from the minimum tick, the maximum tick, and that spacing. The quotient must equal the pool's maxLiquidityPerTick. A fee-3000 pool must have 29575 ticks and the quotient 11505743598341114571880798222544994. If a comment or a front-end limit uses the 29576 quotient, that limit is stricter than the contract by 389022978034254617658939620724. Last, read liquidityGross on the target tick, add the liquidity to be minted, and see whether the sum is still within the quotient.
This is an analytical framework. The grid ends, the tick count, the division, and the LO comparison come from Tick.sol, TickMath.sol, UniswapV3Pool.sol, and UniswapV3Factory.sol at v1.0.0. 11505743598341114571880798222544994, 13905, 15670, and 389022978034254617658939620724 are results of that integer arithmetic, not a pool reading from 13 November 2026, and they are not investment advice.
6. Common misreadings
Is the per-tick cap the uint128 maximum divided by 29576?
No. Spacing 60 first snaps -887272 and 887272 to -887220 and 887220, and the tick count is 29575. The quotient is 11505743598341114571880798222544994. Dividing by 29576 produces a smaller quotient, short by 389022978034254617658939620724. The extra tick comes from 52 off-grid ticks on each side. 52 plus 52 is 104, and 104 contains one full spacing.
Does the cap times 29575 equal the uint128 maximum?
No. The quotient times 29575 is 340282366920938463463374607431768197550, which is 13905 below 340282366920938463463374607431768211455. That 13905 is the division remainder and is not given to any tick. If every tick held the cap plus 1, the sum would exceed the uint128 maximum by 15670.
The tick is already at the cap. Does minting 1 more liquidity pass because the amount is small?
No. Tick.update compares liquidityGross after the addition, not the size of this mint on its own. The cap plus 1 still fits in an int128, but the gross is above maxLiquidityPerTick and the call reverts with LO. Two positions that do not share a boundary can raise the liquidity the pool is using to twice the cap. The cap binds each tick's gross.