Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kristianism/defi-token-antiwhale
Anti-whale ERC20 Token
https://github.com/kristianism/defi-token-antiwhale
antiwhale erc20 evm solidity token
Last synced: 4 days ago
JSON representation
Anti-whale ERC20 Token
- Host: GitHub
- URL: https://github.com/kristianism/defi-token-antiwhale
- Owner: kristianism
- License: mit
- Created: 2025-01-23T04:25:17.000Z (16 days ago)
- Default Branch: main
- Last Pushed: 2025-01-26T16:34:18.000Z (13 days ago)
- Last Synced: 2025-01-26T17:29:51.969Z (13 days ago)
- Topics: antiwhale, erc20, evm, solidity, token
- Language: Solidity
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Anti-whale ERC20 Token
This is a simple ownable token contract that has the basic mint and burn function, and anti-whale settings.### Solidity Version:
- 0.8.20### Imports:
- @openzeppelin/contracts/access/Ownable.sol
- @openzeppelin/contracts/token/ERC20/ERC20.sol### Constructor Arguments:
- _name: The full name of the token
- _symbol: The short name for the token or the ticker
- _initialSupply: The number of tokens to be pre-minted or pre-created to the deployer address
- _maxWalletHolding: Maximum number of tokens that a user can hold.
- _maxTransferAmount: Maximum number of tokens that can be transferred to another user.### Functions:
- mint: Privileged function to create or mint an X amount of token/s to a specified address
- burn: External function to destroy an X amount of tokens from sender address
- updateMaxWalletHolding: External function to update the maximum tokens a user can hold.
- updateMaxTransferAmount: External function to update the maximum tokens that can be transferred at a time.
- Openzeppelin default Ownable functions
- Openzeppelin default ERC20 functions