SynapseRouter

Verified contract

Active on Base with 32,500 txns
Deployed by via 0x9201ef52 at 2062105
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
Native
Value $0.02
ERC-20
Value $1
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0x2cabd28345d2cf579794c5de9e30d91927183e68fc289a1311e25a578623083c
0x05d0870c1726caaf8fce609906a38f45e156d76f2ce409e7af2aa148d34fe16d
0x666fe69767672a4c2b3404390da2412c9e3aab81c88969f21d6b92bfe376c92e
0x2d07a68caaf96f06244c257f1806b65ad8f9f817d1a96946d706c65b462e423b
0x88d738645df81bdcc7765101b135b1dc3fbd4f0ba8b82f1dba0bf9253ec2f45e
0x43004d169e1d268701ab1c8c75d9f6ac16337fbef66672e6fc85e4922b44380a
0x9105ea30114f678e8a7e9708ebe2168a9caf6a1d5a7d07429c3af0c5be83d21f
0x424cde74934a1202a64a2827c1ee0dbb73bc2962a2dad33badfb4ec23bdeb803
0x4312657c91dc347b5f852508a85f8d71b6d2793f5c9bfe457c7c26d1158f198f
0x8cd623dfc22b362960b60da232c12aefc6fdedb701467a615e0aaafea025d090

Functions
Getter at block 22730692
 
allPools(view returns (struct Pool[] pools)
bridgeTokens(view returns (address[] tokens)
[0x432036208d2717394d2614d6697c46DF3Ed69540, 0xb554A55358fF0382Fb21F0a478C3546d1106Be8c, 0x6B4712AE9797C199edd44F897cA09BC57628a1CF, 0x96419929d7949D6A801A6909c145C8EEf6A40431]
bridgeTokensAmount(view returns (uint256 amount)
4
owner(view returns (address)
0x0fea3e5840334fc758a3decf14546bfdfbef5cd3
poolsAmount(view returns (uint256 amount)
2
swapQuoter(view returns (address)
0x9fbff54b967654b0c76b174d2b95614060dd6b07
synapseBridge(view returns (address)
0xf07d1c752fab503e47fef309bf14fbdd3e867089
Read-only
calculateAddLiquidity(address pooluint256[] amountsview returns (uint256)
calculateBridgeFee(address tokenuint256 amountview returns (uint256 feeAmount)
calculateRemoveLiquidity(address pooluint256 amountview returns (uint256[] amountsOut)
calculateSwap(address pooluint8 tokenIndexFromuint8 tokenIndexTouint256 dxview returns (uint256 amountOut)
calculateWithdrawOneToken(address pooluint256 tokenAmountuint8 tokenIndexview returns (uint256 amountOut)
config(addressview returns (uint8 tokenTypeaddress bridgeToken)
fee(addressview returns (uint40 bridgeFeeuint104 minFeeuint112 maxFee)
getAmountOut(address tokenInaddress tokenOutuint256 amountInview returns (struct SwapQuery)
getConnectedBridgeTokens(address tokenOutview returns (struct BridgeToken[] tokens)
getDestinationAmountOut(struct DestRequest[] requestsaddress tokenOutview returns (struct SwapQuery[] destQueries)
getOriginAmountOut(address tokenInstring[] tokenSymbolsuint256 amountInview returns (struct SwapQuery[] originQueries)
multicallView(bytes[] dataview returns (struct MulticallViewResult[] callResults)
poolInfo(address poolview returns (uint256address)
poolTokens(address poolview returns (struct PoolToken[] tokens)
symbolToToken(stringview returns (address)
tokenToSymbol(addressview returns (string)
State-modifying
adapterSwap(address toaddress tokenInuint256 amountInaddress tokenOutbytes rawParamspayable returns (uint256 amountOut)
addToken(string symboladdress tokenuint8 tokenTypeaddress bridgeTokenuint256 bridgeFeeuint256 minFeeuint256 maxFeereturns (bool wasAdded)
addTokens(struct LocalBridgeConfigBridgeTokenConfig[] tokens
bridge(address touint256 chainIdaddress tokenuint256 amountstruct SwapQuery originQuerystruct SwapQuery destQuerypayable 
removeToken(address tokenreturns (bool wasRemoved)
removeTokens(address[] tokens
renounceOwnership(
setAllowance(address tokenaddress spenderuint256 amount
setSwapQuoter(address _swapQuoter
setTokenConfig(address tokenuint8 tokenTypeaddress bridgeToken
setTokenFee(address tokenuint256 bridgeFeeuint256 minFeeuint256 maxFee
swap(address toaddress tokenuint256 amountstruct SwapQuery querypayable returns (uint256 amountOut)
transferOwnership(address newOwner
Events
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Constructor
constructor(address _synapseBridgeaddress owner_
Fallback and receive
receive(
Errors

This contract contains no error objects.