ETH Price: $2,732.95 (-1.17%)

Token

IonChain (IONC)
 

Overview

Max Total Supply

1,000,000,000 IONC

Holders

1,074

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 6 Decimals)

Filtered by Token Holder
xbhrt.eth
Balance
20,023 IONC

Value
$0.00
0x14ff95dbb15ef06c135d048fb417eec6ef080914
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

High-Capacity IonChain Transactional System

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
IonChain

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 500 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-05-25
*/

pragma solidity 0.4.24;

// File: contracts/commons/SafeMath.sol

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

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

// File: contracts/flavours/Ownable.sol

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {

    address public owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev The Ownable constructor sets the original `owner` of the contract to the sender
     * account.
     */
    constructor() public {
        owner = msg.sender;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }

    /**
     * @dev Allows the current owner to transfer control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        require(newOwner != address(0));
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
    }
}

// File: contracts/flavours/Lockable.sol

/**
 * @title Lockable
 * @dev Base contract which allows children to
 *      implement main operations locking mechanism.
 */
contract Lockable is Ownable {
    event Lock();
    event Unlock();

    bool public locked = false;

    /**
     * @dev Modifier to make a function callable
    *       only when the contract is not locked.
     */
    modifier whenNotLocked() {
        require(!locked);
        _;
    }

    /**
     * @dev Modifier to make a function callable
     *      only when the contract is locked.
     */
    modifier whenLocked() {
        require(locked);
        _;
    }

    /**
     * @dev called by the owner to locke, triggers locked state
     */
    function lock() public onlyOwner whenNotLocked {
        locked = true;
        emit Lock();
    }

    /**
     * @dev called by the owner
     *      to unlock, returns to unlocked state
     */
    function unlock() public onlyOwner whenLocked {
        locked = false;
        emit Unlock();
    }
}

// File: contracts/base/BaseFixedERC20Token.sol

contract BaseFixedERC20Token is Lockable {
    using SafeMath for uint;

    /// @dev ERC20 Total supply
    uint public totalSupply;

    mapping(address => uint) public balances;

    mapping(address => mapping(address => uint)) private allowed;

    /// @dev Fired if token is transferred according to ERC20 spec
    event Transfer(address indexed from, address indexed to, uint value);

    /// @dev Fired if token withdrawal is approved according to ERC20 spec
    event Approval(address indexed owner, address indexed spender, uint value);

    /**
     * @dev Gets the balance of the specified address
     * @param owner_ The address to query the the balance of
     * @return An uint representing the amount owned by the passed address
     */
    function balanceOf(address owner_) public view returns (uint balance) {
        return balances[owner_];
    }

    /**
     * @dev Transfer token for a specified address
     * @param to_ The address to transfer to.
     * @param value_ The amount to be transferred.
     */
    function transfer(address to_, uint value_) public whenNotLocked returns (bool) {
        require(to_ != address(0) && value_ <= balances[msg.sender]);
        // SafeMath.sub will throw an exception if there is not enough balance
        balances[msg.sender] = balances[msg.sender].sub(value_);
        balances[to_] = balances[to_].add(value_);
        emit Transfer(msg.sender, to_, value_);
        return true;
    }

    /**
     * @dev Transfer tokens from one address to another
     * @param from_ address The address which you want to send tokens from
     * @param to_ address The address which you want to transfer to
     * @param value_ uint the amount of tokens to be transferred
     */
    function transferFrom(address from_, address to_, uint value_) public whenNotLocked returns (bool) {
        require(to_ != address(0) && value_ <= balances[from_] && value_ <= allowed[from_][msg.sender]);
        balances[from_] = balances[from_].sub(value_);
        balances[to_] = balances[to_].add(value_);
        allowed[from_][msg.sender] = allowed[from_][msg.sender].sub(value_);
        emit Transfer(from_, to_, value_);
        return true;
    }

    /**
     * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender
     *
     * Beware that changing an allowance with this method brings the risk that someone may use both the old
     * and the new allowance by unfortunate transaction ordering
     *
     * To change the approve amount you first have to reduce the addresses
     * allowance to zero by calling `approve(spender_, 0)` if it is not
     * already 0 to mitigate the race condition described in:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * @param spender_ The address which will spend the funds.
     * @param value_ The amount of tokens to be spent.
     */
    function approve(address spender_, uint value_) public whenNotLocked returns (bool) {
        if (value_ != 0 && allowed[msg.sender][spender_] != 0) {
            revert();
        }
        allowed[msg.sender][spender_] = value_;
        emit Approval(msg.sender, spender_, value_);
        return true;
    }

    /**
     * @dev Function to check the amount of tokens that an owner allowed to a spender
     * @param owner_ address The address which owns the funds
     * @param spender_ address The address which will spend the funds
     * @return A uint specifying the amount of tokens still available for the spender
     */
    function allowance(address owner_, address spender_) public view returns (uint) {
        return allowed[owner_][spender_];
    }
}

// File: contracts/IonChain.sol

/**
 * @title IONC token contract.
 */
contract IonChain is BaseFixedERC20Token {
    using SafeMath for uint;

    string public constant name = "IonChain";

    string public constant symbol = "IONC";

    uint8 public constant decimals = 6;

    uint internal constant ONE_TOKEN = 1e6;

    constructor(uint totalSupplyTokens_) public {
        locked = false;
        totalSupply = totalSupplyTokens_ * ONE_TOKEN;
        address creator = msg.sender;
        balances[creator] = totalSupply;

        emit Transfer(0, this, totalSupply);
        emit Transfer(this, creator, balances[creator]);
    }

    // Disable direct payments
    function() external payable {
        revert();
    }

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender_","type":"address"},{"name":"value_","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from_","type":"address"},{"name":"to_","type":"address"},{"name":"value_","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner_","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unlock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to_","type":"address"},{"name":"value_","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"locked","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner_","type":"address"},{"name":"spender_","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"lock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"totalSupplyTokens_","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[],"name":"Lock","type":"event"},{"anonymous":false,"inputs":[],"name":"Unlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

60806040526000805460a060020a60ff021916905534801561002057600080fd5b50604051602080610ad683398101604081815291516000805433600160a060020a0319909116811760a060020a60ff0219168255620f424083026001819055818352600260209081528684208290559085529451929490933093600080516020610ab6833981519152929181900390910190a3600160a060020a03811660008181526002602090815260409182902054825190815291513092600080516020610ab683398151915292908290030190a350506109d5806100e16000396000f3006080604052600436106100da5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100df578063095ea7b31461016957806318160ddd146101a157806323b872dd146101c857806327e235e3146101f2578063313ce5671461021357806370a082311461023e5780638da5cb5b1461025f57806395d89b4114610290578063a69df4b5146102a5578063a9059cbb146102bc578063cf309012146102e0578063dd62ed3e146102f5578063f2fde38b1461031c578063f83d08ba1461033d575b600080fd5b3480156100eb57600080fd5b506100f4610352565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012e578181015183820152602001610116565b50505050905090810190601f16801561015b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561017557600080fd5b5061018d600160a060020a0360043516602435610389565b604080519115158252519081900360200190f35b3480156101ad57600080fd5b506101b6610454565b60408051918252519081900360200190f35b3480156101d457600080fd5b5061018d600160a060020a036004358116906024351660443561045a565b3480156101fe57600080fd5b506101b6600160a060020a03600435166105fa565b34801561021f57600080fd5b5061022861060c565b6040805160ff9092168252519081900360200190f35b34801561024a57600080fd5b506101b6600160a060020a0360043516610611565b34801561026b57600080fd5b5061027461062c565b60408051600160a060020a039092168252519081900360200190f35b34801561029c57600080fd5b506100f461063b565b3480156102b157600080fd5b506102ba610672565b005b3480156102c857600080fd5b5061018d600160a060020a03600435166024356106f9565b3480156102ec57600080fd5b5061018d610804565b34801561030157600080fd5b506101b6600160a060020a0360043581169060243516610825565b34801561032857600080fd5b506102ba600160a060020a0360043516610850565b34801561034957600080fd5b506102ba6108e4565b60408051808201909152600881527f496f6e436861696e000000000000000000000000000000000000000000000000602082015281565b6000805474010000000000000000000000000000000000000000900460ff16156103b257600080fd5b81158015906103e35750336000908152600360209081526040808320600160a060020a038716845290915290205415155b156103ed57600080fd5b336000818152600360209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60015481565b6000805474010000000000000000000000000000000000000000900460ff161561048357600080fd5b600160a060020a038316158015906104b35750600160a060020a0384166000908152600260205260409020548211155b80156104e25750600160a060020a03841660009081526003602090815260408083203384529091529020548211155b15156104ed57600080fd5b600160a060020a038416600090815260026020526040902054610516908363ffffffff61098116565b600160a060020a03808616600090815260026020526040808220939093559085168152205461054b908363ffffffff61099316565b600160a060020a03808516600090815260026020908152604080832094909455918716815260038252828120338252909152205461058f908363ffffffff61098116565b600160a060020a03808616600081815260036020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b60026020526000908152604090205481565b600681565b600160a060020a031660009081526002602052604090205490565b600054600160a060020a031681565b60408051808201909152600481527f494f4e4300000000000000000000000000000000000000000000000000000000602082015281565b600054600160a060020a0316331461068957600080fd5b60005474010000000000000000000000000000000000000000900460ff1615156106b257600080fd5b6000805474ff0000000000000000000000000000000000000000191681556040517f70e3fffea7bbb557facdee48ed7f7af5179030adef9ad0c876df039a718f359e9190a1565b6000805474010000000000000000000000000000000000000000900460ff161561072257600080fd5b600160a060020a038316158015906107495750336000908152600260205260409020548211155b151561075457600080fd5b33600090815260026020526040902054610774908363ffffffff61098116565b3360009081526002602052604080822092909255600160a060020a038516815220546107a6908363ffffffff61099316565b600160a060020a0384166000818152600260209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b60005474010000000000000000000000000000000000000000900460ff1681565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b600054600160a060020a0316331461086757600080fd5b600160a060020a038116151561087c57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a031633146108fb57600080fd5b60005474010000000000000000000000000000000000000000900460ff161561092357600080fd5b6000805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001781556040517f46620e39f4e119bf05f13544f8ef38338fc06c17f6b731c7f95bee356572db969190a1565b60008282111561098d57fe5b50900390565b6000828201838110156109a257fe5b93925050505600a165627a7a72305820c4ceba836c3f2f196b37871bde2890a83d00910860754f96fa4e4bd9db18072c0029ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef000000000000000000000000000000000000000000000000000000003b9aca00

Deployed Bytecode

0x6080604052600436106100da5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100df578063095ea7b31461016957806318160ddd146101a157806323b872dd146101c857806327e235e3146101f2578063313ce5671461021357806370a082311461023e5780638da5cb5b1461025f57806395d89b4114610290578063a69df4b5146102a5578063a9059cbb146102bc578063cf309012146102e0578063dd62ed3e146102f5578063f2fde38b1461031c578063f83d08ba1461033d575b600080fd5b3480156100eb57600080fd5b506100f4610352565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012e578181015183820152602001610116565b50505050905090810190601f16801561015b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561017557600080fd5b5061018d600160a060020a0360043516602435610389565b604080519115158252519081900360200190f35b3480156101ad57600080fd5b506101b6610454565b60408051918252519081900360200190f35b3480156101d457600080fd5b5061018d600160a060020a036004358116906024351660443561045a565b3480156101fe57600080fd5b506101b6600160a060020a03600435166105fa565b34801561021f57600080fd5b5061022861060c565b6040805160ff9092168252519081900360200190f35b34801561024a57600080fd5b506101b6600160a060020a0360043516610611565b34801561026b57600080fd5b5061027461062c565b60408051600160a060020a039092168252519081900360200190f35b34801561029c57600080fd5b506100f461063b565b3480156102b157600080fd5b506102ba610672565b005b3480156102c857600080fd5b5061018d600160a060020a03600435166024356106f9565b3480156102ec57600080fd5b5061018d610804565b34801561030157600080fd5b506101b6600160a060020a0360043581169060243516610825565b34801561032857600080fd5b506102ba600160a060020a0360043516610850565b34801561034957600080fd5b506102ba6108e4565b60408051808201909152600881527f496f6e436861696e000000000000000000000000000000000000000000000000602082015281565b6000805474010000000000000000000000000000000000000000900460ff16156103b257600080fd5b81158015906103e35750336000908152600360209081526040808320600160a060020a038716845290915290205415155b156103ed57600080fd5b336000818152600360209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60015481565b6000805474010000000000000000000000000000000000000000900460ff161561048357600080fd5b600160a060020a038316158015906104b35750600160a060020a0384166000908152600260205260409020548211155b80156104e25750600160a060020a03841660009081526003602090815260408083203384529091529020548211155b15156104ed57600080fd5b600160a060020a038416600090815260026020526040902054610516908363ffffffff61098116565b600160a060020a03808616600090815260026020526040808220939093559085168152205461054b908363ffffffff61099316565b600160a060020a03808516600090815260026020908152604080832094909455918716815260038252828120338252909152205461058f908363ffffffff61098116565b600160a060020a03808616600081815260036020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b60026020526000908152604090205481565b600681565b600160a060020a031660009081526002602052604090205490565b600054600160a060020a031681565b60408051808201909152600481527f494f4e4300000000000000000000000000000000000000000000000000000000602082015281565b600054600160a060020a0316331461068957600080fd5b60005474010000000000000000000000000000000000000000900460ff1615156106b257600080fd5b6000805474ff0000000000000000000000000000000000000000191681556040517f70e3fffea7bbb557facdee48ed7f7af5179030adef9ad0c876df039a718f359e9190a1565b6000805474010000000000000000000000000000000000000000900460ff161561072257600080fd5b600160a060020a038316158015906107495750336000908152600260205260409020548211155b151561075457600080fd5b33600090815260026020526040902054610774908363ffffffff61098116565b3360009081526002602052604080822092909255600160a060020a038516815220546107a6908363ffffffff61099316565b600160a060020a0384166000818152600260209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b60005474010000000000000000000000000000000000000000900460ff1681565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b600054600160a060020a0316331461086757600080fd5b600160a060020a038116151561087c57600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a031633146108fb57600080fd5b60005474010000000000000000000000000000000000000000900460ff161561092357600080fd5b6000805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001781556040517f46620e39f4e119bf05f13544f8ef38338fc06c17f6b731c7f95bee356572db969190a1565b60008282111561098d57fe5b50900390565b6000828201838110156109a257fe5b93925050505600a165627a7a72305820c4ceba836c3f2f196b37871bde2890a83d00910860754f96fa4e4bd9db18072c0029

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000003b9aca00

-----Decoded View---------------
Arg [0] : totalSupplyTokens_ (uint256): 1000000000

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000003b9aca00


Swarm Source

bzzr://c4ceba836c3f2f196b37871bde2890a83d00910860754f96fa4e4bd9db18072c
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.