inchbyinch

InchByInch is an onchain protocol that lets users automate laddered trading strategies

inchbyinch

Created At

Unite Defi

Project Description

InchByInch introduces Range-Based Ladder Trading (RLT) to DeFi—letting users automate buy and sell orders across custom price ranges using native onchain limit orders. It runs entirely on smart contracts, with no bots, APIs, or backend.

Decentralized exchanges are powerful — but they still lack the smart trading tools retail users take for granted on CEXs.

We’re solving this with InchByInch.

What does that mean? Instead of placing a single limit order, traders define a price range — like $2950 to $2800 — and InchByInch automatically places laddered buy orders at intervals. If any of those gets filled, it can automatically post a linked sell order at a profit target — all done onchain.

Retail traders can now run complex ladder strategies on DEXs — like dollar-cost averaging, recovery grids, or bounce-trading — just like pros on Binance, but fully non-custodial and composable.

How it's Made

inchbyinch is built as a smart contract system that extends the 1inch Limit Order Protocol (LOP) to enable ladder-style trading automation for retail DeFi users. We use Solidity with OpenZeppelin security patterns and Hardhat for development. The core innovation is our native LOP integration - instead of using 1inch APIs, we directly interact with their smart contracts using custom interaction callbacks in the order data. This allows us to place limit orders with embedded strategy logic that automatically reposts, cancels, or chains orders based on market conditions. The architecture uses a Factory pattern with minimal proxies for gas efficiency, where each user gets their own bot contract that can execute buy/sell ladders, grid strategies, and mean reversion bots entirely onchain. We built a MockLOP for testing that simulates real LOP behavior, and integrated with Chainlink oracles for price feeds. The most hacky part was figuring out how to encode complex strategy logic into the LOP's interaction field while maintaining compatibility with their order structure - essentially turning static limit orders into programmable trading bots without any backend infrastructure.

background image mobile

Join the mailing list

Get the latest news and updates