Artifacts
DISCLAIMER // NFA // DYOR
This analysis is based on observations of the contract behavior. We are not smart contract security experts. This document aims to explain what the contract appears to do based on the code. It should not be considered a comprehensive security audit or financial advice. Always verify critical information independently and consult with blockchain security professionals for important decisions.
⊙ generated by robots | curated by humans
| METADATA | |
|---|---|
| Contract Address | 0x658bF1A6608210FDE7310760f391AD4eC8006A5F (etherscan) |
| Network | Ethereum Mainnet |
| Analysis Date | 2026-02-28 |
Runtime Bytecode
The deployed contract bytecode fetched from the blockchain.
Source: Etherscan - Contract Code
Command:
Artifact (truncated — full bytecode ~48.7 KB):
0x6103606040526004361015610012575f80fd5b5f3560e01c806361d65dee14610347578063ac67a76e14610307
578063c0bb84b3146102c3578063e1fd10bc1461022f578063e453166e14610142578063e7798987146100be
5763ee9a5b9d14610067...
Creation Bytecode
The full bytecode used to deploy the contract, including constructor code and arguments.
Source: Etherscan - Creation TX
Command:
export ETH_RPC_URL=https://eth.llamarpc.com
cast tx 0xf851c65a81b38b4efa7fb169afff00f40d732511bd5538471ae34596649e1c60 input
Artifact (truncated — full creation bytecode ~48.7 KB):
0x608080604052615f1290816100128239f3fe6103606040526004361015610012575f80fd5b5f3560e01c80
6361d65dee14610347578063ac67a76e14610307578063c0bb84b3146102c3578063e1fd10bc1461022f...
Verified Source Code
Source code verified on Etherscan (Exact Match).
Source: Etherscan - Contract Source
The source file is a single 2,300-line Solidity file (src/zQuoter.sol) containing:
- The
zQuotercontract (lines 1–855) - File-level constants and interface definitions for all external contracts (lines 857–1129)
- Embedded Uniswap V4 math libraries:
V4TickBitmap,TickMath,BitMath,CustomRevert,SwapMath,FullMath,LiquidityMath,SqrtPriceMath,SafeCast,UnsafeMath,FixedPoint96(lines 1131–2300)
Full source code is available in the artifacts directory at artifacts/658bF1...006A5F/source.sol.
Additional Artifacts
Application Binary Interface (ABI)
Source: Extracted from Etherscan getsourcecode API response
Command:
curl "https://api.etherscan.io/v2/api?chainid=1&module=contract&action=getsourcecode&address=0x658bF1A6608210FDE7310760f391AD4eC8006A5F&apikey=<YOUR_API_KEY>"
Artifact: artifacts/658bF1...006A5F/abi.json
[
{
"inputs": [],
"stateMutability": "payable",
"type": "constructor"
},
{
"inputs": [
{"internalType": "address", "name": "to", "type": "address"},
{"internalType": "bool", "name": "exactOut", "type": "bool"},
{"internalType": "address", "name": "tokenIn", "type": "address"},
{"internalType": "address", "name": "tokenOut", "type": "address"},
{"internalType": "uint256", "name": "swapAmount", "type": "uint256"},
{"internalType": "uint256", "name": "slippageBps", "type": "uint256"},
{"internalType": "uint256", "name": "deadline", "type": "uint256"}
],
"name": "buildBestSwap",
"outputs": [
{"components": [{"internalType": "enum zQuoter.AMM", "name": "source"}, {"internalType": "uint256", "name": "feeBps"}, {"internalType": "uint256", "name": "amountIn"}, {"internalType": "uint256", "name": "amountOut"}], "internalType": "struct zQuoter.Quote", "name": "best", "type": "tuple"},
{"internalType": "bytes", "name": "callData", "type": "bytes"},
{"internalType": "uint256", "name": "amountLimit", "type": "uint256"},
{"internalType": "uint256", "name": "msgValue", "type": "uint256"}
],
"stateMutability": "view",
"type": "function"
}
]
(Truncated — full ABI in artifacts/658bF1...006A5F/abi.json)