A smart contract that burns 99% of held ERC20 tokens and rewards the caller with 1%.
- Network: Base Mainnet
- Contract Address:
0x9f476025aec83e91ebc09ecfb0654391f7f14e59
- Verified on Basescan: View Contract
- Burns 99% of held ERC20 tokens
- Rewards caller with 1% of tokens
- If token has no burn function, sends to zero address instead
- Includes reentrancy protection
- Uses SafeERC20 for secure token transfers
# Install dependencies
npm install
# Compile contracts
npx hardhat compile
# Deploy to Base Mainnet
npx hardhat run scripts/deploy.js --network baseMainnet
# Verify contract
npx hardhat verify --network baseMainnet <CONTRACT_ADDRESS>
- 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
You can check the contract's token balances in two ways:
-
Using the Contract:
- Go to Basescan
- Click "Read Contract"
- Use the
checkBalance
function by inputting any ERC20 token address - This will show both the total balance and the reward amount (1%)
-
Using Token Tracker:
- Go to Basescan
- Click "Token Tracker" tab
- This shows all ERC20 tokens that have been sent to the contract
- Solidity ^0.8.20
- OpenZeppelin contracts