FraxswapRouter

Fraxtal

0x7ae2a0f3d9ef911a0a3f726fa9fbfca25dc18f7a

Solidity v0.8.30+commit.73712a01

🤖
Query this contract from your AI
Reference: 0x7ae2a0f3d9ef911a0a3f726fa9fbfca25dc18f7a
Sample prompt: "Tell me the current state of fraxtal/0x7ae2a0f3d9ef911a0a3f726fa9fbfca25dc18f7a"
No AI wired up yet? → mcp.smarts.md
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
9
Write Functions
19
Events
0

Read Functions

INIT_CODE_HASH() pure

Returns

Name Type Description
hash bytes
WETH() view

Returns

Name Type Description
address
factory() view

Returns

Name Type Description
address
getAmountIn(amountOut: uint256, reserveIn: uint256, reserveOut: uint256) pure

Parameters

Name Type Description
amountOut uint256
reserveIn uint256
reserveOut uint256

Returns

Name Type Description
amountIn uint256
getAmountOut(amountIn: uint256, reserveIn: uint256, reserveOut: uint256) pure

Parameters

Name Type Description
amountIn uint256
reserveIn uint256
reserveOut uint256

Returns

Name Type Description
amountOut uint256
getAmountsIn(amountOut: uint256, path: address[]) view

Parameters

Name Type Description
amountOut uint256
path address[]

Returns

Name Type Description
amounts uint256[]
getAmountsOut(amountIn: uint256, path: address[]) view

Parameters

Name Type Description
amountIn uint256
path address[]

Returns

Name Type Description
amounts uint256[]
quote(amountA: uint256, reserveA: uint256, reserveB: uint256) pure

Parameters

Name Type Description
amountA uint256
reserveA uint256
reserveB uint256

Returns

Name Type Description
amountB uint256
version() view

Returns

Name Type Description
string

Write Functions

addLiquidity(tokenA: address, tokenB: address, amountADesired: uint256, amountBDesired: uint256, amountAMin: uint256, amountBMin: uint256, to: address, deadline: uint256) nonpayable

Parameters

Name Type Description
tokenA address
tokenB address
amountADesired uint256
amountBDesired uint256
amountAMin uint256
amountBMin uint256
to address
deadline uint256

Returns

Name Type Description
amountA uint256
amountB uint256
liquidity uint256
addLiquidityETH(token: address, amountTokenDesired: uint256, amountTokenMin: uint256, amountETHMin: uint256, to: address, deadline: uint256) payable

Parameters

Name Type Description
token address
amountTokenDesired uint256
amountTokenMin uint256
amountETHMin uint256
to address
deadline uint256

Returns

Name Type Description
amountToken uint256
amountETH uint256
liquidity uint256
getAmountsInWithTwamm(amountOut: uint256, path: address[]) nonpayable

Parameters

Name Type Description
amountOut uint256
path address[]

Returns

Name Type Description
amounts uint256[]
getAmountsOutWithTwamm(amountIn: uint256, path: address[]) nonpayable

Parameters

Name Type Description
amountIn uint256
path address[]

Returns

Name Type Description
amounts uint256[]
removeLiquidity(tokenA: address, tokenB: address, liquidity: uint256, amountAMin: uint256, amountBMin: uint256, to: address, deadline: uint256) nonpayable

Parameters

Name Type Description
tokenA address
tokenB address
liquidity uint256
amountAMin uint256
amountBMin uint256
to address
deadline uint256

Returns

Name Type Description
amountA uint256
amountB uint256
removeLiquidityETH(token: address, liquidity: uint256, amountTokenMin: uint256, amountETHMin: uint256, to: address, deadline: uint256) nonpayable

Parameters

Name Type Description
token address
liquidity uint256
amountTokenMin uint256
amountETHMin uint256
to address
deadline uint256

Returns

Name Type Description
amountToken uint256
amountETH uint256
removeLiquidityETHSupportingFeeOnTransferTokens(token: address, liquidity: uint256, amountTokenMin: uint256, amountETHMin: uint256, to: address, deadline: uint256) nonpayable

Parameters

Name Type Description
token address
liquidity uint256
amountTokenMin uint256
amountETHMin uint256
to address
deadline uint256

Returns

Name Type Description
amountETH uint256
removeLiquidityETHWithPermit(token: address, liquidity: uint256, amountTokenMin: uint256, amountETHMin: uint256, to: address, deadline: uint256, approveMax: bool, v: uint8, r: bytes32, s: bytes32) nonpayable

Parameters

Name Type Description
token address
liquidity uint256
amountTokenMin uint256
amountETHMin uint256
to address
deadline uint256
approveMax bool
v uint8
r bytes32
s bytes32

Returns

Name Type Description
amountToken uint256
amountETH uint256
removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(token: address, liquidity: uint256, amountTokenMin: uint256, amountETHMin: uint256, to: address, deadline: uint256, approveMax: bool, v: uint8, r: bytes32, s: bytes32) nonpayable

Parameters

Name Type Description
token address
liquidity uint256
amountTokenMin uint256
amountETHMin uint256
to address
deadline uint256
approveMax bool
v uint8
r bytes32
s bytes32

Returns

Name Type Description
amountETH uint256
removeLiquidityWithPermit(tokenA: address, tokenB: address, liquidity: uint256, amountAMin: uint256, amountBMin: uint256, to: address, deadline: uint256, approveMax: bool, v: uint8, r: bytes32, s: bytes32) nonpayable

Parameters

Name Type Description
tokenA address
tokenB address
liquidity uint256
amountAMin uint256
amountBMin uint256
to address
deadline uint256
approveMax bool
v uint8
r bytes32
s bytes32

Returns

Name Type Description
amountA uint256
amountB uint256
swapETHForExactTokens(amountOut: uint256, path: address[], to: address, deadline: uint256) payable

Parameters

Name Type Description
amountOut uint256
path address[]
to address
deadline uint256

Returns

Name Type Description
amounts uint256[]
swapExactETHForTokens(amountOutMin: uint256, path: address[], to: address, deadline: uint256) payable

Parameters

Name Type Description
amountOutMin uint256
path address[]
to address
deadline uint256

Returns

Name Type Description
amounts uint256[]
swapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin: uint256, path: address[], to: address, deadline: uint256) payable

Parameters

Name Type Description
amountOutMin uint256
path address[]
to address
deadline uint256
swapExactTokensForETH(amountIn: uint256, amountOutMin: uint256, path: address[], to: address, deadline: uint256) nonpayable

Parameters

Name Type Description
amountIn uint256
amountOutMin uint256
path address[]
to address
deadline uint256

Returns

Name Type Description
amounts uint256[]
swapExactTokensForETHSupportingFeeOnTransferTokens(amountIn: uint256, amountOutMin: uint256, path: address[], to: address, deadline: uint256) nonpayable

Parameters

Name Type Description
amountIn uint256
amountOutMin uint256
path address[]
to address
deadline uint256
swapExactTokensForTokens(amountIn: uint256, amountOutMin: uint256, path: address[], to: address, deadline: uint256) nonpayable

Parameters

Name Type Description
amountIn uint256
amountOutMin uint256
path address[]
to address
deadline uint256

Returns

Name Type Description
amounts uint256[]
swapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn: uint256, amountOutMin: uint256, path: address[], to: address, deadline: uint256) nonpayable

Parameters

Name Type Description
amountIn uint256
amountOutMin uint256
path address[]
to address
deadline uint256
swapTokensForExactETH(amountOut: uint256, amountInMax: uint256, path: address[], to: address, deadline: uint256) nonpayable

Parameters

Name Type Description
amountOut uint256
amountInMax uint256
path address[]
to address
deadline uint256

Returns

Name Type Description
amounts uint256[]
swapTokensForExactTokens(amountOut: uint256, amountInMax: uint256, path: address[], to: address, deadline: uint256) nonpayable

Parameters

Name Type Description
amountOut uint256
amountInMax uint256
path address[]
to address
deadline uint256

Returns

Name Type Description
amounts uint256[]