WETHRebasing
Blast ERC-20 Token0x4300000000000000000000000000000000000004
Proxy implementation: 0x83acb050aa232f97810f32afacde003303465ca5
Solidity v0.8.15+commit.e14f2714
Fungible token following the ERC-20 standard.
Overview
Read Functions
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | |
| spender | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| account | address |
Returns
| Name | Type | Description |
|---|---|---|
| value | uint256 |
Get the total number of shares. Needs to be overridden by the child contract.
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Total number of shares. |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 |
Returns
| Name | Type | Description |
|---|---|---|
| fields | bytes1 | |
| name | string | |
| version | string | |
| chainId | uint256 | |
| verifyingContract | address | |
| salt | bytes32 | |
| extensions | uint256[] |
Query an CLAIMABLE account's claimable yield.
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | Address to query the claimable amount. |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | amount Claimable amount. |
Query an account's configured yield mode.
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | Address to query the configuration. |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 | Configured yield mode. |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns the full semver contract version.
Returns
| Name | Type | Description |
|---|---|---|
| — | string | Semver contract version as a string. |
Write Functions
Report a yield event and update the share price.
Parameters
| Name | Type | Description |
|---|---|---|
| value | uint256 | Amount of new yield |
///////////////////////////////////////////////////////////
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | |
| amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Allows a contract to claim a specified amount of gas, at a claim rate set by the number of gas seconds
Parameters
| Name | Type | Description |
|---|---|---|
| recipient | address | |
| amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The amount of gas claimed (gasToClaim - penalty) |
contract configures its yield and gas modes and sets the governor. called by contract
Parameters
| Name | Type | Description |
|---|---|---|
| yieldMode | uint8 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Deposit ETH and increase the wrapped balance.
Initializer.
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | |
| spender | address | |
| value | uint256 | |
| deadline | uint256 | |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | |
| amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | |
| to | address | |
| amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Withdraw ETH and decrease the wrapped balance.
Parameters
| Name | Type | Description |
|---|---|---|
| wad | uint256 | Amount to withdraw. |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
Emitted when a CLAIMABLE account claims their yield.
| Name | Type | Indexed | Description |
|---|---|---|---|
| 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.
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | ✓ | Address of the account. |
| yieldMode | uint8 | Yield mode that was configured. |
Emitted whenever tokens are deposited to an account.
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | ✓ | Address of the account tokens are being deposited to. |
| amount | uint256 | Amount of tokens deposited. |
| Name | Type | Indexed | Description |
|---|---|---|---|
| version | uint8 |
Emitted when a new share price is set after a yield event.
| Name | Type | Indexed | Description |
|---|---|---|---|
| price | uint256 |
///////////////////////////////////////////////////////////
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
Emitted whenever tokens are withdrawn from an account.
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | ✓ | Address of the account tokens are being withdrawn from. |
| amount | uint256 | Amount of tokens withdrawn. |