USDB
Blast ERC-20 Token0x4300000000000000000000000000000000000003
Proxy 实现合约: 0x4ef0d788470e2feb6559b93075ec5be51dba737d
Solidity v0.8.15+commit.e14f2714
Fungible token following the ERC-20 standard.
概览
读取函数
Returns the bridge contract address used by this token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The bridge contract address that handles cross-chain deposits and withdrawals.✨ AI |
Provides the EIP-712 domain separator used to verify permit signatures.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 EIP-712 domain separator value used to construct and verify permit (EIP-2612) signatures.✨ AI |
Returns the EIP-2612 permit type hash used to verify signed approvals.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 type hash used in EIP-712 for permit signatures (EIP-2612).✨ AI |
Returns the address of the remote token contract used by this USDB token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address of the remote token contract that this USDB instance references.✨ AI |
Returns the address assigned to the REPORTER role.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address currently assigned as the contract's REPORTER role.✨ AI |
Return the remaining token allowance that owner granted to spender.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Owner address that granted the allowance.✨ AI |
| spender | address | Spender address authorized to transfer tokens on owner's behalf.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Remaining token amount that spender is permitted to transfer from owner.✨ AI |
Returns the token balance of the given account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | Address whose token balance will be retrieved.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| value | uint256 | The amount of tokens owned by the account, expressed in the token's smallest unit (uint256).✨ AI |
Legacy getter for BRIDGE.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
Get the total number of shares. Needs to be overridden by the child contract.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Total number of shares. |
Return the number of decimal places used by the token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | Token decimals as a uint8 indicating fraction precision for balances and transfers.✨ AI |
Return the EIP-712 domain fields used for typed-data signing.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| fields | bytes1 | A single byte indicating the domain/prefix format (bytes1).✨ AI |
| name | string | The domain name string used for signing (e.g., token name).✨ AI |
| version | string | The domain version string used for signing.✨ AI |
| chainId | uint256 | The chain identifier (uint256) the domain is bound to.✨ AI |
| verifyingContract | address | The verifying contract address that accepts signed messages.✨ AI |
| salt | bytes32 | A 32-byte salt value used in domain separation (bytes32).✨ AI |
| extensions | uint256[] | An array of uint256 extension fields included in the domain.✨ 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.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token's human-readable name string.✨ AI |
Returns the current signature nonce for a given owner address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address of the token holder whose nonce is being queried.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The current uint256 nonce for the owner, used by permit signatures and incremented after use.✨ AI |
Returns the amount of USDB tokens currently pending to be claimed.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | uint256 amount of USDB tokens pending claim, denominated in the token's smallest unit✨ AI |
Returns the current USD-B token price as an unsigned integer.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Current price of the USD-B token as a uint256, scaled by the contract's price precision.✨ AI |
Legacy getter for REMOTE_TOKEN.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
ERC165 interface check function.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _interfaceId | bytes4 | Interface ID to check. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | Whether or not the interface is supported by this contract. |
Returns the token's symbol used to identify the token in wallets and user interfaces.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token symbol as a string (e.g., "USDB").✨ AI |
Returns the total supply of USDB tokens.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Total supply as a uint256, denominated in the token's smallest unit (based on the token's decimals).✨ 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 |
Set the caller's allowance for spender to the specified token amount.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address approved to transfer tokens on the caller's behalf.✨ AI |
| amount | uint256 | Maximum number of tokens the spender is allowed to transfer.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the approval succeeded, otherwise false.✨ AI |
Allows the StandardBridge on this network to burn tokens.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _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.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| recipient | address | Address to receive the claimed balance. |
| amount | uint256 | Amount to claim. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Amount claimed. |
Change the yield mode of the caller and update the balance to reflect the configuration.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| yieldMode | uint8 | Yield mode to configure |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Current user balance |
Initializer
Allows the StandardBridge on this network to mint tokens.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _to | address | Address to mint tokens to. |
| _amount | uint256 | Amount of tokens to mint. |
Allows an owner to approve a spender using an off-chain EIP-2612-style signature.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Token owner address that signed the permit.✨ AI |
| spender | address | Address that will be allowed to spend the tokens.✨ AI |
| value | uint256 | Amount of tokens to approve, expressed in the token's smallest units.✨ AI |
| deadline | uint256 | Unix timestamp after which the signature is no longer valid.✨ AI |
| v | uint8 | ECDSA signature recovery byte v.✨ AI |
| r | bytes32 | ECDSA signature r value (32 bytes).✨ AI |
| s | bytes32 | ECDSA signature s value (32 bytes).✨ AI |
Transfers tokens from the caller's balance to the specified recipient address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 | True if the transfer succeeded, otherwise false.✨ AI |
Transfer tokens from a specified account to another using an approved allowance.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | Address to transfer tokens from.✨ AI |
| to | address | Address to transfer tokens to.✨ AI |
| amount | uint256 | Amount of tokens to transfer.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded.✨ AI |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| 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. |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint8 |
Emitted when a new share price is set after a yield event.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| price | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |