Reflexion Vaults
Turn your vault into a self‑driving hedge fund.
Created on 26th June 2025
•
Reflexion Vaults
Turn your vault into a self‑driving hedge fund.
The problem Reflexion Vaults solves
⚡ Problem Statement
Current DeFi leverage products are static, manual, and liquidation‑prone.
Users either:
-
Over‑leverage on lending protocols (Aave, Compound) → get liquidated in fast crashes.
-
Trade perpetuals (GMX, dYdX) → pay funding, actively monitor positions.
-
Loop farm for extra yield → complex, gas‑heavy, easy to mess up.
These approaches ignore reflexivity risk — the self‑reinforcing cycle where more leverage → thinner liquidity → bigger price moves → more liquidations.
As a result, users face:
- Sudden liquidations - 70 % to –100 % capital loss
- High gas & complexity - Multiple txs, constant babysitting
- MEV & slippage - Extra hidden costs on every rebalance
- Poor risk‑adjusted returns - High volatility, low Sharpe ratio
🪞 How Reflexion Vaults Solve It?
- Reflexivity Score Engine - Quantifies market fragility in real‑time (0–1).
- Dynamic Leverage Curve - Auto‑scales exposure up in calm periods, down in turbulent ones – before liquidations hit.
- Slippage‑Aware Router - Simulates price impact, routes via best‑depth pools, mitigates MEV.
- Keeper‑based Automation - Off‑chain bots batch rebalances, so users sign one deposit and forget.
- Real Time Data Streaming - Calculates reflexivity score in real time and trigger rebalances if the threshold is violated
👤 Why would users care?
- Higher risk‑adjusted yield - capture upside with 1.5‑3× leverage only when safe.
- Stress‑free - no spreadsheets, no 3 AM liquidation alerts.
- MEV‑resistant exits - protected pricing during volatile dumps.
- Dynamic Leverage - Benefit from market rallies and hedge your positions from sudden crash
⚙️ Working of the Reflexivity Engine
The Reflexivity Engine is designed to actively manage systemic risk and optimize leverage in DeFi by continuously analyzing real-time market dynamics. At its core is a mathematically governed Leverage Curve, which captures the non-linear relationship between reflexivity and allowable leverage:
Leverage Curve Expression
The Engine adjusts leverage based on:
L(RS) = k · e^(m · RS)
Where:
- L(RS) = Dynamic leverage adjusted in response to Reflexivity Score
- RS = Real-time Reflexivity Score
- k = Baseline leverage constant
- m = Reflexivity sensitivity coefficient
As reflexivity rises, allowable leverage decreases exponentially to prevent liquidation cascades.
📊 Reflexivity Score: Multi-Factor Model
The Reflexivity Score RS incorporates key market stress and feedback signals, calculated as:
RS(t) = α₁ · (dP/dF) + α₂ · (dF/dP) + β₁ · OG(t) + β₂ · M_EMA(t) + β₃ · VEL(t)
Where:
- dP/dF = Sensitivity of price to fundamental changes (Perception Feedback)
- dF/dP = Sensitivity of fundamentals to price movements (Fundamental Feedback)
- OG(t) = Options Growth Index, tracking the expansion of derivative exposure as a leverage amplifier
- M_EMA(t) = Momentum EMA, capturing short-to-medium term price trend acceleration
- VEL(t) = Velocity, representing the rate of capital flow or transaction intensity on-chain
The parameters α₁, α₂ , β₁, β₂ weight each component based on empirical calibration to market conditions.

🔁 Operational Workflow
-
Real-Time Market Monitoring
- Tracks price movements, liquidity, derivatives expansion, momentum shifts, and on-chain activity velocity
-
Reflexivity Computation
- Calculates the Reflexivity Score $RS(t)$ by aggregating perception-fundamental feedback loops with leading indicators like Options Growth, Momentum EMA, and Velocity
-
Dynamic Leverage Adjustment
- Applies the Leverage Curve formula to adjust user or protocol leverage
- Higher RS → Leverage automatically reduced
- Lower RS → Leverage optimized for efficiency while maintaining safety
-
Liquidation Risk Prevention
- The system automatically limits leverage during high-reflexivity conditions to help avoid dangerous situations where the market becomes unstable and widespread liquidations can occur.
🎯 System Benefits
- Eliminates manual, reactive leverage management
- Protects users from reflexivity-driven liquidation spirals
- Improves capital efficiency while embedding dynamic risk controls
- Converts fragmented market signals into a single, actionable Reflexivity Score
By unifying leading indicators—Options Growth, Momentum, and Velocity—into the Reflexivity Engine, DeFi leverage becomes adaptive, data-driven, and resilient to hidden systemic feedback risks.
Challenges we ran into
Challenges I Ran Into
-
Deployment & SSL Issues
We faced SSL errors while deploying our backend that communicates with Chainlink Functions. This blocked data fetches.
✅ Fixed it by reconfiguring HTTPS and verifying the endpoint with the frontend -
Limited Data Streams Docs
The documentation for Chainlink Data Streams was not very clear, making it hard to integrate.
✅ We joined the Chainlink Discord, spoke to mentors directly, and reverse-engineered sample projects to build a working subscription flow. We also received access tokens for Go SDK which made our process smoother -
Designing Reflexive Vault Logic
It was challenging to decide how much logic should be on-chain vs off-chain for safety and gas efficiency.
✅ We introduced a Reflexivity Score oracle powered by Chainlink Functions, and used off-chain compute to trigger leverage decisions. This separation kept on-chain contracts gas-efficient while ensuring intelligent risk analysis.
Tracks Applied (1)
Onchain Finance
Cheer Project
Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.
