← Back to home

Flume

Smarter, fully automated liquidity manager (ALM) for Uniswap v3/v4. Minimizes impermanent losses while maximizing LPs profitability.

Screenshots

Flume screenshot 1
Flume screenshot 2
Flume screenshot 3

Problem Statement

Flume is an advanced Automated Liquidity Manager (ALM) tailored for Uniswap v3 and v4, offering a simplistic, Uniswap V2-like deposit experience while handling position building and management on behalf of the end-user.The Challenge for Liquidity ProvidersMany liquidity providers (LPs) prefer not to manage their ranges themselves due to the required expertise and the risk of impermanent losses. Until now, no ALM has successfully provided a profitable, V2-like farming experience on Uniswap V3.Identified Pain Points:Low data qualityFlawed range determinationIneffective rebalancing triggersExcessive position rebalancingRebalancing slippageProjected Performance ImprovementThrough hypothesis testing, we anticipate Flume can boost LP performance by 1.3x to 5x, depending on the pool's volatility or stability.Flume's Key Advantages:Enhanced Data Processing:Aggregating DEX (Uniswap) and CEX (Binance, Bybit, Coinbase) dataComputing Volume Weighted Average Price (VWAP) for informed decisionsDynamic Range Finding:Utilizing a time-series forecasting model trained on live price action to predict volatility and momentumAutomatically adjusting the optimal range regardless of the pool's active fee and tick sizeOptimized Rebalancing:Leveraging aggregator depth for reduced slippage, ensuring rebalancing swaps cost less than pool executionsKey Benefits:Increased duration, decreased governance (better ranges for a long time)Adaptive Market Response: Instant adjustment to changing market dynamicsMEV Resistant

Solution

Tech stack:Contracts: forked from Arrakis (https://www.arrakis.finance), selected on security, optimization, quality and features criteria (vs Gamma Strategies, Ichi, Beefy CLM and DefiEdge)Back-end: Python based, using FastAPI and stats libs used for the RangeFinder forecasting model. Chomp indexer is used for collecting CEX/DEX data from a single configuration file (https://github.com/AstrolabDAO/chomp) and expose it as an API for the front-end to useA minimalistic Vue3 front-end will be used as proof-of-concept, allowing deposit and withdrawal of funds on the ALM vaultsMEV resistance: the rebalancing triggers are obfuscated and not time-sensitive, and transactions will not sit in mempools (use of MEV resistant RPCs if applicable or low latency passing to L2 sequencers).

Hackathon

ETHGlobal Bangkok

2024

Contributors