Introduction
Intro to Enso

Introduction to Enso

What is Enso?

Enso is financial infrastructure for developers that wish to develop, embed, or utilize DeFi interactions through their application. Whether this may be a wallet, smart wallet, exchange, defi interface aggregator, router, or any other application wishing to interact with the decentralized finance ecosystem. Enso provides the tools to execute and fetch all relevant metadata of DeFi protocols enabling developers to build the next generation of financial applications.

Key points:

  1. Native transaction bundling. Enso enables users to execute multiple transactions in one atomic transaction. For example, if a user wishes to swap 10 tokens, lend, borrow, and provide liquidity to a pool all within one transaction, this is possible with Enso.
  2. DeFi actions. Enso provides a wide variety of DeFi actions that can be bundled together to create a custom workflows.
  3. Best route execution. Enso will fetch the best route for a given desired path taking into account gas execution costs, slippage, and anticipated amount out.
  4. Standardization. Enso provides a standardization layer for developers to easily integrate DeFi protocols into their application. This includes standardizing the data format, the transaction format, and the execution format.
  5. Metadata. Enso provides all metadata related to a DeFi protocol ranging from APY, balances, logos, urls, and more.

How does Enso work?

Enso is a fully non-custodial aggregation middlelayer between the users, and Decentralized Exchanges, and DeFi protocols.

Enso supports both Externally Owned Account(EOA) (opens in a new tab) and Contract Account(Smart Wallet) (opens in a new tab) interactions.

High-level Architecture

Key
  1. An application wants to offer to their users the ability to swap tokens, lend, borrow, or provide liquidity to a pool.
  2. The application will send a request to Enso with the desired actions and parameters.
  3. Enso will fetch the best route for the given actions and parameters.
  4. Enso returns calldata back to the application.
  5. The application will present the calldata to the user.
  6. The user will execute on the calldata.
  7. The user will obtain all the result from the actions they have chosen.

An example of actions being bundled together can be viewed in the actions section.

Externally Owned Account(EOA) Interactions

Applications that enable EOAs to interact with their platform can utilize Enso for all Tokenized Interactions.

All interactions that are done from an EOA account will result in the corresponding tokens being sent to the EOA account. For example, if a user swaps 10 tokens, the 10 tokens will be sent to the EOA account.

Key

Contract Account(Smart Wallet) Interactions

Applications that enable Smart Wallets to interact with their platform can utilize Enso for all Tokenized Interactions and Non-Tokenized Interactions.

All interactions that are done from a Contract Account will result in the corresponding tokens and state being stored inside of the Contract Account. For example, if a user borrows on Aave, and then leverages the borrowed tokens then the borrowed tokens, leveraged state will be stored and associated to the Contract Account.

Key

Who can use Enso?

All of these network participants can leverage Enso not only for execution, but also for fetching all relevant metadata of DeFi protocols:

  1. Single Chain Routers: Enable best route execution into base tokens and exotic tokens with native transaction batching.
  2. Cross-chain Routers: Enabling users to execute a bundle of actions on one chain, and then bridge to another chain and execute another bundle.
  3. Wallets: Show DeFi protocols, and enable execution into hundreds of DeFi protocols with a wide variety of primitives available with best route execution.
  4. Dashboards: Enable better execution of routes, and provide a better user experience for users through native transaction batching of DeFi interactions
  5. Aggregators: Enable best route execution into base tokens and exotic tokens.
  6. Yield Farming Funds: Rely upon Enso for providing you all the metadata and execution paths you need to make the best decisions for your fund.
  7. DeFi protocols: Offer one-click deposits from any token into your protocol natively on your own interface to increase your TVL.
  8. Account Abstraction SDKs: Natively bake within your SDK the ability to not only create Smart Wallets compatible with ERC4337 but also enable Enso API to supercharge your SDK users for building the next generation of DeFi applications.
  9. Strategy Platforms: Enso is a highly flexible and versatile framework that allows you to create custom DeFi strategies where you can create your own custom workflows, and build your own interface and full product ontop of Enso! In theory you can replicate many DeFi products that exist as of today through this method and go to market extremely quick to test your product.

Ready to get started? Check out our Examples guide to start building with Enso today!