USDC
Base ERC-20 Token0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
Proxy 实现合约: 0x2ce6311ddae708829bc0784c967b7d77d19fd779
Solidity v0.6.12+commit.27d51765
Fungible token following the ERC-20 standard.
管理与风险
谁能修改规则?
Detected upgradeable, mintable, pausable, blacklistable, and ownable controls from the verified ABI.
当前控制
- Implementation
- 0x2ce6311ddae708829bc0784c967b7d77d19fd779 ↗ Basescan → smarts proxy
- Paused
- false
- Owner
- 0x3abd6f64a422225e61e435bae41db12096106df7 ↗ Basescan → smarts
- Master minter
- 0x2230393edad0299b7e7b59f20aa856cd1bed52e1 ↗ Basescan → smarts
- Pauser
- 0xd3571b3bc51cecff49194ad67afffc648d5e07b4 ↗ Basescan → smarts
- Blacklister
- 0x1f2e3a640175d20ac31ed523b6733b977173e277 ↗ Basescan → smarts
- Rescuer
- 0x0000000000000000000000000000000000000000 (无)
近期治理
3 privileged events loaded. 最新: MinterConfigured at block #46,482,362.
概览
读取函数
Block #46,492,956 · 20s agoReturns the EIP-712 type hash used when canceling authorizations.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 EIP-712 type hash for the CancelAuthorization struct, used to verify cancelAuthorization signatures.✨ AI |
Get the EIP712 Domain Separator.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 EIP712 domain separator. |
Returns the EIP-2612 PERMIT_TYPEHASH used to verify permit signatures.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 keccak256 typehash used in permit (EIP-2612) signature domain.✨ AI |
Returns the EIP-712 type hash used for receiveWithAuthorization messages.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The EIP-712 type hash (bytes32) used to sign receiveWithAuthorization authorizations.✨ AI |
Returns the EIP-712 type hash used to authorize off-chain transferWithAuthorization messages.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 EIP-712 type hash for transferWithAuthorization.✨ AI |
Return the remaining token allowance that owner granted to spender.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address that granted the allowance.✨ AI |
| spender | address | Address authorized to spend tokens from the owner's balance.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Remaining allowance as a uint256 representing how many tokens spender may transfer from owner.✨ AI |
Returns the state of an authorization
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the nonce is used |
Returns the token balance of the specified account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | Address whose token balance to query.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The account's token balance as a uint256.✨ AI |
Returns the address authorized to manage the contract's blacklist.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address currently designated as the blacklister.✨ AI |
Returns the token's currency identifier string used for display and accounting.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token's currency identifier string (for example, USD).✨ AI |
Return the number of decimal places used for token amounts and UI display.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | Number of decimal places the token uses, as a uint8 (e.g., 2 means amounts have two decimal places).✨ AI |
Checks if account is blacklisted.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _account | address | The address to check. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the account is blacklisted, false if the account is not blacklisted. |
Checks if an account is a minter.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | The address to check. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the account is a minter, false if the account is not a minter. |
Returns the address of the current master minter.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address that holds the master minter role and can assign or revoke minters.✨ AI |
Gets the minter allowance for an account.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| minter | address | The address to check. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The remaining minter allowance for the account. |
Returns the token's name.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token's name as a string.✨ AI |
Nonces for permit
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Token owner's address (Authorizer) |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Next nonce |
Returns the address of the contract owner.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | the address of the owner |
Check whether token transfers and other restricted operations are currently paused.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the contract is paused (restricted operations disabled); false if it is active.✨ AI |
Returns the address that currently holds the token pauser role.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The account address authorized to pause or unpause token transfers.✨ AI |
Returns current rescuer
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | Rescuer's address |
Returns the token's symbol string.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token symbol (e.g., "USDC").✨ AI |
Returns the total number of tokens in circulation for this ERC-20 token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Total token supply expressed in the token's smallest unit (uint256).✨ AI |
Version string for the EIP712 domain separator
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | Version string |
写入函数
Set allowance for spender to transfer up to value tokens from the caller's account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address granted permission to spend tokens on behalf of the caller.✨ AI |
| value | uint256 | Maximum number of tokens the spender is allowed to transfer.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the approval was set successfully, false otherwise.✨ AI |
Adds account to blacklist.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _account | address | The address to blacklist. |
Allows a minter to burn some of its own tokens.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _amount | uint256 | the amount of tokens to be burned. |
Attempt to cancel an authorization
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
Attempt to cancel an authorization
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
| signature | bytes | Signature bytes signed by an EOA wallet or a contract wallet |
Adds or updates a new minter with a mint allowance.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| minter | address | The address of the minter. |
| minterAllowedAmount | uint256 | The minting amount allowed for the minter. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the operation was successful. |
Decrease the allowance by a given decrement
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Spender's address |
| decrement | uint256 | Amount of decrease in allowance |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if successful |
Increase the allowance by a given increment
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Spender's address |
| increment | uint256 | Amount of increase in allowance |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if successful |
Initializes the fiat token contract.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| tokenName | string | The name of the fiat token. |
| tokenSymbol | string | The symbol of the fiat token. |
| tokenCurrency | string | The fiat currency that the token represents. |
| tokenDecimals | uint8 | The number of decimals that the token uses. |
| newMasterMinter | address | The masterMinter address for the fiat token. |
| newPauser | address | The pauser address for the fiat token. |
| newBlacklister | address | The blacklister address for the fiat token. |
| newOwner | address | The owner of the fiat token. |
Initialize v2
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newName | string | New token name |
Initialize v2.1
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| lostAndFound | address | The address to which the locked funds are sent |
Initialize v2.2
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| accountsToBlacklist | address[] | A list of accounts to migrate from the old blacklist |
| newSymbol | string | New token symbol data structure to the new blacklist data structure. |
Mints fiat tokens to an address.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _to | address | The address that will receive the minted tokens. |
| _amount | uint256 | The amount of tokens to mint. Must be less than or equal to the minterAllowance of the caller. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the operation was successful. |
Pauses token transfers and other actions that require the contract to be unpaused.✨ AI
Update allowance with a signed permit
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Token owner's address (Authorizer) |
| spender | address | Spender's address |
| value | uint256 | Amount of allowance |
| deadline | uint256 | The time at which the signature expires (unix time), or max uint256 value to signal no expiration |
| signature | bytes | Signature bytes signed by an EOA wallet or a contract wallet |
Update allowance with a signed permit
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Token owner's address (Authorizer) |
| spender | address | Spender's address |
| value | uint256 | Amount of allowance |
| deadline | uint256 | The time at which the signature expires (unix time), or max uint256 value to signal no expiration |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
Receive a transfer with a signed authorization from the payer
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
| signature | bytes | Signature bytes signed by an EOA wallet or a contract wallet |
Receive a transfer with a signed authorization from the payer
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 | |
| r | bytes32 | |
| s | bytes32 |
Removes a minter.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| minter | address | The address of the minter to remove. |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the operation was successful. |
Rescue ERC20 tokens locked up in this contract.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| tokenContract | address | ERC20 token contract address |
| to | address | Recipient address |
| amount | uint256 | Amount to withdraw |
Transfer tokens from the caller's account to the specified recipient address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| to | address | Recipient address that will receive the tokens.✨ AI |
| value | uint256 | Amount of tokens to transfer, in the token's smallest unit.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded.✨ AI |
Transfer tokens from a source account to a destination using the caller's allowance.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | Address whose token balance will be reduced.✨ AI |
| to | address | Address whose token balance will be increased.✨ AI |
| value | uint256 | Number of tokens to transfer, expressed in the token's smallest unit.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | Boolean indicating whether the transfer succeeded and the caller's allowance was updated.✨ AI |
Transfers contract ownership to the specified new owner address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newOwner | address | The address to transfer ownership to. |
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 |
| signature | bytes | Signature bytes signed by an EOA wallet or a contract wallet |
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 | |
| r | bytes32 | |
| s | bytes32 |
Removes account from blacklist.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _account | address | The address to remove from the blacklist. |
Unpauses the contract and resumes token transfers and other paused operations.✨ AI
Updates the blacklister address.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _newBlacklister | address | The address of the new blacklister. |
Updates the master minter address.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _newMasterMinter | address | The address of the new master minter. |
Updates the pauser address.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _newPauser | address | The address of the new pauser. |
Updates the rescuer address.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newRescuer | address | The address of the new rescuer. |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| _account | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| newBlacklister | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| burner | address | ✓ | |
| amount | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| newMasterMinter | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| minter | address | ✓ | |
| to | address | ✓ | |
| amount | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| minter | address | ✓ | |
| minterAllowedAmount | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldMinter | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | representing the address of the previous owner | |
| newOwner | address | representing the address of the new owner |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| newAddress | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| newRescuer | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| _account | address | ✓ |