WETH

Robinhood Chain ERC-20 Token 浏览链

0x0bd7d308f8e1639fab988df18a8011f41eacad73

Proxy 实现合约: 0xc6b81b429797e0f555440b70cd99e032d7ae947e

Solidity v0.8.16+commit.07a7930e

Fungible token following the ERC-20 standard.

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

管理与风险

谁能修改规则?

Detected upgradeable controls from the verified ABI.

Upgradeable

当前控制

Implementation
0xc6b81b429797e0f555440b70cd99e032d7ae947e → smarts proxy

概览

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

读取函数

Block #25,988,906 · just now
DOMAIN_SEPARATOR() view → 0x6d5ee3df05221eead531fac263fd104122d2f2e4949c6dcd77842d29eb394916

Returns 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
allowance(owner: address, spender: address) view

Returns the remaining token allowance that the spender may use from the owner.✨ AI

开发者: Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called.

参数

名称 类型 描述
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
balanceOf(account: address) view

Returns the token balance of a specified account.✨ AI

开发者: Returns the amount of tokens owned by `account`.

参数

名称 类型 描述
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
decimals() view → 18

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

开发者: Returns the decimals places of the token.

返回值

名称 类型 描述
uint8 The number of decimal places used by the token as an unsigned 8-bit integer.✨ AI
l1Address() view → 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

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

返回值

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

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
name() view → WETH

Returns the token name for the aeWETH ERC-20 token.✨ AI

开发者: Returns the name of the token.

返回值

名称 类型 描述
string The token's human-readable name (for example, "aeWETH").✨ AI
nonces(owner: address) view

Returns the current nonce for an address used to validate signed approvals and prevent replay attacks.✨ AI

开发者: Returns the current nonce for `owner`. This value must be included whenever a signature is generated for {permit}. Every successful call to {permit} increases ``owner``'s nonce by one. This prevents a signature from being used multiple times.

参数

名称 类型 描述
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
symbol() view → WETH

Returns the ERC-20 token symbol for this contract.✨ AI

开发者: Returns the symbol of the token.

返回值

名称 类型 描述
string The token symbol as a string, for example "aeWETH".✨ AI
totalSupply() view → 45,512.11 WETH

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

开发者: Returns the amount of tokens in existence.

返回值

名称 类型 描述
uint256 Total aeWETH token supply as a uint256.✨ AI

写入函数

approve(spender: address, amount: uint256) nonpayable

Authorize spender to transfer up to amount of tokens from your account.✨ AI

开发者: Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event.

参数

名称 类型 描述
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
bridgeBurn(account: address, amount: uint256) nonpayable

should decrease token supply by amount, and should (probably) only be callable by the L1 bridge.

参数

名称 类型 描述
account address
amount uint256
bridgeMint(address, uint256) nonpayable

should increase token supply by amount, and should (probably) only be callable by the L1 bridge.

参数

名称 类型 描述
address
uint256
decreaseAllowance(spender: address, subtractedValue: uint256) nonpayable

Decreases the caller's token allowance for a spender by a specified amount.✨ 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 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() payable

Deposit ETH and mint aeWETH tokens to your account.✨ AI

开发者: Accepts ETH via msg.value and mints aeWETH to msg.sender at the current exchange rate; may revert on failure.✨ AI
depositTo(account: address) payable

Accept ETH and mint aeWETH 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 allowance for a spender by addedValue and emit an Approval event.✨ 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 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
initialize(name_: string, symbol_: string, decimals_: uint8, l2Gateway_: address, l1Address_: address) nonpayable

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
permit(owner: address, spender: address, value: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable

Allow a spender to spend the owner's tokens using an off-chain signature.✨ AI

开发者: Sets `value` as the allowance of `spender` over ``owner``'s tokens, given ``owner``'s signed approval. IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here. Emits an {Approval} event. Requirements: - `spender` cannot be the zero address. - `deadline` must be a timestamp in the future. - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` over the EIP712-formatted function arguments. - the signature must use ``owner``'s current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section].

参数

名称 类型 描述
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(to: address, amount: uint256) nonpayable

Transfer a specified amount of tokens from the caller's account to the recipient address.✨ AI

开发者: Moves `amount` tokens from the caller's account to `to`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.

参数

名称 类型 描述
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
transferAndCall(_to: address, _value: uint256, _data: bytes) nonpayable

Transfers tokens to a recipient and immediately calls that recipient with the supplied data.✨ 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 True if the token transfer and subsequent call succeeded, false otherwise.✨ AI
transferFrom(from: address, to: address, amount: uint256) nonpayable

Move tokens from one address to another using the caller's approved allowance.✨ AI

开发者: Moves `amount` tokens from `from` to `to` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.

参数

名称 类型 描述
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(amount: uint256) nonpayable

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
withdrawTo(account: address, amount: uint256) nonpayable

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

事件

Approval(owner: address, spender: address, value: uint256)
名称 类型 已索引 描述
owner address
spender address
value uint256
Initialized(version: uint8)
名称 类型 已索引 描述
version uint8
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