APE Price: $1.16 (+5.43%)

Token

Wrapped Ape (WAPE)

Overview

Max Total Supply

5,210.763468750000000002 WAPE

Holders

32

Market

Price

$0.00 @ 0.000000 APE

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
139.153 WAPE

Value
$0.00
0x2a97504688ad579348d3e9a2bc38628631775a26
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
WETH9

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 10 runs

Other Settings:
paris EvmVersion
File 1 of 1 : WETH9.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;

contract WETH9 {
    string public name = "Wrapped Ape";
    string public symbol = "WAPE";
    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 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
{
  "optimizer": {
    "enabled": true,
    "runs": 10
  },
  "evmVersion": "paris",
  "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":[],"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"}]

60c0604052600b60809081526a577261707065642041706560a81b60a05260009061002a9082610112565b506040805180820190915260048152635741504560e01b60208201526001906100539082610112565b506002805460ff1916601217905534801561006d57600080fd5b506101d0565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061009d57607f821691505b6020821081036100bd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561010d57806000526020600020601f840160051c810160208510156100ea5750805b601f840160051c820191505b8181101561010a57600081556001016100f6565b50505b505050565b81516001600160401b0381111561012b5761012b610073565b61013f816101398454610089565b846100c3565b6020601f821160018114610173576000831561015b5750848201515b600019600385901b1c1916600184901b17845561010a565b600084815260208120601f198516915b828110156101a35787850151825560209485019460019092019101610183565b50848210156101c15786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b610802806101df6000396000f3fe6080604052600436106100905760003560e01c806306fdde03146100a4578063095ea7b3146100cf57806318160ddd146100ff57806323b872dd1461011c5780632e1a7d4d1461013c578063313ce5671461015c57806370a082311461018857806395d89b41146101b5578063a9059cbb146101ca578063d0e30db0146101ea578063dd62ed3e146101f257600080fd5b3661009f5761009d61022a565b005b600080fd5b3480156100b057600080fd5b506100b9610285565b6040516100c6919061060d565b60405180910390f35b3480156100db57600080fd5b506100ef6100ea366004610677565b610313565b60405190151581526020016100c6565b34801561010b57600080fd5b50475b6040519081526020016100c6565b34801561012857600080fd5b506100ef6101373660046106a1565b610380565b34801561014857600080fd5b5061009d6101573660046106de565b610533565b34801561016857600080fd5b506002546101769060ff1681565b60405160ff90911681526020016100c6565b34801561019457600080fd5b5061010e6101a33660046106f7565b60036020526000908152604090205481565b3480156101c157600080fd5b506100b96105ec565b3480156101d657600080fd5b506100ef6101e5366004610677565b6105f9565b61009d61022a565b3480156101fe57600080fd5b5061010e61020d366004610712565b600460209081526000928352604080842090915290825290205481565b336000908152600360205260408120805434929061024990849061075b565b909155505060405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2565b600080546102929061076e565b80601f01602080910402602001604051908101604052809291908181526020018280546102be9061076e565b801561030b5780601f106102e05761010080835404028352916020019161030b565b820191906000526020600020905b8154815290600101906020018083116102ee57829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061036e9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0383166000908152600360205260408120548211156103c15760405162461bcd60e51b81526004016103b8906107a8565b60405180910390fd5b6001600160a01b03841633148015906103ff57506001600160a01b038416600090815260046020908152604080832033845290915290205460001914155b15610480576001600160a01b03841660009081526004602090815260408083203384529091529020548211156104475760405162461bcd60e51b81526004016103b8906107a8565b6001600160a01b03841660009081526004602090815260408083203384529091528120805484929061047a9084906107b9565b90915550505b6001600160a01b038416600090815260036020526040812080548492906104a89084906107b9565b90915550506001600160a01b038316600090815260036020526040812080548492906104d590849061075b565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161052191815260200190565b60405180910390a35060019392505050565b336000908152600360205260409020548111156105625760405162461bcd60e51b81526004016103b8906107a8565b33600090815260036020526040812080548392906105819084906107b9565b9091555050604051339082156108fc029083906000818181858888f193505050501580156105b3573d6000803e3d6000fd5b5060405181815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a250565b600180546102929061076e565b6000610606338484610380565b9392505050565b602081526000825180602084015260005b8181101561063b576020818601810151604086840101520161061e565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b038116811461067257600080fd5b919050565b6000806040838503121561068a57600080fd5b6106938361065b565b946020939093013593505050565b6000806000606084860312156106b657600080fd5b6106bf8461065b565b92506106cd6020850161065b565b929592945050506040919091013590565b6000602082840312156106f057600080fd5b5035919050565b60006020828403121561070957600080fd5b6106068261065b565b6000806040838503121561072557600080fd5b61072e8361065b565b915061073c6020840161065b565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561037a5761037a610745565b600181811c9082168061078257607f821691505b6020821081036107a257634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260009082015260400190565b8181038181111561037a5761037a61074556fea2646970667358221220c6fc0e80626d72d68cb4bb9cbca9ed7fb19c76647bdd9d2795847b1d3360ab6f64736f6c634300081a0033

Deployed Bytecode

0x6080604052600436106100905760003560e01c806306fdde03146100a4578063095ea7b3146100cf57806318160ddd146100ff57806323b872dd1461011c5780632e1a7d4d1461013c578063313ce5671461015c57806370a082311461018857806395d89b41146101b5578063a9059cbb146101ca578063d0e30db0146101ea578063dd62ed3e146101f257600080fd5b3661009f5761009d61022a565b005b600080fd5b3480156100b057600080fd5b506100b9610285565b6040516100c6919061060d565b60405180910390f35b3480156100db57600080fd5b506100ef6100ea366004610677565b610313565b60405190151581526020016100c6565b34801561010b57600080fd5b50475b6040519081526020016100c6565b34801561012857600080fd5b506100ef6101373660046106a1565b610380565b34801561014857600080fd5b5061009d6101573660046106de565b610533565b34801561016857600080fd5b506002546101769060ff1681565b60405160ff90911681526020016100c6565b34801561019457600080fd5b5061010e6101a33660046106f7565b60036020526000908152604090205481565b3480156101c157600080fd5b506100b96105ec565b3480156101d657600080fd5b506100ef6101e5366004610677565b6105f9565b61009d61022a565b3480156101fe57600080fd5b5061010e61020d366004610712565b600460209081526000928352604080842090915290825290205481565b336000908152600360205260408120805434929061024990849061075b565b909155505060405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2565b600080546102929061076e565b80601f01602080910402602001604051908101604052809291908181526020018280546102be9061076e565b801561030b5780601f106102e05761010080835404028352916020019161030b565b820191906000526020600020905b8154815290600101906020018083116102ee57829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061036e9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0383166000908152600360205260408120548211156103c15760405162461bcd60e51b81526004016103b8906107a8565b60405180910390fd5b6001600160a01b03841633148015906103ff57506001600160a01b038416600090815260046020908152604080832033845290915290205460001914155b15610480576001600160a01b03841660009081526004602090815260408083203384529091529020548211156104475760405162461bcd60e51b81526004016103b8906107a8565b6001600160a01b03841660009081526004602090815260408083203384529091528120805484929061047a9084906107b9565b90915550505b6001600160a01b038416600090815260036020526040812080548492906104a89084906107b9565b90915550506001600160a01b038316600090815260036020526040812080548492906104d590849061075b565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161052191815260200190565b60405180910390a35060019392505050565b336000908152600360205260409020548111156105625760405162461bcd60e51b81526004016103b8906107a8565b33600090815260036020526040812080548392906105819084906107b9565b9091555050604051339082156108fc029083906000818181858888f193505050501580156105b3573d6000803e3d6000fd5b5060405181815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a250565b600180546102929061076e565b6000610606338484610380565b9392505050565b602081526000825180602084015260005b8181101561063b576020818601810151604086840101520161061e565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b038116811461067257600080fd5b919050565b6000806040838503121561068a57600080fd5b6106938361065b565b946020939093013593505050565b6000806000606084860312156106b657600080fd5b6106bf8461065b565b92506106cd6020850161065b565b929592945050506040919091013590565b6000602082840312156106f057600080fd5b5035919050565b60006020828403121561070957600080fd5b6106068261065b565b6000806040838503121561072557600080fd5b61072e8361065b565b915061073c6020840161065b565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561037a5761037a610745565b600181811c9082168061078257607f821691505b6020821081036107a257634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260009082015260400190565b8181038181111561037a5761037a61074556fea2646970667358221220c6fc0e80626d72d68cb4bb9cbca9ed7fb19c76647bdd9d2795847b1d3360ab6f64736f6c634300081a0033

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