Overview • Scope • Setup • License
This repository demonstrates how to build a swap application on Ethereum using Mimic as the execution and automation layer.
The application allows users to specify basic swap parameters like chains, input/output tokens, amounts and slippage.
The application does not implement transaction construction, execution routing, retries, gas management, RPC interactions, oracle integrations, or cross-chain messaging.
Mimic handles execution by abstracting:
- Transaction execution and routing
- Solver selection and competition
- Execution retries and failure handling
- Gas payment and native token management
As a result, the application focuses exclusively on expressing user intent and delegates all execution complexity to Mimic.
This example uses Ethereum as the reference execution environment.
While Ethereum is used for clarity and familiarity, Mimic supports execution across multiple chains. The same application model can be applied to other supported networks without changes to execution orchestration.
To set up this project you'll need git and yarn installed.
From your command line:
# Clone the repository
git clone https://github.com/mimic-fi/ethereum-swap-app-with-mimic
# Enter the repository
cd ethereum-swap-app-with-mimic
# Install dependencies
yarnMIT
Website mimic.fi · Docs docs.mimic.fi · GitHub @mimic-fi · Twitter @mimicfi · Discord mimic