Skip to content

Commit

Permalink
wrong calculation (solana-labs#7028)
Browse files Browse the repository at this point in the history
matcher takes 2 B tokens as profit because amount of price difference is (7-6)*2B = 2B
  • Loading branch information
Hyung-bharvest authored and mvines committed Nov 19, 2019
1 parent 854fc8d commit 55dfd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench-exchange/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ The Matcher would initiate the following last swap:

- Row 1, To: Investor 1 trades 2 A token to 12 B tokens
- Row 1, From: Investor 2 trades 2 A token from 12 B tokens
- Matcher takes 4 B tokens as profit
- Matcher takes 2 B tokens as profit

Table becomes:

Expand Down

0 comments on commit 55dfd03

Please sign in to comment.