← All lessons
04

CODE BEFORE COPY · 10 min

Read the contract

Trace constructor, mint, transfer, and permission behavior.

04.1

Standards reduce surprises

DOGGO inherits OpenZeppelin's ERC-20 implementation instead of recreating transfer and allowance logic. The custom contract only names the token and performs the one-time mint.

04.2

Follow the supply

The constructor receives the recipient address, calculates one billion units with 18 decimals, and calls the internal mint function exactly once.

04.3

Absence matters

Checking the ABI for mint, pause, blacklist, upgrade, or fee methods is a useful first pass. It is not a security audit, but it catches many mismatches between copy and code.

KNOWLEDGE CHECK

Three quick sniffs.

01Why use OpenZeppelin ERC-20?
02When are DOGGO tokens minted?
03Does an ABI review replace an audit?