1edge

1edge exposes advanced order types and market making strategies on top of 1inch's LOP.

1edge

Created At

Unite Defi

Project Description

1edge brings to traders and market makers a familiar CEX-like experience to open advanced orders (TWAP, range, icerberg and more), and configure advanced market making strategies on top of these, such as DCA, momentum reversal, and more. The UI was thought to be familiar to CEX users, clear and informative: 1inch's order book visualization, real-time marked prices updates, orders and strategy monitoring.

How it's Made

Front-end: Ts, React, Tailwind, Websockets, Viem+Wagmi for wallet connectors.

Back-end: API-server: Ts, Bun, 1inch APIs (Price API, OrderBook API) Collector-service: Ts, Bun, CCXT connectors, marked price publisher over tcp (1:n) Websocket-server: Ts, Bun Websockets, forwards live marked data from Collector to clients (1:n) OrderRegistry: Ts, Bun - keeps track of all the pending order creations (1:n map) and creates OrderWatchers (1:1) that check for order-creation criteria every second (time for TWAP, index price for Range and Iceberg etc.)

On-chain: OrderDelegator: Solidity, is approved by the end-user, and signs orders on behalf of the user. Transfers tokens from the user at order submission time to avoid failures. Called by OrderWatcher tasks in the back-end based on the order creation conditions.

background image mobile

Join the mailing list

Get the latest news and updates