Page cover

Overview

The Yieldex architecture is divided into three key modules:

  1. Data Collection Module

  2. Decision Making / Analytics Module

  3. On-chain Interaction Module

Data Collection Module

  • Collects information about current APY/APR, TVL, availability, etc. from the protocols in different networks.

  • Store results in a database and periodically update (e.g., every 10 minutes).

Decision Making (Analytics) Module

  • Receives grouped data on returns

  • Calculates whether it makes financial sense to transfer funds: for example, from AAVE USDT (APY ~5%) to Compound USDT (APY ~8%).

  • Generates a "call to action" — a structure that specifies the network, protocol, token (USDT, USDC, etc.), quantity, and target return.

On-chain Interaction Module

  • Accepts "call to action" and initiates transactions on users' smart wallets

  • Uses ERC-4337 mechanics to securely aggregate transactions within a single "UserOperation".

  • Sets signing parameters, and uses session keys for limited actions (deposit/withdraw/borrow/repay).

Sequence from Deposit to Rebalance

Last updated