Verification checklist
- Read feeAmountTickSpacing(3000) on the factory, or tickSpacing on the pool. Expect 60. A reading of 3000 is not the tier created by the v1.0.0 constructor.
- Take -887272 modulo the spacing. Spacing 60 leaves -52. The usable bounds are -887220 and 887220. Tick -887280 is divisible by 60 and still reverts with TLM.
- The 52-tick price ratio is 1.0001 to the 52nd power, cut off at 12 decimals: 1.005213282127. The gap is not a price of 52.
- At tick -59 with spacing 60, truncation toward zero is 0. The remainder is not 0 and the tick is negative, so the compressed index subtracts 1 and becomes -1, which starts at tick -60.
1. Fee 3000 and spacing 3000 occupy two slots
The UniswapV3Factory v1.0.0 constructor calls enableFeeAmount(500, 10), then enableFeeAmount(3000, 60), then enableFeeAmount(10000, 200). The first argument is the fee, in millionths. 3000/1000000 = 0.003, which is 0.3% of the input. The second argument is tickSpacing, counted in ticks. 60 is not another name for 3000. The two numbers only happen to sit next to each other in one call.
enableFeeAmount does not compute fee/50. It checks that the caller is the owner, that fee is below 1000000, that tickSpacing is greater than 0 and below 16384, and that the slot for this fee is still empty. A spacing of 3000 would pass the upper bound, so that bound alone does not stop someone from copying the fee into the spacing. The constructor does not pass 3000 as the second argument. It passes 60. Once the slot holds 60, enableFeeAmount(3000, 3000) reverts because the slot is taken. A wrong spacing cannot be painted over by calling the same function again.
500/50 = 10, 3000/50 = 60, and 10000/50 = 200. Those three pairs divide evenly. The function body contains no such division. Writing "spacing equals fee divided by 50" as a contract rule is only an after-the-fact description of these three calls. This note checks those three constructor arguments. Where the fee ends up is the question in Fee Check: The Pool Fee Tier Is Not the Cut LPs Keep. This note asks whether the 3000 printed on a page is the fee or the spacing.
| fee | fee / 1000000 | tickSpacing |
|---|---|---|
| 500 | 0.0005 | 10 |
| 3000 | 0.003 | 60 |
| 10000 | 0.01 | 200 |
2. The absolute bound passes checkTicks and fails divisibility
TickMath v1.0.0 sets MIN_TICK to -887272 and MAX_TICK to its negation, 887272. checkTicks has three requires. The lower tick must be below the upper tick, or the call reverts with TLU. The lower tick must not be below MIN_TICK, or it reverts with TLM. The upper tick must not be above MAX_TICK, or it reverts with TUM. Using -887272 as the lower tick and 887272 as the upper tick passes all three. A reader who stops at TickMath will treat those two ticks as a legal full range on every pool.
The bitmap is the gate that fails. TickBitmap v1.0.0 flipTick requires tick % tickSpacing == 0 before it flips the bit. The require has no error string, so the revert reason is empty. The first time a bound moves from zero liquidity to non-zero liquidity, the call enters flipTick. A non-zero remainder means the bound is never written into the bitmap, and the position does not open. Every initialized tick came through that path, so the bitmap does not keep a bound that the spacing does not divide.
Take -887272 modulo 60. 887272 = 60×14787 + 52, so the positive remainder is 52. The remainder takes the sign of the dividend, and -887272 % 60 = -52. It is not 8, and it is not 0. The lowest usable tick pulls those 52 ticks back inside the range and lands on -887220. That tick is still at least MIN_TICK, and -887220 % 60 = 0. The next aligned tick further out is -887280. It is divisible by 60, and it is 8 ticks below MIN_TICK, so checkTicks reverts with TLM. The two neighboring failures are different failures. -887272 dies on divisibility. -887280 dies on the lower bound. The upper side mirrors this. 887272 % 60 = 52, so the highest usable tick is 887220. 887280 is above MAX_TICK and reverts with TUM.
At spacing 10, -887272 % 10 = -2. The usable bounds are -887270 and 887270, a gap of 2 ticks. At spacing 200 the remainder is -72, the usable bounds are -887200 and 887200, and the gap is 72 ticks. Only a spacing of 1 leaves a remainder of 0, which makes MIN_TICK itself usable. The v1.0.0 constructor does not enable a spacing of 1.
| Spacing | Remainder of -887272 | Lowest usable | Highest usable | Gap |
|---|---|---|---|---|
| 10 | -2 | -887270 | 887270 | 2 |
| 60 | -52 | -887220 | 887220 | 52 |
| 200 | -72 | -887200 | 887200 | 72 |
3. The 52-tick gap prices at 1.005213282127
52 is not a price of 52, and it is not a price difference of 52. Swap Check: Dividing the Sqrt Price Once Is Not the Pool Quote writes the price ratio at one tick as 1.0001 raised to that tick, cut off at 12 decimal places, with no rounding up. The ratio between two ticks is 1.0001 raised to the difference. Tick -887220 is 52 ticks above -887272, so the ratio is 1.0001 to the 52nd power, truncated to 12 decimals as 1.005213282127. Writing 1 says the two ticks have the same price. Writing 52 treats the tick count as a price.
Under the same truncation, the 2-tick gap at spacing 10 is 1.000200010000, and the 72-tick gap at spacing 200 is 1.007225619743. A wider gap means the full range this fee tier can actually use is narrower than the absolute range in TickMath. What gets narrower is the price ratio at the two ends. How liquidity inside a legal range converts into token amounts is the question in Position Check: Stored Liquidity Is Not the Token Balance. If the bound fails flipTick, that amount formula is never called.
| Spacing | Gap in ticks | Price ratio |
|---|---|---|
| 10 | 2 | 1.000200010000 |
| 60 | 52 | 1.005213282127 |
| 200 | 72 | 1.007225619743 |
4. Writing the spacing as 3000 replaces the price of one step
One step on a 0.3% pool is 60 ticks, not 3000. 1.0001 to the 60th power, truncated to 12 decimals, is 1.006017734268. 1.0001 to the 3000th power is 1.349838561195. The exponents differ by 2940, and 1.0001 to the 2940th power is 1.341764180903. Treating 3000 as one step prices that step at 1.341764180903 times the contract's step. An extra zero does not explain the gap. The two steps are 2940 ticks apart.
3000 is below 16384, so the upper-bound check does not catch the copy. What catches it is the second argument the constructor actually passed, and the fact that a filled slot cannot be overwritten. The check is to read tickSpacing on the pool, or feeAmountTickSpacing(3000) on the factory, and expect 60. A reading of 3000 means this tier was not created by that v1.0.0 constructor call, and the table of 60 no longer applies.
| Number used as spacing | 1.0001 raised to that power |
|---|---|
| 60, the value the constructor stored | 1.006017734268 |
| 3000, the fee copied into the spacing | 1.349838561195 |
| Exponent gap of 2940 | 1.341764180903 |
5. The current tick need not be aligned. Position bounds must be
initialize passes sqrtPriceX96 to getTickAtSqrtRatio and writes the returned tick into slot0. That path does not take the tick modulo tickSpacing. A 0.3% pool can therefore hold a slot0.tick that 60 does not divide, including an opening price whose tick is MIN_TICK. Seeing a current tick that 60 does not divide is not evidence that the pool is broken.
Position bounds are what must be aligned. The lower and upper ticks of a mint have to pass flipTick the first time liquidity is written there. The current tick and the bound tick are two fields. Rejecting the current tick because it is not divisible treats a legal opening price as a fault. Treating MIN_TICK as a legal bound on every fee tier produces an empty revert on a spacing-60 pool. Ask whether the tick you read is slot0.tick or the position's tickLower before you take a remainder.
6. A negative tick off the grid subtracts 1 from the compressed index
nextInitializedTickWithinOneWord starts with tick / tickSpacing. Integer division in Solidity truncates toward zero. When the tick is negative and the remainder is not 0, the result subtracts 1, one step toward negative infinity. A zero remainder does not subtract. A positive tick does not subtract either. The extra step is the same kind of asymmetry as the negative window in TWAP Check: The Time-Weighted Tick Is Not the Average of the Prices. A test that only uses positive ticks never shows the extra subtraction.
Take tick -59 and spacing 60. Truncation of -59/60 toward zero is 0, and the remainder is -59. The contract writes -1. Multiplying the index back by the spacing, the search starts at tick -60. Truncation alone starts at tick 0. The two starting lines are 60 ticks apart, and the price ratio is 1.006017734268. The function then keeps looking for an initialized bit inside that word. A starting line that is already 60 ticks too high is not repaired by the bit it finds later.
Tick -60 is divisible by 60. Truncation toward zero is already -1, the remainder is 0, and there is no further subtraction. It lands on the same index. The extra subtraction depends on the remainder, not on the sign by itself. The positive control is tick 59 with spacing 60. 59/60 truncated toward zero is 0, the remainder is 59, and the tick is not negative, so the index stays 0 and the search starts at tick 0. On this side, truncation toward zero matches the contract. A test that only uses a positive tick such as 59 misses the subtraction at -59.
| Tick | Spacing | Toward zero | Remainder | Contract index | Starting tick |
|---|---|---|---|---|---|
| -59 | 60 | 0 | -59 | -1 | -60 |
| -60 | 60 | -1 | 0 | -1 | -60 |
| 59 | 60 | 0 | 59 | 0 | 0 |
| -1 | 10 | 0 | -1 | -1 | -10 |
7. Read the spacing, then take the bound modulo that spacing
The failing sentences are "fee 3000 means spacing 3000" and "every pool can place liquidity on -887272." The sentence that can be checked is "the second number stored in feeAmountTickSpacing; the remainder of -887272 modulo that number; the tick you land on after pulling a non-zero remainder back inside the range; whether the next aligned tick outside reverts with TLM or TUM; whether the tick you read belongs to slot0 or to a position bound; and whether a negative tick that did not divide evenly subtracted 1 from the compressed index." In the teaching conversion, the usable bounds on a 0.3% pool are -887220 and 887220, and the 52-tick price ratio is 1.005213282127. If the spacing is written as 3000, one step prices at 1.349838561195 rather than 1.006017734268. At tick -59 with spacing 60, the search starts at -60.
This is an analytical frame. The three default pairs, the cap at 16384, and the refusal to overwrite a filled slot come from UniswapV3Factory at v1.0.0. MIN_TICK and MAX_TICK come from TickMath at the same tag. The divisibility check and the negative compression come from TickBitmap at the same tag. 1.005213282127, 1.000200010000, 1.007225619743, 1.006017734268, 1.349838561195, and 1.341764180903 are powers of 1.0001 truncated to 12 decimals. They were not measured on a live pool, and they are not investment advice.
8. Misreadings that keep coming back
Does fee 3000 mean the tick spacing is 3000?
No. The v1.0.0 constructor calls enableFeeAmount(3000, 60). 3000/1000000 = 0.003, which is the fee taken from the input. Spacing is the other argument, and it is 60. The function does not divide the fee by 50. Once that fee slot is filled, the same call cannot overwrite it with 3000.
Can a 0.3% pool place liquidity on tick -887272?
No. Tick -887272 modulo 60 is -52, not 0. flipTick requires tick % tickSpacing == 0, and that require has no error string. The lowest usable tick is -887220 and the highest is 887220. Tick -887280 is divisible by 60, but it is below MIN_TICK, so checkTicks reverts with TLM.
If the tick is -59 and the spacing is 60, is the compressed index 0?
No. Truncation toward zero gives -59/60 = 0, with remainder -59. The tick is negative and the remainder is not 0, so the contract subtracts 1 and writes -1. Multiplying back by the spacing starts the search at tick -60. Leaving the index at 0 starts at tick 0, 60 ticks higher, a price ratio of 1.006017734268.