0x0bd7d308f8e1639fab988df18a8011f41eacad73
Proxy 實作合約: 0xc6b81b429797e0f555440b70cd99e032d7ae947e
Solidity v0.8.16+commit.07a7930e
Fungible token following the ERC-20 standard.
管理與風險
誰能修改規則?
Detected upgradeable controls from the verified ABI.
當前控制
- Implementation
- 0xc6b81b429797e0f555440b70cd99e032d7ae947e → smarts proxy
概覽
讀取函式
Block #25,988,892 · just nowReturns the EIP-712 domain separator used to sign permits and other typed data.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The EIP-712 domain separator as a bytes32 value used to construct and verify typed data signatures.✨ AI |
Returns the remaining token allowance that the spender may use from the owner.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Address that granted the allowance.✨ AI |
| spender | address | Address permitted to spend tokens on the owner's behalf.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Remaining number of tokens (uint256) that the spender is allowed to transfer on behalf of the owner.✨ AI |
Returns the token balance of a specified account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | Address to query the token balance for.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The account's 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 number of decimal places used by the token as an unsigned 8-bit integer.✨ AI |
Get the Layer 1 contract address associated with this aeWETH token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | address of layer 1 token |
Returns the address of the Layer 2 gateway associated with this token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The L2 gateway contract address that handles deposits and withdrawals for this token.✨ AI |
Returns the token name for the aeWETH ERC-20 token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token's human-readable name (for example, "aeWETH").✨ AI |
Returns the current nonce for an address used to validate signed approvals and prevent replay attacks.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Address to query the nonce for.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Current nonce for the given address, incremented whenever a signature-based operation is executed.✨ AI |
Returns the ERC-20 token symbol for this contract.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token symbol as a string, for example "aeWETH".✨ AI |
Returns the total number of aeWETH tokens currently in existence.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total aeWETH token supply as a uint256.✨ AI |
寫入函式
Authorize spender to transfer up to amount of tokens from your account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Address authorized to spend tokens on behalf of the caller.✨ AI |
| amount | uint256 | Maximum token amount the spender is allowed to transfer.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the approval succeeded.✨ AI |
should decrease token supply by amount, and should (probably) only be callable by the L1 bridge.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | |
| amount | uint256 |
should increase token supply by amount, and should (probably) only be callable by the L1 bridge.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | |
| — | uint256 |
Decreases the caller's token allowance for a spender by a specified amount.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Address allowed to spend the caller's tokens.✨ AI |
| subtractedValue | uint256 | Amount to subtract from the spender's current allowance.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the allowance was successfully decreased.✨ AI |
Deposit ETH and mint aeWETH tokens to your account.✨ AI
Accept ETH and mint aeWETH to the specified account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | Address that will receive the minted aeWETH tokens.✨ AI |
Increase the caller's ERC-20 allowance for a spender by addedValue and emit an Approval event.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Address allowed to spend the caller's tokens.✨ AI |
| addedValue | uint256 | Amount to add to the current allowance, in the token's smallest unit.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the allowance was successfully increased, false otherwise.✨ AI |
Initializes the aeWETH token metadata, sets decimals, and configures the L2 gateway and corresponding L1 token address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| name_ | string | Token name to display in wallets and block explorers.✨ AI |
| symbol_ | string | Token symbol to display in wallets and block explorers.✨ AI |
| decimals_ | uint8 | Number of decimals used for token amounts in user interfaces.✨ AI |
| l2Gateway_ | address | Address of the Layer 2 gateway contract responsible for bridging.✨ AI |
| l1Address_ | address | Address of the corresponding L1 token contract (WETH) on Ethereum.✨ AI |
Allow a spender to spend the owner's tokens using an off-chain signature.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Address of the token holder granting approval.✨ AI |
| spender | address | Address authorized to spend the owner's tokens.✨ AI |
| value | uint256 | Amount of tokens to approve (uint256).✨ AI |
| deadline | uint256 | Unix timestamp after which the signature is invalid.✨ AI |
| v | uint8 | ECDSA signature recovery id component.✨ AI |
| r | bytes32 | ECDSA signature r component.✨ AI |
| s | bytes32 | ECDSA signature s component.✨ AI |
Transfer a specified amount of tokens from the caller's account to the recipient address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| to | address | Recipient address that will receive the tokens.✨ AI |
| amount | uint256 | Amount of tokens to transfer, expressed in the token's smallest unit.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | Boolean indicating whether the transfer succeeded.✨ AI |
Transfers tokens to a recipient and immediately calls that recipient with the supplied data.✨ 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 | True if the token transfer and subsequent call succeeded, false otherwise.✨ AI |
Move tokens from one address to another using the caller's approved allowance.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| from | address | Address to debit tokens from.✨ AI |
| to | address | Address to credit tokens to.✨ AI |
| amount | uint256 | Amount of tokens to transfer, expressed in the token's smallest unit.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeds.✨ AI |
Withdraw the specified amount of aeWETH and receive the equivalent ETH to your address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| amount | uint256 | Amount of aeWETH to withdraw, denominated in wei.✨ AI |
Redeem aeWETH tokens and send the underlying asset to the specified account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | Recipient address that will receive the withdrawn underlying asset.✨ AI |
| amount | uint256 | Amount of aeWETH to redeem and withdraw, expressed in the token's smallest unit.✨ AI |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint8 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 | ||
| data | bytes |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |