Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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