Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 963 Bytes

File metadata and controls

23 lines (21 loc) · 963 Bytes

Contracts that accept/manage/transfer ETH should ensure that:

  • Functions handling ETH are using msg.value appropriately
  • Logic that depends on ETH value accounts for less/more ETH sent
  • Logic that depends on contract ETH balance accounts for the different direct/indirect (e.g. coinbase transaction selfdestruct recipient) ways of receiving ETH and transfers are reentrancy safe.

Functions handling ETH should be checked extra carefully for access control, input validation and error handling.


Slide Screenshot

0158.jpg


Slide Text

  • ETH Handling Deposit/Withdraw/Transfer
  • msg.value/payable/withdraw/balance/transfer
  • Reentrancy/Locking/Access Control/Input Validation/Error Handling
  • Contracts/Functions
  • Ensure Correct ETH Handling

References


Tags