Lite Turbo Vault
Introduction
Automated liquidity management vault for DLMM pools.
Goals:
Simplify DLMM liquidity provision
Automate liquidity rebalancing across price ranges
Optimize capital efficiency through multi-strategy deployment
Aggregate fees and rewards for vault shareholders
Architecture
┌──────────┐
│ Keeper │
└─────┬────┘
│
▼
┌─────────────────────────────────┐
│ Lite Turbo Vault │
│ ┌────────┐ ┌────────┐ ┌─────┐ │
│ │ DLMM │ │ Buffer │ │ Inv │ │
│ └────────┘ └────────┘ └─────┘ │
└──────────────┬──────────────────┘
│ 1:1
▼
┌─────────────┐
│ LBPair │
└─────────────┘Components:
DLMM Liquidity - Active positions in price bins
Buffer - Idle tokens (deposits, fees, rewards)
Investment Handlers - Optional yield strategies
Keeper - Owner managing vault operations
LBPair - Underlying DLMM pool
Parameters
protocolFeeRate
Protocol fee on trading fees (basis points, max 5000)
feeRecipient
Protocol fee recipient address
depositXMax / depositYMax
Maximum single deposit per token
maxTotalSupply
Vault share supply cap
binThreshold
Maximum allowed bin crosses
twapInterval
TWAP validation period (seconds)
whitelistedAddress
Optional exclusive depositor
currentRange
Distribution config (deltaIds, distributionX, distributionY)
Use Cases
Deposit
User transfers tokenX and/or tokenY to vault
Vault calculates shares based on total assets
Mint shares proportional to deposit value
Tokens remain in buffer
Withdraw
User burns vault shares
Calculate proportional X/Y amounts
Transfer tokens from available liquidity
Distribute reward tokens proportionally
Rebalance
Trigger: Owner only
Steps:
Remove all DLMM liquidity
Collect pending fees and rewards
Withdraw from investment handlers (optional)
Redeploy with new distribution parameters
Invest to handlers (optional)
Input: RebalanceParams (amounts, deltaIds, distributions, handler indexes)
Compound
Trigger: Anyone
Steps:
Collect pending fees and rewards
Redeploy buffer using current distribution
No liquidity removal required
Force Add/Remove LP
Owner Functions:
addLiquidity- Deploy buffer to DLMM with current distributionremoveLiquidity- Remove all DLMM liquidity to bufferremoveLiquidityPartially- Remove percentage of liquidity to buffer
Force Invest/Divest
Owner Functions:
invest- Deploy buffer to handler by indexdivest- Withdraw from handler by indexaddInvestmentHandler- Register new handlerremoveInvestmentHandler- Remove handler (must be empty)
Admin Functions
setFeeRecipient- Update fee recipientsetProtocolFeeRate- Update protocol fee ratesetWhitelist- Set whitelisted depositorsetDepositMax- Set deposit limitssetMaxTotalSupply- Set share capsetBinThreshold- Set bin cross thresholdsetTwapInterval- Set TWAP periodsetDistribution- Update default distributionsetPaused- Pause/unpause deposits and withdrawals
Prevent TWAP Price Manipulation
Protection Mechanism:
Check bin crosses during
twapIntervalperiodCompare against
binThresholdlimitRevert if crosses exceed threshold
Applied on every deposit
Rebalancing Method
Distribution System
Delta-Based Parameters:
deltaIds- Bin offsets from active bin
distributionX- X token weights (sum = 1e18)distributionY- Y token weights (sum = 1e18)
Rebalancing Process
Remove Positions
Burn LP tokens from all tracked bins
Receive tokens to buffer
Settle Claims
Collect trading fees
Collect farming rewards
Transfer protocol fee to recipient
Withdraw Investments (optional)
Withdraw all from handlers if enabled
Calculate Range
Get current active bin ID
Apply deltaIds to determine target bins
Validate range bounds
Deploy Distribution
Build liquidityConfigs from parameters
Transfer tokens to LBPair
Mint LP tokens
Track deployed bin IDs
Deploy to Handlers (optional)
Invest specified amounts by handler index
Features
TWAP price manipulation protection
Asymmetric distribution support
Single-transaction rebalancing
Multi-strategy deployment
Keeper Rebalancing Strategy
Metrics to Monitor
APY Comparison
DLMM pool trading fees APY
Lending protocol APY
LSD staking APY
Calculate optimal allocation
Effective Liquidity
Current liquidity depth in active bins
Liquidity utilization rate
Buffer vs deployed ratio
Trading Behavior
Volume distribution across bins
Active bin movement patterns
Fee generation per bin
Optimal LP shape for current market
Rebalancing Triggers
Time-Based
Daily scheduled rebalance
Check all metrics at fixed intervals
Demand-Driven
Spike in trading volume (LP utilization high)
Active bin moved significantly from range center
Large deposits in buffer waiting deployment
Yield-Driven
Lending rewards increase significantly
LSD APY spikes above DLMM fees
New farming incentives available
Decision Process
Evaluate current allocation performance
Compare yields across strategies
Assess liquidity needs vs yield opportunity
Calculate optimal distribution and amounts
Execute rebalance with new parameters
External Protocol Monitoring
Health Monitoring
Lending Protocol Safety
Monitor utilization rates
Track bad debt accumulation
Check collateral health ratios
Verify oracle price feeds
LSD Protocol Safety
Monitor validator performance
Track slashing events
Verify withdrawal queue depth
Check redemption rate stability
Risk Indicators
TVL sudden drops
Unusual withdraw patterns
Smart contract upgrades
Security incidents reported
Emergency Response
Monitoring Alerts
Set threshold alerts for each metric
Multi-channel notification system
Priority levels for different risks
Emergency Withdrawal
Keeper triggers emergency divest
Withdraw all funds from affected handler
Move assets to vault buffer
Pause new investments to handler
Post-Emergency Actions
Remove compromised handler
Redistribute assets to safe strategies
Notify vault users
Update risk parameters
Last updated