FraxswapFactory
Fraxtal0xe30521fe7f3beb6ad556887b50739d6c7ca667e6
Solidity v0.8.23+commit.f704f362
概覽
讀取函式
Return the pair contract address at the given index in the factory's pair list.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The pair contract address stored at the given index.✨ AI |
Returns the total number of liquidity pair contracts created by the factory.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Unsigned integer giving the total count of pair contracts managed by the factory.✨ AI |
Returns the address that receives protocol fees.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address currently set to receive protocol fees (feeTo).✨ AI |
Returns the address that can set or change the protocol fee recipient.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address permitted to update the contract's fee recipient (feeToSetter).✨ AI |
Return the pair contract address for two token addresses, or the zero address if no pair exists.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | |
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The pair contract address for the given token pair, or the zero address (address(0)) if it has not been created.✨ AI |
Returns true if the factory is globally paused, blocking swaps and certain state-changing operations.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | bool indicating whether global pause is active (true = paused, false = normal operation).✨ AI |
寫入函式
Create a new liquidity pair contract for two ERC20 token addresses.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| tokenA | address | Address of the first token in the pair.✨ AI |
| tokenB | address | Address of the second token in the pair.✨ AI |
| fee | uint256 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| pair | address | pair: The address of the newly created pair contract.✨ AI |
Create a new liquidity pair contract for two ERC20 token addresses.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| tokenA | address | Address of the first token in the pair.✨ AI |
| tokenB | address | Address of the second token in the pair.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| pair | address | pair: The address of the newly created pair contract.✨ AI |
Set the address that receives protocol fees.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _feeTo | address | Address that will receive protocol fees and related fee allocations.✨ AI |
Set the account that may update the protocol fee recipient.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _feeToSetter | address | Address granted permission to change the fee recipient.✨ AI |
Toggles the contract's global paused state, pausing or unpausing protocol actions.✨ AI
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| token0 | address | ✓ | |
| token1 | address | ✓ | |
| pair | address | ||
| uint256 |