SwapQuoterV2
Verified contract
Active on
Ethereum with 3 txns
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) |
---|---|---|---|---|---|---|---|
| 18564899 | a year ago | | | 0 | 0.0015755327 | |
| 18413745 | a year ago | | | 0 | 0.0043812988 | |
| 18142821 | a year ago | | | 0 | 0.0026701165 |
ABI
ABI objects
Getter at block 21275634 allPools() view returns (struct Pool[] pools)
defaultPoolCalc() view returns (address)
0x0000000000f54b784e70e1cf1f99fb53b08d6fea
getBridgePools() view returns (struct SwapQuoterV2BridgePool[] bridgePools)
[(0x1b84765de8b7566e4ceaf4d0fd3c5af52d3dde4f, 0, 0x1116898dda4015ed8ddefb84b6e8bc24528af2d8), (0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 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)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
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)