SwapQuoterV2

Verified contract

Active on Base with 1 txns
Deployed by via 0x9602a70a at 5740411
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"

0xeae6146fa585ea05e12e575f6e35363ab0191410b61947399f5f580f8bcfaa08

Functions
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 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