Git Product home page Git Product logo

echidna-streaming-series's Introduction

Echidna Streaming Workshop

Welcome to the 6-part series on how to use Echidna to fuzz like a pro! This repository has 6 folders, each of which maps to a specific workshop in the series.

To learn more about how these workshops will work, please read this blogpost.

Note that each workshop will be live streamed on Trail of Bits' Twitch channel and YouTube channel at 12 PM EST on the following days:

Beginner

Part 1: The Basics (streaming on Nov 16, 2022)

Part 2: Fuzzing arithmetics and functions (streaming on Nov 22, 2022)

Intermediate

Part 3: Introduction to AMM’s invariants (streaming on Nov 30, 2022)

Part 4: AMM fuzzing (streaming on Dec 6, 2022)

Advanced

Part 5: Introduction to advanced DeFi’s invariants (streaming on Dec 14, 2022)

Part 6: Advanced DeFi invariants (streaming on Dec 21, 2022)

Additional Notes

  • This repository will be migrated to the building-secure-contracts repository at the end of the series. We will update this README when that time comes.
  • This repository will be updated as the series continues. Thus, there might be some incomplete folders / broken links in the process.

Try your own invariants!

ABDK Math

  • Associative property of multiplication – (x * y) * z = x * (y * z)
  • Distributive property of multiplication – x * (y + z) = (x * y) + (x * z)
  • Multiplication of inverses (using the inv function) – inv(x * y) = inv(x) * inv(y)
  • Square roots – sqrt(x) * sqrt(x) = x
  • Logarithms – log2(x * y) = log2(x) * log2(y)
  • Average gavg()
  • Power pow()
  • Natural logarithm – ln()
  • Exponentiation – exp()

Uniswap V2

  • Path independence for swaps
  • Pool invariant always increases
  • LP tokens are minted differently based on existing pool liquidity
  • An LP provider's underlying asset balances are monotonically increasing
  • Path independence for LPs

Echidna Installation

echidna-streaming-series's People

Contributors

anishnaik avatar technovision99 avatar chmielewskikamil avatar guille-block avatar webthethird avatar k-xo 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.