ETH Price: $2,307.79 (-0.81%)

Contract

0xBa9Ef5C60686b8AFa77bDb80fc4BA001F1Cc6270

Overview

ETH Balance

Linea Mainnet LogoLinea Mainnet LogoLinea Mainnet Logo0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x6839e08d...A916C9B16
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
BasicMath

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// Deployed with the Atlas IDE
// https://app.atlaszk.com/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract BasicMath {
    uint256 constant MAX_INT = type(uint256).max;

    function adder(uint256 _a, uint256 _b) external pure returns (uint256 sum, bool error) {
        if (_b > MAX_INT - _a) {
            return (0, true); // Overflow occurred
        }
        return (_a + _b, false);
    }

    function subtractor(uint256 _a, uint256 _b) external pure returns (uint256 difference, bool error) {
        if (_b > _a) {
            return (0, true); // Underflow occurred
        }
        return (_a - _b, false);
    }
}

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
    "forge-std/=lib/forge-std/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "viaIR": false,
  "debug": {
    "revertStrings": "default"
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint256","name":"_a","type":"uint256"},{"internalType":"uint256","name":"_b","type":"uint256"}],"name":"adder","outputs":[{"internalType":"uint256","name":"sum","type":"uint256"},{"internalType":"bool","name":"error","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_a","type":"uint256"},{"internalType":"uint256","name":"_b","type":"uint256"}],"name":"subtractor","outputs":[{"internalType":"uint256","name":"difference","type":"uint256"},{"internalType":"bool","name":"error","type":"bool"}],"stateMutability":"pure","type":"function"}]

0x608060405234801561001057600080fd5b5061016f806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806306b034e91461003b5780635270312a14610067575b600080fd5b61004e6100493660046100d5565b61007a565b6040805192835290151560208301520160405180910390f35b61004e6100753660046100d5565b6100b4565b6000806100898460001961010d565b83111561009c57506000905060016100ad565b6100a68385610126565b6000915091505b9250929050565b600080838311156100cb57506000905060016100ad565b6100a6838561010d565b600080604083850312156100e857600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b81810381811115610120576101206100f7565b92915050565b80820180821115610120576101206100f756fea2646970667358221220217cfadc93606f703809ed41eec948587c3925591c2072f4ac487f48c63a628d64736f6c63430008180033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100365760003560e01c806306b034e91461003b5780635270312a14610067575b600080fd5b61004e6100493660046100d5565b61007a565b6040805192835290151560208301520160405180910390f35b61004e6100753660046100d5565b6100b4565b6000806100898460001961010d565b83111561009c57506000905060016100ad565b6100a68385610126565b6000915091505b9250929050565b600080838311156100cb57506000905060016100ad565b6100a6838561010d565b600080604083850312156100e857600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b81810381811115610120576101206100f7565b92915050565b80820180821115610120576101206100f756fea2646970667358221220217cfadc93606f703809ed41eec948587c3925591c2072f4ac487f48c63a628d64736f6c63430008180033

Block Transaction Gas Used Reward
view all blocks sequenced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.