project screenshot 1
project screenshot 2
project screenshot 3

StoikovLP

Fully on-chain LP token, following the Avellaneda-Stoikov market making model

StoikovLP

Created At

ETHGlobal Bangkok

Project Description

This is a fully on-chain LP token, designed for fully on-chain CLOB dexes. It utilizes Pyth price and entropy oracles. Pyth price feed is needed to know the global mid price for a given market, while entropy introduces randomness to the system and prevents from gaming the system by other actors. The approach is similar to Elixir protocol (https://www.elixir.xyz/), however Stoikov is fully-onchain - which introduces more transparency, decentralization and composability. E.g. StoikovLP token can be used as a collateral in protocols like AAVE. StoikovLP operates on top of Hanji.io - fully on-chain CLOB dex.

How it's Made

Smart contracts are implemented in Solidity utilizing Pyth price and entropy. The current version does not implement full Avellaneda-Stoikov algorithm due to time constraints, however it is fully feasible given that we have randomness and external prices to quote ourselves. I've built frontend in react, for charts I've used API's provided by the CLOB exchange, and I highlighted orders set by the vault by the vault address as a sender.

background image mobile

Join the mailing list

Get the latest news and updates