0x1923dfee706a8e78157416c29cbccfde7cdf4102
Solidity v0.8.21+commit.d9974bed
Fungible token following the ERC-20 standard.
管理与风险
谁能修改规则?
Detected upgradeable and mintable controls from the verified ABI.
- Upgradeability inferred from ABI/events; proxy storage resolution may be incomplete.
概览
读取函数
Block #25,494,035 · 20s agoReturn 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 |
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 |
Get the contract's upgrade interface version string.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The upgrade interface version identifier string that signals the supported upgrade protocol.✨ AI |
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 |
Returns the token balance for the given account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The number of tokens owned by the specified account as a uint256.✨ AI |
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 |
Return the current implementation address used by this proxy.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address of the current implementation (logic) contract that this proxy delegates calls to.✨ AI |
Returns the token's name as a human-readable string.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token name string (human-readable ERC-20 identifier).✨ AI |
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 |
Return the proxiable UUID that identifies the implementation storage slot used for upgrades.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | Proxiable UUID (bytes32) that identifies the implementation storage slot used to verify upgrade compatibility (EIP-1822).✨ AI |
Returns the token's short ticker symbol.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token symbol as a string, e.g. USDS.✨ AI |
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 |
Returns the token contract's version identifier string.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | A human-readable version or build identifier for this Usds contract implementation.✨ AI |
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 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 |
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 |
Revoke the user's authorization so the address can no longer perform privileged actions.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| usr | address | Address to revoke authorization from.✨ AI |
Initializes the USDS token contract, configuring initial state, roles, and ERC-20 parameters.✨ AI
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 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 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 |
Grant authorization to usr to perform privileged actions on the contract.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| usr | address | Address to authorize for privileged actions.✨ AI |
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 |
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 |
Upgrade the contract implementation to newImplementation and execute an initialization call using data.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| usr | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint64 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| usr | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| implementation | address | ✓ |