Address Contract Verified
Address
0x26e48B22184FCb105d20856487239014A6b8Cc60
Balance
0.010000 ETH
Nonce
1
Code Size
4587 bytes
Creator
0x2CC7F5c4...8506 at tx 0x2da51e43...da39e9
Indexed Transactions
0
Contract Bytecode
4587 bytes
0x60806040526004361061009f575f3560e01c8063313ce56711610063578063313ce567146101a657806370a08231146101d057806395d89b411461020c578063a9059cbb14610236578063d0e30db014610272578063dd62ed3e1461027c576100ae565b806306fdde03146100b2578063095ea7b3146100dc57806318160ddd1461011857806323b872dd146101425780632e1a7d4d1461017e576100ae565b366100ae576100ac6102b8565b005b5f5ffd5b3480156100bd575f5ffd5b506100c66103c0565b6040516100d39190610c82565b60405180910390f35b3480156100e7575f5ffd5b5061010260048036038101906100fd9190610d33565b61044b565b60405161010f9190610d8b565b60405180910390f35b348015610123575f5ffd5b5061012c610538565b6040516101399190610db3565b60405180910390f35b34801561014d575f5ffd5b5061016860048036038101906101639190610dcc565b61053f565b6040516101759190610d8b565b60405180910390f35b348015610189575f5ffd5b506101a4600480360381019061019f9190610e1c565b6108f9565b005b3480156101b1575f5ffd5b506101ba610b2b565b6040516101c79190610e62565b60405180910390f35b3480156101db575f5ffd5b506101f660048036038101906101f19190610e7b565b610b3d565b6040516102039190610db3565b60405180910390f35b348015610217575f5ffd5b50610220610b52565b60405161022d9190610c82565b60405180910390f35b348015610241575f5ffd5b5061025c60048036038101906102579190610d33565b610bde565b6040516102699190610d8b565b60405180910390f35b61027a6102b8565b005b348015610287575f5ffd5b506102a2600480360381019061029d9190610ea6565b610bf2565b6040516102af9190610db3565b60405180910390f35b3460035f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546103049190610f11565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c346040516103519190610db3565b60405180910390a23373ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef346040516103b69190610db3565b60405180910390a3565b5f80546103cc90610f71565b80601f01602080910402602001604051908101604052809291908181526020018280546103f890610f71565b80156104435780601f1061041a57610100808354040283529160200191610443565b820191905f5260205f20905b81548152906001019060200180831161042657829003601f168201915b505050505081565b5f8160045f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516105269190610db3565b60405180910390a36001905092915050565b5f47905090565b5f8160035f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205410156105c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b790610feb565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415801561069457507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60045f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205414155b156107e3578160045f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20541015610754576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161074b90611053565b60405180910390fd5b8160045f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546107db9190611071565b925050819055505b8160035f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461082f9190611071565b925050819055508160035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546108829190610f11565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516108e69190610db3565b60405180910390a3600190509392505050565b8060035f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20541015610979576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610970906110ee565b60405180910390fd5b8060035f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546109c59190611071565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6582604051610a129190610db3565b60405180910390a25f73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610a779190610db3565b60405180910390a35f3373ffffffffffffffffffffffffffffffffffffffff1682604051610aa490611139565b5f6040518083038185875af1925050503d805f8114610ade576040519150601f19603f3d011682016040523d82523d5f602084013e610ae3565b606091505b5050905080610b27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1e90611197565b60405180910390fd5b5050565b60025f9054906101000a900460ff1681565b6003602052805f5260405f205f915090505481565b60018054610b5f90610f71565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8b90610f71565b8015610bd65780601f10610bad57610100808354040283529160200191610bd6565b820191905f5260205f20905b815481529060010190602001808311610bb957829003601f168201915b505050505081565b5f610bea33848461053f565b905092915050565b6004602052815f5260405f20602052805f5260405f205f91509150505481565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f610c5482610c12565b610c5e8185610c1c565b9350610c6e818560208601610c2c565b610c7781610c3a565b840191505092915050565b5f6020820190508181035f830152610c9a8184610c4a565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610ccf82610ca6565b9050919050565b610cdf81610cc5565b8114610ce9575f5ffd5b50565b5f81359050610cfa81610cd6565b92915050565b5f819050919050565b610d1281610d00565b8114610d1c575f5ffd5b50565b5f81359050610d2d81610d09565b92915050565b5f5f60408385031215610d4957610d48610ca2565b5b5f610d5685828601610cec565b9250506020610d6785828601610d1f565b9150509250929050565b5f8115159050919050565b610d8581610d71565b82525050565b5f602082019050610d9e5f830184610d7c565b92915050565b610dad81610d00565b82525050565b5f602082019050610dc65f830184610da4565b92915050565b5f5f5f60608486031215610de357610de2610ca2565b5b5f610df086828701610cec565b9350506020610e0186828701610cec565b9250506040610e1286828701610d1f565b9150509250925092565b5f60208284031215610e3157610e30610ca2565b5b5f610e3e84828501610d1f565b91505092915050565b5f60ff82169050919050565b610e5c81610e47565b82525050565b5f602082019050610e755f830184610e53565b92915050565b5f60208284031215610e9057610e8f610ca2565b5b5f610e9d84828501610cec565b91505092915050565b5f5f60408385031215610ebc57610ebb610ca2565b5b5f610ec985828601610cec565b9250506020610eda85828601610cec565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f610f1b82610d00565b9150610f2683610d00565b9250828201905080821115610f3e57610f3d610ee4565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680610f8857607f821691505b602082108103610f9b57610f9a610f44565b5b50919050565b7f696e73756666696369656e742062616c616e63650000000000000000000000005f82015250565b5f610fd5601483610c1c565b9150610fe082610fa1565b602082019050919050565b5f6020820190508181035f83015261100281610fc9565b9050919050565b7f696e73756666696369656e7420616c6c6f77616e6365000000000000000000005f82015250565b5f61103d601683610c1c565b915061104882611009565b602082019050919050565b5f6020820190508181035f83015261106a81611031565b9050919050565b5f61107b82610d00565b915061108683610d00565b925082820390508181111561109e5761109d610ee4565b5b92915050565b7f696e73756666696369656e7420574554480000000000000000000000000000005f82015250565b5f6110d8601183610c1c565b91506110e3826110a4565b602082019050919050565b5f6020820190508181035f830152611105816110cc565b9050919050565b5f81905092915050565b50565b5f6111245f8361110c565b915061112f82611116565b5f82019050919050565b5f61114382611119565b9150819050919050565b7f455448207472616e73666572206661696c6564000000000000000000000000005f82015250565b5f611181601383610c1c565b915061118c8261114d565b602082019050919050565b5f6020820190508181035f8301526111ae81611175565b905091905056fea264697066735822122053b64aeb1cbcc94a32e61a96fab076e3d1e3fba70e897b7c3a9085b79613ae6c64736f6c634300081f0033
Verified Source Code Full Match
Compiler: v0.8.31+commit.fd3a2265
EVM: osaka
Optimization: No
WETH.sol 66 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
// Minimal WETH (WETH9-style): deposit ETH -> mint WETH; withdraw WETH -> redeem ETH.
// Supports approve/transfer/transferFrom like any ERC-20.
contract WrappedEther {
string public name = "Wrapped Ether";
string public symbol = "WETH";
uint8 public decimals = 18;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
event Approval(address indexed owner, address indexed spender, uint256 value);
event Transfer(address indexed from, address indexed to, uint256 value);
event Deposit(address indexed dst, uint256 wad);
event Withdrawal(address indexed src, uint256 wad);
// Receive ETH directly: wraps automatically.
receive() external payable {
deposit();
}
// Deposit ETH and mint WETH 1:1.
function deposit() public payable {
balanceOf[msg.sender] += msg.value;
emit Deposit(msg.sender, msg.value);
emit Transfer(address(0), msg.sender, msg.value);
}
// Withdraw WETH and receive ETH back 1:1.
function withdraw(uint256 wad) public {
require(balanceOf[msg.sender] >= wad, "insufficient WETH");
balanceOf[msg.sender] -= wad;
emit Withdrawal(msg.sender, wad);
emit Transfer(msg.sender, address(0), wad);
(bool ok, ) = payable(msg.sender).call{value: wad}("");
require(ok, "ETH transfer failed");
}
function totalSupply() public view returns (uint256) {
return address(this).balance;
}
function approve(address spender, uint256 value) public returns (bool) {
allowance[msg.sender][spender] = value;
emit Approval(msg.sender, spender, value);
return true;
}
function transfer(address to, uint256 value) public returns (bool) {
return transferFrom(msg.sender, to, value);
}
function transferFrom(address from, address to, uint256 value) public returns (bool) {
require(balanceOf[from] >= value, "insufficient balance");
if (from != msg.sender && allowance[from][msg.sender] != type(uint256).max) {
require(allowance[from][msg.sender] >= value, "insufficient allowance");
allowance[from][msg.sender] -= value;
}
balanceOf[from] -= value;
balanceOf[to] += value;
emit Transfer(from, to, value);
return true;
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 5 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 value
returns: bool
deposit 0xd0e30db0
No parameters
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
withdraw 0x2e1a7d4d
uint256 wad
Recent Transactions
No transactions found for this address