How It Works
1. Deposit
Deposit USDC into the LP Agent. You receive internal shares representing your pro-rata ownership of the agent’s position. Shares are non-transferable and tracked via an internal mapping — the LP Agent holds no ERC-20 token. The USDC is immediately forwarded to whichever LP Vault is currently active.2. The Active Vault
At any point in time, one of the three underlying LP Vaults is designated active. All deposited USDC lives in that vault’s concentrated liquidity position on Aerodrome Slipstream, earning both trading fees and AERO gauge emissions. The active vault is set by the keeper based on effective APR, which accounts for the width of the tick range relative to gauge rewards.3. Automatic Reallocation
The keeper checks APR across all three underlying pools every minute. Reallocation is triggered when a different vault leads by more than 5% APR for 5 consecutive checks (~5 minutes of stable signal), preventing unnecessary churn from short-lived spikes. The keeper then callsreallocate(newVaultIndex):
- Redeems all shares from the current LP Vault (triggering full exit: unstake → remove liquidity → swap to USDC)
- Deposits the recovered USDC into the new LP Vault
- Updates the active vault index
reallocating flag. The flag is always cleared after the operation completes.
4. Withdrawal
Redeem shares at any time (outside of an active reallocation):redeem(shares, receiver)— burn a specific number of shares, receive proportional USDCwithdraw(assets, receiver)— specify the USDC amount to receive, shares are calculated automatically
