Docs / Mechanism
The range rule
Every number in this rule is a parameter in the tide contract. The owner can change them only inside hard bounds written in code.
- Take the reference price from SeleneFeed (HyperCore mid × (1 + measured basis)) and convert it to a pool tick.
- Round that tick to the pool's tick spacing (60). This is the centre.
- The range is centre − halfWidth to centre + halfWidth: 600 ticks for HYPE/USDC, 900 ticks for HYPE/KNTQ.
- The inner band is the middle 50 % of each half: ± 300 ticks on HYPE/USDC, ± 450 ticks on HYPE/KNTQ.
- While the reference stays inside the inner band, the range does not move. Once it leaves,
rebalance()becomes callable.
One tick is a 0.01 % price step, so ± 600 ticks is a price range from about −5.82 % to +6.18 % around the centre. The inner band keeps the tide from paying swap costs for small moves: HYPE has to move about 3.05 % against the centre before anything happens.
| Parameter | HYPE/USDC | HYPE/KNTQ | Bound in code |
|---|---|---|---|
| halfWidth | 600 ticks | 900 ticks | 2 tick spacings to 4,000 ticks |
| innerBandBps | 5000 | 5000 | 1,000 to 9,000 |
| maxRefAge | 900 s | 900 s | 60 to 3,600 s |
| maxDeviationTicks | 100 | 150 | up to 300 |
| minInterval | 1800 s | 1800 s | at least 300 s |
| slippageBps | 50 | 75 | up to 200 |
| protocolFeeBps | 1000 | 1000 | up to 2,000 |
| bountyBps | 500 | 500 | up to 1,000 |
The range a tide would open right now, computed from this rule and the live reference, is on each tide page in the app and in /api/tides under plan.