Execution Layer

The Execution Layer allows prompt-based execution and automates yield farming & liquidity management through a transaction routing framework. Once a user submits a query, Codefi fetches real-time data and calculates an optimal execution strategy. Codefi actively tracks yield performance and executes fund reallocations if a strategy underperforms.

Execution via Prompts - Users can interact with the AI-model to manage their DeFi strategies and perform DeFi operations, such as liquidity provisioning, withdrawals, fee collection, swaps, and staking.

Gas Fee Optimization - Transactions are executed on-chain using automated gas-optimized smart contracts. The model routes transactions through the lowest-cost gas paths via smart order routing.

Portfolio Monitoring - Codefi’s AI continuously monitors users' DeFi positions, tracking APY fluctuations, liquidity shifts, and IL risks. If the market or pool conditions exceed user-defined risk limits, the model can either liquidate the position or notify the user accordingly.

Auto-Rebalancing - Codefi autonomously rebalances user positions to align with user’s risk & reward preferences and current market conditions, ensuring optimal positioning based on market fluctuations.

💬 "Provide liquidity to a stablecoin pool that has an APY over 8% and a TVL above $500M."

💬 "Convert 25% of my USDT yield into ETH and auto-stake it in Rocket Pool every month."

💬 “Deposit $20,000 USDC into the highest yielding lending protocol with minimal protocol risk.”

💬 "Execute a swap for 2 ETH to USDT with the optimum routing and deposit USDT to the Aave V3."

💬 "Monitor TVL fluctuations in my deposited pools and alert me if liquidity decreases by 25%."

Last updated