Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 716 Bytes

avoiding_common_attacks.md

File metadata and controls

21 lines (11 loc) · 716 Bytes

Contract security measures

SWC-103 (Floating pragma)

Specific compiler pragma 0.8.0 used in contracts to avoid accidental bug inclusion through outdated compiler versions.

SWC-105 (Unprotected Ether Withdrawal)

withdraw is protected with OpenZeppelin Ownable's onlyOwner modifier.

SWC-104 (Unchecked Call Return Value)

The return value from a call to the owner's address in addAsTenant is checked with require to ensure transaction rollback if call fails.

Modifiers used only for validation

All modifiers in contract(s) only validate data with require statements.

Pull over push

All functions that modify state are based on receiving calls rather than making contract calls.