ETH Price: $3,670.02 (+0.82%)

Token

Genesis (GEN)
 

Overview

Max Total Supply

16,000,000 GEN

Holders

2,159

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
2,500 GEN

Value
$0.00
0x5a872d0a7e9ca502e79b54dd24890c4dbdb54d42
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
GenesisToken

Compiler Version
v0.4.16+commit.d7661dd9

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.16;

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;
  }
  
  function max64(uint64 a, uint64 b) internal constant returns (uint64) {
    return a >= b ? a : b;
  }

  function min64(uint64 a, uint64 b) internal constant returns (uint64) {
    return a < b ? a : b;
  }

  function max256(uint256 a, uint256 b) internal constant returns (uint256) {
    return a >= b ? a : b;
  }

  function min256(uint256 a, uint256 b) internal constant returns (uint256) {
    return a < b ? a : b;
  }

}

 contract ERC20Interface {
     function balanceOf(address _owner) constant returns (uint256 balance);
     function transfer(address _to, uint256 _value) returns (bool success);
     function transferFrom(address _from, address _to, uint256 _value) returns (bool success);
     function approve(address _spender, uint256 _value) returns (bool success);
     function allowance(address _owner, address _spender) constant returns (uint256 remaining);
        
     event Transfer(address indexed _from, address indexed _to, uint256 _value);
     event Approval(address indexed _owner, address indexed _spender, uint256 _value);
    }
contract GenesisToken is ERC20Interface {
     
     using SafeMath for uint256;
     
     string public constant symbol = "GEN";
     string public constant name = "Genesis";
     uint8 public constant decimals = 18;
     uint256 public _totalSupply = 16000000000000000000000000;
     
     address public owner;
 
    mapping(address => uint256) balances;
    
    mapping(address => mapping (address => uint256)) allowed;
    
    modifier onlyOwner() {
         if (msg.sender != owner) {
             revert();
         }
         _;
     }
     
    function GenesisToken() {
        owner = msg.sender;
        balances[owner] = _totalSupply;
    } 
    
    function totalSupply() constant returns (uint256) {        
		return _totalSupply;
    }
    
    function balanceOf(address _owner) constant returns (uint256 balance) {
        return balances[_owner];
    }
    
    function transfer(address _to, uint256 _amount) returns (bool success) {
        if (balances[msg.sender] >= _amount 
             && _amount > 0
             && balances[_to] + _amount > balances[_to]) {
             balances[msg.sender] = balances[msg.sender].sub(_amount);
             balances[_to] = balances[_to].add(_amount);
             Transfer(msg.sender, _to, _amount);
             return true;
         } else {
             return false;
         }
    }
    
    function transferFrom(
            address _from,
            address _to,
            uint256 _amount
        )   returns (bool success) {
            if (balances[_from] >= _amount
             && allowed[_from][msg.sender] >= _amount
             && _amount > 0
             && balances[_to] + _amount > balances[_to]) {
             balances[_from] = balances[_from].sub(_amount);
             allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_amount);
             balances[_to] = balances[_to].add(_amount);
             Transfer(_from, _to, _amount);
             return true;
         }  else {
             return false;
         }
    }
    
    function approve(address _spender, uint256 _amount) returns (bool success) {
         allowed[msg.sender][_spender] = _amount;
         Approval(msg.sender, _spender, _amount);
         return true;
    }
    
    function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
         return allowed[_owner][_spender];
    }
    
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}

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":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"success","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":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_totalSupply","outputs":[{"name":"","type":"uint256"}],"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":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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"}]

60606040526a0d3c21bcecceda10000000600055341561001e57600080fd5b5b60018054600160a060020a03191633600160a060020a03908116919091179182905560008054929091168152600260205260409020555b5b6107e1806100666000396000f300606060405236156100ac5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b1578063095ea7b31461013c57806318160ddd1461017257806323b872dd14610197578063313ce567146101d35780633eaaf86b146101fc57806370a08231146102215780638da5cb5b1461025257806395d89b4114610281578063a9059cbb1461030c578063dd62ed3e14610342575b600080fd5b34156100bc57600080fd5b6100c4610379565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101015780820151818401525b6020016100e8565b50505050905090810190601f16801561012e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014757600080fd5b61015e600160a060020a03600435166024356103b0565b604051901515815260200160405180910390f35b341561017d57600080fd5b61018561041d565b60405190815260200160405180910390f35b34156101a257600080fd5b61015e600160a060020a0360043581169060243516604435610424565b604051901515815260200160405180910390f35b34156101de57600080fd5b6101e66105c7565b60405160ff909116815260200160405180910390f35b341561020757600080fd5b6101856105cc565b60405190815260200160405180910390f35b341561022c57600080fd5b610185600160a060020a03600435166105d2565b60405190815260200160405180910390f35b341561025d57600080fd5b6102656105f1565b604051600160a060020a03909116815260200160405180910390f35b341561028c57600080fd5b6100c4610600565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101015780820151818401525b6020016100e8565b50505050905090810190601f16801561012e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561031757600080fd5b61015e600160a060020a0360043516602435610637565b604051901515815260200160405180910390f35b341561034d57600080fd5b610185600160a060020a0360043581169060243516610757565b60405190815260200160405180910390f35b60408051908101604052600781527f47656e6573697300000000000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260036020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b6000545b90565b600160a060020a0383166000908152600260205260408120548290108015906104745750600160a060020a0380851660009081526003602090815260408083203390941683529290522054829010155b80156104805750600082115b80156104a55750600160a060020a038316600090815260026020526040902054828101115b156105bb57600160a060020a0384166000908152600260205260409020546104d3908363ffffffff61078416565b600160a060020a0380861660009081526002602090815260408083209490945560038152838220339093168252919091522054610516908363ffffffff61078416565b600160a060020a038086166000908152600360209081526040808320338516845282528083209490945591861681526002909152205461055c908363ffffffff61079b16565b600160a060020a03808516600081815260026020526040908190209390935591908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060016105bf565b5060005b5b9392505050565b601281565b60005481565b600160a060020a0381166000908152600260205260409020545b919050565b600154600160a060020a031681565b60408051908101604052600381527f47454e0000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a0333166000908152600260205260408120548290108015906106605750600082115b80156106855750600160a060020a038316600090815260026020526040902054828101115b1561074857600160a060020a0333166000908152600260205260409020546106b3908363ffffffff61078416565b600160a060020a0333811660009081526002602052604080822093909355908516815220546106e8908363ffffffff61079b16565b600160a060020a0380851660008181526002602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3506001610417565b506000610417565b5b92915050565b600160a060020a038083166000908152600360209081526040808320938516835292905220545b92915050565b60008282111561079057fe5b508082035b92915050565b6000828201838110156107aa57fe5b8091505b50929150505600a165627a7a72305820818b0224b17b3981f36abbbde38a458eaf8e54ddbe9e13d7b4d6c53e5df620a70029

Deployed Bytecode

0x606060405236156100ac5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b1578063095ea7b31461013c57806318160ddd1461017257806323b872dd14610197578063313ce567146101d35780633eaaf86b146101fc57806370a08231146102215780638da5cb5b1461025257806395d89b4114610281578063a9059cbb1461030c578063dd62ed3e14610342575b600080fd5b34156100bc57600080fd5b6100c4610379565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101015780820151818401525b6020016100e8565b50505050905090810190601f16801561012e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014757600080fd5b61015e600160a060020a03600435166024356103b0565b604051901515815260200160405180910390f35b341561017d57600080fd5b61018561041d565b60405190815260200160405180910390f35b34156101a257600080fd5b61015e600160a060020a0360043581169060243516604435610424565b604051901515815260200160405180910390f35b34156101de57600080fd5b6101e66105c7565b60405160ff909116815260200160405180910390f35b341561020757600080fd5b6101856105cc565b60405190815260200160405180910390f35b341561022c57600080fd5b610185600160a060020a03600435166105d2565b60405190815260200160405180910390f35b341561025d57600080fd5b6102656105f1565b604051600160a060020a03909116815260200160405180910390f35b341561028c57600080fd5b6100c4610600565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101015780820151818401525b6020016100e8565b50505050905090810190601f16801561012e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561031757600080fd5b61015e600160a060020a0360043516602435610637565b604051901515815260200160405180910390f35b341561034d57600080fd5b610185600160a060020a0360043581169060243516610757565b60405190815260200160405180910390f35b60408051908101604052600781527f47656e6573697300000000000000000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260036020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b6000545b90565b600160a060020a0383166000908152600260205260408120548290108015906104745750600160a060020a0380851660009081526003602090815260408083203390941683529290522054829010155b80156104805750600082115b80156104a55750600160a060020a038316600090815260026020526040902054828101115b156105bb57600160a060020a0384166000908152600260205260409020546104d3908363ffffffff61078416565b600160a060020a0380861660009081526002602090815260408083209490945560038152838220339093168252919091522054610516908363ffffffff61078416565b600160a060020a038086166000908152600360209081526040808320338516845282528083209490945591861681526002909152205461055c908363ffffffff61079b16565b600160a060020a03808516600081815260026020526040908190209390935591908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060016105bf565b5060005b5b9392505050565b601281565b60005481565b600160a060020a0381166000908152600260205260409020545b919050565b600154600160a060020a031681565b60408051908101604052600381527f47454e0000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a0333166000908152600260205260408120548290108015906106605750600082115b80156106855750600160a060020a038316600090815260026020526040902054828101115b1561074857600160a060020a0333166000908152600260205260409020546106b3908363ffffffff61078416565b600160a060020a0333811660009081526002602052604080822093909355908516815220546106e8908363ffffffff61079b16565b600160a060020a0380851660008181526002602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3506001610417565b506000610417565b5b92915050565b600160a060020a038083166000908152600360209081526040808320938516835292905220545b92915050565b60008282111561079057fe5b508082035b92915050565b6000828201838110156107aa57fe5b8091505b50929150505600a165627a7a72305820818b0224b17b3981f36abbbde38a458eaf8e54ddbe9e13d7b4d6c53e5df620a70029

Swarm Source

bzzr://818b0224b17b3981f36abbbde38a458eaf8e54ddbe9e13d7b4d6c53e5df620a7
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.