Coder Social home page Coder Social logo

marcellobardus / mime-protocol Goto Github PK

View Code? Open in Web Editor NEW

This project forked from malibufinancehq/mime-protocol

0.0 0.0 0.0 1.77 MB

This is a project for the ETHGlobal MarketMake hackathon.

License: MIT License

Solidity 34.57% TypeScript 63.91% Dockerfile 0.09% JavaScript 0.46% CSS 0.98%

mime-protocol's Introduction

Mime Protocol.

Mime enables it's users to copy transactions made by an external ethereum address.

How it works - overview.

  1. Alice "follows" Bob's address by deploying a smart contract.
  2. Bob makes transaction(ex. deposits DAI on AAVE).
  3. Bob's tx is included in block.
  4. Alice's contract deposits it's DAI on AAVE.

How are transactions copied?

When deploying a smart contract a "strategy" must be set. The strategy is a contract containing a set of ABI encoded method calls manipulators.

Step by step flow explainer.

  1. A strategy with ABI manipulators set for certain methods identifiers is deployed.
  2. Alice follows Bob and provides a valid strategy.
  3. Alice deposits funds to she's contract.
  4. Bob makes a transaction.
  5. The transaction is catched by Mime.
  6. Mime checks if the transaction fits any manipulator defined in strategy.
  7. Mime gets Bob's transaction data and submits it Alice's smart contract.
  8. Alice's smart contract verifies Bob's signature.
  9. Alice's smart contract checks if Bob's tx fits in strategy.
  10. Alice's contract manipulates the transaction.
  11. Alice's contract makes a delegatecall.
  12. Alice's contract refunds mime protocol for used gas.

Supported protocols.

  1. ERC20 approve.
  2. AAVE deposits.

Integrations roadmap.

  1. Pods.finance.
  2. Uniswap.
  3. SushiSwap.
  4. 1inch.
  5. Yearn.

Demo

mimeprotocol.com

alt text

mime-protocol's People

Contributors

codyx avatar marcellobardus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.