Champion

Description:

Smart contract deployed on Ethereum with Factory features.

Blockchain: Ethereum

Source Code: View Code On The Blockchain

Solidity Source Code:

{{
  "language": "Solidity",
  "sources": {
    "contracts/Champion.sol": {
      "content": "// SPDX-License-Identifier: MIT\r
pragma solidity ^0.8.20;\r
\r
\r
\r
\r
contract Champion {\r
\r
    address public immutable owner;\r
\r
    string public name;\r
    constructor(address _owner) {\r
        owner = _owner;\r
    }\r
\r
    function setChampion(string calldata champion) external payable {\r
        require(msg.value >= 0.0001 ether , "Insufficient ETH");\r
        name = champion;\r
    }\r
\r
    function withdraw() external {\r
        (bool success, ) = owner.call{value: address(this).balance }(""); \r
        require(success, "ETH refund failed");\r
    }\r
\r
    receive() external payable {}\r
\r
 \r
}"
    }
  },
  "settings": {
    "optimizer": {
      "enabled": true,
      "runs": 200
    },
    "debug": {
      "revertStrings": "debug"
    },
    "evmVersion": "paris",
    "outputSelection": {
      "*": {
        "*": [
          "evm.bytecode",
          "evm.deployedBytecode",
          "devdoc",
          "userdoc",
          "metadata",
          "abi"
        ]
      }
    },
    "metadata": {
      "useLiteralContent": true
    }
  }
}}

Tags:
Factory|addr:0x8dac1cd721efa0bdb8250cd9fc485d049c55e668|verified:true|block:23646111|tx:0x9f63060d441e0d9dc66dc7b1596a2c499dc8dc06caddb40dee1e474511b7daf8|first_check:1761324365

Submitted on: 2025-10-24 18:46:06

Comments

Log in to comment.

No comments yet.