Skip to content

Latest commit

 

History

History
66 lines (48 loc) · 4.69 KB

i_got_hacked-Q.md

File metadata and controls

66 lines (48 loc) · 4.69 KB

Missing zero address check in Constructor

require() should be used instead of assert()

open TODO comments

TYPOS

Require() should have descriptive reason strings

Event is missing indexed fields

Index event fields make the field more quickly accessible to off-chain tools that parse events. However, note that each index field costs extra gas during emission, so it’s not necessarily best to index the maximum allowed per event (three fields). Each event should use three indexed fields if there are three or more fields, and gas usage is not particularly of concern for the events in question. If there are fewer than three fields, all of the fields should be indexed.

Use of block.timestamp

Block timestamps have historically been used for a variety of applications, such as entropy for random numbers (see the Entropy Illusion for further details), locking funds for periods of time, and various state-changing conditional statements that are time-dependent. Miners have the ability to adjust timestamps slightly, which can prove to be dangerous if block timestamps are used incorrectly in smart contracts.

NatSpec is incomplete