project screenshot 1
project screenshot 2
project screenshot 3

REP8rep-8

Subscription-powered permissioning and programmable rewards for 1inch Limit Orders.

REP8rep-8

Created At

Unite Defi

Project Description

REP8 is a new extension for 1inch Limit Order Protocol that enables "subscribe-to-trade" logic and direct rewards for active participants. By leveraging custom pre-interaction hooks, REP8 lets protocols, DAOs, and campaigns require users to subscribe (on-chain) in order to access special offers, promotional liquidity, or enhanced trade rewards. This bridges the gap between open trading and curated, rewarding liquidity, and demonstrates protocol composability and new business models for DeFi. REP8 adds a permission and incentive layer to on-chain limit orders via the 1inch protocol. There are two main components: Pre-Trade Subscription Permissioning: Only subscribed or whitelisted users can fill specific orders, using on-chain checks in a preInteraction contract. Subscription mechanics can be managed by protocol, DAO, or anyone running a campaign. Subscriber-Only Reward Logic: Can optionally add a post-fill hook to send bonus tokens or rebates to active participants, track fills, and unlock further benefits as they interact. How it works: User subscribes or joins a promo program on REP8 (demoed by a wallet connect and subscribe button). Orders tagged with REP8 are only fillable by subscribers. Each fill may optionally reward the subscriber (can be tokens, NFTs, leaderboard points, etc). Repo includes both contract code and a minimal frontend showing the workflow and eligibility. REP8 builds on top of the modular logic of the 1inch protocol, following all interfaces and security best practices.

How it's Made

Tech Stack: Solidity (contracts), 1inch Limit Order Protocol (OrderMixin, ApprovalPreInteraction, FeeTaker), Hardhat, Minimal React/Next.js front-end, Ethers.js or Wagmi.

Demo Instructions: Clone repo, run yarn/npm install. Start local chain and deploy REP8SubscriptionPreInteraction.sol. Open frontend, connect wallet, use "Subscribe" button. Try to fill an order as non-subscriber (show error). Try as subscribed account (order goes through, optional reward triggers). Manual testing and Hardhat scripts document how extensions plug into the 1inch flow.

What was built during the hackathon: Fully working pre-interaction contract for subscription-based fills. Starter post-interaction reward logic (optional). Minimal wallet-gated frontend and a simulation script for fills. Readme with architecture, usage, and "How to build a permissioned liquidity layer on 1inch."

What's next: NFT/ERC20 token-based access, refined reward logic, audit, module release, live demos.

Built With: Solidity, Hardhat, React/Next.js, Ethers.js/Wagmi, 1inch Protocol v4.

background image mobile

Join the mailing list

Get the latest news and updates