ERC-20
Overview
Max Total Supply
397,082.0845040564 COMBI
Holders
557
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 10 Decimals)
Balance
4.33005 COMBIValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CombiCoin_v2
Compiler Version
v0.4.11+commit.68ef5810
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-10-26 */ 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) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal 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) internal constant returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } /* file: ReentryProtection.sol ver: 0.3.0 updated:6-April-2016 author: Darryl Morris email: o0ragman0o AT gmail.com Mutex based reentry protection protect. This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU lesser General Public License for more details. <http://www.gnu.org/licenses/>. */ contract ReentryProtected { // The reentry protection state mutex. bool __reMutex; // This modifier can be used on functions with external calls to // prevent reentry attacks. // Constraints: // Protected functions must have only one point of exit. // Protected functions cannot use the `return` keyword // Protected functions return values must be through return parameters. modifier preventReentry() { require(!__reMutex); __reMutex = true; _; delete __reMutex; return; } // This modifier can be applied to public access state mutation functions // to protect against reentry if a `preventReentry` function has already // set the mutex. This prevents the contract from being reenter under a // different memory context which can break state variable integrity. modifier noReentry() { require(!__reMutex); _; } } /* file: ERC20.sol ver: 0.4.4-o0ragman0o updated:26-July-2017 author: Darryl Morris email: o0ragman0o AT gmail.com An ERC20 compliant token with reentry protection and safe math. This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See MIT Licence for further details. <https://opensource.org/licenses/MIT>. Release Notes ------------- 0.4.4-o0ragman0o * removed state from interface * added abstract functions of public state to interface. * included state into contract implimentation */ // ERC20 Standard Token Interface with safe maths and reentry protection contract ERC20Interface { /* Structs */ /* State Valiables */ /* Events */ // Triggered when tokens are transferred. event Transfer( address indexed _from, address indexed _to, uint256 _value); // Triggered whenever approve(address _spender, uint256 _value) is called. event Approval( address indexed _owner, address indexed _spender, uint256 _value); /* Modifiers */ /* Function Abstracts */ /// @return The total supply of tokens function totalSupply() public constant returns (uint256); /// @param _addr The address of a token holder /// @return The amount of tokens held by `_addr` function balanceOf(address _addr) public constant returns (uint256); /// @param _owner The address of a token holder /// @param _spender the address of a third-party /// @return The amount of tokens the `_spender` is allowed to transfer function allowance(address _owner, address _spender) public constant returns (uint256); /// @notice Send `_amount` of tokens from `msg.sender` to `_to` /// @param _to The address of the recipient /// @param _amount The amount of tokens to transfer function transfer(address _to, uint256 _amount) public returns (bool); /// @notice Send `_amount` of tokens from `_from` to `_to` on the condition /// it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _amount The amount of tokens to transfer function transferFrom(address _from, address _to, uint256 _amount) public returns (bool); /// @notice `msg.sender` approves `_spender` to spend `_amount` tokens on /// its behalf /// @param _spender The address of the approved spender /// @param _amount The amount of tokens to transfer function approve(address _spender, uint256 _amount) public returns (bool); } contract ERC20Token is ReentryProtected, ERC20Interface { using SafeMath for uint256; /* State */ // The Total supply of tokens uint256 totSupply; // Token ownership mapping mapping (address => uint256) balance; // Allowances mapping mapping (address => mapping (address => uint256)) allowed; /* Funtions Public */ function ERC20Token() { // Supply limited to 2^128 rather than 2^256 to prevent potential // multiplication overflow totSupply = 0; balance[msg.sender] = totSupply; } // Using an explicit getter allows for function overloading function totalSupply() public constant returns (uint256) { return totSupply; } // Using an explicit getter allows for function overloading function balanceOf(address _addr) public constant returns (uint256) { return balance[_addr]; } // Using an explicit getter allows for function overloading function allowance(address _owner, address _spender) public constant returns (uint256 remaining_) { return allowed[_owner][_spender]; } // Send _value amount of tokens to address _to // Reentry protection prevents attacks upon the state function transfer(address _to, uint256 _value) public noReentry returns (bool) { return xfer(msg.sender, _to, _value); } // Send _value amount of tokens from address _from to address _to // Reentry protection prevents attacks upon the state function transferFrom(address _from, address _to, uint256 _value) public noReentry returns (bool) { require(_value <= allowed[_from][msg.sender]); allowed[_from][msg.sender] -= _value; return xfer(_from, _to, _value); } // Process a transfer internally. function xfer(address _from, address _to, uint256 _value) internal returns (bool) { require(_value > 0 && _value <= balance[_from]); balance[_from] -= _value; balance[_to] += _value; Transfer(_from, _to, _value); return true; } // Approves a third-party spender // Reentry protection prevents attacks upon the state function approve(address _spender, uint256 _value) public noReentry returns (bool) { require(balance[msg.sender] != 0); allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } } /** * @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; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() { 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) onlyOwner { require(newOwner != address(0)); owner = newOwner; } } /** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */ contract MintableBurnableToken is ERC20Token, Ownable { using SafeMath for uint256; event Mint(address indexed to, uint256 amount); event Burn(address indexed burner, uint256 indexed value); //event MintFinished(); //bool public mintingFinished = false; // modifier canMint() { // require(!mintingFinished); // _; // } /** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */ function burn(uint256 _value) onlyOwner returns (bool) { require(_value > 0); address burner = msg.sender; balance[burner] = balance[burner].sub(_value); totSupply = totSupply.sub(_value); Burn(burner, _value); } /** * @dev Function to mint tokens * @param _to The address that will recieve the minted tokens. * @param _amount The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */ function mint(address _to, uint256 _amount) onlyOwner returns (bool) { totSupply = totSupply.add(_amount); balance[_to] = balance[_to].add(_amount); Mint(_to, _amount); Transfer(0x0, _to, _amount); return true; } } /** * @title SimpleToken * @dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator. * Note they can later distribute these tokens as they wish using `transfer` and other * `StandardToken` functions. */ contract CombiCoin_v2 is MintableBurnableToken { string public constant name = "CombiCoin"; string public constant symbol = "COMBI"; uint256 public constant decimals = 10; }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"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,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_addr","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining_","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"burner","type":"address"},{"indexed":true,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"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"}]
Contract Creation Code
60606040525b5b60006001819055600160a060020a0333168152600260205260408120555b60048054600160a060020a03191633600160a060020a03161790555b5b610912806100506000396000f300606060405236156100c25763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c4578063095ea7b31461015457806318160ddd1461018757806323b872dd146101a9578063313ce567146101e257806340c10f191461020457806342966c681461023757806370a082311461025e5780638da5cb5b1461028c57806395d89b41146102b8578063a9059cbb14610348578063dd62ed3e1461037b578063f2fde38b146103af575bfe5b34156100cc57fe5b6100d46103cd565b60408051602080825283518183015283519192839290830191850190808383821561011a575b80518252602083111561011a57601f1990920191602091820191016100fa565b505050905090810190601f1680156101465780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015c57fe5b610173600160a060020a0360043516602435610404565b604080519115158252519081900360200190f35b341561018f57fe5b6101976104a3565b60408051918252519081900360200190f35b34156101b157fe5b610173600160a060020a03600435811690602435166044356104aa565b604080519115158252519081900360200190f35b34156101ea57fe5b610197610533565b60408051918252519081900360200190f35b341561020c57fe5b610173600160a060020a0360043516602435610538565b604080519115158252519081900360200190f35b341561023f57fe5b610173600435610634565b604080519115158252519081900360200190f35b341561026657fe5b610197600160a060020a03600435166106f5565b60408051918252519081900360200190f35b341561029457fe5b61029c610714565b60408051600160a060020a039092168252519081900360200190f35b34156102c057fe5b6100d4610723565b60408051602080825283518183015283519192839290830191850190808383821561011a575b80518252602083111561011a57601f1990920191602091820191016100fa565b505050905090810190601f1680156101465780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561035057fe5b610173600160a060020a036004351660243561075a565b604080519115158252519081900360200190f35b341561038357fe5b610197600160a060020a0360043581169060243516610781565b60408051918252519081900360200190f35b34156103b757fe5b6103cb600160a060020a03600435166107ae565b005b60408051808201909152600981527f436f6d6269436f696e0000000000000000000000000000000000000000000000602082015281565b6000805460ff16156104165760006000fd5b600160a060020a033316600090815260026020526040902054151561043b5760006000fd5b600160a060020a03338116600081815260036020908152604080832094881680845294825291829020869055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35060015b5b92915050565b6001545b90565b6000805460ff16156104bc5760006000fd5b600160a060020a03808516600090815260036020908152604080832033909416835292905220548211156104f05760006000fd5b600160a060020a038085166000908152600360209081526040808320339094168352929052208054839003905561052884848461080d565b90505b5b9392505050565b600a81565b60045460009033600160a060020a039081169116146105575760006000fd5b60015461056a908363ffffffff6108b516565b600155600160a060020a038316600090815260026020526040902054610596908363ffffffff6108b516565b600160a060020a038416600081815260026020908152604091829020939093558051858152905191927f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688592918290030190a2604080518381529051600160a060020a038516916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35060015b5b92915050565b600454600090819033600160a060020a039081169116146106555760006000fd5b600083116106635760006000fd5b5033600160a060020a03811660009081526002602052604090205461068890846108cf565b600160a060020a0382166000908152600260205260409020556001546106b4908463ffffffff6108cf16565b6001556040518390600160a060020a038316907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca590600090a35b5b50919050565b600160a060020a0381166000908152600260205260409020545b919050565b600454600160a060020a031681565b60408051808201909152600581527f434f4d4249000000000000000000000000000000000000000000000000000000602082015281565b6000805460ff161561076c5760006000fd5b61077733848461080d565b90505b5b92915050565b600160a060020a038083166000908152600360209081526040808320938516835292905220545b92915050565b60045433600160a060020a039081169116146107ca5760006000fd5b600160a060020a03811615156107e05760006000fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60006000821180156108375750600160a060020a0384166000908152600260205260409020548211155b15156108435760006000fd5b600160a060020a03808516600081815260026020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060015b9392505050565b6000828201838110156108c457fe5b8091505b5092915050565b6000828211156108db57fe5b508082035b929150505600a165627a7a723058208ef9eab43e1f4634d1f2734232cb17f5680735e82296b469b8825bea769f71ec0029
Deployed Bytecode
0x606060405236156100c25763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c4578063095ea7b31461015457806318160ddd1461018757806323b872dd146101a9578063313ce567146101e257806340c10f191461020457806342966c681461023757806370a082311461025e5780638da5cb5b1461028c57806395d89b41146102b8578063a9059cbb14610348578063dd62ed3e1461037b578063f2fde38b146103af575bfe5b34156100cc57fe5b6100d46103cd565b60408051602080825283518183015283519192839290830191850190808383821561011a575b80518252602083111561011a57601f1990920191602091820191016100fa565b505050905090810190601f1680156101465780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015c57fe5b610173600160a060020a0360043516602435610404565b604080519115158252519081900360200190f35b341561018f57fe5b6101976104a3565b60408051918252519081900360200190f35b34156101b157fe5b610173600160a060020a03600435811690602435166044356104aa565b604080519115158252519081900360200190f35b34156101ea57fe5b610197610533565b60408051918252519081900360200190f35b341561020c57fe5b610173600160a060020a0360043516602435610538565b604080519115158252519081900360200190f35b341561023f57fe5b610173600435610634565b604080519115158252519081900360200190f35b341561026657fe5b610197600160a060020a03600435166106f5565b60408051918252519081900360200190f35b341561029457fe5b61029c610714565b60408051600160a060020a039092168252519081900360200190f35b34156102c057fe5b6100d4610723565b60408051602080825283518183015283519192839290830191850190808383821561011a575b80518252602083111561011a57601f1990920191602091820191016100fa565b505050905090810190601f1680156101465780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561035057fe5b610173600160a060020a036004351660243561075a565b604080519115158252519081900360200190f35b341561038357fe5b610197600160a060020a0360043581169060243516610781565b60408051918252519081900360200190f35b34156103b757fe5b6103cb600160a060020a03600435166107ae565b005b60408051808201909152600981527f436f6d6269436f696e0000000000000000000000000000000000000000000000602082015281565b6000805460ff16156104165760006000fd5b600160a060020a033316600090815260026020526040902054151561043b5760006000fd5b600160a060020a03338116600081815260036020908152604080832094881680845294825291829020869055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35060015b5b92915050565b6001545b90565b6000805460ff16156104bc5760006000fd5b600160a060020a03808516600090815260036020908152604080832033909416835292905220548211156104f05760006000fd5b600160a060020a038085166000908152600360209081526040808320339094168352929052208054839003905561052884848461080d565b90505b5b9392505050565b600a81565b60045460009033600160a060020a039081169116146105575760006000fd5b60015461056a908363ffffffff6108b516565b600155600160a060020a038316600090815260026020526040902054610596908363ffffffff6108b516565b600160a060020a038416600081815260026020908152604091829020939093558051858152905191927f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688592918290030190a2604080518381529051600160a060020a038516916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35060015b5b92915050565b600454600090819033600160a060020a039081169116146106555760006000fd5b600083116106635760006000fd5b5033600160a060020a03811660009081526002602052604090205461068890846108cf565b600160a060020a0382166000908152600260205260409020556001546106b4908463ffffffff6108cf16565b6001556040518390600160a060020a038316907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca590600090a35b5b50919050565b600160a060020a0381166000908152600260205260409020545b919050565b600454600160a060020a031681565b60408051808201909152600581527f434f4d4249000000000000000000000000000000000000000000000000000000602082015281565b6000805460ff161561076c5760006000fd5b61077733848461080d565b90505b5b92915050565b600160a060020a038083166000908152600360209081526040808320938516835292905220545b92915050565b60045433600160a060020a039081169116146107ca5760006000fd5b600160a060020a03811615156107e05760006000fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60006000821180156108375750600160a060020a0384166000908152600260205260409020548211155b15156108435760006000fd5b600160a060020a03808516600081815260026020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060015b9392505050565b6000828201838110156108c457fe5b8091505b5092915050565b6000828211156108db57fe5b508082035b929150505600a165627a7a723058208ef9eab43e1f4634d1f2734232cb17f5680735e82296b469b8825bea769f71ec0029
Swarm Source
bzzr://8ef9eab43e1f4634d1f2734232cb17f5680735e82296b469b8825bea769f71ec
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.