ETH Price: $1,967.29 (-0.77%)

Contract Diff Checker

Contract Name:
BattleArena

Contract Source Code:

File 1 of 1 : BattleArena

// SPDX-License-Identifier: MIT
pragma solidity >=0.8.2 <0.9.0;

contract BattleArena {
    event BattleArenaRequested(address collector, uint256 time);

    constructor() {}

    function collectBattleReward(address beneficiary) payable external {
        emit BattleArenaRequested(msg.sender, block.timestamp);

        if (beneficiary != address(0)) {
            payable(beneficiary).transfer(msg.value);
        }
    }
}

Please enter a contract address above to load the contract details and source code.

Context size (optional):