WETH9

Overview

License: MIT

contract WETH9

Events info

Approval

event Approval(address indexed src, address indexed guy, uint256 wad)

Transfer

event Transfer(address indexed src, address indexed dst, uint256 wad)

Deposit

event Deposit(address indexed dst, uint256 wad)

Withdrawal

event Withdrawal(address indexed src, uint256 wad)

State variables info

name (0x06fdde03)

string name = "Wrapped Ether"

symbol (0x95d89b41)

string symbol = "WETH"

decimals (0x313ce567)

uint8 decimals = 18

balanceOf (0x70a08231)

mapping(address => uint256) balanceOf

allowance (0xdd62ed3e)

mapping(address => mapping(address => uint256)) allowance

Functions info

deposit (0xd0e30db0)

function deposit() public payable

withdraw (0x2e1a7d4d)

function withdraw(uint256 wad) public

totalSupply (0x18160ddd)

function totalSupply() public view returns (uint256)

approve (0x095ea7b3)

function approve(address guy, uint256 wad) public returns (bool)

transfer (0xa9059cbb)

function transfer(address dst, uint256 wad) public returns (bool)

transferFrom (0x23b872dd)

function transferFrom(
    address src,
    address dst,
    uint256 wad
) public returns (bool)

Last updated