USDB
Blast ERC-20 Token0x4300000000000000000000000000000000000003
Proxy implementation: 0x4ef0d788470e2feb6559b93075ec5be51dba737d
Solidity v0.8.15+commit.e14f2714
Fungible token following the ERC-20 standard.
Overview
Read Functions
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
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 |
Legacy getter for BRIDGE.
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
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 |
Legacy getter for REMOTE_TOKEN.
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
ERC165 interface check function.
Parameters
| Name | Type | Description |
|---|---|---|
| _interfaceId | bytes4 | Interface ID to check. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | Whether or not the interface is supported by this contract. |
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 the StandardBridge on this network to burn tokens.
Parameters
| Name | Type | Description |
|---|---|---|
| _from | address | Address to burn tokens from. |
| _amount | uint256 | Amount of tokens to burn. |
Claim yield from a CLAIMABLE account and send to a recipient.
Parameters
| Name | Type | Description |
|---|---|---|
| recipient | address | Address to receive the claimed balance. |
| amount | uint256 | Amount to claim. |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Amount claimed. |
Change the yield mode of the caller and update the balance to reflect the configuration.
Parameters
| Name | Type | Description |
|---|---|---|
| yieldMode | uint8 | Yield mode to configure |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Current user balance |
Initializer
Allows the StandardBridge on this network to mint tokens.
Parameters
| Name | Type | Description |
|---|---|---|
| _to | address | Address to mint tokens to. |
| _amount | uint256 | Amount of tokens to mint. |
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 |
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. |
| 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 |