Address Contract Verified
Address
0xAB73f2BB41aEf52E864d9B8dDdaeb3C7eCf01dd8
Balance
0 ETH
Nonce
1
Code Size
3416 bytes
Creator
0xa76ED993...33b2 at tx 0x2fd33c83...5edf8f
Indexed Transactions
0
Contract Bytecode
3416 bytes
0x608060405234801561000f575f5ffd5b50600436106100a7575f3560e01c8063313ce5671161006f578063313ce567146101775780635c6581651461019557806370a08231146101c557806395d89b41146101f5578063a9059cbb14610213578063dd62ed3e14610243576100a7565b806306fdde03146100ab578063095ea7b3146100c957806318160ddd146100f957806323b872dd1461011757806327e235e314610147575b5f5ffd5b6100b3610273565b6040516100c091906109fb565b60405180910390f35b6100e360048036038101906100de9190610aac565b6102ff565b6040516100f09190610b04565b60405180910390f35b6101016103ec565b60405161010e9190610b2c565b60405180910390f35b610131600480360381019061012c9190610b45565b6103f1565b60405161013e9190610b04565b60405180910390f35b610161600480360381019061015c9190610b95565b610691565b60405161016e9190610b2c565b60405180910390f35b61017f6106a6565b60405161018c9190610bdb565b60405180910390f35b6101af60048036038101906101aa9190610bf4565b6106b8565b6040516101bc9190610b2c565b60405180910390f35b6101df60048036038101906101da9190610b95565b6106d8565b6040516101ec9190610b2c565b60405180910390f35b6101fd61071e565b60405161020a91906109fb565b60405180910390f35b61022d60048036038101906102289190610aac565b6107aa565b60405161023a9190610b04565b60405180910390f35b61025d60048036038101906102589190610bf4565b610909565b60405161026a9190610b2c565b60405180910390f35b6003805461028090610c5f565b80601f01602080910402602001604051908101604052809291908181526020018280546102ac90610c5f565b80156102f75780601f106102ce576101008083540402835291602001916102f7565b820191905f5260205f20905b8154815290600101906020018083116102da57829003601f168201915b505050505081565b5f8160025f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516103da9190610b2c565b60405180910390a36001905092915050565b5f5481565b5f5f60025f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508260015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054101580156104bb5750828110155b6104c3575f5ffd5b8260015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461050f9190610cbc565b925050819055508260015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546105629190610cef565b925050819055507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811015610620578260025f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546106189190610cef565b925050819055505b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161067d9190610b2c565b60405180910390a360019150509392505050565b6001602052805f5260405f205f915090505481565b60045f9054906101000a900460ff1681565b6002602052815f5260405f20602052805f5260405f205f91509150505481565b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6005805461072b90610c5f565b80601f016020809104026020016040519081016040528092919081815260200182805461075790610c5f565b80156107a25780601f10610779576101008083540402835291602001916107a2565b820191905f5260205f20905b81548152906001019060200180831161078557829003601f168201915b505050505081565b5f8160015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205410156107f4575f5ffd5b8160015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546108409190610cef565b925050819055508160015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546108939190610cbc565b925050819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516108f79190610b2c565b60405180910390a36001905092915050565b5f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6109cd8261098b565b6109d78185610995565b93506109e78185602086016109a5565b6109f0816109b3565b840191505092915050565b5f6020820190508181035f830152610a1381846109c3565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610a4882610a1f565b9050919050565b610a5881610a3e565b8114610a62575f5ffd5b50565b5f81359050610a7381610a4f565b92915050565b5f819050919050565b610a8b81610a79565b8114610a95575f5ffd5b50565b5f81359050610aa681610a82565b92915050565b5f5f60408385031215610ac257610ac1610a1b565b5b5f610acf85828601610a65565b9250506020610ae085828601610a98565b9150509250929050565b5f8115159050919050565b610afe81610aea565b82525050565b5f602082019050610b175f830184610af5565b92915050565b610b2681610a79565b82525050565b5f602082019050610b3f5f830184610b1d565b92915050565b5f5f5f60608486031215610b5c57610b5b610a1b565b5b5f610b6986828701610a65565b9350506020610b7a86828701610a65565b9250506040610b8b86828701610a98565b9150509250925092565b5f60208284031215610baa57610ba9610a1b565b5b5f610bb784828501610a65565b91505092915050565b5f60ff82169050919050565b610bd581610bc0565b82525050565b5f602082019050610bee5f830184610bcc565b92915050565b5f5f60408385031215610c0a57610c09610a1b565b5b5f610c1785828601610a65565b9250506020610c2885828601610a65565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680610c7657607f821691505b602082108103610c8957610c88610c32565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f610cc682610a79565b9150610cd183610a79565b9250828201905080821115610ce957610ce8610c8f565b5b92915050565b5f610cf982610a79565b9150610d0483610a79565b9250828203905081811115610d1c57610d1b610c8f565b5b9291505056fea2646970667358221220958c35df1e7de745b1ccc997c880b369d2f6de5b9b52c41d9eb37ba9d0be6dfa64736f6c634300081c0033
Verified Source Code Full Match
Compiler: v0.8.28+commit.7893614a
EVM: cancun
Optimization: No
Dogma.sol 14 lines
pragma solidity ^0.8.28;
///SPDX-License-Identifier: The Unlicense
///Egoism is the Source of Progress
interface Dogma {
function balanceOf(address _owner) external view returns (uint256 balance);
function transfer(address _to, uint256 _value) external returns (bool success);
function transferFrom(address _from, address _to, uint256 _value) external returns (bool success);
function allowance(address _owner, address _spender) external view returns (uint256 remaining);
function approve(address _spender, uint256 _value) external returns (bool success);
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}
Egoism.sol 64 lines
pragma solidity ^0.8.28;
///SPDX-License-Identifier: The Unlicense
///Egoism is the Source of Progress
import "Dogma.sol";
contract Egoism is Dogma {
uint256 public totalSupply;
uint256 constant private MAX_UINT256 = 2**256 - 1;
mapping (address => uint256) public balances;
mapping (address => mapping (address => uint256)) public allowed;
string public name;
uint8 public decimals;
string public symbol;
constructor (
uint256 _initialAmount,
string memory _tokenName,
uint8 _decimalUnits,
string memory _tokenSymbol
) public {
balances[msg.sender] = _initialAmount;
totalSupply = _initialAmount;
name = _tokenName;
decimals = _decimalUnits;
symbol = _tokenSymbol;
}
function transfer(address _to, uint256 _value) override public returns (bool success) {
require(balances[msg.sender] >= _value);
balances[msg.sender] -= _value;
balances[_to] += _value;
emit Transfer(msg.sender, _to, _value); //solhint-disable-line indent, no-unused-vars
return true;
}
function transferFrom(address _from, address _to, uint256 _value) override public returns (bool success) {
uint256 allowance = allowed[_from][msg.sender];
require(balances[_from] >= _value && allowance >= _value);
balances[_to] += _value;
balances[_from] -= _value;
if (allowance < MAX_UINT256) {
allowed[_from][msg.sender] -= _value;
}
emit Transfer(_from, _to, _value); //solhint-disable-line indent, no-unused-vars
return true;
}
function balanceOf(address _owner) override public view returns (uint256 balance) {
return balances[_owner];
}
function allowance(address _owner, address _spender) override public view returns (uint256 remaining) {
return allowed[_owner][_spender];
}
function approve(address _spender, uint256 _value) override public returns (bool success) {
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value); //solhint-disable-line indent, no-unused-vars
return true;
}
}
Read Contract
allowance 0xdd62ed3e → uint256
allowed 0x5c658165 → uint256
balanceOf 0x70a08231 → uint256
balances 0x27e235e3 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 3 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
transfer 0xa9059cbb
address _to
uint256 _value
returns: bool
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool
Recent Transactions
No transactions found for this address