USDS

Ethereum ERC-20 Token 瀏覽鏈

0x1923dfee706a8e78157416c29cbccfde7cdf4102

Solidity v0.8.21+commit.d9974bed

Fungible token following the ERC-20 standard.

🤖
透過你的 AI 查詢此合約
參考: 0x1923dfee706a8e78157416c29cbccfde7cdf4102
範例提示詞: "Tell me the current state of eth/0x1923dfee706a8e78157416c29cbccfde7cdf4102"
還沒有接入 AI?→ mcp.smarts.md · 瀏覽鏈

管理與風險

誰能修改規則?

Detected upgradeable and mintable controls from the verified ABI.

Upgradeable Mintable
  • Upgradeability inferred from ABI/events; proxy storage resolution may be incomplete.

概覽

讀取函式
14
寫入函式
11
事件
6

讀取函式

Block #25,494,035 · just now
DOMAIN_SEPARATOR() view → 0x9d65c3732bfcbbcd787befdb54d96813a2b1e4ba4b078876c3535f0af3e93ba1

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

回傳值

名稱 類型 描述
bytes32 bytes32 EIP-712 domain separator (hash of name, version, chainId, and verifying contract address).✨ AI
PERMIT_TYPEHASH() view → 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9

Returns the EIP-2612 permit typehash used to construct and verify permit signatures.✨ AI

回傳值

名稱 類型 描述
bytes32 bytes32 constant equal to the EIP-712 type hash for the permit struct, used in signature verification.✨ AI
UPGRADE_INTERFACE_VERSION() view → 5.0.0

Get the contract's upgrade interface version string.✨ AI

回傳值

名稱 類型 描述
string The upgrade interface version identifier string that signals the supported upgrade protocol.✨ AI
allowance(address, address) view

Return the remaining token allowance that an owner set for a spender.✨ AI

參數

名稱 類型 描述
address
address

回傳值

名稱 類型 描述
uint256 Remaining allowance amount as a uint256 in the token's smallest unit.✨ AI
balanceOf(address) view

Returns the token balance for the given account.✨ AI

參數

名稱 類型 描述
address

回傳值

名稱 類型 描述
uint256 The number of tokens owned by the specified account as a uint256.✨ AI
decimals() view → 18

Return the number of decimal places used by the token.✨ AI

回傳值

名稱 類型 描述
uint8 The token's decimal precision as a uint8 value indicating its number of decimal places.✨ AI
getImplementation() view → 0x0000000000000000000000000000000000000000

Return the current implementation address used by this proxy.✨ AI

開發者: Returns the current implementation address.

回傳值

名稱 類型 描述
address The address of the current implementation (logic) contract that this proxy delegates calls to.✨ AI
name() view → USDS Stablecoin

Returns the token's name as a human-readable string.✨ AI

回傳值

名稱 類型 描述
string The token name string (human-readable ERC-20 identifier).✨ AI
nonces(address) view

Return the current nonce for an address used to validate permit signatures.✨ AI

參數

名稱 類型 描述
address

回傳值

名稱 類型 描述
uint256 The current uint256 nonce for the given address, incremented each time a permit is used.✨ AI
proxiableUUID() view → 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc

Return the proxiable UUID that identifies the implementation storage slot used for upgrades.✨ AI

開發者: Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.

回傳值

名稱 類型 描述
bytes32 Proxiable UUID (bytes32) that identifies the implementation storage slot used to verify upgrade compatibility (EIP-1822).✨ AI
symbol() view → USDS

Returns the token's short ticker symbol.✨ AI

回傳值

名稱 類型 描述
string The token symbol as a string, e.g. USDS.✨ AI
totalSupply() view → 0 USDS

Return the total number of USDS tokens in existence.✨ AI

回傳值

名稱 類型 描述
uint256 The total supply of USDS tokens as a uint256, expressed in the token's smallest unit.✨ AI
version() view → 1

Returns the token contract's version identifier string.✨ AI

回傳值

名稱 類型 描述
string A human-readable version or build identifier for this Usds contract implementation.✨ AI
wards(address) view

Returns whether the given address has administrative authorization (a ward) in the contract.✨ AI

參數

名稱 類型 描述
address

回傳值

名稱 類型 描述
uint256 1 if the address is authorized as a ward, 0 if not.✨ AI

寫入函式

approve(spender: address, value: uint256) nonpayable

Approve spender to transfer up to value tokens from your account.✨ AI

參數

名稱 類型 描述
spender address Address allowed to spend tokens.✨ AI
value uint256 Maximum number of tokens the spender is allowed to transfer.✨ AI

回傳值

名稱 類型 描述
bool True if the approval succeeded.✨ AI
burn(from: address, value: uint256) nonpayable

Burns tokens from a specified account and reduces the total token supply.✨ AI

參數

名稱 類型 描述
from address Address whose balance will be decreased by the burn.✨ AI
value uint256 Amount of tokens to burn, expressed in the token's smallest unit.✨ AI
deny(usr: address) nonpayable

Revoke the user's authorization so the address can no longer perform privileged actions.✨ AI

參數

名稱 類型 描述
usr address Address to revoke authorization from.✨ AI
initialize() nonpayable

Initializes the USDS token contract, configuring initial state, roles, and ERC-20 parameters.✨ AI

mint(to: address, value: uint256) nonpayable

Mints new tokens and assigns them to the specified recipient address.✨ AI

參數

名稱 類型 描述
to address Recipient address that will receive the newly minted tokens.✨ AI
value uint256 Amount of tokens to mint, expressed in the token's smallest unit.✨ AI
permit(owner: address, spender: address, value: uint256, deadline: uint256, signature: bytes) nonpayable

Permit a spender to spend the owner's tokens using an off-chain signature.✨ AI

參數

名稱 類型 描述
owner address Token holder address granting the allowance.✨ AI
spender address Address approved to spend the tokens.✨ AI
value uint256 Amount of tokens to approve.✨ AI
deadline uint256 Unix timestamp after which the signature is invalid.✨ AI
signature bytes
permit(owner: address, spender: address, value: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable

Permit a spender to spend the owner's tokens using an off-chain signature.✨ AI

參數

名稱 類型 描述
owner address Token holder address granting the allowance.✨ AI
spender address Address approved to spend the tokens.✨ AI
value uint256 Amount of tokens to approve.✨ AI
deadline uint256 Unix timestamp after which the signature is invalid.✨ AI
v uint8 Recovery byte of the owner's signature.✨ AI
r bytes32 First 32 bytes of the owner's signature.✨ AI
s bytes32 Second 32 bytes of the owner's signature.✨ AI
rely(usr: address) nonpayable

Grant authorization to usr to perform privileged actions on the contract.✨ AI

參數

名稱 類型 描述
usr address Address to authorize for privileged actions.✨ AI
transfer(to: address, value: uint256) nonpayable

Transfer tokens from the caller's account to the specified address.✨ AI

參數

名稱 類型 描述
to address Recipient address that will receive the tokens.✨ AI
value uint256 Amount of tokens to transfer, expressed in the token's smallest unit.✨ AI

回傳值

名稱 類型 描述
bool Boolean indicating success: true if the transfer succeeds.✨ AI
transferFrom(from: address, to: address, value: uint256) nonpayable

Transfer tokens from a specified address to a recipient using the caller's approved allowance.✨ AI

參數

名稱 類型 描述
from address The address to transfer tokens from (must have sufficient balance and allowance).✨ AI
to address The address to receive the tokens.✨ AI
value uint256 The number of tokens to transfer, denominated in the token's smallest unit (uint256).✨ AI

回傳值

名稱 類型 描述
bool True if the transfer succeeds and balances and allowance are updated.✨ AI
upgradeToAndCall(newImplementation: address, data: bytes) payable

Upgrade the contract implementation to newImplementation and execute an initialization call using data.✨ AI

開發者: Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.

參數

名稱 類型 描述
newImplementation address Address of the new implementation contract to which the proxy will be pointed.✨ AI
data bytes Encoded calldata to call on the new implementation immediately after upgrading; may be empty.✨ AI

事件

Approval(owner: address, spender: address, value: uint256)
名稱 類型 已索引 描述
owner address
spender address
value uint256
Deny(usr: address)
名稱 類型 已索引 描述
usr address
Initialized(version: uint64)
名稱 類型 已索引 描述
version uint64
Rely(usr: address)
名稱 類型 已索引 描述
usr address
Transfer(from: address, to: address, value: uint256)
名稱 類型 已索引 描述
from address
to address
value uint256
Upgraded(implementation: address)
名稱 類型 已索引 描述
implementation address