PYUSD
Ethereum ERC-20 Token0x8c35caa5fd5bdc64b6b11344ad57594a3676256a
Solidity v0.8.28+commit.7893614a
Fungible token following the ERC-20 standard.
Admin & Risk
Who can change the rules?
Detected mintable, pausable, freezable, ownable, and role based controls from the verified ABI.
Current controls
- Paused
- false
- Owner
- 0x0000000000000000000000000000000000000000 (none)
Overview
Read Functions
Block #25,170,044 · just nowReturns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
EIP712 Domain Separator
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The domain separator for EIP-712 signatures |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes2 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | address The address which owns the funds |
| spender | address | address The address which will spend the funds |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | A uint256 specifying the amount of tokens still available for the spender |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
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 |
Gets the balance of the specified address
Parameters
| Name | Type | Description |
|---|---|---|
| addr | address | The address to query the the balance of |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | An uint256 representing the amount owned by the passed address |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint48 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint48 |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | |
| account | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Return the freeze status of an address.
Parameters
| Name | Type | Description |
|---|---|---|
| addr | address | The address to check if frozen. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | A bool representing whether the given address is frozen. |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Nonces for permit
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | Token owner's address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Next nonce |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Returns
| Name | Type | Description |
|---|---|---|
| newAdmin | address | |
| schedule | uint48 |
Returns
| Name | Type | Description |
|---|---|---|
| newDelay | uint48 | |
| schedule | uint48 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| interfaceId | bytes4 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Returns the total supply of the token.
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | An uint256 representing the total supply of the token. |
Write Functions
Set allowance of spender to spend tokens on behalf of msg.sender
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | The address which will spend the funds |
| value | uint256 | The amount of tokens to be spent |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if successful |
Parameters
| Name | Type | Description |
|---|---|---|
| newAdmin | address |
Parameters
| Name | Type | Description |
|---|---|---|
| amount | uint256 | The number of tokens to remove |
Attempt to cancel an authorization
Parameters
| Name | Type | Description |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
| v | uint8 | v of the signature |
| r | bytes32 | r of the signature |
| s | bytes32 | s of the signature |
Attempt to cancel an authorization
Parameters
| Name | Type | Description |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
| signature | bytes |
Cancel one or more pending permits
Parameters
| Name | Type | Description |
|---|---|---|
| count | uint256 | Number of permits to cancel (must be > 0 and <= MAX_NONCE_INCREMENT) Example: - Current nonce: 5 - Call cancelPermits(3) - New nonce: 8 - Canceled permits: those signed with nonces 5, 6, and 7 |
Parameters
| Name | Type | Description |
|---|---|---|
| newDelay | uint48 |
Decrease the allowance of spender to spend tokens on behalf of msg.sender
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | The address which will spend the funds |
| subtractedValue | uint256 | The amount of tokens to decrease the allowance by |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if successful |
Parameters
| Name | Type | Description |
|---|---|---|
| value | uint256 | The number of tokens to remove. |
Returns
| Name | Type | Description |
|---|---|---|
| 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.
Parameters
| Name | Type | Description |
|---|---|---|
| value | uint256 | The number of tokens to remove |
| burnFromAddress | address | Address to burn tokens from. |
Returns
| Name | Type | Description |
|---|---|---|
| success | bool | success A boolean that indicates if the operation was successful |
Parameters
| Name | Type | Description |
|---|---|---|
| addr | address | The address to freeze. |
Parameters
| Name | Type | Description |
|---|---|---|
| addresses | address[] | The addresses to freeze. |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | |
| account | address |
Increase the allowance of spender to spend tokens on behalf of msg.sender
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | The address which will spend the funds |
| addedValue | uint256 | The amount of tokens to increase the allowance by |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if successful |
Parameters
| Name | Type | Description |
|---|---|---|
| value | uint256 | The number of tokens to add. |
Returns
| Name | Type | Description |
|---|---|---|
| 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.
Parameters
| Name | Type | Description |
|---|---|---|
| value | uint256 | The number of tokens to add |
| mintToAddress | address | Address to mint tokens to. |
Returns
| Name | Type | Description |
|---|---|---|
| success | bool | success A boolean that indicates if the operation was successful |
Initialize the contract.
Parameters
| Name | Type | Description |
|---|---|---|
| initialDelay | uint48 | Initial delay for changing the owner |
| initialOwner | address | Address of the initial owner |
| pauser | address | Address of the pauser |
| assetProtector | address | Address of the asset protector |
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | Address to mint tokens to |
| amount | uint256 | The number of tokens to add |
Pause the contract
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 this expires (unix time) |
| signature | bytes |
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 this expires (unix time) |
| v | uint8 | v of the signature |
| r | bytes32 | r of the signature |
| s | bytes32 | s of the signature |
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 |
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 | v of the signature |
| r | bytes32 | r of the signature |
| s | bytes32 | s of the signature |
Reclaim all tokens at the contract address
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | |
| account | address |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | |
| account | address |
Parameters
| Name | Type | Description |
|---|---|---|
| supplyControlAddress | address | Supply control contract address |
Execute a transfer
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | The address to transfer to |
| value | uint256 | The amount to be transferred |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if successful |
Transfer tokens from one address to another
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | address The address which you want to send tokens from |
| to | address | address The address which you want to transfer to |
| value | uint256 | uint256 the amount of tokens to be transferred |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if successful |
Transfer tokens from one set of addresses to another in a single transaction
Parameters
| Name | Type | Description |
|---|---|---|
| from | address[] | addres[] The addresses which you want to send tokens from |
| to | address[] | address[] The addresses which you want to transfer to |
| value | uint256[] | uint256[] The amounts of tokens to be transferred |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if successful |
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 |
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 | v of the signature |
| r | bytes32 | r of the signature |
| s | bytes32 | s of the signature |
Execute multiple transfers with signed authorizations
Parameters
| Name | Type | Description |
|---|---|---|
| from | address[] | Array of Payer's addresses (Authorizers) |
| to | address[] | Array of Payee's addresses |
| value | uint256[] | Array of amounts to be transferred |
| validAfter | uint256[] | Array of times after which this is valid (unix time) |
| validBefore | uint256[] | Array of times before which this is valid (unix time) |
| nonce | bytes32[] | Array of unique nonces |
| signature | bytes[] |
Execute multiple transfers with signed authorizations
Parameters
| Name | Type | Description |
|---|---|---|
| from | address[] | Array of Payer's addresses (Authorizers) |
| to | address[] | Array of Payee's addresses |
| value | uint256[] | Array of amounts to be transferred |
| validAfter | uint256[] | Array of times after which this is valid (unix time) |
| validBefore | uint256[] | Array of times before which this is valid (unix time) |
| nonce | bytes32[] | Array of unique nonces |
| v | uint8[] | Array of v values of the signatures |
| r | bytes32[] | Array of r values of the signatures |
| s | bytes32[] | Array of s values of the signatures |
Parameters
| Name | Type | Description |
|---|---|---|
| addr | address | The new address to unfreeze. |
Parameters
| Name | Type | Description |
|---|---|---|
| addresses | address[] | The addresses to unfreeze. |
Unpause the contract
Wipe the token balance of a frozen address
Parameters
| Name | Type | Description |
|---|---|---|
| addr | address | The new frozen address to wipe |
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 |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| newDelay | uint48 | ||
| effectSchedule | uint48 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| newAdmin | address | ✓ | |
| acceptSchedule | uint48 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| addr | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| addr | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| version | uint8 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | The address whose nonces were invalidated |
| newNonce | uint256 | The new nonce value after invalidation |
| Name | Type | Indexed | Description |
|---|---|---|---|
| role | bytes32 | ✓ | |
| previousAdminRole | bytes32 | ✓ | |
| newAdminRole | bytes32 | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| newSanctionedAddress | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| supplyControlAddress | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| to | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| addr | address | ✓ |