Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
1,000,000,000 GVE
Holders
163
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0 GVEValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GVE
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-07-24 */ 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; } } 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 { if (newOwner != address(0)) { owner = newOwner; } } } contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) constant returns (uint256); function transfer(address to, uint256 value) returns (bool); // KYBER-NOTE! code changed to comply with ERC20 standard event Transfer(address indexed _from, address indexed _to, uint _value); //event Transfer(address indexed from, address indexed to, uint256 value); } contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; /** * @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, uint256 _value) returns (bool) { balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); return true; } /** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */ function balanceOf(address _owner) constant returns (uint256 balance) { return balances[_owner]; } } contract ERC20 is ERC20Basic { function allowance(address owner, address spender) constant returns (uint256); function transferFrom(address from, address to, uint256 value) returns (bool); function approve(address spender, uint256 value) returns (bool); // KYBER-NOTE! code changed to comply with ERC20 standard event Approval(address indexed _owner, address indexed _spender, uint _value); //event Approval(address indexed owner, address indexed spender, uint256 value); } contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @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 uint256 the amout of tokens to be transfered */ function transferFrom(address _from, address _to, uint256 _value) returns (bool) { var _allowance = allowed[_from][msg.sender]; balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sender] = _allowance.sub(_value); Transfer(_from, _to, _value); return true; } /** * @dev Aprove the passed address to spend the specified amount of tokens on behalf of msg.sender. * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */ function approve(address _spender, uint256 _value) returns (bool) { // 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 here: // https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 require((_value == 0) || (allowed[msg.sender][_spender] == 0)); allowed[msg.sender][_spender] = _value; 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 uint256 specifing the amount of tokens still avaible for the spender. */ function allowance(address _owner, address _spender) constant returns (uint256 remaining) { return allowed[_owner][_spender]; } } contract GVE is StandardToken, Ownable { string public constant name = "Globalvillage ecosystem"; string public constant symbol = "GVE"; uint public constant decimals = 18; bool public transferEnabled = true; modifier validDestination( address to ) { require(to != address(0x0)); require(to != address(this) ); _; } function GVE() { // Mint all tokens. Then disable minting forever. totalSupply = 1000000000 * 10 ** uint256(decimals); balances[msg.sender] = totalSupply; Transfer(address(0x0), msg.sender, totalSupply); transferOwnership(msg.sender); // admin could drain tokens that were sent here by mistake } function transfer(address _to, uint _value) validDestination(_to) returns (bool) { require(transferEnabled == true); return super.transfer(_to, _value); } function transferFrom(address _from, address _to, uint _value) validDestination(_to) returns (bool) { require(transferEnabled == true); return super.transferFrom(_from, _to, _value); } function emergencyERC20Drain( ERC20 token, uint amount ) onlyOwner { token.transfer( owner, amount ); } function setTransferEnable(bool enable) onlyOwner { transferEnabled = enable; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"transferEnabled","outputs":[{"name":"","type":"bool"}],"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":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"enable","type":"bool"}],"name":"setTransferEnable","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"amount","type":"uint256"}],"name":"emergencyERC20Drain","outputs":[],"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"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"}]
Contract Creation Code
60806040526003805460a060020a60ff0219167401000000000000000000000000000000000000000017905534801561003757600080fd5b5060038054600160a060020a031916339081179091556b033b2e3c9fd0803ce8000000600081815582815260016020908152604080832084905580519384525191927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a36100b6336401000000006100bb810204565b610100565b600354600160a060020a031633146100d257600080fd5b600160a060020a038116156100fd5760038054600160a060020a031916600160a060020a0383161790555b50565b6108fe8061010f6000396000f3006080604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d4578063095ea7b31461015e57806318160ddd1461019657806323b872dd146101bd578063313ce567146101e75780634cd412d5146101fc57806370a08231146102115780638da5cb5b1461023257806395d89b4114610263578063a9059cbb14610278578063ce1ffcd91461029c578063db0e16f1146102b8578063dd62ed3e146102dc578063f2fde38b14610303575b600080fd5b3480156100e057600080fd5b506100e9610324565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012357818101518382015260200161010b565b50505050905090810190601f1680156101505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016a57600080fd5b50610182600160a060020a036004351660243561035b565b604080519115158252519081900360200190f35b3480156101a257600080fd5b506101ab6103fd565b60408051918252519081900360200190f35b3480156101c957600080fd5b50610182600160a060020a0360043581169060243516604435610403565b3480156101f357600080fd5b506101ab610471565b34801561020857600080fd5b50610182610476565b34801561021d57600080fd5b506101ab600160a060020a0360043516610497565b34801561023e57600080fd5b506102476104b2565b60408051600160a060020a039092168252519081900360200190f35b34801561026f57600080fd5b506100e96104c1565b34801561028457600080fd5b50610182600160a060020a03600435166024356104f8565b3480156102a857600080fd5b506102b66004351515610564565b005b3480156102c457600080fd5b506102b6600160a060020a03600435166024356105bb565b3480156102e857600080fd5b506101ab600160a060020a0360043581169060243516610671565b34801561030f57600080fd5b506102b6600160a060020a036004351661069c565b60408051808201909152601781527f476c6f62616c76696c6c6167652065636f73797374656d000000000000000000602082015281565b600081158061038b5750336000908152600260209081526040808320600160a060020a0387168452909152902054155b151561039657600080fd5b336000818152600260209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60005481565b600082600160a060020a038116151561041b57600080fd5b600160a060020a03811630141561043157600080fd5b60035474010000000000000000000000000000000000000000900460ff16151560011461045d57600080fd5b6104688585856106ee565b95945050505050565b601281565b60035474010000000000000000000000000000000000000000900460ff1681565b600160a060020a031660009081526001602052604090205490565b600354600160a060020a031681565b60408051808201909152600381527f4756450000000000000000000000000000000000000000000000000000000000602082015281565b600082600160a060020a038116151561051057600080fd5b600160a060020a03811630141561052657600080fd5b60035474010000000000000000000000000000000000000000900460ff16151560011461055257600080fd5b61055c84846107fa565b949350505050565b600354600160a060020a0316331461057b57600080fd5b60038054911515740100000000000000000000000000000000000000000274ff000000000000000000000000000000000000000019909216919091179055565b600354600160a060020a031633146105d257600080fd5b600354604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201526024810184905290519184169163a9059cbb916044808201926020929091908290030181600087803b15801561064157600080fd5b505af1158015610655573d6000803e3d6000fd5b505050506040513d602081101561066b57600080fd5b50505050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600354600160a060020a031633146106b357600080fd5b600160a060020a038116156106eb576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600160a060020a03831660008181526002602090815260408083203384528252808320549383526001909152812054909190610730908463ffffffff6108aa16565b600160a060020a038087166000908152600160205260408082209390935590861681522054610765908463ffffffff6108bc16565b600160a060020a03851660009081526001602052604090205561078e818463ffffffff6108aa16565b600160a060020a03808716600081815260026020908152604080832033845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001949350505050565b3360009081526001602052604081205461081a908363ffffffff6108aa16565b3360009081526001602052604080822092909255600160a060020a0385168152205461084c908363ffffffff6108bc16565b600160a060020a0384166000818152600160209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b6000828211156108b657fe5b50900390565b6000828201838110156108cb57fe5b93925050505600a165627a7a72305820b17a470177259086e12a38ae705b8e4d74ac9514f97da87ddcbccabf13e8d7eb0029
Deployed Bytecode
0x6080604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d4578063095ea7b31461015e57806318160ddd1461019657806323b872dd146101bd578063313ce567146101e75780634cd412d5146101fc57806370a08231146102115780638da5cb5b1461023257806395d89b4114610263578063a9059cbb14610278578063ce1ffcd91461029c578063db0e16f1146102b8578063dd62ed3e146102dc578063f2fde38b14610303575b600080fd5b3480156100e057600080fd5b506100e9610324565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012357818101518382015260200161010b565b50505050905090810190601f1680156101505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016a57600080fd5b50610182600160a060020a036004351660243561035b565b604080519115158252519081900360200190f35b3480156101a257600080fd5b506101ab6103fd565b60408051918252519081900360200190f35b3480156101c957600080fd5b50610182600160a060020a0360043581169060243516604435610403565b3480156101f357600080fd5b506101ab610471565b34801561020857600080fd5b50610182610476565b34801561021d57600080fd5b506101ab600160a060020a0360043516610497565b34801561023e57600080fd5b506102476104b2565b60408051600160a060020a039092168252519081900360200190f35b34801561026f57600080fd5b506100e96104c1565b34801561028457600080fd5b50610182600160a060020a03600435166024356104f8565b3480156102a857600080fd5b506102b66004351515610564565b005b3480156102c457600080fd5b506102b6600160a060020a03600435166024356105bb565b3480156102e857600080fd5b506101ab600160a060020a0360043581169060243516610671565b34801561030f57600080fd5b506102b6600160a060020a036004351661069c565b60408051808201909152601781527f476c6f62616c76696c6c6167652065636f73797374656d000000000000000000602082015281565b600081158061038b5750336000908152600260209081526040808320600160a060020a0387168452909152902054155b151561039657600080fd5b336000818152600260209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60005481565b600082600160a060020a038116151561041b57600080fd5b600160a060020a03811630141561043157600080fd5b60035474010000000000000000000000000000000000000000900460ff16151560011461045d57600080fd5b6104688585856106ee565b95945050505050565b601281565b60035474010000000000000000000000000000000000000000900460ff1681565b600160a060020a031660009081526001602052604090205490565b600354600160a060020a031681565b60408051808201909152600381527f4756450000000000000000000000000000000000000000000000000000000000602082015281565b600082600160a060020a038116151561051057600080fd5b600160a060020a03811630141561052657600080fd5b60035474010000000000000000000000000000000000000000900460ff16151560011461055257600080fd5b61055c84846107fa565b949350505050565b600354600160a060020a0316331461057b57600080fd5b60038054911515740100000000000000000000000000000000000000000274ff000000000000000000000000000000000000000019909216919091179055565b600354600160a060020a031633146105d257600080fd5b600354604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201526024810184905290519184169163a9059cbb916044808201926020929091908290030181600087803b15801561064157600080fd5b505af1158015610655573d6000803e3d6000fd5b505050506040513d602081101561066b57600080fd5b50505050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600354600160a060020a031633146106b357600080fd5b600160a060020a038116156106eb576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600160a060020a03831660008181526002602090815260408083203384528252808320549383526001909152812054909190610730908463ffffffff6108aa16565b600160a060020a038087166000908152600160205260408082209390935590861681522054610765908463ffffffff6108bc16565b600160a060020a03851660009081526001602052604090205561078e818463ffffffff6108aa16565b600160a060020a03808716600081815260026020908152604080832033845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001949350505050565b3360009081526001602052604081205461081a908363ffffffff6108aa16565b3360009081526001602052604080822092909255600160a060020a0385168152205461084c908363ffffffff6108bc16565b600160a060020a0384166000818152600160209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b6000828211156108b657fe5b50900390565b6000828201838110156108cb57fe5b93925050505600a165627a7a72305820b17a470177259086e12a38ae705b8e4d74ac9514f97da87ddcbccabf13e8d7eb0029
Swarm Source
bzzr://b17a470177259086e12a38ae705b8e4d74ac9514f97da87ddcbccabf13e8d7eb
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.