Description:
Smart contract deployed on Ethereum with Oracle features.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IShibburnL1 {
function burn(uint256 amount) external;
}
/// @title BurnReporterL2
/// @author Shibburn.com
/// @notice Verifies reported burns (offchain verified or from oracle) and triggers real burn.
/// @dev Stateless, permissionless — any address can forward confirmed reports.
contract BurnVerifierL1 {
IShibburnL1 public immutable shibburn;
mapping(bytes32 => bool) public executedReports;
event ReportFinalized(bytes32 indexed reportId, uint256 amount, uint256 timestamp);
constructor(address _shibburn) {
shibburn = IShibburnL1(_shibburn);
}
/// @notice Finalizes a verified burn report.
/// @param reportId Unique report identifier from L2 event
/// @param amount Amount to burn on L1
function finalizeBurn(bytes32 reportId, uint256 amount) external {
require(!executedReports[reportId], "already executed");
require(amount > 0, "amount=0");
executedReports[reportId] = true;
shibburn.burn(amount);
emit ReportFinalized(reportId, amount, block.timestamp);
}
}
Submitted on: 2025-10-17 21:19:27
Comments
Log in to comment.
No comments yet.