WETHRebasing
Blast ERC-20 Token0x4300000000000000000000000000000000000004
Proxy 實作合約: 0x83acb050aa232f97810f32afacde003303465ca5
Solidity v0.8.15+commit.e14f2714
Fungible token following the ERC-20 standard.
概覽
讀取函式
Return the EIP-712 domain separator used to sign typed data.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | Domain separator (bytes32) used for EIP-712 typed-data signing.✨ AI |
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 |
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 |
Return the remaining number of tokens that spender is allowed to spend on behalf of owner.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 |
Return the current token balance for the specified account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 |
Get the total number of shares. Needs to be overridden by the child contract.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total number of shares. |
Returns the number of decimal places the token uses.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | The token's decimals as a uint8 indicating how many decimal places are used for token amounts.✨ AI |
Return the EIP-712 domain components the contract uses for typed data signing and signature verification.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 |
Query an CLAIMABLE account's claimable yield.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | Address to query the claimable amount. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | amount Claimable amount. |
Query an account's configured yield mode.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | Address to query the configuration. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | Configured yield mode. |
Returns the token's name as a human-readable string.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The ERC-20 token name (string)✨ AI |
Returns the current nonce for an address used by permit signatures.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Address to query the current permit nonce.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Current nonce for the owner; increments each time a permit is used.✨ AI |
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 |
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 |
Return the token symbol used to identify this ERC-20 token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token symbol as a string (for example, "WETH").✨ AI |
Return the current total token supply, reflecting any rebases.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The total supply as a uint256, representing all tokens after rebasing.✨ AI |
Returns the full semver contract version.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | Semver contract version as a string. |
寫入函式
Report a yield event and update the share price.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| value | uint256 | Amount of new yield |
///////////////////////////////////////////////////////////
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | |
| amount | uint256 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool |
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) |
contract configures its yield and gas modes and sets the governor. called by contract
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| yieldMode | uint8 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 |
Deposit ETH and increase the wrapped balance.
Initializer.
Allows a spender to spend an owner's tokens using an off-chain EIP-2612 signature.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 |
Transfers a specified amount of tokens from the caller to the recipient address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 |
Transfer tokens from one address to another using an approved allowance.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| 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 ETH and decrease the wrapped balance.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| wad | uint256 | Amount to withdraw. |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | 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. |
Emitted when an account configures their yield mode.
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | Address of the account. |
| yieldMode | uint8 | Yield mode that was configured. |
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. |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint8 |
Emitted when a new share price is set after a yield event.
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| price | uint256 |
///////////////////////////////////////////////////////////
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | 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. |