WETH

Arbitrum One ERC-20 Token

0x82af49447d8a07e3bd95bd0d56f35241523fbab1

Proxy 实现合约: 0x8b194beae1d3e0788a1a35173978001acdfba668

Solidity v0.6.11+commit.5ef660b1

Fungible token following the ERC-20 standard.

🤖
通过你的 AI 查询此合约
引用: 0x82af49447d8a07e3bd95bd0d56f35241523fbab1
示例提示词: "Tell me the current state of arbitrum/0x82af49447d8a07e3bd95bd0d56f35241523fbab1"
还没有接入 AI?→ mcp.smarts.md

管理与风险

谁能修改规则?

Detected upgradeable controls from the verified ABI.

Upgradeable

当前控制

Implementation
0x8b194beae1d3e0788a1a35173978001acdfba668 ↗ Arbiscan → smarts proxy

概览

读取函数
10
写入函数
14
事件
3

读取函数

Block #25,176,896 · 39s ago
DOMAIN_SEPARATOR() view → 0xac33225466df015cad7b0e1bf31afc69a49f20d95501a98d9644ad21163469a0

Return the EIP-712 domain separator used for signing typed data.✨ AI

返回值

名称 类型 描述
bytes32 The EIP-712 domain separator (bytes32) for this contract, used in permit and typed-data signatures.✨ AI
allowance(owner: address, spender: address) view

Returns the remaining number of tokens that spender is allowed to spend on behalf of owner.✨ AI

开发者: See {IERC20-allowance}.

参数

名称 类型 描述
owner address Address of the token owner whose allowance is being queried.✨ AI
spender address Address of the spender allowed to transfer tokens from the owner.✨ AI

返回值

名称 类型 描述
uint256 The remaining allowance as a uint256 in the token's smallest unit (wei) that spender may transfer.✨ AI
balanceOf(account: address) view

Returns the aeWETH token balance for a given address.✨ AI

开发者: See {IERC20-balanceOf}.

参数

名称 类型 描述
account address Address whose aeWETH balance will be returned.✨ AI

返回值

名称 类型 描述
uint256 The account's aeWETH token balance as a uint256 in the token's smallest unit.✨ AI
decimals() view → 18

Returns the number of decimal places used by the token.✨ AI

开发者: Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.

返回值

名称 类型 描述
uint8 The token's decimals as a uint8, indicating how many decimal places balances and amounts use.✨ AI
l1Address() view → 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

Returns the Layer 1 token contract address associated with this aeWETH token.✨ AI

返回值

名称 类型 描述
address address of layer 1 token
l2Gateway() view → 0x6c411ad3e74de3e7bd422b94a27770f5b86c623b

Return the Layer 2 gateway contract address used to bridge aeWETH.✨ AI

返回值

名称 类型 描述
address The address of the L2 gateway contract that handles bridging for this token.✨ AI
name() view → Wrapped Ether

Returns the token's human-readable name.✨ AI

开发者: Returns the name of the token.

返回值

名称 类型 描述
string The token name as a string.✨ AI
nonces(owner: address) view

Returns the current nonce for an account used to validate off-chain signatures like permit.✨ AI

开发者: See {IERC20Permit-nonces}.

参数

名称 类型 描述
owner address The address whose nonce is being queried.✨ AI

返回值

名称 类型 描述
uint256 The current uint256 nonce for the owner; increments each time a signature-based permission is used.✨ AI
symbol() view → WETH

Returns the token symbol used to identify the aeWETH ERC-20 token.✨ AI

开发者: Returns the symbol of the token, usually a shorter version of the name.

返回值

名称 类型 描述
string Token symbol string (short ticker), e.g. aeWETH.✨ AI
totalSupply() view → 153,088.92 WETH

Returns the total number of aeWETH tokens in existence.✨ AI

开发者: See {IERC20-totalSupply}.

返回值

名称 类型 描述
uint256 Total supply of aeWETH tokens as a uint256 in token base units.✨ AI

写入函数

approve(spender: address, amount: uint256) nonpayable

Allow spender to transfer up to amount of your tokens on your behalf.✨ AI

开发者: See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.

参数

名称 类型 描述
spender address Address allowed to spend tokens.✨ AI
amount uint256 Maximum number of tokens the spender is allowed to transfer.✨ AI

返回值

名称 类型 描述
bool True if the approval operation succeeded, false otherwise.✨ AI
bridgeBurn(account: address, amount: uint256) nonpayable

Burn tokens on L2.

开发者: only the token bridge can call this

参数

名称 类型 描述
account address owner of tokens
amount uint256 amount of tokens burnt
bridgeMint(account: address, amount: uint256) nonpayable

Mint tokens on L2. Callable path is L1Gateway depositToken (which handles L1 escrow), which triggers L2Gateway, which calls this

参数

名称 类型 描述
account address recipient of tokens
amount uint256 amount of tokens minted
decreaseAllowance(spender: address, subtractedValue: uint256) nonpayable

Decrease the caller's token allowance for spender by subtractedValue and return true on success.✨ AI

开发者: Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.

参数

名称 类型 描述
spender address Address that will have its allowance decreased.✨ AI
subtractedValue uint256 Amount to subtract from the existing allowance.✨ AI

返回值

名称 类型 描述
bool Boolean indicating whether the allowance was decreased successfully.✨ AI
deposit() payable

Deposit native Ether to receive aeWETH tokens minted to your account.✨ AI

depositTo(account: address) payable

Deposit Ether and mint aeWETH tokens to the specified account.✨ AI

参数

名称 类型 描述
account address Address that will receive the minted aeWETH tokens.✨ AI
increaseAllowance(spender: address, addedValue: uint256) nonpayable

Increase the caller's ERC-20 token allowance for a spender by a specified amount.✨ AI

开发者: Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address.

参数

名称 类型 描述
spender address Address that will be allowed to spend the caller's tokens.✨ AI
addedValue uint256 Amount to add to the spender's existing allowance (token base units).✨ AI

返回值

名称 类型 描述
bool True if the allowance was successfully increased.✨ AI
initialize(_name: string, _symbol: string, _decimals: uint8, _l2Gateway: address, _l1Address: address) nonpayable

Initialize the aeWETH token and set its metadata and linked L1/L2 gateway addresses.✨ AI

参数

名称 类型 描述
_name string Token name stored in ERC-20 metadata.✨ AI
_symbol string Token symbol stored in ERC-20 metadata.✨ AI
_decimals uint8 Number of decimals used by the token.✨ AI
_l2Gateway address Address of the Layer 2 gateway contract that handles bridging.✨ AI
_l1Address address Address of the corresponding token contract on Layer 1.✨ AI
permit(owner: address, spender: address, value: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable

Approve a spender to transfer the owner's tokens using an off-chain signature (gasless permit) before the deadline.✨ AI

开发者: See {IERC20Permit-permit}.

参数

名称 类型 描述
owner address Token holder address who generated the signature.✨ AI
spender address Address approved to spend the owner's tokens.✨ AI
value uint256 Amount of tokens to approve, in the token's smallest unit.✨ AI
deadline uint256 Unix timestamp after which the signature is invalid.✨ AI
v uint8 ECDSA signature recovery identifier (v byte).✨ AI
r bytes32 First 32 bytes of the ECDSA signature.✨ AI
s bytes32 Second 32 bytes of the ECDSA signature.✨ AI
transfer(recipient: address, amount: uint256) nonpayable

Transfer tokens from caller to recipient.✨ AI

开发者: See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.

参数

名称 类型 描述
recipient address Address receiving the tokens.✨ AI
amount uint256 Amount of tokens to transfer (in the token's smallest unit).✨ AI

返回值

名称 类型 描述
bool True if the transfer succeeded.✨ AI
transferAndCall(_to: address, _value: uint256, _data: bytes) nonpayable

Transfer tokens to _to and call the recipient contract with _data after the transfer.✨ AI

开发者: transfer token to a contract address with additional data if the recipient is a contact.

参数

名称 类型 描述
_to address The address to transfer to.
_value uint256 The amount to be transferred.
_data bytes The extra data to be passed to the receiving contract.

返回值

名称 类型 描述
success bool success: true if the token transfer and the subsequent call both succeeded; false otherwise.✨ AI
transferFrom(sender: address, recipient: address, amount: uint256) nonpayable

Move tokens from one account to another using an approved allowance.✨ AI

开发者: See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`.

参数

名称 类型 描述
sender address Address providing the tokens.✨ AI
recipient address Address receiving the tokens.✨ AI
amount uint256 Number of tokens to transfer (in the token's smallest units).✨ AI

返回值

名称 类型 描述
bool True if the transfer succeeded.✨ AI
withdraw(amount: uint256) nonpayable

Burns the specified amount of aeWETH and transfers the equivalent underlying Ether to the caller.✨ AI

参数

名称 类型 描述
amount uint256 Amount of aeWETH to withdraw, specified in wei.✨ AI
withdrawTo(account: address, amount: uint256) nonpayable

Withdraws the specified amount of underlying WETH and sends it to the provided account.✨ AI

参数

名称 类型 描述
account address Recipient address that will receive the withdrawn underlying asset.✨ AI
amount uint256 Amount to withdraw, expressed in the token's smallest unit (wei).✨ AI

事件

Approval(owner: address, spender: address, value: uint256)
名称 类型 已索引 描述
owner address
spender address
value uint256
Transfer(from: address, to: address, value: uint256, data: bytes)
名称 类型 已索引 描述
from address
to address
value uint256
data bytes
Transfer(from: address, to: address, value: uint256)
名称 类型 已索引 描述
from address
to address
value uint256