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.30;
/// @title ShibburnL1
/// @author Shibburn.com
/// @notice Handles verified SHIB burns on Ethereum (L1).
/// @dev Stateless and permissionless — anyone may call burn() once funds are verified.
interface IShibToken {
function burn(uint256 amount) external;
function balanceOf(address account) external view returns (uint256);
}
contract ShibburnL1 {
/// @notice The official SHIB token contract (supports burn(uint256))
IShibToken public constant shibToken = IShibToken(0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE);
/// @notice Emitted when SHIB is permanently burned via burn() method
event Burned(uint256 amount, uint256 timestamp);
/// @notice Burns SHIB from this contract’s balance using burn() method.
/// @param amount Amount of SHIB to burn (in wei units).
function burn(uint256 amount) external {
require(amount > 0, "amount=0");
shibToken.burn(amount);
emit Burned(amount, block.timestamp);
}
/// @notice View the SHIB balance currently held by this contract.
/// @return Balance in SHIB tokens (wei units)
function available() external view returns (uint256) {
return shibToken.balanceOf(address(this));
}
}
Submitted on: 2025-10-18 09:55:13
Comments
Log in to comment.
No comments yet.