Address Contract Verified
Address
0x03BE4a5355F4bD4572D7716F946E2DfF1c42D8b9
Balance
0 ETH
Nonce
1
Code Size
3541 bytes
Creator
0x3d1aa2A9...b0bb at tx 0x8c3c855e...8f7d05
Indexed Transactions
0
Contract Bytecode
3541 bytes
0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063313ce56711610071578063313ce5671461017a5780635c6581651461019857806370a08231146101c857806395d89b41146101f8578063a9059cbb14610216578063dd62ed3e14610246576100a9565b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100fc57806323b872dd1461011a57806327e235e31461014a575b600080fd5b6100b6610276565b6040516100c39190610a56565b60405180910390f35b6100e660048036038101906100e19190610b11565b610304565b6040516100f39190610b6c565b60405180910390f35b6101046103f6565b6040516101119190610b96565b60405180910390f35b610134600480360381019061012f9190610bb1565b6103fc565b6040516101419190610b6c565b60405180910390f35b610164600480360381019061015f9190610c04565b6106af565b6040516101719190610b96565b60405180910390f35b6101826106c7565b60405161018f9190610c4d565b60405180910390f35b6101b260048036038101906101ad9190610c68565b6106da565b6040516101bf9190610b96565b60405180910390f35b6101e260048036038101906101dd9190610c04565b6106ff565b6040516101ef9190610b96565b60405180910390f35b610200610748565b60405161020d9190610a56565b60405180910390f35b610230600480360381019061022b9190610b11565b6107d6565b60405161023d9190610b6c565b60405180910390f35b610260600480360381019061025b9190610c68565b61093f565b60405161026d9190610b96565b60405180910390f35b6003805461028390610cd7565b80601f01602080910402602001604051908101604052809291908181526020018280546102af90610cd7565b80156102fc5780601f106102d1576101008083540402835291602001916102fc565b820191906000526020600020905b8154815290600101906020018083116102df57829003601f168201915b505050505081565b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516103e49190610b96565b60405180910390a36001905092915050565b60005481565b600080600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054101580156104cd5750828110155b6104d657600080fd5b82600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546105259190610d37565b9250508190555082600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461057b9190610d6b565b925050819055507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81101561063e5782600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546106369190610d6b565b925050819055505b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161069b9190610b96565b60405180910390a360019150509392505050565b60016020528060005260406000206000915090505481565b600460009054906101000a900460ff1681565b6002602052816000526040600020602052806000526040600020600091509150505481565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6005805461075590610cd7565b80601f016020809104026020016040519081016040528092919081815260200182805461078190610cd7565b80156107ce5780601f106107a3576101008083540402835291602001916107ce565b820191906000526020600020905b8154815290600101906020018083116107b157829003601f168201915b505050505081565b600081600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054101561082457600080fd5b81600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546108739190610d6b565b9250508190555081600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546108c99190610d37565b925050819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161092d9190610b96565b60405180910390a36001905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610a005780820151818401526020810190506109e5565b60008484015250505050565b6000601f19601f8301169050919050565b6000610a28826109c6565b610a3281856109d1565b9350610a428185602086016109e2565b610a4b81610a0c565b840191505092915050565b60006020820190508181036000830152610a708184610a1d565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610aa882610a7d565b9050919050565b610ab881610a9d565b8114610ac357600080fd5b50565b600081359050610ad581610aaf565b92915050565b6000819050919050565b610aee81610adb565b8114610af957600080fd5b50565b600081359050610b0b81610ae5565b92915050565b60008060408385031215610b2857610b27610a78565b5b6000610b3685828601610ac6565b9250506020610b4785828601610afc565b9150509250929050565b60008115159050919050565b610b6681610b51565b82525050565b6000602082019050610b816000830184610b5d565b92915050565b610b9081610adb565b82525050565b6000602082019050610bab6000830184610b87565b92915050565b600080600060608486031215610bca57610bc9610a78565b5b6000610bd886828701610ac6565b9350506020610be986828701610ac6565b9250506040610bfa86828701610afc565b9150509250925092565b600060208284031215610c1a57610c19610a78565b5b6000610c2884828501610ac6565b91505092915050565b600060ff82169050919050565b610c4781610c31565b82525050565b6000602082019050610c626000830184610c3e565b92915050565b60008060408385031215610c7f57610c7e610a78565b5b6000610c8d85828601610ac6565b9250506020610c9e85828601610ac6565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680610cef57607f821691505b602082108103610d0257610d01610ca8565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610d4282610adb565b9150610d4d83610adb565b9250828201905080821115610d6557610d64610d08565b5b92915050565b6000610d7682610adb565b9150610d8183610adb565b9250828203905081811115610d9957610d98610d08565b5b9291505056fea26469706673582212202f03af32c97dd543fdc4500b8d7f51204799b6f7af275c03a87a33a9bae5653d64736f6c63430008120033
Verified Source Code Full Match
Compiler: v0.8.18+commit.87f61d96
EVM: paris
Optimization: No
HODL.sol 63 lines
pragma solidity ^0.8.18;
///SPDX-License-Identifier: MIT
///HODL the HODL
import "MEME.sol";
contract HODL is MEME {
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 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;
}
function allowance(address _owner, address _spender) override public view returns (uint256 remaining) {
return allowed[_owner][_spender];
}
}
MEME.sol 14 lines
pragma solidity ^0.8.18;
///SPDX-License-Identifier: MIT
///HODL the HODL
interface MEME {
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 approve(address _spender, uint256 _value) external returns (bool success);
function allowance(address _owner, address _spender) external view returns (uint256 remaining);
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}
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