SwapQuoterV2

Verified contract

Active on Ethereum with 3 txns
Deployed by via 0x1baa9b1c at 18142679
Slot
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

No balances found for "SwapQuoterV2"

0x4ea1e61091de80f57d0de5378a8cbb10eef68f4271279b3061d65259f4e57b54
0x1615999200ba59740347c31b84c55fc9163514b11d86dfaff033313f2aadaac6
0x916db6507d50e55d9f73323fd3af89458118b12bc0fef24f381a0e4c9f0a835f

Functions
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 tokenInaddress tokenOutview returns (bool)
calculateAddLiquidity(address pooluint256[] amountsview returns (uint256 amountOut)
calculateRemoveLiquidity(address pooluint256 amountview returns (uint256[] amountsOut)
calculateSwap(address pooluint8 tokenIndexFromuint8 tokenIndexTouint256 dxview returns (uint256 amountOut)
calculateWithdrawOneToken(address pooluint256 tokenAmountuint8 tokenIndexview returns (uint256 amountOut)
findConnectedTokens(struct LimitedToken[] bridgeTokensInaddress tokenOutview returns (uint256 amountFoundbool[] isConnected)
getAmountOut(struct LimitedToken tokenInaddress tokenOutuint256 amountInview returns (struct SwapQuery query)
poolInfo(address poolview returns (uint256 numTokensaddress lpToken)
poolTokens(address poolview returns (struct PoolToken[] tokens)
State-modifying
addPools(struct SwapQuoterV2BridgePool[] pools
removePools(struct SwapQuoterV2BridgePool[] pools
renounceOwnership(
setSynapseRouter(address synapseRouter_
transferOwnership(address newOwner
Events
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PoolAdded(address bridgeTokenuint8 poolTypeaddress pool
PoolRemoved(address bridgeTokenuint8 poolTypeaddress pool
SynapseRouterUpdated(address synapseRouter
Constructor
constructor(address synapseRouter_address defaultPoolCalc_address weth_address owner_
Fallback and receive

This contract contains no fallback and receive objects.

Errors
SwapQuoterV2__DuplicatedPool(address pool
SwapQuoterV2__UnknownPool(address pool