User configures their position with a tick threshold and strategy choice (e.g., supply to Aave). Pays a flat service fee (0.0001 ETH) and approves AVS to manage position.
On every swap, the Hook tracks price changes by comparing current tick with last tick. When movement detected, creates a task for the AVS service.
Service receives task from Hook and emits WithdrawNeeded event with pool context, last tick, and deadline for operator to process.
Operator listens to WithdrawNeeded events, computes eligible tick thresholds between lastTick and currentTick, discovers all matching user positions from cache.
Operator signs and calls withdrawLiquidity with validated configs. AVS burns LP positions, realizes token balances, and executes chosen strategies.
Based on user's configured strategy, AVS supplies withdrawn assets to external protocols (e.g., Aave) or executes other strategies. User can opt-out anytime via cancelDelegation.