Skip to content

mimic-fi/ethereum-swap-app-with-mimic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Developer platform for blockchain apps

Discord

OverviewScopeSetupLicense


Overview

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.

Scope

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.

Setup

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
yarn

License

MIT


Website mimic.fi  ·  Docs docs.mimic.fi  ·  GitHub @mimic-fi  ·  Twitter @mimicfi  ·  Discord mimic

About

Swap application on Ethereum that delegates transaction execution, routing, retries, and gas management to Mimic, allowing swaps to be implemented by expressing user intent only.

Topics

Resources

License

Stars

Watchers

Forks

Contributors