Skip to content

Commit

Permalink
add flow image
Browse files Browse the repository at this point in the history
  • Loading branch information
merklejerk committed Mar 7, 2024
1 parent ebd03b4 commit f031c63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ For Ethereum protocols that can be exploited in a single transaction (which are

## How it Works


### Protocol Registration
Projects register bounties with the HoneyPause contract via the `add()` function, providing:

Expand All @@ -18,6 +19,9 @@ Projects register bounties with the HoneyPause contract via the `add()` function
> \* Note that the HoneyPause contract never custodies bounties. It is up to the project's **Payer** contract to surface funds to cover the bounty when called.
### Claiming a Bounty

![contract flow](/assets/flow.jpg)

A whitehat that has discovered an exploit on a registered project will submit a successful `claim()` transaction **TO A PRIVATE MEMPOOL**, providing an [`Exploiter`](./src/HoneyPause.sol#L35) contract that will perform the exploit when called by HoneyPause. In the same transaction, the HoneyPause contract will:

1. Call into itself to enter a new call frame.
Expand Down
Binary file added assets/flow.jpg
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 f031c63

Please sign in to comment.