FraxswapFactory

Fraxtal Browse chains

0xe30521fe7f3beb6ad556887b50739d6c7ca667e6

Solidity v0.8.23+commit.f704f362

🤖
Query this contract from your AI
Reference: 0xe30521fe7f3beb6ad556887b50739d6c7ca667e6
Sample prompt: "Tell me the current state of fraxtal/0xe30521fe7f3beb6ad556887b50739d6c7ca667e6"
No AI wired up yet? → mcp.smarts.md · Browse chains
Fraxtal is a docs-only chain on Smarts: source code and ABI are indexed, but live on-chain data (state, recent events, admin profile) is not currently available. AI agents can still query get_contract_info and get_contract_source via MCP.

Overview

Read Functions
6
Write Functions
5
Events
1

Read Functions

allPairs(uint256) view

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

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

Parameters

Name Type Description
uint256

Returns

Name Type Description
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

Returns

Name Type Description
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

Returns

Name Type Description
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

Returns

Name Type Description
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

Parameters

Name Type Description
address
address

Returns

Name Type Description
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

Returns

Name Type Description
bool bool indicating whether global pause is active (true = paused, false = normal operation).✨ AI

Write Functions

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

Create a new liquidity pair contract for two ERC20 token addresses.✨ AI

Parameters

Name Type Description
tokenA address Address of the first token in the pair.✨ AI
tokenB address Address of the second token in the pair.✨ AI
fee uint256

Returns

Name Type Description
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

Parameters

Name Type Description
tokenA address Address of the first token in the pair.✨ AI
tokenB address Address of the second token in the pair.✨ AI

Returns

Name Type Description
pair address pair: The address of the newly created pair contract.✨ AI
setFeeTo(_feeTo: address) nonpayable

Set the address that receives protocol fees.✨ AI

Parameters

Name Type Description
_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

Parameters

Name Type Description
_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

Events

PairCreated(token0: address, token1: address, pair: address, uint256)
Name Type Indexed Description
token0 address
token1 address
pair address
uint256