BurnVerifierL1

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);
    }
}

Tags:
Oracle|addr:0xe2d50e1e2f59b090d3610962c26e77196a9ffb26|verified:true|block:23599121|tx:0x48e9762b770503859043d2507fed6e6a94e1782d49c57ff99d1907ec62a42d84|first_check:1760728766

Submitted on: 2025-10-17 21:19:27

Comments

Log in to comment.

No comments yet.