USD1

Ethereum ERC-20 Token 浏览链

0x8d0d000ee44948fc98c9b98a4fa4921476f08b0d

Proxy 实现合约: 0x694aa534bdef8ed63244eb902e7914e527891f08

Solidity v0.8.24+commit.e11b9ed9

Fungible token following the ERC-20 standard.

🤖
通过你的 AI 查询此合约
引用: 0x8d0d000ee44948fc98c9b98a4fa4921476f08b0d
示例提示词: "Tell me the current state of eth/0x8d0d000ee44948fc98c9b98a4fa4921476f08b0d"
还没有接入 AI?→ mcp.smarts.md · 浏览链

管理与风险

谁能修改规则?

Block #25,291,633

Detected upgradeable, mintable, pausable, freezable, and ownable controls from the verified ABI.

Upgradeable Mintable Pausable Freezable Ownable

当前控制

Implementation
0x694aa534bdef8ed63244eb902e7914e527891f08 ↗ Etherscan → smarts proxy
Paused
false
Owner
0xee9b1a09aedaced9dcda74964ea447feb93861c2 ↗ Etherscan → smarts

概览

读取函数
19
写入函数
23
事件
17

读取函数

Block #25,291,633 · just now
CANCEL_AUTHORIZATION_TYPEHASH() view → 0x158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a1597429

Return the EIP-712 typehash used to validate cancelAuthorization signatures.✨ AI

返回值

名称 类型 描述
bytes32 bytes32 EIP-712 typehash for the cancelAuthorization struct used in signature verification✨ AI
DOMAIN_SEPARATOR() view → 0x4df2f3e0e4ac89190376e6a3a454eb7491b80faf87f2b6d149e3b282dc739d4b

Returns the current EIP-712 domain separator used to sign typed data for this token.✨ AI

返回值

名称 类型 描述
bytes32 The EIP-712 domain separator (bytes32) used in permit and other typed-data signatures for this token.✨ AI
RECEIVE_WITH_AUTHORIZATION_TYPEHASH() view → 0xd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de8

Returns the EIP-712 typehash used to encode receiveWithAuthorization authorization messages.✨ AI

返回值

名称 类型 描述
bytes32 The keccak256 typehash (bytes32) for the receiveWithAuthorization struct used in signed authorizations.✨ AI
TRANSFER_WITH_AUTHORIZATION_TYPEHASH() view → 0x7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a2267

Return the EIP-712 typehash used to build and verify transferWithAuthorization signatures.✨ AI

返回值

名称 类型 描述
bytes32 The bytes32 EIP-712 typehash for the TransferWithAuthorization struct used to verify signatures.✨ AI
allowance(owner: address, spender: address) view

Returns the remaining number of tokens that spender is allowed to transfer from owner.✨ AI

开发者: See {IERC20-allowance}.

参数

名称 类型 描述
owner address Address that owns the tokens.✨ AI
spender address Address authorized to spend tokens on behalf of the owner.✨ AI

返回值

名称 类型 描述
uint256 Remaining allowance expressed in the token's smallest unit (uint256).✨ AI
authorizationState(authorizer: address, nonce: bytes32) view

Returns the state of an authorization

开发者: Nonces are randomly generated 32-byte data unique to the authorizer's address

参数

名称 类型 描述
authorizer address Authorizer's address
nonce bytes32 Nonce of the authorization

返回值

名称 类型 描述
bool True if the nonce is used
balanceOf(account: address) view

Returns the token balance of the given account.✨ AI

开发者: See {IERC20-balanceOf}.

参数

名称 类型 描述
account address Account address whose token balance is being queried.✨ AI

返回值

名称 类型 描述
uint256 Current token balance of the account as an unsigned 256-bit integer.✨ AI
decimals() view → 18

Returns the number of decimals the token uses for user displays and calculations.✨ 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`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the default value returned by this function, unless it's overridden. 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 uint8 number of decimal places the token reports (e.g., 18).✨ AI
eip712Domain() view → 0x0f, World Liberty Financial USD, 1, 1, 0x8d0d000ee44948fc98c9b98a4fa4921476f08b0d, 0x0000000000000000000000000000000000000000000000000000000000000000, []

Returns the EIP-712 domain fields used to sign and verify typed data.✨ AI

开发者: returns the fields and values that describe the domain separator used by this contract for EIP-712 signature.

返回值

名称 类型 描述
fields bytes1 Domain fields bitmap or type indicator encoded as a single byte (bytes1).✨ AI
name string Human-readable domain name (string).✨ AI
version string Domain version string (string).✨ AI
chainId uint256 Chain identifier where the domain is valid (uint256).✨ AI
verifyingContract address Address of the contract that verifies EIP-712 signatures (address).✨ AI
salt bytes32 Domain salt for additional uniqueness (bytes32).✨ AI
extensions uint256[] Array of extension field identifiers or values for the domain (uint256[]).✨ AI
frozen(address) view

Checks whether the given account is frozen and prevented from transferring tokens.✨ AI

参数

名称 类型 描述
address

返回值

名称 类型 描述
bool True if the account is frozen and cannot transfer tokens; false otherwise.✨ AI
name() view → World Liberty Financial USD

Return the ERC-20 token name.✨ AI

开发者: Returns the name of the token.

返回值

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

Get the current permit nonce for an owner used to prevent replay of signed permits.✨ AI

开发者: Returns the current nonce for `owner`. This value must be included whenever a signature is generated for {permit}. Every successful call to {permit} increases ``owner``'s nonce by one. This prevents a signature from being used multiple times.

参数

名称 类型 描述
owner address Address whose permit nonce is returned.✨ AI

返回值

名称 类型 描述
uint256 The current uint256 nonce for the owner, incremented each time a permit signature is used.✨ AI
owner() view → 0xee9b1a09aedaced9dcda74964ea447feb93861c2

Returns the address of the contract owner.✨ AI

开发者: Returns the address of the current owner.

返回值

名称 类型 描述
address Address of the owner account that holds administrative privileges.✨ AI
paused() view → false

Returns true when the contract is paused, disabling transfers and other restricted actions.✨ AI

开发者: Returns true if the contract is paused, and false otherwise.

返回值

名称 类型 描述
bool True if the contract is currently paused; false otherwise.✨ AI
pendingOwner() view → 0x0000000000000000000000000000000000000000

Returns the address designated to become the contract owner if they accept ownership.✨ AI

开发者: Returns the address of the pending owner.

返回值

名称 类型 描述
address The address currently set as the pending owner who can accept ownership.✨ AI
renounceOwnership() view reverted

Call the disabled renounceOwnership function; it does not change contract ownership.✨ AI

开发者: Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.
symbol() view → USD1

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

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

返回值

名称 类型 描述
string The token symbol string (e.g., "USDC").✨ AI
totalSupply() view → 1,679,515,297.24 USD1

Get the total supply of the token.✨ AI

开发者: See {IERC20-totalSupply}.

返回值

名称 类型 描述
uint256 Total number of tokens in existence as a uint256 (total minted minus burned).✨ AI
version() view → 2

Returns the contract version number for client display and compatibility checks.✨ AI

返回值

名称 类型 描述
uint8 Protocol version number as a uint8, where a larger value indicates a newer contract revision.✨ AI

写入函数

acceptOwnership() nonpayable

Finalize a pending ownership transfer by making the caller the contract owner.✨ AI

开发者: The new owner accepts the ownership transfer.
approve(spender: address, amount: uint256) nonpayable

Set the allowance for an address to spend tokens on the caller's behalf.✨ AI

开发者: See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address.

参数

名称 类型 描述
spender address Address allowed to spend tokens from the caller's balance.✨ AI
amount uint256 Maximum token amount the spender is allowed to transfer, expressed in the token's smallest units.✨ AI

返回值

名称 类型 描述
bool True if the allowance was successfully set.✨ AI
batchCancelAuthorization(_authorizerList: address[], _nonceList: bytes32[], _vList: uint8[], _rList: bytes32[], _sList: bytes32[], _ignoreErrors: bool) nonpayable

Attempt to cancel multiple authorizations

开发者: Malformed signatures do not bypass signature validation; they are treated as invalid entries and either return `false` or revert depending on `_ignoreErrors`.

参数

名称 类型 描述
_authorizerList address[] Authorizer addresses
_nonceList bytes32[] Authorization nonces
_vList uint8[] v values of the signatures
_rList bytes32[] r values of the signatures
_sList bytes32[] s values of the signatures
_ignoreErrors bool True to continue past entries that fail the cancellability check without reverting

返回值

名称 类型 描述
_didCancelList bool[] _didCancelList Boolean results indicating which authorizations were canceled by this call
burn(amount: uint256) nonpayable

Destroy tokens from the caller's balance and reduce the total supply.✨ AI

开发者: See {ERC20-_burn}.

参数

名称 类型 描述
amount uint256 Burn amount

返回值

名称 类型 描述
bool True if successful Can only be called by the current owner.
cancelAuthorization(authorizer: address, nonce: bytes32, v: uint8, r: bytes32, s: bytes32) nonpayable

Attempt to cancel an authorization

参数

名称 类型 描述
authorizer address Authorizer's address
nonce bytes32 Nonce of the authorization
v uint8 v of the signature
r bytes32 r of the signature
s bytes32 s of the signature
decreaseAllowance(spender: address, subtractedValue: uint256) nonpayable

Decrease the caller's allowance for spender by subtractedValue and return true if successful.✨ AI

开发者: Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.

参数

名称 类型 描述
spender address Address whose allowance will be decreased.✨ AI
subtractedValue uint256 Amount to subtract from the current allowance.✨ AI

返回值

名称 类型 描述
bool True if the allowance was decreased successfully.✨ AI
drain(_account: address) nonpayable

Moves the full token balance of a frozen account into owner custody.

开发者: The transfer bypasses the source-account frozen check only so funds can be recovered from the frozen account, but the destination must still satisfy the normal recipient freeze policy.

参数

名称 类型 描述
_account address The frozen account to drain.
freeze(account: address) nonpayable

Freeze an account to prevent it from transferring tokens.✨ AI

开发者: Adds account to frozen state. Can only be called by the current owner.

参数

名称 类型 描述
account address Address to mark as frozen; frozen accounts cannot transfer tokens.✨ AI
increaseAllowance(spender: address, addedValue: uint256) nonpayable

Increases the caller's ERC-20 allowance for a spender by the specified amount.✨ AI

开发者: Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address.

参数

名称 类型 描述
spender address Address that will be allowed to spend the caller's tokens.✨ AI
addedValue uint256 Amount of tokens to add to the existing allowance.✨ AI

返回值

名称 类型 描述
bool Boolean indicating whether the allowance increase succeeded.✨ AI
initialize(_initialOwner: address, _name: string, _symbol: string) nonpayable

Initializes the token, setting the owner, token name, and symbol and preparing the contract for use.✨ AI

参数

名称 类型 描述
_initialOwner address Address that will be set as the contract owner and receive initial admin rights.✨ AI
_name string Token name used for display and ERC-20 metadata.✨ AI
_symbol string Token symbol used for display and ERC-20 metadata.✨ AI
initializeV2() nonpayable

Initializes the contract to V2 state and enables upgraded features and settings for the StablecoinV2 token.✨ AI

mint(amount: uint256) nonpayable

Allows an authorized account to create the specified amount of new tokens and adds them to its balance.✨ AI

开发者: See {ERC20-_mint}.

参数

名称 类型 描述
amount uint256 Mint amount

返回值

名称 类型 描述
bool True if successful Can only be called by the current owner.
pause() nonpayable

Pauses all token transfers and other state-changing functions when invoked by an authorized account.✨ AI

开发者: Triggers stopped state. Can only be called by the current owner.
permit(owner: address, spender: address, value: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable

Sets the allowance for spender on behalf of owner using an off-chain EIP-2612 signature and deadline.✨ AI

开发者: Sets `value` as the allowance of `spender` over ``owner``'s tokens, given ``owner``'s signed approval. IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here. Emits an {Approval} event. Requirements: - `spender` cannot be the zero address. - `deadline` must be a timestamp in the future. - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` over the EIP712-formatted function arguments. - the signature must use ``owner``'s current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section]. CAUTION: See Security Considerations above.

参数

名称 类型 描述
owner address Address that signed the permit and grants the allowance.✨ AI
spender address Address being approved to spend the owner's tokens.✨ AI
value uint256 Allowance amount to set for the spender (uint256).✨ AI
deadline uint256 Unix timestamp after which the permit is invalid.✨ AI
v uint8 ECDSA signature recovery v component.✨ AI
r bytes32 ECDSA signature r component (32 bytes).✨ AI
s bytes32 ECDSA signature s component (32 bytes).✨ AI
reallocate(_from: address, _to: address, _amount: uint256) nonpayable

Reallocates tokens from a frozen source account into a replacement account.

开发者: The transfer bypasses the source-account frozen check only so funds can be moved out of the frozen source, but the replacement account must still satisfy the normal recipient freeze policy.

参数

名称 类型 描述
_from address The frozen source account.
_to address The replacement account.
_amount uint256 The amount to move, in token base units.
receiveWithAuthorization(from: address, to: address, value: uint256, validAfter: uint256, validBefore: uint256, nonce: bytes32, v: uint8, r: bytes32, s: bytes32) nonpayable

Receive a transfer with a signed authorization from the payer

开发者: This has an additional check to ensure that the payee's address matches the caller of this function to prevent front-running attacks. (See security considerations)

参数

名称 类型 描述
from address Payer's address (Authorizer)
to address Payee's address
value uint256 Amount to be transferred
validAfter uint256 The time after which this is valid (unix time)
validBefore uint256 The time before which this is valid (unix time)
nonce bytes32 Unique nonce
v uint8 v of the signature
r bytes32 r of the signature
s bytes32 s of the signature
recoverERC20(_token: address, _recipient: address, _amount: uint256) nonpayable

Recovers ERC-20 balances held by the token contract.

开发者: If `_token` is this token, recovery uses the contract's normal transfer path and therefore still applies the standard frozen-account checks to the recipient.

参数

名称 类型 描述
_token address The token address to recover.
_recipient address The recipient of the recovered tokens.
_amount uint256 The amount to recover, in the token's base units.
transfer(to: address, amount: uint256) nonpayable

Transfer caller's tokens to a recipient, updating balances and emitting a Transfer event.✨ AI

开发者: See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`.

参数

名称 类型 描述
to address Recipient address to receive tokens.✨ AI
amount uint256 Amount of tokens to transfer, as a uint256 in the token's smallest unit.✨ AI

返回值

名称 类型 描述
bool True if the transfer succeeded; otherwise the call reverts.✨ AI
transferFrom(from: address, to: address, amount: uint256) nonpayable
开发者: See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`.

参数

名称 类型 描述
from address
to address
amount uint256

返回值

名称 类型 描述
bool
transferOwnership(newOwner: address) nonpayable
开发者: Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.

参数

名称 类型 描述
newOwner address
transferWithAuthorization(from: address, to: address, value: uint256, validAfter: uint256, validBefore: uint256, nonce: bytes32, v: uint8, r: bytes32, s: bytes32) nonpayable

Execute a transfer with a signed authorization

参数

名称 类型 描述
from address Payer's address (Authorizer)
to address Payee's address
value uint256 Amount to be transferred
validAfter uint256 The time after which this is valid (unix time)
validBefore uint256 The time before which this is valid (unix time)
nonce bytes32 Unique nonce
v uint8 v of the signature
r bytes32 r of the signature
s bytes32 s of the signature
unfreeze(account: address) nonpayable
开发者: Removes account from frozen state. Can only be called by the current owner.

参数

名称 类型 描述
account address
unpause() nonpayable
开发者: Returns to normal state. Can only be called by the current owner.

事件

Approval(owner: address, spender: address, value: uint256)
名称 类型 已索引 描述
owner address
spender address
value uint256
AuthorizationCanceled(authorizer: address, nonce: bytes32)
名称 类型 已索引 描述
authorizer address
nonce bytes32
AuthorizationUsed(authorizer: address, nonce: bytes32)
名称 类型 已索引 描述
authorizer address
nonce bytes32
Burn(caller: address, from: address, amount: uint256)
名称 类型 已索引 描述
caller address
from address
amount uint256
EIP712DomainChanged()
ERC20Recovered(caller: address, token: address, recipient: address, amount: uint256)
名称 类型 已索引 描述
caller address
token address
recipient address
amount uint256
Freeze(caller: address, account: address)
名称 类型 已索引 描述
caller address
account address
FrozenAccountDrained(caller: address, account: address, amount: uint256)
名称 类型 已索引 描述
caller address
account address
amount uint256
FrozenFundsReallocated(caller: address, from: address, to: address, amount: uint256)
名称 类型 已索引 描述
caller address
from address
to address
amount uint256
Initialized(version: uint8)
名称 类型 已索引 描述
version uint8
Mint(caller: address, to: address, amount: uint256)
名称 类型 已索引 描述
caller address
to address
amount uint256
OwnershipTransferStarted(previousOwner: address, newOwner: address)
名称 类型 已索引 描述
previousOwner address
newOwner address
OwnershipTransferred(previousOwner: address, newOwner: address)
名称 类型 已索引 描述
previousOwner address
newOwner address
Paused(account: address)
名称 类型 已索引 描述
account address
Transfer(from: address, to: address, value: uint256)
名称 类型 已索引 描述
from address
to address
value uint256
Unfreeze(caller: address, account: address)
名称 类型 已索引 描述
caller address
account address
Unpaused(account: address)
名称 类型 已索引 描述
account address