BaseLearn1

Description:

Smart contract deployed on Ethereum with Factory features.

Blockchain: Ethereum

Source Code: View Code On The Blockchain

Solidity Source Code:

{{
  "language": "Solidity",
  "sources": {
    "Base-Learn1.sol": {
      "content": "// SPDX-License-Identifier: MIT\r
pragma solidity ^0.8.20;\r
\r
contract BaseLearn1 {\r
\r
    function adder(uint _a, uint _b) public pure returns (uint, bool) {\r
        uint sum = _a + _b;\r
        // Overflow check\r
        if (sum < _a) {\r
            return (0, true); // overflow\r
        }\r
        return (sum, false);\r
    }\r
\r
    function subtractor(uint _a, uint _b) public pure returns (uint, bool) {\r
        if (_b > _a) {\r
            return (0, true); // underflow\r
        }\r
        return (_a - _b, false);\r
    }\r
}"
    }
  },
  "settings": {
    "optimizer": {
      "enabled": false,
      "runs": 200
    },
    "outputSelection": {
      "*": {
        "*": [
          "evm.bytecode",
          "evm.deployedBytecode",
          "devdoc",
          "userdoc",
          "metadata",
          "abi"
        ]
      }
    },
    "remappings": []
  }
}}

Tags:
Factory|addr:0xc67cc02760f1cf27db98c1355dea91026a65e418|verified:true|block:23708978|tx:0x8e24cd8bbde4b0703357cc2e12f4ca48733fa63f4c5c6ee8dcce8f25dfc85826|first_check:1762079057

Submitted on: 2025-11-02 11:24:19

Comments

Log in to comment.

No comments yet.