weird-tokens

Identify non-standard ERC20 token behaviors and provide mitigation strategies for integration pitfalls.

1|1|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/Apegurus/solidity-argus --skill weird-tokens
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: weird-tokens
Source: https://github.com/Apegurus/solidity-argus/tree/main/skills/vulnerability-patterns/weird-tokens
Command: npx skills add https://github.com/Apegurus/solidity-argus --skill weird-tokens

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexities and potential pitfalls of integrating with ERC20 tokens that deviate from the standard interface or introduce non-standard behaviors, preventing silent failures and exploits.

Core Features & Use Cases

  • Identify Non-Standard Behaviors: Detects issues like missing return values, fee-on-transfer mechanisms, rebasing, pausing, and blocklisting.
  • Mitigation Strategies: Provides clear guidance on how to safely interact with these tokens, such as using SafeERC20, measuring actual received amounts, avoiding balance caching, and implementing emergency withdrawal paths.
  • Use Case: When integrating a new DeFi protocol, use this Skill to ensure that all token interactions are robust against common ERC20 quirks, preventing loss of funds due to unexpected token behavior.

Quick Start

Analyze the provided token contract for any non-standard ERC20 behaviors and suggest safe integration patterns.

Frequently Asked Questions about weird-tokens

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

FAQPage Schema
How do I safely integrate fee-on-transfer and rebasing ERC20 tokens into my smart contract?

To safely integrate fee-on-transfer and rebasing ERC20 tokens, measure actual received amounts instead of caching balances, use SafeERC20 for missing return values, and implement emergency withdrawal paths to prevent silent failures.

What are common non-standard ERC20 token behaviors that cause DeFi vulnerabilities?

Common non-standard ERC20 behaviors causing DeFi vulnerabilities include fee-on-transfer mechanisms, rebasing supplies, pausing capabilities, blocklisting, and missing return values that lead to silent integration failures and potential exploits.

How do I handle ERC20 tokens with missing return values during token integration?

Handle ERC20 tokens with missing return values by using SafeERC20 wrappers, measuring actual received token amounts, and avoiding balance caching to ensure robust smart contract integration and prevent unexpected token behavior.

Does my smart contract need an integration checklist for non-standard ERC20 tokens?

Yes, your smart contract needs an integration checklist for non-standard ERC20 tokens to verify fee-on-transfer logic, rebasing adjustments, blocklist handling, and emergency withdrawal paths to prevent loss of funds.

Why does my DeFi protocol silently fail when interacting with certain ERC20 tokens?

Your DeFi protocol silently fails because certain ERC20 tokens deviate from the standard interface by implementing fee-on-transfer, rebasing, or missing return values, requiring mitigation strategies like measuring actual received amounts.

What is the best way to audit smart contracts for non-standard ERC20 token vulnerabilities?

The best way to audit smart contracts for non-standard ERC20 token vulnerabilities is to analyze token contracts for fee-on-transfer mechanisms, rebasing, and missing return values, then apply safe integration patterns and an integration checklist.