FrxUSD
Fraxtal ERC-20 Token0xfc00000000000000000000000000000000000001
Proxy 實作合約: 0x0000000083bdf23788585d499eab0d92a8befb1d
Solidity v0.8.30+commit.73712a01
Fungible token following the ERC-20 standard.
概覽
讀取函式
Returns the bridge contract address used by FrxUSD for cross-chain bridging.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the bridge contract that handles cross-chain deposits and withdrawals.✨ AI |
Retrieve the EIP-712 domain separator used for signing typed data.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | EIP-712 domain separator (bytes32) used for permit/typed-data signatures.✨ AI |
Returns the address of the remote token contract linked to this FrxUSD token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the remote token contract associated with this FrxUSD token.✨ AI |
Return the remaining number of tokens spender is allowed to transfer from owner.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Token holder address.✨ AI |
| spender | address | Address permitted to spend the holder's tokens.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Remaining allowance as a uint256 representing the number of 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 address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | Address whose ERC-20 token balance will be returned.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The current token balance of the account as a uint256.✨ AI |
Legacy getter for BRIDGE
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | address The bridge address |
Returns the number of decimal places the token uses.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | Number of decimals used by the token as an uint8 (e.g., 18).✨ AI |
Return the EIP-712 domain parameters that the token uses for typed-data signing.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| fields | bytes1 | Single-byte flags or reserved field for the domain (bytes1).✨ AI |
| name | string | Domain name string used in EIP-712 (token name).✨ AI |
| version | string | Domain version string used in EIP-712.✨ AI |
| chainId | uint256 | Chain ID value for the EIP-712 domain.✨ AI |
| verifyingContract | address | Address used as verifyingContract in the EIP-712 domain.✨ AI |
| salt | bytes32 | 32-byte salt value included in the domain for uniqueness.✨ AI |
| extensions | uint256[] | Array of uint256 extension values for optional domain parameters.✨ AI |
Checks whether the given address is a registered freezer.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the address has freezer privileges, otherwise false.✨ AI |
Returns true if the given address is frozen and cannot transfer or receive tokens.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the address is frozen and barred from token transfers; otherwise false.✨ AI |
Returns true when the contract is paused, disabling transfers and other state-changing actions.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the contract is paused; false if it is active and operations are allowed.✨ AI |
Legacy getter for the remote token. Use REMOTE_TOKEN going forward.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | address The L1 remote token address |
Legacy getter for the bridge. Use BRIDGE going forward.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | address The bridge address |
Check whether an address is authorized to mint new tokens.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the address is an authorized minter, false otherwise.✨ AI |
Return the minter address stored at the specified index in the contract's minters list.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the minter at the provided index.✨ AI |
Returns the token name used in wallets and user interfaces.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token's human-readable name as a string, for example "FrxUSD".✨ AI |
Shows the address currently nominated to become the contract owner.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The nominated owner address; returns the zero address if no nomination exists.✨ AI |
Returns the current permit nonce for an address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Address whose permit nonce is returned.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Current nonce (uint256) for the owner, used to prevent replay of permit signatures.✨ AI |
Returns the address of the contract owner.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address that currently holds owner privileges for this contract.✨ AI |
Legacy getter for REMOTE_TOKEN
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | address The L1 remote token address |
ERC165 interface check function.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _interfaceId | bytes4 | Interface ID to check. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | Whether or not the interface is supported by this contract. |
Get the ERC-20 token symbol for the FrxUSD token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token symbol as a string (human-readable, e.g. "frxUSD").✨ AI |
Returns the timelock contract address used by the token for governance and time-delayed operations.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the timelock contract that controls time-delayed governance actions.✨ AI |
Returns the total number of frxUSD tokens in existence.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total supply of frxUSD expressed in the token's smallest unit (uint256).✨ AI |
Upgrade version of the contract
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string |
寫入函式
Allow the pending owner to accept and finalize the contract's ownership transfer.✨ AI
Adds an address to the set of freezers that can freeze accounts.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _freezer | address | Address to grant freezer privileges.✨ AI |
Adds a non-bridge minter
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| minter_address | address | Address of minter to add |
Approve spender to transfer up to value tokens from your account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Address allowed to spend tokens.✨ AI |
| value | uint256 | Maximum token amount the spender is allowed to transfer.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the approval succeeded.✨ AI |
Allows the StandardBridge on this network to burn tokens.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| value | uint256 |
Allows the StandardBridge on this network to burn tokens.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _from | address | Address to burn tokens from. |
| _amount | uint256 | Amount of tokens to burn. |
Burns tokens from an account using the caller's allowance.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | Address whose balance will be reduced.✨ AI |
| value | uint256 | Amount of tokens to burn, in the token's smallest unit.✨ AI |
External admin gated function to burn balance from a given account
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _owner | address | The account whose balance will be burned |
| _amount | uint256 | The amount of balance to burn |
External admin gated function to batch burn balance from a set of accounts
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _owners | address[] | Array of accounts whose balances will be burned |
| _amounts | uint256[] | Array of amounts corresponding to the balances to be burned |
The ```cancelAuthorization``` function cancels an authorization nonce
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
| v | uint8 | ECDSA signature v value |
| r | bytes32 | ECDSA signature r value |
| s | bytes32 | ECDSA signature s value |
The ```cancelAuthorization``` function cancels an authorization nonce
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
| signature | bytes |
External admin gated function to freeze a given account
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _owner | address | The account to be frozen |
External admin gated function to batch freeze a set of accounts
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _owners | address[] | Array of accounts to be frozen |
Allows the StandardBridge on this network to mint tokens.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _to | address | Address to mint tokens to. |
| _amount | uint256 | Amount of tokens to mint. |
Used by non-bridge minters to burn tokens
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| b_address | address | Address of the account to burn from |
| b_amount | uint256 | Amount of tokens to burn |
Used by non-bridge minters to mint new tokens
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| m_address | address | Address of the account to mint to |
| m_amount | uint256 | Amount of tokens to mint |
Proposes a new owner for the contract by nominating the specified address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _owner | address | Address being nominated to become the contract owner; nominee must accept ownership separately.✨ AI |
External admin gated pause function
Allow a spender to spend the owner's tokens using an off-chain EIP-2612 signature.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Token holder whose approval is being granted.✨ AI |
| spender | address | Address being approved to transfer the owner's tokens.✨ AI |
| value | uint256 | Amount of tokens the spender is allowed to transfer.✨ AI |
| deadline | uint256 | Unix timestamp after which the permit signature is no longer valid.✨ AI |
| signature | bytes |
Allow a spender to spend the owner's tokens using an off-chain EIP-2612 signature.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Token holder whose approval is being granted.✨ AI |
| spender | address | Address being approved to transfer the owner's tokens.✨ AI |
| value | uint256 | Amount of tokens the spender is allowed to transfer.✨ AI |
| deadline | uint256 | Unix timestamp after which the permit signature is no longer valid.✨ AI |
| v | uint8 | ECDSA signature recovery byte (part of the owner's signature).✨ AI |
| r | bytes32 | First 32 bytes of the owner's ECDSA signature.✨ AI |
| s | bytes32 | Second 32 bytes of the owner's ECDSA signature.✨ AI |
The ```receiveWithAuthorization``` function receives 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 block.timestamp after which the authorization is valid |
| validBefore | uint256 | The block.timestamp before which the authorization is valid |
| nonce | bytes32 | Unique nonce |
| signature | bytes |
The ```receiveWithAuthorization``` function receives 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 block.timestamp after which the authorization is valid |
| validBefore | uint256 | The block.timestamp before which the authorization is valid |
| nonce | bytes32 | Unique nonce |
| v | uint8 | ECDSA signature parameter v |
| r | bytes32 | ECDSA signature parameters r |
| s | bytes32 | ECDSA signature parameters s |
Remove a freezer address, revoking its ability to freeze tokens.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _freezer | address | Address to revoke freezer privileges from.✨ AI |
Removes a non-bridge minter
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| minter_address | address | Address of minter to remove |
Sets the timelock address
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _timelock_address | address | Address of the timelock |
External admin gated function to unfreeze an account
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _owner | address | The account to be unfrozen |
External admin gated function to unfreeze a set of accounts
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _owners | address[] | Array of accounts to be unfrozen |
Transfer a specified amount of tokens from the caller to the given address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| to | address | Recipient address to receive the tokens.✨ AI |
| value | uint256 | Amount of tokens to transfer, specified in the token's smallest unit.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded and was recorded.✨ AI |
Transfers tokens from 'from' to 'to' using the caller's approved allowance.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| from | address | Address to debit tokens from.✨ AI |
| to | address | Address to credit tokens to.✨ AI |
| value | uint256 | Amount of tokens to transfer, denominated in the token's smallest unit.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeds.✨ AI |
The ```transferWithAuthorization``` function executes a transfer with a signed authorization according to Eip3009
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| from | address | Payer's address (Authorizer) |
| to | address | Payee's address |
| value | uint256 | Amount to be transferred |
| validAfter | uint256 | The block.timestamp after which the authorization is valid |
| validBefore | uint256 | The block.timestamp before which the authorization is valid |
| nonce | bytes32 | Unique nonce |
| signature | bytes |
The ```transferWithAuthorization``` function executes a transfer with a signed authorization according to Eip3009
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| from | address | Payer's address (Authorizer) |
| to | address | Payee's address |
| value | uint256 | Amount to be transferred |
| validAfter | uint256 | The block.timestamp after which the authorization is valid |
| validBefore | uint256 | The block.timestamp before which the authorization is valid |
| nonce | bytes32 | Unique nonce |
| v | uint8 | ECDSA signature parameter v |
| r | bytes32 | ECDSA signature parameters r |
| s | bytes32 | ECDSA signature parameters s |
External admin gated unpause function
事件
Event Emitted when an address is frozen
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | The account being frozen |
Event Emitted when an address is unfrozen
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | The account being thawed |
Event Emitted when an address is added as a freezer
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | The account being added as a freezer |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
```AuthorizationCanceled``` event is emitted when an authorization is canceled
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| authorizer | address | ✓ | Authorizer's address |
| nonce | bytes32 | ✓ | Nonce of the authorization |
```AuthorizationUsed``` event is emitted when an authorization is used
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| authorizer | address | ✓ | Authorizer's address |
| nonce | bytes32 | ✓ | Nonce of the authorization |
Emitted whenever the bridge burns tokens from an account
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | Address of the account tokens are being burned from |
| amount | uint256 | Amount of tokens burned |
Emitted whenever the bridge mints tokens to an account
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | Address of the account tokens are being minted for |
| amount | uint256 | Amount of tokens minted. |
Emitted when a non-bridge minter is added
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| minter_address | address | Address of the new minter |
Emitted when a non-bridge minter is removed
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| minter_address | address | Address of the removed minter |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| oldOwner | address | ||
| newOwner | address |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| newOwner | address |
Event Emitted when the contract is paused
Event Emitted when an address is removed as a freezer
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | The account being removed as a freezer |
Emitted when the timelock address changes
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| timelock_address | address | Address of the removed timelock |
Emitted when a non-bridge minter burns tokens
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | The account whose tokens are burned |
| to | address | ✓ | The minter doing the burning |
| amount | uint256 | Amount of tokens burned |
Emitted when a non-bridge minter mints tokens
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | The minter doing the minting |
| to | address | ✓ | The account that gets the newly minted tokens |
| amount | uint256 | Amount of tokens minted |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
Event Emitted when the contract is unpaused