I created a token according to this pattern
How to burn tokens or send to a dead wallet?
I created a token according to this pattern
How to burn tokens or send to a dead wallet?
You can add the burnable modifier. Your contract must have some kind of burn function, or you can manually burn tokens by sending them with a transfer to the 0x000000000000000 dead address.
Have a look at the standard ERC20 contract. https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol
After that please take some time and follow some tutorials.
This is a great starter tutorial to get you into the thick of it. You don’t need to understand 100% of it, just be able to finish OpenZeppelin Upgrades: Step by Step Tutorial for Hardhat
Then take a look at Solidity learning resources
I know it’s a pain to take the time to teach yourself, but think of it as an investment. After you go through the tutorials you should be ready to build whatever smart contracts you want!
hi Yoshiko
can you modify the burn function to make me burn 20% from the total supply automatically and daily?