ETH Price: $2,981.69 (+0.59%)
Gas: 6 Gwei

Contract

0x4C5A863a464D96E1488B6D4718C87457cF369DA4
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x61035161114626502020-12-16 7:04:301234 days ago1608102270IN
 Create: SafeMath
0 ETH0.0188239280

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SafeMath

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2021-01-28
*/

// solium-disable linebreak-style
pragma solidity ^0.5.11;

library SafeMath {
    function safeAdd(uint a, uint b) public pure returns (uint c) {
        c = a + b;
        require(c >= a,"");
    }
    function safeSub(uint a, uint b) public pure returns (uint c) {
        require(b <= a,"");
        c = a - b;
    }
    function safeMul(uint a, uint b) public pure returns (uint c) {
        c = a * b;
        require(a == 0 || c / a == b,"");
    }
    function safeDiv(uint a, uint b) public pure returns (uint c) {
        require(b > 0,"");
        c = a / b;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"safeAdd","outputs":[{"internalType":"uint256","name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"safeDiv","outputs":[{"internalType":"uint256","name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"safeMul","outputs":[{"internalType":"uint256","name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"safeSub","outputs":[{"internalType":"uint256","name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"}]

610351610026600b82828239805160001a60731461001957fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100565760003560e01c8063a293d1e81461005b578063b5931f7c146100a7578063d05c78da146100f3578063e6cb90131461013f575b600080fd5b6100916004803603604081101561007157600080fd5b81019080803590602001909291908035906020019092919050505061018b565b6040518082815260200191505060405180910390f35b6100dd600480360360408110156100bd57600080fd5b8101908080359060200190929190803590602001909291905050506101e9565b6040518082815260200191505060405180910390f35b6101296004803603604081101561010957600080fd5b81019080803590602001909291908035906020019092919050505061024d565b6040518082815260200191505060405180910390f35b6101756004803603604081101561015557600080fd5b8101908080359060200190929190803590602001909291905050506102be565b6040518082815260200191505060405180910390f35b6000828211156101de576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526000815260200160200191505060405180910390fd5b818303905092915050565b600080821161023b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526000815260200160200191505060405180910390fd5b81838161024457fe5b04905092915050565b60008183029050600083148061026b57508183828161026857fe5b04145b6102b8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526000815260200160200191505060405180910390fd5b92915050565b6000818301905082811015610316576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526000815260200160200191505060405180910390fd5b9291505056fea265627a7a7231582039123f080317ee7e30094f18a94cd1eaf02c48bfe7e95b24f5589382e76fe4b964736f6c63430005110032

Deployed Bytecode

0x734c5a863a464d96e1488b6d4718c87457cf369da430146080604052600436106100565760003560e01c8063a293d1e81461005b578063b5931f7c146100a7578063d05c78da146100f3578063e6cb90131461013f575b600080fd5b6100916004803603604081101561007157600080fd5b81019080803590602001909291908035906020019092919050505061018b565b6040518082815260200191505060405180910390f35b6100dd600480360360408110156100bd57600080fd5b8101908080359060200190929190803590602001909291905050506101e9565b6040518082815260200191505060405180910390f35b6101296004803603604081101561010957600080fd5b81019080803590602001909291908035906020019092919050505061024d565b6040518082815260200191505060405180910390f35b6101756004803603604081101561015557600080fd5b8101908080359060200190929190803590602001909291905050506102be565b6040518082815260200191505060405180910390f35b6000828211156101de576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526000815260200160200191505060405180910390fd5b818303905092915050565b600080821161023b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526000815260200160200191505060405180910390fd5b81838161024457fe5b04905092915050565b60008183029050600083148061026b57508183828161026857fe5b04145b6102b8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526000815260200160200191505060405180910390fd5b92915050565b6000818301905082811015610316576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526000815260200160200191505060405180910390fd5b9291505056fea265627a7a7231582039123f080317ee7e30094f18a94cd1eaf02c48bfe7e95b24f5589382e76fe4b964736f6c63430005110032

Deployed Bytecode Sourcemap

63:534:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;212:119;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;212:119:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;476:118;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;476:118:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;337:133;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;337:133:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;87:119;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;87:119:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;212;266:6;298:1;293;:6;;285:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;322:1;318;:5;314:9;;212:119;;;;:::o;476:118::-;530:6;561:1;557;:5;549:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;585:1;581;:5;;;;;;577:9;;476:118;;;;:::o;337:133::-;391:6;418:1;414;:5;410:9;;443:1;438;:6;:20;;;;457:1;452;448;:5;;;;;;:10;438:20;430:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;337:133;;;;:::o;87:119::-;141:6;168:1;164;:5;160:9;;193:1;188;:6;;180:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87:119;;;;:::o

Swarm Source

bzzr://39123f080317ee7e30094f18a94cd1eaf02c48bfe7e95b24f5589382e76fe4b9

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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.