WETH
Arbitrum One ERC-20 Token0x82af49447d8a07e3bd95bd0d56f35241523fbab1
Proxy 實作合約: 0x8b194beae1d3e0788a1a35173978001acdfba668
Solidity v0.6.11+commit.5ef660b1
Fungible token following the ERC-20 standard.
管理與風險
誰能修改規則?
Detected upgradeable controls from the verified ABI.
當前控制
- Implementation
- 0x8b194beae1d3e0788a1a35173978001acdfba668 ↗ Arbiscan → smarts proxy
概覽
讀取函式
Block #25,176,896 · just nowReturn 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 |
Returns the remaining number of tokens that spender is allowed to spend on behalf of owner.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 |
Returns the aeWETH token balance for a given address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 |
Returns the number of decimal places used by the token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | The token's decimals as a uint8, indicating how many decimal places balances and amounts use.✨ AI |
Returns the Layer 1 token contract address associated with this aeWETH token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | address of layer 1 token |
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 |
Returns the token's human-readable name.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token name as a string.✨ AI |
Returns the current nonce for an account used to validate off-chain signatures like permit.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 |
Returns the token symbol used to identify the aeWETH ERC-20 token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | Token symbol string (short ticker), e.g. aeWETH.✨ AI |
Returns the total number of aeWETH tokens in existence.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total supply of aeWETH tokens as a uint256 in token base units.✨ AI |
寫入函式
Allow spender to transfer up to amount of your tokens on your behalf.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 |
Burn tokens on L2.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | owner of tokens |
| amount | uint256 | amount of tokens burnt |
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 |
Decrease the caller's token allowance for spender by subtractedValue and return true on success.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 native Ether to receive aeWETH tokens minted to your account.✨ AI
Deposit Ether and mint aeWETH tokens to the specified account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | Address that will receive the minted aeWETH tokens.✨ AI |
Increase the caller's ERC-20 token allowance for a spender by a specified amount.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 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 |
Approve a spender to transfer the owner's tokens using an off-chain signature (gasless permit) before the deadline.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 tokens from caller to recipient.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 |
Transfer tokens to _to and call the recipient contract with _data after the transfer.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _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 |
Move tokens from one account to another using an approved allowance.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 |
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 |
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 |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 | ||
| data | bytes |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |