Address Contract Partially Verified
Address
0x06B179e292f080871825beD5D722162fD96B4c95
Balance
0 ETH
Nonce
1
Code Size
6631 bytes
Creator
0xA5FD9963...6f75 at tx 0x5c042869...95df28
Indexed Transactions
0
Contract Bytecode
6631 bytes
0x6080604052600436106101235760003560e01c8063a293d1e8116100a0578063d4ee1d9011610064578063d4ee1d9014610433578063dc39d06d1461045e578063dd62ed3e1461049b578063e6cb9013146104d8578063f2fde38b146105155761012d565b8063a293d1e814610302578063a9059cbb1461033f578063b5931f7c1461037c578063cae9ca51146103b9578063d05c78da146103f65761012d565b80633eaaf86b116100e75780633eaaf86b1461022d57806370a082311461025857806379ba5097146102955780638da5cb5b146102ac57806395d89b41146102d75761012d565b806306fdde0314610132578063095ea7b31461015d57806318160ddd1461019a57806323b872dd146101c5578063313ce567146102025761012d565b3661012d57600080fd5b600080fd5b34801561013e57600080fd5b5061014761053e565b60405161015491906115aa565b60405180910390f35b34801561016957600080fd5b50610184600480360381019061017f9190611349565b6105cc565b604051610191919061158f565b60405180910390f35b3480156101a657600080fd5b506101af6106be565b6040516101bc91906115cc565b60405180910390f35b3480156101d157600080fd5b506101ec60048036038101906101e791906112fa565b6106c8565b6040516101f9919061158f565b60405180910390f35b34801561020e57600080fd5b50610217610958565b60405161022491906115e7565b60405180910390f35b34801561023957600080fd5b5061024261096b565b60405161024f91906115cc565b60405180910390f35b34801561026457600080fd5b5061027f600480360381019061027a9190611295565b610971565b60405161028c91906115cc565b60405180910390f35b3480156102a157600080fd5b506102aa6109ba565b005b3480156102b857600080fd5b506102c1610b56565b6040516102ce91906114ff565b60405180910390f35b3480156102e357600080fd5b506102ec610b7a565b6040516102f991906115aa565b60405180910390f35b34801561030e57600080fd5b5061032960048036038101906103249190611415565b610c08565b60405161033691906115cc565b60405180910390f35b34801561034b57600080fd5b5061036660048036038101906103619190611349565b610c2b565b604051610373919061158f565b60405180910390f35b34801561038857600080fd5b506103a3600480360381019061039e9190611415565b610db4565b6040516103b091906115cc565b60405180910390f35b3480156103c557600080fd5b506103e060048036038101906103db9190611385565b610dd6565b6040516103ed919061158f565b60405180910390f35b34801561040257600080fd5b5061041d60048036038101906104189190611415565b610f3a565b60405161042a91906115cc565b60405180910390f35b34801561043f57600080fd5b50610448610f72565b60405161045591906114ff565b60405180910390f35b34801561046a57600080fd5b5061048560048036038101906104809190611349565b610f98565b604051610492919061158f565b60405180910390f35b3480156104a757600080fd5b506104c260048036038101906104bd91906112be565b6110a8565b6040516104cf91906115cc565b60405180910390f35b3480156104e457600080fd5b506104ff60048036038101906104fa9190611415565b61112f565b60405161050c91906115cc565b60405180910390f35b34801561052157600080fd5b5061053c60048036038101906105379190611295565b611152565b005b6003805461054b9061183c565b80601f01602080910402602001604051908101604052809291908181526020018280546105779061183c565b80156105c45780601f10610599576101008083540402835291602001916105c4565b820191906000526020600020905b8154815290600101906020018083116105a757829003601f168201915b505050505081565b600081600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516106ac91906115cc565b60405180910390a36001905092915050565b6000600554905090565b6000610713600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205483610c08565b600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506107dc600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205483610c08565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506108a5600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548361112f565b600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161094591906115cc565b60405180910390a3600190509392505050565b600460009054906101000a900460ff1681565b60055481565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a1457600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60028054610b879061183c565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb39061183c565b8015610c005780601f10610bd557610100808354040283529160200191610c00565b820191906000526020600020905b815481529060010190602001808311610be357829003601f168201915b505050505081565b600082821115610c1757600080fd5b8183610c239190611771565b905092915050565b6000610c76600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205483610c08565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610d02600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548361112f565b600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610da291906115cc565b60405180910390a36001905092915050565b6000808211610dc257600080fd5b8183610dce91906116e6565b905092915050565b600082600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92585604051610eb691906115cc565b60405180910390a38373ffffffffffffffffffffffffffffffffffffffff16638f4ffcb1338530866040518563ffffffff1660e01b8152600401610efd9493929190611543565b600060405180830381600087803b158015610f1757600080fd5b505af1158015610f2b573d6000803e3d6000fd5b50505050600190509392505050565b60008183610f489190611717565b90506000831480610f635750818382610f6191906116e6565b145b610f6c57600080fd5b92915050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ff357600080fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b815260040161104e92919061151a565b602060405180830381600087803b15801561106857600080fd5b505af115801561107c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a091906113ec565b905092915050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000818361113d9190611690565b90508281101561114c57600080fd5b92915050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111aa57600080fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006112016111fc84611627565b611602565b90508281526020810184848401111561121957600080fd5b6112248482856117fa565b509392505050565b60008135905061123b8161196c565b92915050565b60008151905061125081611983565b92915050565b600082601f83011261126757600080fd5b81356112778482602086016111ee565b91505092915050565b60008135905061128f8161199a565b92915050565b6000602082840312156112a757600080fd5b60006112b58482850161122c565b91505092915050565b600080604083850312156112d157600080fd5b60006112df8582860161122c565b92505060206112f08582860161122c565b9150509250929050565b60008060006060848603121561130f57600080fd5b600061131d8682870161122c565b935050602061132e8682870161122c565b925050604061133f86828701611280565b9150509250925092565b6000806040838503121561135c57600080fd5b600061136a8582860161122c565b925050602061137b85828601611280565b9150509250929050565b60008060006060848603121561139a57600080fd5b60006113a88682870161122c565b93505060206113b986828701611280565b925050604084013567ffffffffffffffff8111156113d657600080fd5b6113e286828701611256565b9150509250925092565b6000602082840312156113fe57600080fd5b600061140c84828501611241565b91505092915050565b6000806040838503121561142857600080fd5b600061143685828601611280565b925050602061144785828601611280565b9150509250929050565b61145a816117a5565b82525050565b611469816117b7565b82525050565b600061147a82611658565b611484818561166e565b9350611494818560208601611809565b61149d8161195b565b840191505092915050565b60006114b382611663565b6114bd818561167f565b93506114cd818560208601611809565b6114d68161195b565b840191505092915050565b6114ea816117e3565b82525050565b6114f9816117ed565b82525050565b60006020820190506115146000830184611451565b92915050565b600060408201905061152f6000830185611451565b61153c60208301846114e1565b9392505050565b60006080820190506115586000830187611451565b61156560208301866114e1565b6115726040830185611451565b8181036060830152611584818461146f565b905095945050505050565b60006020820190506115a46000830184611460565b92915050565b600060208201905081810360008301526115c481846114a8565b905092915050565b60006020820190506115e160008301846114e1565b92915050565b60006020820190506115fc60008301846114f0565b92915050565b600061160c61161d565b9050611618828261186e565b919050565b6000604051905090565b600067ffffffffffffffff8211156116425761164161192c565b5b61164b8261195b565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600061169b826117e3565b91506116a6836117e3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156116db576116da61189f565b5b828201905092915050565b60006116f1826117e3565b91506116fc836117e3565b92508261170c5761170b6118ce565b5b828204905092915050565b6000611722826117e3565b915061172d836117e3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156117665761176561189f565b5b828202905092915050565b600061177c826117e3565b9150611787836117e3565b92508282101561179a5761179961189f565b5b828203905092915050565b60006117b0826117c3565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561182757808201518184015260208101905061180c565b83811115611836576000848401525b50505050565b6000600282049050600182168061185457607f821691505b60208210811415611868576118676118fd565b5b50919050565b6118778261195b565b810181811067ffffffffffffffff821117156118965761189561192c565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b611975816117a5565b811461198057600080fd5b50565b61198c816117b7565b811461199757600080fd5b50565b6119a3816117e3565b81146119ae57600080fd5b5056fea264697066735822122096cba9cd0be7855d20c8d1e443cedcdd5f23b1533c58f5e41c99ccbddbc64a6264736f6c63430008010033
Verified Source Code Partial Match
Compiler: v0.8.1+commit.df193b15
EVM: istanbul
Optimization: No
XGG.sol 221 lines
pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
contract SafeMath {
function safeAdd(uint a, uint b) public pure returns (uint c) {
c = a + b;
require(c >= a);
}
function safeSub(uint a, uint b) public pure returns (uint c) {
require(b <= a);
c = a - b;
}
function safeMul(uint a, uint b) public pure returns (uint c) {
c = a * b;
require(a == 0 || c / a == b);
}
function safeDiv(uint a, uint b) public pure returns (uint c) {
require(b > 0);
c = a / b;
}
}
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// ----------------------------------------------------------------------------
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
// ----------------------------------------------------------------------------
// Contract function to receive approval and execute function in one call
//
// Borrowed from MiniMeToken
// ----------------------------------------------------------------------------
abstract contract ApproveAndCallFallBack {
function receiveApproval(address from, uint256 tokens, address token, bytes memory data) virtual public;
}
// ----------------------------------------------------------------------------
// Owned contract
// ----------------------------------------------------------------------------
contract Owned {
address public owner;
address public newOwner;
event OwnershipTransferred(address indexed _from, address indexed _to);
constructor() {
owner = 0xA5FD9963e5a1193B814515bc5b4fe6e6bad66f75;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address _newOwner) public onlyOwner {
newOwner = _newOwner;
}
function acceptOwnership() public {
require(msg.sender == newOwner);
emit OwnershipTransferred(owner, newOwner);
owner = newOwner;
newOwner = address(0);
}
}
// ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and assisted
// token transfers
// ----------------------------------------------------------------------------
contract XGG is IERC20, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
// ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------
constructor() {
symbol = "XGG";
name = "10x.gg";
decimals = 18;
_totalSupply = 1000000000e18; // 1,000,000,000 XGG
address owner = 0xA5FD9963e5a1193B814515bc5b4fe6e6bad66f75;
balances[owner] = _totalSupply;
emit Transfer(address(0), owner, _totalSupply);
}
// ------------------------------------------------------------------------
// Total supply
// ------------------------------------------------------------------------
function totalSupply() public view override returns (uint) {
return _totalSupply;
}
// ------------------------------------------------------------------------
// Get the token balance for account tokenOwner
// ------------------------------------------------------------------------
function balanceOf(address tokenOwner) public view override returns (uint balance) {
return balances[tokenOwner];
}
// ------------------------------------------------------------------------
// Transfer the balance from token owner's account to to account
// - Owner's account must have sufficient balance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------
function transfer(address to, uint tokens) public override returns (bool success) {
balances[msg.sender] = safeSub(balances[msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(msg.sender, to, tokens);
return true;
}
// ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account
//
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// recommends that there are no checks for the approval double-spend attack
// as this should be implemented in user interfaces
// ------------------------------------------------------------------------
function approve(address spender, uint tokens) public virtual override returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
return true;
}
// ------------------------------------------------------------------------
// Transfer tokens from the from account to the to account
//
// The calling account must already have sufficient tokens approve(...)-d
// for spending from the from account and
// - From account must have sufficient balance to transfer
// - Spender must have sufficient allowance to transfer
// - 0 value transfers are allowed
// ------------------------------------------------------------------------
function transferFrom(address from, address to, uint tokens) public virtual override returns (bool success) {
balances[from] = safeSub(balances[from], tokens);
allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
balances[to] = safeAdd(balances[to], tokens);
Transfer(from, to, tokens);
return true;
}
// ------------------------------------------------------------------------
// Returns the amount of tokens approved by the owner that can be
// transferred to the spender's account
// ------------------------------------------------------------------------
function allowance(address tokenOwner, address spender) public view virtual override returns (uint remaining) {
return allowed[tokenOwner][spender];
}
// ------------------------------------------------------------------------
// Token owner can approve for spender to transferFrom(...) tokens
// from the token owner's account. The spender contract function
// receiveApproval(...) is then executed
// ------------------------------------------------------------------------
function approveAndCall(address spender, uint tokens, bytes memory data) public returns (bool success) {
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, address(this), data);
return true;
}
// ------------------------------------------------------------------------
// Don't accept ETH
// ------------------------------------------------------------------------
receive () external payable {
revert();
}
// ------------------------------------------------------------------------
// Owner can transfer out any accidentally sent ERC20 tokens
// ------------------------------------------------------------------------
function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) {
return IERC20(tokenAddress).transfer(owner, tokens);
}
}
Read Contract
_totalSupply 0x3eaaf86b → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
newOwner 0xd4ee1d90 → address
owner 0x8da5cb5b → address
safeAdd 0xe6cb9013 → uint256
safeDiv 0xb5931f7c → uint256
safeMul 0xd05c78da → uint256
safeSub 0xa293d1e8 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 7 functions
These functions modify contract state and require a wallet transaction to execute.
acceptOwnership 0x79ba5097
No parameters
approve 0x095ea7b3
address spender
uint256 tokens
returns: bool
approveAndCall 0xcae9ca51
address spender
uint256 tokens
bytes data
returns: bool
transfer 0xa9059cbb
address to
uint256 tokens
returns: bool
transferAnyERC20Token 0xdc39d06d
address tokenAddress
uint256 tokens
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 tokens
returns: bool
transferOwnership 0xf2fde38b
address _newOwner
Recent Transactions
No transactions found for this address