ERC-404
ERC-404¶
Overview¶
ERC-404 is an experimental "Semi-Fungible Token" standard created by pseudonymous developers "ctrl" and "Acme" in early 2024. This standard attempts to merge the characteristics of ERC-20 (fungible tokens) and ERC-721 (NFTs) into a single token, enabling native fractionalization of NFTs.
Important Warning: ERC-404 is an experimental, unofficial standard that has not been submitted as an official EIP (Ethereum Improvement Proposal) and has not undergone a complete external security audit. Exercise caution and evaluate risks carefully before use.
Core Concepts¶
What is Semi-Fungible ERC-404 tokens simultaneously possess two attributes: - Fungible part: Can be divided and traded like ERC-20 tokens - Non-fungible part: Automatically owns a corresponding NFT when holding whole tokens
Mint-Burn Mechanism Core operation: - Holding 1 complete token -> Automatically mints 1 NFT - Token divided to less than 1 -> NFT is burned - Reacquiring 1 complete token -> Mints a new NFT
How It Works¶
Dynamic Binding of Tokens and NFTs
Scenario 1: Purchasing Whole Tokens
User purchases 1 $PANDORA token
-> Automatically mints 1 Pandora NFT to the user's wallet
-> The NFT has unique visual traits and rarity
Scenario 2: Selling Partial Tokens
User sells 0.3 $PANDORA
-> Remaining 0.7 tokens (less than 1)
-> Associated NFT is automatically burned
-> User only holds 0.7 fungible tokens
Scenario 3: Reacquiring Whole Tokens
User purchases another 0.5 $PANDORA
-> Total: 1.2 tokens
-> Automatically mints a new NFT
-> The NFT traits may differ from the previous one
Scenario 4: Holding Multiple Whole Tokens
User holds 3.7 $PANDORA
-> Owns 3 NFTs (corresponding to 3 whole tokens)
-> Remaining 0.7 exists as fungible tokens
Technical Implementation¶
Contract Structure
contract ERC404 {
// ERC-20 state
mapping(address => uint256) public balances;
uint256 public totalSupply;
// ERC-721 state
mapping(uint256 => address) public ownerOf;
mapping(address => uint256[]) public tokensOfOwner;
uint256 public nftIdCounter;
// Transfer logic
function transfer(address to, uint256 amount) public {
_transferFungible(msg.sender, to, amount);
_updateNFTs(msg.sender);
_updateNFTs(to);
}
function _updateNFTs(address user) internal {
uint256 balance = balances[user];
uint256 nftCount = balance / UNIT; // Number of NFTs that should be held
uint256 currentNftCount = tokensOfOwner[user].length;
if (nftCount > currentNftCount) {
// Mint NFTs
for (uint i = 0; i < nftCount - currentNftCount; i++) {
_mintNFT(user);
}
} else if (nftCount < currentNftCount) {
// Burn NFTs
for (uint i = 0; i < currentNftCount - nftCount; i++) {
_burnNFT(user);
}
}
}
}
Key Features¶
Native Fractionalization - No additional fractionalization protocol needed - NFTs automatically sync with token balances - Simplified user experience
Enhanced Liquidity - NFT holders can sell partial tokens on a DEX at any time - No need to find a buyer for the entire NFT - Lowers the liquidity barrier for NFTs
Speculative Gameplay - A new NFT is minted each time whole tokens are reacquired - NFT rarity is random - Creates a "mystery box" style of gamification
Use Cases¶
Liquid NFTs - Fractional trading of blue-chip NFTs - Partial ownership markets - Lowers the entry barrier for high-value NFTs
Gaming Assets - Combining in-game tokens with equipment - Holding tokens means owning game characters or items - Tradable game economy
Community Tokens - Receive a membership NFT alongside community tokens - Token quantity linked to membership level - Flexible governance and reward mechanisms
Notable Projects¶
Pandora ($PANDORA) - The first project to adopt ERC-404 - Launched in February 2024 - Triggered a market frenzy - Total supply: 10,000 tokens/NFTs
DeFrogs - Community-driven ERC-404 project - Unique frog-themed NFTs - Experimental token economics
Monkees - Another early ERC-404 project - Monkey-themed NFT collection - Exploring the possibilities of fractionalized NFTs
Advantages¶
Improved Liquidity - NFT holders can partially cash out - No need to wait for a buyer for the entire NFT - DEX provides instant liquidity
Price Discovery - Markets can price NFTs more accurately - Avoids the low liquidity of traditional NFT markets - Continuous price updates
Composability - Can be traded on Uniswap and other DEXs - Integrates with DeFi protocols - Can be used as collateral
Novelty - Innovative token mechanism - Attracts speculators and collectors - High community engagement
Drawbacks and Risks¶
Unofficial Standard - Has not undergone the EIP review process - No broad community consensus - May have design flaws
Insufficient Auditing - Lacks professional security audits - May contain undiscovered vulnerabilities - Higher contract risk
High Gas Costs - Each transfer may trigger NFT minting/burning - Gas fees far exceed those of standard ERC-20 transfers - Small transactions are uneconomical
NFT Randomness - NFTs are regenerated each time whole tokens are reacquired - Original rare NFTs may be lost - Not suitable for true collectibles
Limited Ecosystem Support - Not supported by mainstream exchanges - Wallet display may have issues - Poor compatibility with NFT marketplaces
Tax Complexity - Tax treatment of token trading and NFT minting/burning is unclear - May lead to complex tax issues
Comparison with ERC-1155¶
ERC-404 vs ERC-1155 (the true semi-fungible standard):
| Feature | ERC-404 | ERC-1155 |
|---|---|---|
| Official standard | No | Yes |
| Audit status | Insufficiently audited | Thoroughly tested |
| Gas efficiency | Low | High |
| NFT persistence | NFTs are burned and re-minted | NFTs persist |
| Market support | Limited | Broad |
| Fractionalization mechanism | Automatic mint/burn | Divisible supply |
Advantages of ERC-1155: - Official standard with good ecosystem support - High Gas efficiency - NFTs are not accidentally lost - Suitable for production environments
Uniqueness of ERC-404: - Automatic fractionalization mechanism - Tokens and NFTs are fully bound - Unique speculative and gameplay value
Market Performance¶
Hype Cycle ERC-404 went through a typical crypto hype cycle: 1. Early stage (February 2024): Pandora launched, price surged 2. Frenzy period: Multiple copycat projects, Gas fees spiked 3. Cooling period: Hype subsided, prices pulled back 4. Current state: Niche market, experimental in nature
Price Volatility - Pandora once reached over $30,000 per token - Stabilized at a much lower level after a significant pullback - Speculative value far exceeds utility
Security Recommendations¶
Risk Assessment Consider the following before using ERC-404: - ✗ Not formally audited - ✗ Not an official standard - ✗ High Gas cost - ✗ NFTs may be lost - ✓ Innovative mechanism - ✓ Active community
Investment Warning - Only invest amounts you can afford to lose - Understand the NFT minting/burning mechanism - Be aware of Gas fees - Pay attention to contract security
Development Recommendations If developing an ERC-404 project: - Conduct thorough security audits - Consider using the official ERC-1155 as an alternative - Clearly inform users of risks - Provide detailed mechanism documentation
Future Outlook¶
Standardization Possibility - ERC-404 may eventually be submitted as an official EIP - Requires community review and improvement - Competes with existing standards
Alternatives More mature fractionalization solutions: - *ERC-1155: The official semi-fungible standard - *Fractional.art: NFT fractionalization protocol - NFTX: NFT index funds
Niche Market ERC-404 may continue to exist in these scenarios: - Speculative games - Experimental projects - Small-scale community tokens
Related Links¶
- ERC-404 GitHub (unofficial)
- What is ERC-404 (Decrypt)
- ERC-404 Security Analysis (Hacken)
- Pandora Official Website
- ERC-1155 Official Standard (official alternative)