0x5fc5360d0400a0fd4f2af552add042d716f1d168
Proxy 实现合约: 0x68184c449e1a8f34fa18d289737129fd27b66f8f
Solidity v0.8.28+commit.7893614a
Fungible token following the ERC-20 standard.
管理与风险
谁能修改规则?
Detected upgradeable, mintable, pausable, ownable, and role based controls from the verified ABI.
概览
读取函数
Block #25,988,887 · just nowReturns the bytes32 identifier of the contract's default admin role.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 identifier representing DEFAULT_ADMIN_ROLE used for AccessControl permission checks.✨ AI |
EIP712 Domain Separator
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The domain separator for EIP-712 signatures |
Return the deprecated EIP-712 domain separator hash used for legacy signature verification.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | Deprecated EIP-712 domain separator hash as a bytes32 value used by older signature schemes.✨ AI |
Get the two-byte EIP-712 version prefix used by the contract.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes2 | The bytes2 value representing the EIP-712 version prefix used in domain separator hashing.✨ AI |
Returns the remaining token allowance that owner has granted to spender.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address that granted the allowance.✨ AI |
| spender | address | Address allowed to spend the owner's tokens.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | A uint256 specifying the amount of tokens still available for the spender. |
Returns the address currently assigned to the deprecated asset protection role.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | Address currently assigned to the deprecated asset protection role; may be the zero address.✨ AI |
Return the USDG token balance for a given address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| addr | address | Address whose USDG balance will be returned.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | An uint256 representing the amount owned by the passed address. |
Returns the address of the deprecated beta delegate whitelister.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address currently configured as the deprecated beta delegate whitelister.✨ AI |
Return the number of decimal places the token uses.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | Number of decimal places the token uses (uint8).✨ AI |
Returns the contract's default administrator address.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address currently assigned as the contract default admin (has elevated administrative permissions).✨ AI |
Returns the configured default admin delay for time-locked admin actions.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint48 | The default admin delay in seconds as a uint48 value.✨ AI |
Returns the configured waiting period required before a default admin delay increase takes effect.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint48 | The wait period in seconds (uint48) required before a default admin delay increase takes effect.✨ AI |
Return the facet address implementing the given function selector.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes4 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | Facet contract address that implements the provided selector, or address(0) if not found.✨ AI |
Get the facet address for a function selector
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| selector | bytes4 | The function selector |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The facet contract address |
Returns the admin role that controls a specified role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Target role identifier (bytes32).✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | Admin role identifier (bytes32) that can grant or revoke the given role.✨ AI |
Returns the current global transfer configuration for the token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| referenceTime | uint40 | referenceTime: uint40 Unix timestamp (seconds) used as the reference point for maturity calculations.✨ AI |
| maturityPeriod | uint32 | maturityPeriod: uint32 duration in seconds after referenceTime that defines when transfers mature.✨ AI |
| partnerSignedRegistrationsEnabled | bool | partnerSignedRegistrationsEnabled: bool true if partner-signed registrations are allowed for transfers.✨ AI |
| __gap_remaining | bytes10 | __gap_remaining: bytes10 reserved storage gap for future upgrades; not used by contract logic.✨ AI |
| paused | bool | paused: bool true if global transfers are currently paused.✨ AI |
Check whether an address has a specific role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier (bytes32), typically a keccak256 hash of a role name.✨ AI |
| account | address | Address to verify membership for the role.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the account has the role, otherwise false.✨ AI |
Return the token's name.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The ERC-20 token name as a UTF-8 string.✨ AI |
Returns the address of the contract owner.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address that currently has owner privileges for this contract.✨ AI |
Returns the address and scheduled activation time of the currently pending default admin.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| newAdmin | address | newAdmin: address proposed to become the contract's default admin.✨ AI |
| schedule | uint48 | schedule: uint48 value for when the pending admin becomes active (e.g. unix timestamp), or zero if none.✨ AI |
Return the pending default admin delay and the timestamp when it was scheduled.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| newDelay | uint48 | newDelay: proposed default admin delay value (uint48).✨ AI |
| schedule | uint48 | schedule: unix timestamp (uint48) when the proposed delay was scheduled.✨ AI |
Get the address proposed to become the contract owner (deprecated ownership flow).✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address proposed as the new owner, or the zero address if no proposal exists.✨ AI |
Return the ERC-1822 proxiable UUID that identifies the implementation storage slot.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32: ERC-1822 proxiable UUID identifying the storage slot used for the implementation address.✨ AI |
Returns the address that controls supply-related operations for the USDG token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address authorized to manage or adjust the USDG token supply (supply controller).✨ AI |
Returns the deprecated supply controller address.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address of the deprecated supply controller, or the zero address if none is set.✨ AI |
Return true if the contract implements the interface specified by interfaceId.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| interfaceId | bytes4 | The 4-byte ERC-165 interface identifier to query.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the contract implements the interface id, false otherwise.✨ AI |
Returns the token's symbol (ticker) displayed in wallets and user interfaces.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token symbol as a string (e.g., "USDG"), used for display in wallets and UIs.✨ AI |
Returns the total supply of USDG tokens.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Total number of USDG tokens, expressed in the token's smallest unit (uint256).✨ AI |
写入函数
Accept the pending transfer of the contract's default admin role to the caller.✨ AI
Approve a spender to transfer up to a specified amount of your USDG tokens.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address allowed to transfer tokens from your balance.✨ AI |
| value | uint256 | Maximum number of tokens the spender is permitted to transfer.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if successful |
Batch set facet functions from one or more facets
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| facetCuts | tuple[] | Array of FacetCut structs (facet address + selectors per facet) |
Initiate transfer of the contract's default admin role to the specified newAdmin address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newAdmin | address | Address to become the new default admin.✨ AI |
Burns a specified amount of USDG tokens from the caller, decreasing their balance and total supply.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| amount | uint256 | The number of tokens to remove |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newDelay | uint48 |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | |
| subtractedValue | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if successful |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| value | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| success | bool | success A boolean that indicates if the operation was successful. |
Decreases the total supply by burning the specified number of tokens. Can only be called by a supply controller. Function is marked virtual to aid in testing, but is never overridden on the actual token.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| value | uint256 | The number of tokens to remove |
| burnFromAddress | address | Address to burn tokens from. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| success | bool | success A boolean that indicates if the operation was successful |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | |
| account | address |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | |
| addedValue | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if successful |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| value | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| success | bool | success A boolean that indicates if the operation was successful. |
Increases the total supply by minting the specified number of tokens to the supply controller account. Function is marked virtual to aid in testing, but is never overridden on the actual token.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| value | uint256 | The number of tokens to add |
| mintToAddress | address | Address to mint tokens to. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| success | bool | success A boolean that indicates if the operation was successful |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| initialDelay | uint48 | |
| initialOwner | address | |
| pauser | address | |
| assetProtector | address | |
| facetCuts | tuple[] | |
| claimSource | address | |
| minRate | uint256 | |
| maxRate | uint256 | |
| v3Roles | tuple |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| facetCuts | tuple[] | Array of FacetCut structs mapping facet addresses to their selectors |
| claimSource | address | Address to use as claim source (where rewards come from) |
| minRate | uint256 | Minimum APR bound (10 decimals, e.g., 0 for no minimum) |
| maxRate | uint256 | Maximum APR bound (10 decimals, e.g., type(uint40).max for unlimited) |
| v3Roles | tuple | Struct containing addresses for V3 roles (multAdmin, multRateAdmin, etc.) |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | Address to mint tokens to |
| amount | uint256 | The number of tokens to add |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | |
| account | address |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | |
| account | address |
Add or update a facet function
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| selector | bytes4 | The function selector |
| facetAddress | address | The facet contract address (zero to remove) |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| to | address | |
| value | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if successful |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | |
| to | address | |
| value | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if successful |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address[] | |
| to | address[] | |
| value | uint256[] |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if successful |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newImplementation | address |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newImplementation | address | |
| data | bytes |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | |
| payoutGroupId | uint32 | ✓ | |
| claimer | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | |
| payoutGroupId | uint32 | ✓ | |
| claimer | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| previousAdmin | address | ||
| newAdmin | address |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| beacon | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| payoutGroupId | uint32 | ✓ | |
| executor | address | ✓ | |
| destination | address | ✓ | |
| amount | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldSource | address | ✓ | |
| newSource | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| newDelay | uint48 | ||
| effectSchedule | uint48 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| newAdmin | address | ✓ | |
| acceptSchedule | uint48 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| selector | bytes4 | ✓ | |
| facet | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| addr | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| addr | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| addr | address | ✓ | |
| payoutGroupId | uint32 | ✓ | |
| rewards | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint8 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| multiplierId | uint32 | ✓ | |
| maturityPeriod | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| multiplierId | uint32 | ✓ | |
| apr | uint256 | ||
| timestamp | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| multiplierId | uint32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| multiplierId | uint32 | ✓ | |
| newRate | uint256 | ||
| scheduledTime | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| enabled | bool |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| payoutGroupId | uint32 | ✓ | |
| oldClaimer | address | ✓ | |
| newClaimer | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| payoutGroupId | uint32 | ✓ | |
| claimer | address | ✓ | |
| multiplierId | uint32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| payoutGroupId | uint32 | ✓ | |
| claimer | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| payoutGroupId | uint32 | ✓ | |
| oldDestination | address | ✓ | |
| newDestination | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| payoutGroupId | uint32 | ✓ | |
| oldManager | address | ✓ | |
| newManager | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| payoutGroupId | uint32 | ✓ | |
| claimer | address | ✓ | |
| oldMultiplierId | uint32 | ||
| newMultiplierId | uint32 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| minRate | uint256 | ||
| maxRate | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldReferenceTime | uint40 | ||
| newReferenceTime | uint40 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | |
| payoutGroupId | uint32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | |
| payoutGroupId | uint32 | ✓ | |
| proposer | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | |
| payoutGroupId | uint32 | ✓ | |
| proposer | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | |
| payoutGroupId | uint32 | ✓ | |
| recipient | address | ✓ | |
| amount | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| payoutGroupId | uint32 | ✓ | |
| executor | address | ✓ | |
| destination | address | ✓ | |
| totalAmount | uint256 | ||
| accountCount | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| addr | address | ✓ | |
| payoutGroupId | uint32 | ✓ | |
| rewards | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| previousAdminRole | bytes32 | ✓ | |
| newAdminRole | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| supplyControlAddress | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| to | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| addr | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| implementation | address | ✓ |