token-integration-safety

Community

Safe ERC-20 integration for non-standard tokens.

Authorccashwell
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Non-standard ERC-20 token integrations pose safety risks in smart contracts, including unexpected behavior from tokens like USDT, USDC, or rebasing assets. This Skill provides patterns to ensure safe interactions and robust handling across deposits, withdrawals, and approvals.

Core Features & Use Cases

  • SafeERC20 usage with forceApprove to mitigate USDT quirks.
  • Decimals awareness for non-18-decimal tokens and blacklists handling.
  • Handling fee-on-transfer, rebasing tokens, and ERC-777 callbacks.
  • Permit2 integration guidance for gasless approvals.
  • Token quirks reference and integration checklist for production safety.
  • Real-world use cases: vaults, adapters, and cross-token finance modules.

Quick Start

Apply safeERC20 patterns to a non-standard token transfer in a vault example.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: token-integration-safety
Download link: https://github.com/ccashwell/evm-cortex/archive/main.zip#token-integration-safety

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.