USDB

Blast ERC-20 Token

0x4300000000000000000000000000000000000003

Proxy 实现合约: 0x4ef0d788470e2feb6559b93075ec5be51dba737d

Solidity v0.8.15+commit.e14f2714

Fungible token following the ERC-20 standard.

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

概览

读取函数
22
写入函数
10
事件
7

读取函数

BRIDGE() view

Returns the bridge contract address used by this token.✨ AI

返回值

名称 类型 描述
address The bridge contract address that handles cross-chain deposits and withdrawals.✨ AI
DOMAIN_SEPARATOR() view

Provides the EIP-712 domain separator used to verify permit signatures.✨ AI

开发者: EIP-712 domain separator computed from name, version, chainId, and contract address; it can change if chainId changes.✨ AI

返回值

名称 类型 描述
bytes32 bytes32 EIP-712 domain separator value used to construct and verify permit (EIP-2612) signatures.✨ AI
PERMIT_TYPEHASH() view

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
REMOTE_TOKEN() view

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
REPORTER() view

Returns the address assigned to the REPORTER role.✨ AI

返回值

名称 类型 描述
address The address currently assigned as the contract's REPORTER role.✨ AI
allowance(owner: address, spender: address) view

Return the remaining token allowance that owner granted to spender.✨ 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 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
balanceOf(account: address) view

Returns the token balance of the given account.✨ AI

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

参数

名称 类型 描述
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
bridge() view

Legacy getter for BRIDGE.

返回值

名称 类型 描述
address
count() view

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

返回值

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

Return the number of decimal places used by the token.✨ 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`). 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 Token decimals as a uint8 indicating fraction precision for balances and transfers.✨ AI
eip712Domain() view

Return the EIP-712 domain fields used for typed-data signing.✨ AI

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

返回值

名称 类型 描述
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
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.✨ AI

开发者: Returns the name of the token.

返回值

名称 类型 描述
string The token's human-readable name string.✨ AI
nonces(owner: address) view

Returns the current signature nonce for a given owner address.✨ AI

开发者: See {IERC20Permit-nonces}.

参数

名称 类型 描述
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
pending() view

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
price() view

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
remoteToken() view

Legacy getter for REMOTE_TOKEN.

返回值

名称 类型 描述
address
supportsInterface(_interfaceId: bytes4) pure

ERC165 interface check function.

参数

名称 类型 描述
_interfaceId bytes4 Interface ID to check.

返回值

名称 类型 描述
bool Whether or not the interface is supported by this contract.
symbol() view

Returns the token's symbol used to identify the token in wallets and user interfaces.✨ AI

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

返回值

名称 类型 描述
string The token symbol as a string (e.g., "USDB").✨ AI
totalSupply() view

Returns the total supply of USDB tokens.✨ AI

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

返回值

名称 类型 描述
uint256 Total supply as a uint256, denominated in the token's smallest unit (based on the token's decimals).✨ 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

Set the caller's allowance for spender to the specified token amount.✨ AI

开发者: Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event.

参数

名称 类型 描述
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
burn(_from: address, _amount: uint256) nonpayable

Allows the StandardBridge on this network to burn tokens.

参数

名称 类型 描述
_from address Address to burn tokens from.
_amount uint256 Amount of tokens to burn.
claim(recipient: address, amount: uint256) nonpayable

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.
configure(yieldMode: uint8) nonpayable

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
initialize() nonpayable

Initializer

mint(_to: address, _amount: uint256) nonpayable

Allows the StandardBridge on this network to mint tokens.

参数

名称 类型 描述
_to address Address to mint tokens to.
_amount uint256 Amount of tokens to mint.
permit(owner: address, spender: address, value: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable

Allows an owner to approve a spender using an off-chain EIP-2612-style signature.✨ AI

开发者: See {IERC20Permit-permit}.

参数

名称 类型 描述
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
transfer(to: address, amount: uint256) nonpayable

Transfers tokens from the caller's balance to the specified 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 Amount of tokens to transfer, expressed in the token's smallest unit.✨ AI

返回值

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

Transfer tokens from a specified account 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 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

事件

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.
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