Skip to content

Commit

Permalink
Update docs and add GIF for network startup
Browse files Browse the repository at this point in the history
  • Loading branch information
sbellem committed Feb 13, 2024
1 parent 0dc9815 commit 09a1222
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions hacking/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Running the MEV Demo

### Update Git Submodules
## Update Git Submodules
Fetch the git submodules by running the following command:

```shell
git submodule update --init --recursive --remote
```

### Requirements
## Requirements
* Docker Engine: https://docs.docker.com/engine/install/
* Docker compose: https://docs.docker.com/compose/

### Setup Environment
## Setup Environment

```shell
make start
Expand All @@ -32,6 +32,9 @@ The victim account has a balance of 12343. Two attacker accounts have balance of

4) Shut down node-1 to launch the attack in simulation mode without broadcasting any transactions to the network.

### Animated GIF of Network Startup
![](./start-network.gif)

## Launch MEV Sandwich Attack

```shell
Expand All @@ -53,7 +56,7 @@ The above command simulates an adversary executing the following steps:
sell the 40 `token_b`, increasing their balance of `token_a` by 1 and maintaining
their balance of `token_b`.

### Animated GIF of attack
### Animated GIF of sandwich attack
![](./sandwich-attack.gif)


Expand All @@ -77,7 +80,7 @@ The above command simulates an adversary executing the following steps:
* execute the victim's transaction to see if `guess` was enough to conver the victim's transfer transaction
3) If the `guess` was enough to cover the victim's transfer transaction then `guess` is the transfer amount

### Animated GIF of attack
### Animated GIF of transfer amount privacy attack
![](./transfer-privacy-attack.gif)


Expand Down
Binary file added hacking/start-network.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 09a1222

Please sign in to comment.