Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 644 Bytes

ERC20 `approve` race-condition.md

File metadata and controls

20 lines (18 loc) · 644 Bytes

The ERC20 standard has a known ERC20 race condition that must be mitigated to prevent attackers from stealing tokens. (See here)


Slide Screenshot

0105.jpg


Slide Text

  • ERC20 approve() -> Race-condition
  • approve(100) -> approve(50)
  • Allowance Decrease
  • Front-run -> Spend 150
  • increaseAllowance()
  • decreaseAllowance()

References


Tags