erc20-patterns

Automate ERC-20 token implementation and integration guidance for Solidity projects.

120|12|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ccashwell/evm-cortex --skill erc20-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: erc20-patterns
Source: https://github.com/ccashwell/evm-cortex/tree/main/skills/erc20-patterns
Command: npx skills add https://github.com/ccashwell/evm-cortex --skill erc20-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a comprehensive set of ERC-20 implementation and integration patterns to reduce common pitfalls and accelerate token development.

Core Features & Use Cases

  • OpenZeppelin extensions: Permit, Votes, Burnable, Pausable, Capped, Snapshot, for feature-rich tokens.
  • Standard interface and best practices: interface IERC20, SafeERC20 usage, and robust integration patterns.
  • Common pitfalls and safe design: USDT non-standard returns, fee-on-transfer tokens, and handling rebasing tokens.

Quick Start

Start by reviewing the ERC-20 pattern template and adapting it to your token's name, symbol, and cap.

Frequently Asked Questions about erc20-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a safe ERC-20 token in Solidity using OpenZeppelin?

SafeERC20 usage in Solidity wraps token transfers to handle non-standard return values, such as USDT's missing return boolean. This integration pattern prevents silent transaction failures when interacting with diverse ERC-20 tokens.

How do I handle fee-on-transfer and rebasing tokens in Solidity?

Handling fee-on-transfer and rebasing tokens requires specific ERC-20 integration patterns that check actual balances received rather than transferred amounts. This safe design prevents accounting discrepancies in your Solidity contracts.

What OpenZeppelin extensions are available for feature-rich ERC-20 tokens?

OpenZeppelin extensions for feature-rich ERC-20 tokens include Permit, Votes, Burnable, Pausable, Capped, and Snapshot. These extensions allow you to add governance, gasless approvals, and supply controls to standard Solidity token contracts.

Does SafeERC20 support standard interface definitions for token upgrades?

ERC-20 patterns apply to standard interface definitions, OpenZeppelin extensions, SafeERC20 usage, and integration safety checks across token creation, upgrades, and interaction scenarios.