Skip to content

ksatyarth2/Uniswap-scribble-annotations

Repository files navigation

Uniswap V2 with ConsenSys Scribble Annotations

!The original repo belongs to uniswap.org. I've used it to annotate only 2 files to check vulnerabilities.

Actions Status Version

In this exercise we're going to have a look at two contracts:

Local Development

The following assumes the use of node 10-12.

Installation

# We'll use Mythril to automatically test specifications

pip3 install mythril

npm install eth-scribble --global
npm install truffle --global
npm install ganache-cli --global

Setting up the target

git clone https://github.com/ksatyarth2/Uniswap-scribble-annotations.git
cd Uniswap-scribble-annotations

Finding the bug using Mythril

scribble --arm -m files ./contracts/UniswapV2Pair.sol
myth analyze ./contracts/UniswapV2Pair.sol

# Always clean up after yourself 😉
scribble --disarm -m files ./contracts/vulnerableERC20.sol

Support Links

About

Consensys scribble annotations for the Uniswap Core contracts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6