USDS

Ethereum ERC-20 Token 浏览链

0xdc035d45d973e3ec169d2276ddab16f1e407384f

Proxy 实现合约: 0x1923dfee706a8e78157416c29cbccfde7cdf4102

Solidity v0.8.21+commit.d9974bed

Fungible token following the ERC-20 standard.

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

管理与风险

谁能修改规则?

Detected upgradeable and mintable controls from the verified ABI.

Upgradeable Mintable

当前控制

Implementation
0x1923dfee706a8e78157416c29cbccfde7cdf4102 ↗ Etherscan → smarts proxy

概览

读取函数
14
写入函数
11
事件
6

读取函数

Block #25,493,709 · 13s ago
DOMAIN_SEPARATOR() view → 0x2bc1b7e1bb385a0b6eeb599e6bf1dc875f0933b1a91bea26cf895ebdee2a5b56

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 → 0x1923dfee706a8e78157416c29cbccfde7cdf4102

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 reverted

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 → 7,556,504,353.35 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