Skip to content

Commit

Permalink
Update +page.md
Browse files Browse the repository at this point in the history
Removal of diagram tag.
  • Loading branch information
Equious authored Nov 15, 2024
1 parent 9aeff33 commit 9b0bfa6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions courses/uniswap-v2/7-twap/1-twap-spot-price-oracle/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ Let's imagine a lending protocol that allows users to borrow DAI by locking ETH

A hacker could exploit this protocol by manipulating the spot price of ETH. They could buy a large amount of ETH with DAI, increasing the price. Then, they could borrow a large amount of DAI, exceeding the value of their collateral.

**Diagram:** [Insert Diagram Here]

In the diagram, the hacker:
Imagine a hacker:

1. Buys 832 WETH using 10,000,000 DAI, increasing the spot price of ETH to 71,819 DAI per ETH.
2. Borrows 5,745,599 DAI by locking 100 ETH as collateral.
Expand Down

0 comments on commit 9b0bfa6

Please sign in to comment.