Giter VIP home page Giter VIP logo

defilabs's Introduction

DeFiLabs

In-progress.

This repo aim to learn DeFi projects; how the functionality works, on-chain testing, bug finding, fuzzing, CI, etc.

Getting Started

  • Follow the instructions to install Foundry.

  • Clone and install dependencies:git submodule update --init --recursive

  • To see function signatures you shoul add --etherscan-api-key YOURAPIKEY at the end of the forge test, you coul get an API key on https://etherscan.io/myapikey

FlashLoan Testing

UniSwapV2 FlashSwap Testing

forge test --contracts ./src/test/Uniswapv2_flashswap.sol -vv

DODO FlashLoan Testing

forge test --contracts ./src/test/DODO_flashloan.sol -vv

AAVE FlashLoan Testing

forge test --contracts ./src/test/Aave_flashloan.sol -vv

Balancer FlashLoan Testing

forge test --contracts ./src/test/Balancer_flashloan.sol -vv

Pancakeswap FlashSwap Testing

forge test --contracts ./src/test/Pancakeswap_flashswap.sol -vv

Biswap FlashSwap Testing

forge test --contracts ./src/test/Biswap_flashloan.sol -vv

ChainLink Testing

getLatestPrice | more tests in-progress

forge test --contracts ./src/test/Chainlink.sol -vv

Compound Testing

ERC20 - cToken Supply/Redeem/Borrow/Repay | more tests in-progress

forge test --contracts ./src/test/Compound.sol -vv

Goverance - submit proposal | more tests in-progress

forge test --contracts ./src/test/Compound-dao.sol -vv

UniswapV3 Testing

Get Time Widget Avarge Tick | Periphery

forge test --contracts ./src/test/Uniswapv3_twap.sol -vv

UniswapV2 Testing

Swap | Router | Pair | Factory | Library

forge test --contracts ./src/test/Uniswapv2.sol -vv

Curve Testing

Swap | more tests in-progress

forge test --contracts ./src/test/Curve.sol -vv

GMX Swap Testing

forge test --contracts ./src/test/gmx_swap.sol -vv

MakerDAO Testing

Balancer Testing

defilabs's People

Contributors

sunweb3sec avatar eugenioclrc avatar sentient-xii avatar finn79426 avatar h4cr3 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.