Smart Compound™ v2
Smart Compound™ v2 is a stateless on-chain smart contract atomically collecting, swapping, and reinvesting uncollected fees back into concentrated liquidity.
1. Definition & Primary Objective
Smart Compound™ v2 (implemented via BluePoolCompoundExecutor.sol) provides non-custodial, atomic fee reinvestment. In a single multi-call transaction, it claims uncollected swap fees, calculates the exact balance ratio required for active ticks, executes zero-slippage rebalances via 1inch/Uniswap router, and mints new liquidity into the existing LP NFT.
Maximize APY compound growth while eliminating manual multi-step transactions and gas waste.
2. Mathematical Formulation
Atomic_Compound = collectFees(id) -> swapToRatio(token0, token1, tickCurrent) -> increaseLiquidity(id)Stateless atomic execution workflow in BluePoolCompoundExecutor.sol.
- collectFees:NonfungiblePositionManager fee collection call
- swapToRatio:Optimal swap route to match current tick liquidity proportion
- increaseLiquidity:Direct liquidity mint back into the existing LP NFT position
3. Input & Output Vectors
Smart Compound™ v2 is a non-custodial on-chain smart contract (BluePoolCompoundExecutor.sol) that atomically collects uncollected fees, rebalances token ratios, and reinvests capital into active LP positions in a single transaction.
4. Knowledge Graph Relationships
5. Frequently Asked Questions
Is Smart Compound™ v2 safe and non-custodial?
The BluePoolCompoundExecutor.sol contract holds no user funds and executes collection, optimal swap, and reinvestment atomically in a single block.
What is the minimum fee threshold for auto-compounding?
The Recommendation Engine automatically calculates this threshold in real time based on current network gas prices.