Description:
Smart contract deployed on Ethereum.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IERC20 {
function transfer(address to, uint256 amount) external returns (bool);
function balanceOf(address account) external view returns (uint256);
}
/// @title Shibburn
/// @author Shibburn.com
/// @notice Permanently burns SHIB by forwarding to the black hole on Ethereum
/// @dev Safety Note: Any SHIB sent to this contract is irretrievable.
/// Once tokens are burned, they are gone forever. No owner, no admin,
/// and no recovery mechanism exists.
contract Shibburn {
/// @notice SHIB token on Ethereum mainnet
IERC20 public constant token = IERC20(0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE);
/// @notice Hardcoded burn address (true burn, irreversible)
address public constant burnAddress = 0x0000000000000000000000000000000000000000;
event Burned(uint256 amount, address indexed sink);
/// @notice Burn the entire SHIB balance held by this contract
function burnAll() external {
uint256 bal = token.balanceOf(address(this));
require(bal > 0, "no balance");
require(token.transfer(burnAddress, bal), "transfer fail");
emit Burned(bal, burnAddress);
}
/// @notice Burn a specific amount
/// @param amount Amount to burn (forwards to burn address)
function burn(uint256 amount) external {
require(amount > 0, "amount=0");
require(token.transfer(burnAddress, amount), "transfer fail");
emit Burned(amount, burnAddress);
}
/// @notice View the SHIB balance currently held by this contract
/// @return Balance in SHIB tokens
function available() external view returns (uint256) {
return token.balanceOf(address(this));
}
}
Submitted on: 2025-09-24 17:24:07
Comments
Log in to comment.
No comments yet.