• Stars
    star
    192
  • Rank 202,019 (Top 4 %)
  • Language
    Solidity
  • License
    GNU Affero Genera...
  • Created over 1 year ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Pre-built security properties for commonly forked DeFi protocols

Fuzzy DeFi

Properties

This repository contains code properties for the current top five forked protocols:

  1. Uniswap v2 An AMM powered by the constant product formula, properties.
  2. Olympus DAO A protocol-owned Treasury serving the market gap between stablecoins and volatile assets, properties.
  3. Compound v2 An algorithmic, autonomous interest rate protocol, properties.
  4. Tomb Finance An algorithmic token pegged to FTM, properties.

The goals of these properties are to:

  • Detect vulnerabilities
  • Ensure adherence to the original protocols properties
  • Provide educational guidance for writing invariants

Testing

  1. Install Foundry
  2. Follow the protocols corresponding README setup.

Contributing to this repo?

You can read more about the contribution guidelines and directory structure in the CONTRIBUTING file.

Trophies

I have not used it in the wild and did this mostly to build my fuzzing skills. If you use this and find any bugs congrats!!!

Create an issue with "Trophy" as your title and we can add it to a list with your proper credits!

No Guarantees

There are no guarantees with using this project to secure your protocol! There is still a lot to improve with this repo and not everything is fully tested nor is it a silver bullet!

License

Modified code forked from there respective companies are licensed under there respective licenses in accordance with the original licenses.

All other files within this repository are licensed under the AGPL License unless stated otherwise.