FraxswapFactory

Fraxtal

0xe30521fe7f3beb6ad556887b50739d6c7ca667e6

Solidity v0.8.23+commit.f704f362

🤖
透過你的 AI 查詢此合約
參考: 0xe30521fe7f3beb6ad556887b50739d6c7ca667e6
範例提示詞: "Tell me the current state of fraxtal/0xe30521fe7f3beb6ad556887b50739d6c7ca667e6"
還沒有接入 AI?→ mcp.smarts.md
Fraxtal 在 Smarts 上是僅文件鏈:原始碼和 ABI 已索引,但目前不提供即時鏈上資料(狀態、最新事件、管理員概覽)。AI 代理仍可透過 MCP 呼叫 get_contract_info 和 get_contract_source。

概覽

讀取函式
6
寫入函式
5
事件
1

讀取函式

allPairs(uint256) view

Return the pair contract address at the given index in the factory's pair list.✨ AI

開發者: Reverts if index is out of range; index is zero-based and must be less than the total pairs.✨ AI

參數

名稱 類型 描述
uint256

回傳值

名稱 類型 描述
address The pair contract address stored at the given index.✨ AI
allPairsLength() view

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
feeTo() view

Returns the address that receives protocol fees.✨ AI

回傳值

名稱 類型 描述
address The address currently set to receive protocol fees (feeTo).✨ AI
feeToSetter() view

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
getPair(address, address) view

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
globalPause() view

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

寫入函式

createPair(tokenA: address, tokenB: address, fee: uint256) nonpayable

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
createPair(tokenA: address, tokenB: address) nonpayable

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
setFeeTo(_feeTo: address) nonpayable

Set the address that receives protocol fees.✨ AI

參數

名稱 類型 描述
_feeTo address Address that will receive protocol fees and related fee allocations.✨ AI
setFeeToSetter(_feeToSetter: address) nonpayable

Set the account that may update the protocol fee recipient.✨ AI

參數

名稱 類型 描述
_feeToSetter address Address granted permission to change the fee recipient.✨ AI
toggleGlobalPause() nonpayable

Toggles the contract's global paused state, pausing or unpausing protocol actions.✨ AI

事件

PairCreated(token0: address, token1: address, pair: address, uint256)
名稱 類型 已索引 描述
token0 address
token1 address
pair address
uint256