A simple Solidity contract that burns ERC20 tokens and rewards the caller.
- Burns 99% of any ERC20 tokens sent to it
- Rewards the caller with 1% of the burned tokens
- If a token doesn't have a burn function, it sends the tokens to the zero address instead
- Send ERC20 tokens to the contract
- Call the
burn()function - You'll receive 1% of the tokens as a reward
- Safe token handling using OpenZeppelin's SafeERC20
- Protection against reentrancy attacks
- Automatic fallback to zero address if burn function isn't available
- Solidity ^0.8.20
- OpenZeppelin contracts