Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
-
variable spans 1 additional slot
-
variable spans 1 additional slot
Balances ($0.00)
No balances found for "SwapQuoterV2"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 5740568 | a year ago | | | 0 | 1.8826200e-7 |
ABI
ABI objects
Getter at block 22750379 allPools() view returns (struct Pool[] pools)
defaultPoolCalc() view returns (address)
0x0000000000cc5af216a3e1614091a20e11bbfd32
getBridgePools() view returns (struct SwapQuoterV2BridgePool[] bridgePools)
[(0xb554a55358ff0382fb21f0a478c3546d1106be8c, 0, 0x6223bd82010e2fb69f329933de20897e7a4c225f), (0x833589fcd6edb6e08f4c7c32d4f71b54bda02913, 1, 0xc9b89acfb36c9f7d8d2befe38ac3fb766204cbd9)]
getOriginDefaultPools() view returns (address[] originDefaultPools)
[]
getOriginLinkedPools() view returns (address[] originLinkedPools)
[]
owner() view returns (address)
0x0fea3e5840334fc758a3decf14546bfdfbef5cd3
poolsAmount() view returns (uint256 amtPools)
2
synapseRouter() view returns (address)
0x7e7a0e201fd38d3adaa9523da6c109a07118c96a
weth() view returns (address)
0x4200000000000000000000000000000000000006
Read-only
areConnectedTokens(struct LimitedToken tokenIn, address tokenOut) view returns (bool)
calculateAddLiquidity(address pool, uint256[] amounts) view returns (uint256 amountOut)
calculateRemoveLiquidity(address pool, uint256 amount) view returns (uint256[] amountsOut)
calculateSwap(address pool, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) view returns (uint256 amountOut)
calculateWithdrawOneToken(address pool, uint256 tokenAmount, uint8 tokenIndex) view returns (uint256 amountOut)
findConnectedTokens(struct LimitedToken[] bridgeTokensIn, address tokenOut) view returns (uint256 amountFound, bool[] isConnected)
getAmountOut(struct LimitedToken tokenIn, address tokenOut, uint256 amountIn) view returns (struct SwapQuery query)
poolInfo(address pool) view returns (uint256 numTokens, address lpToken)
poolTokens(address pool) view returns (struct PoolToken[] tokens)
State-modifying
Events addPools(struct SwapQuoterV2BridgePool[] pools)
removePools(struct SwapQuoterV2BridgePool[] pools)
renounceOwnership()
setSynapseRouter(address synapseRouter_)
transferOwnership(address newOwner)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
PoolAdded(address bridgeToken, uint8 poolType, address pool)
PoolRemoved(address bridgeToken, uint8 poolType, address pool)
SynapseRouterUpdated(address synapseRouter)
constructor(address synapseRouter_, address defaultPoolCalc_, address weth_, address owner_)
This contract contains no fallback and receive objects.
SwapQuoterV2__DuplicatedPool(address pool)
SwapQuoterV2__UnknownPool(address pool)