ETH Price: $3,665.56 (+0.79%)
 

Overview

Max Total Supply

0.43571152242540399 MEMETH

Holders

3

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0 MEMETH

Value
$0.00
0x297f09d8cc7b7fd0c0a0be704dad7a3b327e3bce
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MEMETH

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : MEMETH.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

// Fork of the canonical `WETH9` contract that supports `depositAndApprove`
contract MEMETH {
    string public name = "Memswap Ether";
    string public symbol = "MEMETH";
    uint8 public decimals = 18;

    event Approval(address indexed src, address indexed guy, uint256 wad);
    event Transfer(address indexed src, address indexed dst, uint256 wad);
    event Deposit(address indexed dst, uint256 wad);
    event Withdrawal(address indexed src, uint256 wad);

    mapping(address => uint256) public balanceOf;
    mapping(address => mapping(address => uint256)) public allowance;

    receive() external payable {
        deposit();
    }

    function deposit() public payable {
        balanceOf[msg.sender] += msg.value;
        emit Deposit(msg.sender, msg.value);
    }

    function depositAndApprove(address guy, uint256 wad) public payable {
        deposit();
        approve(guy, wad);
    }

    function withdraw(uint256 wad) public {
        require(balanceOf[msg.sender] >= wad);
        balanceOf[msg.sender] -= wad;
        payable(msg.sender).transfer(wad);
        emit Withdrawal(msg.sender, wad);
    }

    function totalSupply() public view returns (uint256) {
        return address(this).balance;
    }

    function approve(address guy, uint256 wad) public returns (bool) {
        allowance[msg.sender][guy] = wad;
        emit Approval(msg.sender, guy, wad);
        return true;
    }

    function transfer(address dst, uint256 wad) public returns (bool) {
        return transferFrom(msg.sender, dst, wad);
    }

    function transferFrom(
        address src,
        address dst,
        uint256 wad
    ) public returns (bool) {
        require(balanceOf[src] >= wad);

        if (
            src != msg.sender && allowance[src][msg.sender] != type(uint256).max
        ) {
            require(allowance[src][msg.sender] >= wad);
            allowance[src][msg.sender] -= wad;
        }

        balanceOf[src] -= wad;
        balanceOf[dst] += wad;

        emit Transfer(src, dst, wad);

        return true;
    }
}

Settings
{
  "viaIR": true,
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":true,"internalType":"address","name":"guy","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"dst","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":true,"internalType":"address","name":"dst","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"src","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"Withdrawal","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":"guy","type":"address"},{"internalType":"uint256","name":"wad","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":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"guy","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"depositAndApprove","outputs":[],"stateMutability":"payable","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":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052346100cd57600061001581546100d2565b601f81116100a3575b50601a6c26b2b6b9bbb0b81022ba3432b960991b01815560019061004282546100d2565b90601f8211610077575b600c6509a8a9a8aa8960d31b0183556002805460ff1916601217905560405161078c908161010d8239f35b82815282601f60208320930160051c8301925b83811061009857505061004c565b82815501839061008a565b818052601f60208320910160051c8101905b8181106100c2575061001e565b8281556001016100b5565b600080fd5b90600182811c92168015610102575b60208310146100ec57565b634e487b7160e01b600052602260045260246000fd5b91607f16916100e156fe60806040818152600480361015610029575b505050361561001f57600080fd5b610027610588565b005b600092833560e01c90816306fdde03146103f857508063095ea7b3146103d857806318160ddd146103bd57806323b872dd1461038b57806328026ace1461035f5780632e1a7d4d146102cd578063313ce567146102ab57806370a082311461027357806395d89b4114610152578063a9059cbb1461011b578063d0e30db0146101015763dd62ed3e0361001157346100fd57816003193601126100fd5760209282916100d3610534565b6100db61054f565b6001600160a01b03918216845291865283832091168252845220549051908152f35b8280fd5b838060031936011261011857610115610588565b80f35b80fd5b50503461014e578060031936011261014e5760209061014561013b610534565b6024359033610636565b90519015158152f35b5080fd5b5091903461014e578160031936011261014e5780519082600180549081811c90808316928315610269575b60209384841081146102565783885290811561023a57506001146101e5575b505050829003601f01601f191682019267ffffffffffffffff8411838510176101d257508291826101ce9252826104eb565b0390f35b634e487b7160e01b815260418552602490fd5b8087529192508591837fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b838510610226575050505083010138808061019c565b805488860183015293019284908201610210565b60ff1916878501525050151560051b840101905038808061019c565b634e487b7160e01b895260228a52602489fd5b91607f169161017d565b50503461014e57602036600319011261014e5760209181906001600160a01b0361029b610534565b1681526003845220549051908152f35b50503461014e578160031936011261014e5760209060ff600254169051908152f35b50346100fd5760203660031901126100fd5735903383526003602052808320805483811061035b57836102ff916105d1565b90558280838015610351575b8280929181923390f11561034657519081527f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6560203392a280f35b51913d9150823e3d90fd5b6108fc915061030b565b8480fd5b505036600319011261011857610387610376610534565b61037e610588565b602435906105de565b5080f35b50503461014e57606036600319011261014e576020906101456103ac610534565b6103b461054f565b60443591610636565b50503461014e578160031936011261014e5751478152602090f35b50503461014e578060031936011261014e5760209061014561037e610534565b84915083346100fd57826003193601126100fd57828354600181811c908083169283156104e1575b6020938484108114610256578388529081156104c5575060011461047057505050829003601f01601f191682019267ffffffffffffffff8411838510176101d257508291826101ce9252826104eb565b8680529192508591837f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8385106104b1575050505083010185808061019c565b80548886018301529301928490820161049b565b60ff1916878501525050151560051b840101905085808061019c565b91607f1691610420565b6020808252825181830181905290939260005b82811061052057505060409293506000838284010152601f8019910116010190565b8181018601518482016040015285016104fe565b600435906001600160a01b038216820361054a57565b600080fd5b602435906001600160a01b038216820361054a57565b9190820180921161057257565b634e487b7160e01b600052601160045260246000fd5b33600052600360205260406000206105a1348254610565565b90556040513481527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c60203392a2565b9190820391821161057257565b9033600052600460205260406000209160018060a01b03169182600052602052806040600020556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3600190565b91909160018060a01b03809116916000938385526020926003845260409183838820541061073757338614158061073b575b6106cc575b9180917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef959493878952600386528289206106a98682546105d1565b9055169687815260038552206106c0838254610565565b905551908152a3600190565b858752600485528287203388528552838388205410610737579180917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef95949387895260048652828920338a5286528289206107298682546105d1565b90559150919293945061066d565b8680fd5b5060048552828720338852855282872054600019141561066856fea2646970667358221220985ab836856dfad49c34813d53b860e0d70223b31168d8e8c62477b1fa98e19c64736f6c63430008130033

Deployed Bytecode

0x60806040818152600480361015610029575b505050361561001f57600080fd5b610027610588565b005b600092833560e01c90816306fdde03146103f857508063095ea7b3146103d857806318160ddd146103bd57806323b872dd1461038b57806328026ace1461035f5780632e1a7d4d146102cd578063313ce567146102ab57806370a082311461027357806395d89b4114610152578063a9059cbb1461011b578063d0e30db0146101015763dd62ed3e0361001157346100fd57816003193601126100fd5760209282916100d3610534565b6100db61054f565b6001600160a01b03918216845291865283832091168252845220549051908152f35b8280fd5b838060031936011261011857610115610588565b80f35b80fd5b50503461014e578060031936011261014e5760209061014561013b610534565b6024359033610636565b90519015158152f35b5080fd5b5091903461014e578160031936011261014e5780519082600180549081811c90808316928315610269575b60209384841081146102565783885290811561023a57506001146101e5575b505050829003601f01601f191682019267ffffffffffffffff8411838510176101d257508291826101ce9252826104eb565b0390f35b634e487b7160e01b815260418552602490fd5b8087529192508591837fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b838510610226575050505083010138808061019c565b805488860183015293019284908201610210565b60ff1916878501525050151560051b840101905038808061019c565b634e487b7160e01b895260228a52602489fd5b91607f169161017d565b50503461014e57602036600319011261014e5760209181906001600160a01b0361029b610534565b1681526003845220549051908152f35b50503461014e578160031936011261014e5760209060ff600254169051908152f35b50346100fd5760203660031901126100fd5735903383526003602052808320805483811061035b57836102ff916105d1565b90558280838015610351575b8280929181923390f11561034657519081527f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6560203392a280f35b51913d9150823e3d90fd5b6108fc915061030b565b8480fd5b505036600319011261011857610387610376610534565b61037e610588565b602435906105de565b5080f35b50503461014e57606036600319011261014e576020906101456103ac610534565b6103b461054f565b60443591610636565b50503461014e578160031936011261014e5751478152602090f35b50503461014e578060031936011261014e5760209061014561037e610534565b84915083346100fd57826003193601126100fd57828354600181811c908083169283156104e1575b6020938484108114610256578388529081156104c5575060011461047057505050829003601f01601f191682019267ffffffffffffffff8411838510176101d257508291826101ce9252826104eb565b8680529192508591837f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8385106104b1575050505083010185808061019c565b80548886018301529301928490820161049b565b60ff1916878501525050151560051b840101905085808061019c565b91607f1691610420565b6020808252825181830181905290939260005b82811061052057505060409293506000838284010152601f8019910116010190565b8181018601518482016040015285016104fe565b600435906001600160a01b038216820361054a57565b600080fd5b602435906001600160a01b038216820361054a57565b9190820180921161057257565b634e487b7160e01b600052601160045260246000fd5b33600052600360205260406000206105a1348254610565565b90556040513481527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c60203392a2565b9190820391821161057257565b9033600052600460205260406000209160018060a01b03169182600052602052806040600020556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3600190565b91909160018060a01b03809116916000938385526020926003845260409183838820541061073757338614158061073b575b6106cc575b9180917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef959493878952600386528289206106a98682546105d1565b9055169687815260038552206106c0838254610565565b905551908152a3600190565b858752600485528287203388528552838388205410610737579180917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef95949387895260048652828920338a5286528289206107298682546105d1565b90559150919293945061066d565b8680fd5b5060048552828720338852855282872054600019141561066856fea2646970667358221220985ab836856dfad49c34813d53b860e0d70223b31168d8e8c62477b1fa98e19c64736f6c63430008130033

Loading...
Loading
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.