ETH Price: $2,276.70 (-2.86%)

Contract

0xf261B576AB167d1250F4301A50B616b3A26AdD90
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x6060604043928712017-10-20 1:47:032514 days ago1508464023IN
 Create: SafeMath
0 ETH0.0156297100

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.4.15+commit.bbb8e64f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2017-10-20
*/

pragma solidity ^0.4.11;


/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {
  function mul(uint256 a, uint256 b)  constant returns (uint256) {
    uint256 c = a * b;
    assert(a == 0 || c / a == b);
    return c;
  }

  function div(uint256 a, uint256 b)  constant returns (uint256) {
    // assert(b > 0); // Solidity automatically throws when dividing by 0
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold
    return c;
  }

  function sub(uint256 a, uint256 b)  constant returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  function add(uint256 a, uint256 b)  constant returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"add","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"div","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"sub","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"mul","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"}]

6060604052341561000f57600080fd5b5b6101868061001f6000396000f300606060405263ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663771602f7811461005e578063a391c15b1461007e578063b67d77c51461009e578063c8a4ac9c146100be575b600080fd5b61006c6004356024356100de565b60405190815260200160405180910390f35b61006c6004356024356100f8565b60405190815260200160405180910390f35b61006c600435602435610114565b60405190815260200160405180910390f35b61006c60043560243561012b565b60405190815260200160405180910390f35b6000828201838110156100ed57fe5b8091505b5092915050565b600080828481151561010657fe5b0490508091505b5092915050565b60008282111561012057fe5b508082035b92915050565b6000828202831580610147575082848281151561014457fe5b04145b15156100ed57fe5b8091505b50929150505600a165627a7a72305820241fde44e25b4ed67e98e079e09b6178278da767412eb9890792a812b67fc0230029

Deployed Bytecode

0x606060405263ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663771602f7811461005e578063a391c15b1461007e578063b67d77c51461009e578063c8a4ac9c146100be575b600080fd5b61006c6004356024356100de565b60405190815260200160405180910390f35b61006c6004356024356100f8565b60405190815260200160405180910390f35b61006c600435602435610114565b60405190815260200160405180910390f35b61006c60043560243561012b565b60405190815260200160405180910390f35b6000828201838110156100ed57fe5b8091505b5092915050565b600080828481151561010657fe5b0490508091505b5092915050565b60008282111561012057fe5b508082035b92915050565b6000828202831580610147575082848281151561014457fe5b04145b15156100ed57fe5b8091505b50929150505600a165627a7a72305820241fde44e25b4ed67e98e079e09b6178278da767412eb9890792a812b67fc0230029

Swarm Source

bzzr://241fde44e25b4ed67e98e079e09b6178278da767412eb9890792a812b67fc023

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.