WETHRebasing

Blast ERC-20 Token

0x4300000000000000000000000000000000000004

Proxy 实现合约: 0x83acb050aa232f97810f32afacde003303465ca5

Solidity v0.8.15+commit.e14f2714

Fungible token following the ERC-20 standard.

🤖
通过你的 AI 查询此合约
引用: 0x4300000000000000000000000000000000000004
示例提示词: "Tell me the current state of blast/0x4300000000000000000000000000000000000004"
还没有接入 AI?→ mcp.smarts.md
Blast 在 Smarts 上是仅文档链:源代码和 ABI 已索引,但当前不提供实时链上数据(状态、最新事件、管理员画像)。AI 代理仍可通过 MCP 调用 get_contract_info 和 get_contract_source。

概览

读取函数
17
写入函数
10
事件
9

读取函数

DOMAIN_SEPARATOR() view

Return the EIP-712 domain separator used to sign typed data.✨ AI

返回值

名称 类型 描述
bytes32 Domain separator (bytes32) used for EIP-712 typed-data signing.✨ AI
PERMIT_TYPEHASH() view

Returns the EIP-2612 permit typehash used for permit signature verification.✨ AI

返回值

名称 类型 描述
bytes32 keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)")✨ AI
REPORTER() view

Returns the address currently assigned as the contract's reporter.✨ AI

返回值

名称 类型 描述
address Address of the reporter role permitted to submit reports or updates (may be zero address if unset).✨ AI
allowance(owner: address, spender: address) view

Return the remaining number of tokens that spender is allowed to spend on behalf of 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 owns the tokens.✨ AI
spender address Address permitted to spend the owner's tokens.✨ AI

返回值

名称 类型 描述
uint256 Unsigned integer representing the remaining allowance for spender to spend from owner.✨ AI
balanceOf(account: address) view

Return the current token balance for the specified account.✨ AI

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

参数

名称 类型 描述
account address Address to query the token balance for.✨ AI

返回值

名称 类型 描述
value uint256 The account's current token balance as a uint256 (wei units), after any rebases.✨ AI
count() view

Get the total number of shares. Needs to be overridden by the child contract.

返回值

名称 类型 描述
uint256 Total number of shares.
decimals() view

Returns the number of decimal places the token uses.✨ 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 default value returned by this function, unless it's overridden. 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 are used for token amounts.✨ AI
eip712Domain() view

Return the EIP-712 domain components the contract uses for typed data signing and signature verification.✨ AI

开发者: See {EIP-5267}. _Available since v4.9._

返回值

名称 类型 描述
fields bytes1 fields — single byte bitmask indicating which domain fields are present or active.✨ AI
name string name — domain name string used in the EIP-712 domain (typically the token or contract name).✨ AI
version string version — domain version string used in the EIP-712 domain.✨ AI
chainId uint256 chainId — chain identifier (uint256) the domain is bound to for replay protection.✨ AI
verifyingContract address verifyingContract — address of the contract acting as the EIP-712 domain verifier.✨ AI
salt bytes32 salt — domain salt (bytes32) used for additional domain separation.✨ AI
extensions uint256[] extensions — array of uint256 extension values included in the domain for custom data.✨ AI
getClaimableAmount(account: address) view

Query an CLAIMABLE account's claimable yield.

参数

名称 类型 描述
account address Address to query the claimable amount.

返回值

名称 类型 描述
uint256 amount Claimable amount.
getConfiguration(account: address) view

Query an account's configured yield mode.

参数

名称 类型 描述
account address Address to query the configuration.

返回值

名称 类型 描述
uint8 Configured yield mode.
name() view

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

开发者: Returns the name of the token.

返回值

名称 类型 描述
string The ERC-20 token name (string)✨ AI
nonces(owner: address) view

Returns the current nonce for an address used by permit signatures.✨ AI

开发者: See {IERC20Permit-nonces}.

参数

名称 类型 描述
owner address Address to query the current permit nonce.✨ AI

返回值

名称 类型 描述
uint256 Current nonce for the owner; increments each time a permit is used.✨ AI
pending() view

Returns the amount of tokens pending distribution from the rebasing contract.✨ AI

返回值

名称 类型 描述
uint256 Pending token amount available for distribution or claim, expressed in wei (token base units).✨ AI
price() view

Returns the current token price used by the contract.✨ AI

返回值

名称 类型 描述
uint256 Current token price as a uint256 expressed in the contract's internal price units.✨ AI
symbol() view

Return the token symbol used to identify this ERC-20 token.✨ AI

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

返回值

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

Return the current total token supply, reflecting any rebases.✨ AI

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

返回值

名称 类型 描述
uint256 The total supply as a uint256, representing all tokens after rebasing.✨ AI
version() view

Returns the full semver contract version.

返回值

名称 类型 描述
string Semver contract version as a string.

写入函数

addValue(value: uint256) nonpayable

Report a yield event and update the share price.

参数

名称 类型 描述
value uint256 Amount of new yield
approve(spender: address, amount: uint256) nonpayable

///////////////////////////////////////////////////////////

参数

名称 类型 描述
spender address
amount uint256

返回值

名称 类型 描述
bool
claim(recipient: address, amount: uint256) nonpayable

Allows a contract to claim a specified amount of gas, at a claim rate set by the number of gas seconds

参数

名称 类型 描述
recipient address
amount uint256

返回值

名称 类型 描述
uint256 The amount of gas claimed (gasToClaim - penalty)
configure(yieldMode: uint8) nonpayable

contract configures its yield and gas modes and sets the governor. called by contract

参数

名称 类型 描述
yieldMode uint8

返回值

名称 类型 描述
uint256
deposit() payable

Deposit ETH and increase the wrapped balance.

initialize() nonpayable

Initializer.

permit(owner: address, spender: address, value: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable

Allows a spender to spend an owner's tokens using an off-chain EIP-2612 signature.✨ AI

开发者: See {IERC20Permit-permit}.

参数

名称 类型 描述
owner address Address of the token owner who signed the permit.✨ AI
spender address Address authorized to spend the owner's tokens.✨ AI
value uint256 Amount of tokens the spender is permitted to transfer.✨ AI
deadline uint256 Unix timestamp after which the permit is invalid.✨ AI
v uint8 Recovery byte of the owner's signature.✨ AI
r bytes32 First 32 bytes of the owner's signature.✨ AI
s bytes32 Second 32 bytes of the owner's signature.✨ AI
transfer(to: address, amount: uint256) nonpayable

Transfers a specified amount of tokens from the caller 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 Number of tokens to transfer from caller balance (in token units).✨ AI

返回值

名称 类型 描述
bool True if the transfer succeeded, otherwise false.✨ AI
transferFrom(from: address, to: address, amount: uint256) nonpayable

Transfer tokens from one address to another using an 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 Token amount to transfer, in the token's smallest unit (wei for WETH).✨ AI

返回值

名称 类型 描述
bool True when the transfer succeeds; the call reverts on failure.✨ AI
withdraw(wad: uint256) nonpayable

Withdraw ETH and decrease the wrapped balance.

参数

名称 类型 描述
wad uint256 Amount to withdraw.

事件

Approval(owner: address, spender: address, value: uint256)
名称 类型 已索引 描述
owner address
spender address
value uint256
Claim(account: address, recipient: address, amount: uint256)

Emitted when a CLAIMABLE account claims their yield.

名称 类型 已索引 描述
account address Address of the account.
recipient address Address of the recipient.
amount uint256 Amount of yield claimed.
Configure(account: address, yieldMode: uint8)

Emitted when an account configures their yield mode.

名称 类型 已索引 描述
account address Address of the account.
yieldMode uint8 Yield mode that was configured.
Deposit(account: address, amount: uint256)

Emitted whenever tokens are deposited to an account.

名称 类型 已索引 描述
account address Address of the account tokens are being deposited to.
amount uint256 Amount of tokens deposited.
EIP712DomainChanged()
Initialized(version: uint8)
名称 类型 已索引 描述
version uint8
NewPrice(price: uint256)

Emitted when a new share price is set after a yield event.

名称 类型 已索引 描述
price uint256
Transfer(from: address, to: address, value: uint256)

///////////////////////////////////////////////////////////

名称 类型 已索引 描述
from address
to address
value uint256
Withdrawal(account: address, amount: uint256)

Emitted whenever tokens are withdrawn from an account.

名称 类型 已索引 描述
account address Address of the account tokens are being withdrawn from.
amount uint256 Amount of tokens withdrawn.