0x853d955acef822db058eb8505911ed77f175b99e
Solidity v0.6.11+commit.5ef660b1
Fungible token following the ERC-20 standard.
Admin & Risk
Who can change the rules?
Detected role based controls from the verified ABI.
Overview
Read Functions
Block #25,493,364 · just nowReturn the role identifier used to authorize pausing collateral ratio updates.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | A bytes32 role identifier representing the COLLATERAL_RATIO_PAUSER permission.✨ AI |
Returns the contract's default admin address.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address currently set as the default admin for contract-level permissions.✨ AI |
Returns the bytes32 identifier for the contract's DEFAULT_ADMIN_ROLE.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | bytes32 identifier for the DEFAULT_ADMIN_ROLE used by the contract's access control.✨ AI |
Returns the remaining number of tokens that spender is allowed to transfer from owner.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | Address that owns the tokens.✨ AI |
| spender | address | Address approved to spend the owner's tokens.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Remaining token allowance (uint256) that spender can transfer from owner.✨ AI |
Returns the FRAX token balance for the specified account.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | Account address whose FRAX balance will be retrieved.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The account's FRAX token balance, expressed in the token's smallest units.✨ AI |
Indicates whether collateral ratio adjustments are currently paused.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if collateral ratio updates are paused; false if they are active.✨ AI |
Returns the controller contract address that manages FRAX protocol controls.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The controller contract address used to manage protocol parameters and access controls.✨ AI |
Return the contract's creator address.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address recorded as this contract's creator.✨ AI |
Returns the token's number of decimal places.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 | uint8: the number of decimals used for token display and calculation precision.✨ AI |
Returns the address of the ETH/USD price feed consumer contract.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the contract used to consume ETH/USD oracle price data.✨ AI |
Get the current ETH/USD price used by the contract.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Current ETH price denominated in USD as an unsigned integer using the contract's internal price precision.✨ AI |
Returns the address of the FRAX/ETH price oracle used by the contract.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The oracle contract address that provides the FRAX/ETH price.✨ AI |
Return eight protocol-specific unsigned integers summarizing on-chain FRAX state.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | First: protocol-specific uint256 (field 1 from frax_info); interpret via contract source.✨ AI |
| — | uint256 | Second: protocol-specific uint256 (field 2 from frax_info); interpret via contract source.✨ AI |
| — | uint256 | Third: protocol-specific uint256 (field 3 from frax_info); interpret via contract source.✨ AI |
| — | uint256 | Fourth: protocol-specific uint256 (field 4 from frax_info); interpret via contract source.✨ AI |
| — | uint256 | Fifth: protocol-specific uint256 (field 5 from frax_info); interpret via contract source.✨ AI |
| — | uint256 | Sixth: protocol-specific uint256 (field 6 from frax_info); interpret via contract source.✨ AI |
| — | uint256 | Seventh: protocol-specific uint256 (field 7 from frax_info); interpret via contract source.✨ AI |
| — | uint256 | Eighth: protocol-specific uint256 (field 8 from frax_info); interpret via contract source.✨ AI |
Return whether the given address is a registered FRAX pool.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the address is a registered FRAX pool, false otherwise.✨ AI |
Return the pool contract address at the given index in the FRAX pools list.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The pool contract address stored at the specified index.✨ AI |
Returns the current FRAX price used by the protocol.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The current FRAX price as a uint256 in the contract's internal units.✨ AI |
Returns the current protocol adjustment step used for incremental peg or rate changes.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The step value (uint256) used in protocol adjustment calculations.✨ AI |
Returns the address of the FXS token contract used by the system.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the FXS (governance) ERC-20 token contract.✨ AI |
Returns the address of the FXS/ETH price oracle used by this contract.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the FXS/ETH oracle contract.✨ AI |
Get the current FXS token price used by the protocol.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The current FXS price as a uint256, scaled by the contract's price precision (e.g., 1e18).✨ AI |
Return the genesis supply of FRAX tokens.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The total FRAX supply created at genesis, expressed in the token's smallest unit (wei).✨ AI |
Returns the admin role that controls the specified role.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | The role identifier to query, provided as a bytes32 value.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The bytes32 identifier of the admin role that can grant or revoke the specified role.✨ AI |
Return the address of the account assigned to the given role at the specified index.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | Role identifier (bytes32) to query.✨ AI |
| index | uint256 | Zero-based index within the role's member set.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | Address of the role member at the given index.✨ AI |
Return the number of accounts assigned to the specified role.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | Role identifier (bytes32) to count members for.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Number of accounts that currently hold the specified role.✨ AI |
Get the total value of collateral backing the FRAX system.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Total collateral value expressed in the protocol's base unit (wei).✨ AI |
Return the protocol's current global collateral ratio.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The current global collateral ratio as a uint256, expressed using the contract's collateral ratio precision.✨ AI |
Checks whether a given account has the specified role.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | Role identifier as a bytes32 value (e.g., keccak256 of role name).✨ AI |
| account | address | Address of the account to check for the role.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the account has the role, false otherwise.✨ AI |
Returns the Unix timestamp of the last recorded contract call that updated the contract state.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Unix timestamp (seconds since Unix epoch) of the last recorded contract call that changed state.✨ AI |
Returns the current minting fee applied when creating new FRAX tokens.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The current minting fee rate as a uint256 in the contract's internal fee units.✨ AI |
Return the human-readable name used to identify this ERC-20 token.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | string | The token's name string, a human-readable identifier (for example: "Frax").✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Write Functions
Parameters
| Name | Type | Description |
|---|---|---|
| pool_address | address |
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | |
| amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| amount | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | |
| amount | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | |
| subtractedValue | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | |
| account | address |
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | |
| addedValue | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| b_address | address | |
| b_amount | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| m_address | address | |
| m_amount | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| pool_address | address |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | |
| account | address |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | |
| account | address |
Parameters
| Name | Type | Description |
|---|---|---|
| _controller_address | address |
Parameters
| Name | Type | Description |
|---|---|---|
| _eth_usd_consumer_address | address |
Parameters
| Name | Type | Description |
|---|---|---|
| _frax_oracle_addr | address | |
| _weth_address | address |
Parameters
| Name | Type | Description |
|---|---|---|
| _fxs_address | address |
Parameters
| Name | Type | Description |
|---|---|---|
| _fxs_oracle_addr | address | |
| _weth_address | address |
Parameters
| Name | Type | Description |
|---|---|---|
| _new_step | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| min_fee | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| _owner_address | address |
Parameters
| Name | Type | Description |
|---|---|---|
| _price_band | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| _new_price_target | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| red_fee | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| _new_cooldown | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| new_timelock | address |
Parameters
| Name | Type | Description |
|---|---|---|
| recipient | address | |
| amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| sender | address | |
| recipient | address | |
| amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| amount | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| amount | uint256 |
| 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 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |