Overview
S Balance
0 S
S Value
-More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
587004 | 14 hrs ago | Contract Creation | 0 S |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xB4cEeD12...6D21762bB The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Token
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity 0.8.19; interface IMemeboxTokenFactory { function getInitializable() external view returns (string memory, string memory, uint8, uint256); } contract Token { string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); constructor() { (name, symbol, decimals, totalSupply) = IMemeboxTokenFactory(msg.sender).getInitializable(); balanceOf[msg.sender] = totalSupply; emit Transfer(address(0), msg.sender, totalSupply); } function transfer(address to, uint256 amount) external returns (bool) { require(balanceOf[msg.sender] >= amount, "Insufficient balance"); balanceOf[msg.sender] -= amount; balanceOf[to] += amount; emit Transfer(msg.sender, to, amount); return true; } function approve(address spender, uint256 amount) external returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transferFrom(address from, address to, uint256 amount) external returns (bool) { require(balanceOf[from] >= amount, "Insufficient balance"); require(allowance[from][msg.sender] >= amount, "Insufficient allowance"); balanceOf[from] -= amount; balanceOf[to] += amount; allowance[from][msg.sender] -= amount; emit Transfer(from, to, amount); return true; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "none" }, "viaIR": true, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060408181526004918236101561001657600080fd5b600092833560e01c91826306fdde031461049b57508163095ea7b31461042a57816318160ddd1461040b57816323b872dd146102ed578163313ce567146102cb57816370a082311461029557816395d89b4114610175578163a9059cbb146100d3575063dd62ed3e1461008857600080fd5b346100cf57806003193601126100cf57806020926100a46105ba565b6100ac6105d5565b6001600160a01b0391821683526005865283832091168252845220549051908152f35b5080fd5b905034610171578160031936011261017157602092826100f16105ba565b916024359233825284875261010b848484205410156105eb565b33825284875282822061011f85825461062e565b90556001600160a01b031680825293865220805461013e908390610651565b905582519081527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef843392a35160018152f35b8280fd5b8383346100cf57816003193601126100cf5780519082600180549081811c9080831692831561028b575b60209384841081146102785783885290811561025c5750600114610207575b505050829003601f01601f191682019267ffffffffffffffff8411838510176101f457508291826101f0925282610571565b0390f35b634e487b7160e01b815260418552602490fd5b8087529192508591837fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b83851061024857505050508301018580806101be565b805488860183015293019284908201610232565b60ff1916878501525050151560051b84010190508580806101be565b634e487b7160e01b895260228a52602489fd5b91607f169161019f565b9050346101715760203660031901126101715760209282916001600160a01b036102bd6105ba565b168252845220549051908152f35b5050346100cf57816003193601126100cf5760209060ff600254169051908152f35b905034610171576060366003190112610171576103086105ba565b6103106105d5565b936044359060018060a01b0380931692838252602096858852610338848885205410156105eb565b8483526005885286832033845288528387842054106103cf57827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef94928892878b965288865283832061038c86825461062e565b9055169687825284528181206103a3848254610651565b9055858152600584528181203382528452206103c082825461062e565b90558551908152a35160018152f35b865162461bcd60e51b81528087018990526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b6044820152606490fd5b5050346100cf57816003193601126100cf576020906003549051908152f35b5050346100cf57806003193601126100cf57602091816104486105ba565b91602435918291338152600587528181209460018060a01b0316948582528752205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b84908434610171578260031936011261017157828354600181811c90808316928315610567575b60209384841081146102785783885290811561025c575060011461051257505050829003601f01601f191682019267ffffffffffffffff8411838510176101f457508291826101f0925282610571565b8680529192508591837f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b83851061055357505050508301018580806101be565b80548886018301529301928490820161053d565b91607f16916104c2565b6020808252825181830181905290939260005b8281106105a657505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501610584565b600435906001600160a01b03821682036105d057565b600080fd5b602435906001600160a01b03821682036105d057565b156105f257565b60405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606490fd5b9190820391821161063b57565b634e487b7160e01b600052601160045260246000fd5b9190820180921161063b5756fea164736f6c6343000813000a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.