FiatTokenV2_2
Base ERC-20 Token0x2ce6311ddae708829bc0784c967b7d77d19fd779
Solidity v0.6.12+commit.27d51765
Fungible token following the ERC-20 standard.
Admin & Risk
Who can change the rules?
Detected mintable, pausable, blacklistable, and ownable controls from the verified ABI.
Current controls
- Paused
- false
- Owner
- 0x0000000000000000000000000000000000000001 ↗ Basescan → smarts
- Master minter
- 0x0000000000000000000000000000000000000001 ↗ Basescan → smarts
- Pauser
- 0x0000000000000000000000000000000000000001 ↗ Basescan → smarts
- Blacklister
- 0x0000000000000000000000000000000000000001 ↗ Basescan → smarts
- Rescuer
- 0x0000000000000000000000000000000000000000 (none)
Overview
Read Functions
Block #46,447,658 · just nowReturns the EIP-712 type hash used for canceling authorizations.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The EIP-712 type hash (bytes32) for the CancelAuthorization struct.✨ AI |
Get the EIP712 Domain Separator.
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The bytes32 EIP712 domain separator. |
Returns the EIP-712 type hash used for permit (EIP-2612) signatures.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The bytes32 keccak256 type hash used to construct permit signature digests.✨ AI |
Return the bytes32 type hash used to encode and verify receiveWithAuthorization authorizations.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The bytes32 typehash for the receiveWithAuthorization struct used to construct and validate authorizations.✨ AI |
Returns the EIP-712 type hash used for transferWithAuthorization messages.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | Type hash (bytes32) used to build and verify EIP-712 transferWithAuthorization signatures.✨ AI |
Returns the remaining token allowance that owner has granted to spender.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | Address that granted the allowance.✨ AI |
| spender | address | Address approved to spend tokens on owner's behalf.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Remaining number of tokens spender is allowed to transfer from owner.✨ AI |
Returns the state of an authorization
Parameters
| Name | Type | Description |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the nonce is used |
Return the token balance of the given account.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | Address whose token balance will be returned.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The account's token balance expressed in the token's smallest unit (uint256).✨ AI |
Return the address that is authorized to add or remove accounts from the blacklist.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address currently assigned the blacklister role with permission to blacklist or unblacklist accounts.✨ AI |
Return the token's currency code used by this contract.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | string | The token currency code (e.g., USD) as a string.✨ AI |
Returns the number of decimal places used by the token.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 | Token decimals as an unsigned 8-bit integer indicating the number of decimal places.✨ AI |
Checks if account is blacklisted.
Parameters
| Name | Type | Description |
|---|---|---|
| _account | address | The address to check. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the account is blacklisted, false if the account is not blacklisted. |
Checks if an account is a minter.
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | The address to check. |
Returns
| Name | Type | Description |
|---|---|---|
| — | 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
Returns
| Name | Type | Description |
|---|---|---|
| — | address | Address of the account that currently holds the masterMinter role and may authorize minters.✨ AI |
Gets the minter allowance for an account.
Parameters
| Name | Type | Description |
|---|---|---|
| minter | address | The address to check. |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The remaining minter allowance for the account. |
Returns the token's name.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | string | Token name as a human-readable string.✨ AI |
Nonces for permit
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | Token owner's address (Authorizer) |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Next nonce |
Returns the address of the contract owner.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | the address of the owner |
Returns true when token transfers and administrative actions are paused.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the contract is paused and normal token operations are disabled, otherwise false.✨ AI |
Returns the address currently assigned the pauser role.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | Address of the account that can pause and unpause token transfers.✨ AI |
Returns current rescuer
Returns
| Name | Type | Description |
|---|---|---|
| — | address | Rescuer's address |
Returns the token's short symbol used by wallets and block explorers.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | string | The token symbol string (for example, "USDC"), used for display and identification.✨ AI |
Returns the total supply of tokens.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The total token supply as a uint256 representing the number of smallest token units in existence.✨ AI |
Version string for the EIP712 domain separator
Returns
| Name | Type | Description |
|---|---|---|
| — | string | Version string |
Write Functions
Approve a spender to transfer up to value tokens from your account.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | Address authorized to spend tokens on the caller's behalf.✨ AI |
| value | uint256 | Maximum number of tokens the spender is allowed to transfer.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the allowance was successfully set and an Approval event was emitted.✨ AI |
Adds account to blacklist.
Parameters
| Name | Type | Description |
|---|---|---|
| _account | address | The address to blacklist. |
Allows a minter to burn some of its own tokens.
Parameters
| Name | Type | Description |
|---|---|---|
| _amount | uint256 | the amount of tokens to be burned. |
Attempt to cancel an authorization
Parameters
| Name | Type | Description |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
Attempt to cancel an authorization
Parameters
| Name | Type | Description |
|---|---|---|
| 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.
Parameters
| Name | Type | Description |
|---|---|---|
| minter | address | The address of the minter. |
| minterAllowedAmount | uint256 | The minting amount allowed for the minter. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the operation was successful. |
Decrease the allowance by a given decrement
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | Spender's address |
| decrement | uint256 | Amount of decrease in allowance |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if successful |
Increase the allowance by a given increment
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | Spender's address |
| increment | uint256 | Amount of increase in allowance |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if successful |
Initializes the fiat token contract.
Parameters
| Name | Type | Description |
|---|---|---|
| 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
Parameters
| Name | Type | Description |
|---|---|---|
| newName | string | New token name |
Initialize v2.1
Parameters
| Name | Type | Description |
|---|---|---|
| lostAndFound | address | The address to which the locked funds are sent |
Initialize v2.2
Parameters
| Name | Type | Description |
|---|---|---|
| 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.
Parameters
| Name | Type | Description |
|---|---|---|
| _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. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the operation was successful. |
Pause the contract to stop token transfers and other pause-protected operations.✨ AI
Update allowance with a signed permit
Parameters
| Name | Type | Description |
|---|---|---|
| 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
Parameters
| Name | Type | Description |
|---|---|---|
| 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
Parameters
| Name | Type | Description |
|---|---|---|
| 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
Parameters
| Name | Type | Description |
|---|---|---|
| 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.
Parameters
| Name | Type | Description |
|---|---|---|
| minter | address | The address of the minter to remove. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the operation was successful. |
Rescue ERC20 tokens locked up in this contract.
Parameters
| Name | Type | Description |
|---|---|---|
| tokenContract | address | ERC20 token contract address |
| to | address | Recipient address |
| amount | uint256 | Amount to withdraw |
Transfer tokens from the caller to a recipient address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| 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 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the transfer succeeded.✨ AI |
Transfer tokens from one address to another using the caller's allowance.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | Address to debit the tokens from.✨ AI |
| to | address | Address to receive the tokens.✨ AI |
| value | uint256 | Number of tokens to transfer, in token base units.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the transfer succeeded.✨ AI |
Transfers contract ownership to the specified newOwner address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address | The address to transfer ownership to. |
Execute a transfer with a signed authorization
Parameters
| Name | Type | Description |
|---|---|---|
| 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
Parameters
| Name | Type | Description |
|---|---|---|
| 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.
Parameters
| Name | Type | Description |
|---|---|---|
| _account | address | The address to remove from the blacklist. |
Unpause the contract to resume all paused token operations.✨ AI
Updates the blacklister address.
Parameters
| Name | Type | Description |
|---|---|---|
| _newBlacklister | address | The address of the new blacklister. |
Updates the master minter address.
Parameters
| Name | Type | Description |
|---|---|---|
| _newMasterMinter | address | The address of the new master minter. |
Updates the pauser address.
Parameters
| Name | Type | Description |
|---|---|---|
| _newPauser | address | The address of the new pauser. |
Updates the rescuer address.
Parameters
| Name | Type | Description |
|---|---|---|
| newRescuer | address | The address of the new rescuer. |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _account | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| newBlacklister | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| burner | address | ✓ | |
| amount | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| newMasterMinter | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| minter | address | ✓ | |
| to | address | ✓ | |
| amount | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| minter | address | ✓ | |
| minterAllowedAmount | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| oldMinter | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousOwner | address | representing the address of the previous owner | |
| newOwner | address | representing the address of the new owner |
| Name | Type | Indexed | Description |
|---|---|---|---|
| newAddress | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| newRescuer | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _account | address | ✓ |