A. Main functions of ERC-20:
1. name — Token name (for example, “ProTechToken”)
2. symbol — Token symbol (for example, “PTT”)
3. decimals — Number of decimal places (usually 18)
4. totalSupply() — Total number of tokens created
5. balanceOf(address) — Show balance of the specified address
6. transfer(address, uint256) — Transfer tokens
B. Unlimited possibilities and limitations:
7. unlimitedHolders = true — Unlimited number of token holders ♾️
8. unlimitedTransfers = true — No limits on transfers 🚀
9. onlyTokenHoldersCanTransfer = true — Only token holders can transfer 🛡️
10. noBlacklistOrPause = true — No blacklist or pause function ❌
C. Security and renunciation of control:
11. owner() — Find out the current owner of the contract
12. renounceOwnership() — Renounce control for decentralization ⚖️
D. Token burning (burn):
13. burn(uint256) — Voluntary burning of tokens from balance 🔥
E. Staking with a 30-day freeze:
14. stake(uint256) — Freeze tokens for 30 days ⏳
15. unstake() — Unfreeze tokens after the period ❄️
16. getStakingInfo(address) — Information on freezing and duration
F. Token presale (without liquidity):
17. setSaleActive(bool) — Turn on/off presale ⚙️
18. setPrice(uint256) — Set price in ETH 💰
19. buyTokens() payable — Purchase tokens for ETH directly
20. withdrawETH() — Withdraw ETH from the contract to the owner's wallet 💼
21. getPrice() — View current token price
Code placement on GitHub!!!
Looking for an experienced developer with a portfolio and examples of contracts. Payment by agreement.
Contact me in private messages ✊