News:

SMF - Just Installed!


Post reply

Note: this post will not display until it has been approved by a moderator.
Attachments and other options
Attachments:
Click or drag files here to attach them.
Restrictions: 4 per post (4 remaining), maximum total size 192 KB, maximum individual size 128 KB
Note that any files attached will not be displayed until approved by a moderator.
Shortcuts: ALT+S post or ALT+P preview

Topic summary

Posted by where.is.my.mind
 - Jul 31, 2025, 11:46 AM
For most base cases I still lean on OpenZeppelin — rock solid, well-audited, and actively maintained.

For ERC20 + access control, I usually go:
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

If I'm messing with DeFi stuff (LP tokens, farming, etc.), I look at older audited projects like Sushi, Beefy, or Solmate (lightweight and gas-optimized).

Not a fan of copying random GitHub gists unless I know who wrote them. Seen too many copy-paste contracts with backdoors 😬

Bonus tip: check https://eth.build/ — good for visualizing contract logic.
Posted by BlockHQ
 - Jul 25, 2025, 09:20 PM
Don't reinvent the wheel. Let's share useful templates:
  • ERC-20/721 base contracts?
  • Access control?
  • DeFi functions?

If you have a link to a GitHub repo or audit-ready contract – even better!