Shaped, auto-managed liquidity bins on Uniswap v4, with private wallet reads through Anon-RPC
BinStep is a liquidity management app built on Uniswap v4 hooks. On a normal pool, an LP picks one price range and manages it by hand. BinStep lets an LP spread one position across up to 32 bins, each 0.10% wide, in a Spot, Curve or Bid-Ask shape, and see that shape on an interactive chart before depositing.
Pools use a dynamic swap fee that rises with volatility, from 0.05% up to 1%, so LPs earn more when the price moves fast. LPs can opt in to automation: a keeper compounds earned fees back into the position and moves an out-of-range position beside the current price. The contracts only allow these actions when the price is stable, and rebalances have a cooldown. Each position shows how many times it has been compounded and rebalanced.
The app also has swaps, a market list, and pool creation, so anyone can launch a test token and pool. Wallet-specific reads go through Anon-RPC by default, so an RPC provider can't easily link a wallet address to a user's IP. Public market data comes from the app's server and names no wallet.
BinStep doesn't remove impermanent loss, and it doesn't aim to beat Uniswap on swap execution. Its goal is to give v4 LPs better control and less manual work. It runs on Base Sepolia with test tokens, and the contracts have not been audited.
The contracts are written in Solidity with Foundry and deployed to Base Sepolia on the Uniswap v4 PoolManager. BinStepHook sets the volatility-based fee in beforeSwap, tracks volatility and a stable reference price in afterSwap, and only lets our manager add liquidity. We used HookMiner to find a hook address that encodes the right permissions.
BinStepManager owns every position. Each bin is a separate v4 liquidity range, and the position id is used as the v4 salt, which keeps each position's fees separate. Compounds and rebalances run inside a single unlock callback, so many bins can change in one transaction. This costs more gas than a single-range position, and that is a trade-off we accepted to get custom shapes. BinStepRegistry lets anyone create a test token and pool.
The frontend uses Next.js, wagmi and viem. Anon-RPC is integrated through @anon-rpc/browser-harness, trying the Nox worker and then Nym, and it never falls back to plain RPC without the user choosing it. Public market data and stats are served from Next.js API routes, because scanning a day of logs through a mixnet for each visitor would be too heavy. Transactions still go through the user's wallet RPC.
The keeper and a demo trading bot are TypeScript services running on Railway, and the site runs on Vercel. The keeper reads every position, picks up to two useful actions per run, and reports what actually happened on-chain.
The hacky parts: we started on Chainlink CRE, then replaced it with our own keeper because deploy access wasn't available. It still sends reports through a mock forwarder, which must be replaced before real funds. Swaps use a test-style router, and the bot creates the demo volume. Airdrops send tokens and starter gas in one atomic Multicall3 transaction.

