Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 676 Bytes

avoiding_common_attacks.md

File metadata and controls

15 lines (8 loc) · 676 Bytes

Avoid Common Attacks 🚫

SWC-103 → (Floating Pragma)

Specific compiler pragma 0.8.4 used in the contracts to avoid compiler problems.

Function sendERC20 and sendEther is protected with OpenZeppelin Ownable's onlyOwner modifier.

SWC-123 → (Requirement Violation)

  • The use of require in the sendERC20 and sendEther functions before the transfer function is called.

  • The use of require in the receiveERC20 function before the transferFrom function is called.