Memecoin ERC-20 token incorporates ERC-20 Permit (EIP-2612) for gasless transactions, extending the basic functionalities of a standard ERC-20 token to enhance user experience in the decentralized finance (DeFi) ecosystem. It introduces a unique permission model that restricts the use of permit
function to a designated address, referred to as the token pool, to mitigate risks associated with signature phishing attacks.
- ERC-20 Compliance: Ensures compatibility with the vast ecosystem of Ethereum-based applications.
- ERC-20 Permit (EIP-2612): Allows gasless transactions by leveraging signatures for approvals, enhancing user experience.
- Restricted Permit Usage: Enhances security by limiting
permit
functionality to a predefined address, thereby protecting token holders from potential signature phishing.
Before deploying or interacting with the Memecoin smart contract, ensure you have the following installed:
- Node.js (v18.x or later recommended)
- npm (v9.x or later)
- Hardhat for smart contract compilation and deployment
- MetaMask or any Ethereum-compatible wallet for interaction
Contracts
├─ Memecoin.sol
To set up the Memecoin project locally for development:
git clone https://github.com/yourusername/memecoin.git
cd memecoin
npm install
npx hardhat test
npx hardhat coverage
All files in /contracts
are licensed under MIT as indicated in their SPDX header.