ETH Price: $3,473.35 (+2.22%)
Gas: 15 Gwei

Contract

0x0ff948C236C8d4dfcd0168Bf243314C8Ff8ec967
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x6101006169166202018-12-19 19:34:402036 days ago1545248080IN
 Create: SafeMathUintLib
0 ETH0.0122781100

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SafeMathUintLib

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes with 0 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2019-07-11
*/

pragma solidity ^0.4.25;



/*
 * Hubii Nahmii
 *
 * Compliant with the Hubii Nahmii specification v0.12.
 *
 * Copyright (C) 2017-2018 Hubii AS based on Open-Zeppelin's SafeMath library
 */



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

    function div(uint256 a, uint256 b)
    internal
    pure
    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)
    internal
    pure
    returns (uint256)
    {
        assert(b <= a);
        return a - b;
    }

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

    //
    //Clamping functions.
    //
    function clamp(uint256 a, uint256 min, uint256 max)
    public
    pure
    returns (uint256)
    {
        return (a > max) ? max : ((a < min) ? min : a);
    }

    function clampMin(uint256 a, uint256 min)
    public
    pure
    returns (uint256)
    {
        return (a < min) ? min : a;
    }

    function clampMax(uint256 a, uint256 max)
    public
    pure
    returns (uint256)
    {
        return (a > max) ? max : a;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"max","type":"uint256"}],"name":"clampMax","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"min","type":"uint256"},{"name":"max","type":"uint256"}],"name":"clamp","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"min","type":"uint256"}],"name":"clampMin","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"}]

610100610030600b82828239805160001a6073146000811461002057610022565bfe5b5030600052607381538281f300730000000000000000000000000000000000000000301460806040526004361060505763ffffffff60e060020a600035041663700f1a77811460555780639e422447146073578063a682d5ad146082575b600080fd5b6061600435602435608e565b60408051918252519081900360200190f35b606160043560243560443560a4565b606160043560243560c7565b6000818311609b5782609d565b815b9392505050565b600081841160bd5782841060b7578360b9565b825b60bf565b815b949350505050565b6000818310609b5782609d5600a165627a7a72305820b54387d8906be647143edaef5788af3cb8dff8cb6d4e2905c34e19667e4f8c470029

Deployed Bytecode

0x730ff948c236c8d4dfcd0168bf243314c8ff8ec967301460806040526004361060505763ffffffff60e060020a600035041663700f1a77811460555780639e422447146073578063a682d5ad146082575b600080fd5b6061600435602435608e565b60408051918252519081900360200190f35b606160043560243560443560a4565b606160043560243560c7565b6000818311609b5782609d565b815b9392505050565b600081841160bd5782841060b7578360b9565b825b60bf565b815b949350505050565b6000818310609b5782609d5600a165627a7a72305820b54387d8906be647143edaef5788af3cb8dff8cb6d4e2905c34e19667e4f8c470029

Swarm Source

bzzr://b54387d8906be647143edaef5788af3cb8dff8cb6d4e2905c34e19667e4f8c47

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
[ 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.