SynapseRouter

Verified contract

Active on Base with 32,350 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.01
ERC-20
Value $1
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0x5330c016686c646fe790eab244d59c2e3a5a0679d77fd6680fe6682920398b82
0x7f5e2ebf388ae8906d245638560861e18ff05490d1d7c7cbf0755dc07f003abb
0xa781fa7abbb2e90443c63fb5e1d9484ac0b5ded6c441763e2f37f21b4cb46cfa
0xa36c86efb385308512bbf9f04319494aa8a62d10ac5396eea3997e92e07be401
0x2882c8b892c167b713c5da02eb5a367e056669ae73ecd0e3a6c0f1b6ac5b9d0f
0x6da5f24d822c6d8666815a446ebb95817e1bd102f955e7252899c56d608d5ab3
0xc85b543d58048e5d3d006d138cf4a01fc5c8dd14c6f5f927c04f41f8d7306151
0x14b9af4378e42db64a00743df6db825cf90d546b345881f3bf31b55e23c333b9
0xb9b56217b814b6c273ff234968f291542ac3e587a5eb9ed4b77fb44625b3f22b
0x7c82be31e4aaadf0f10e40b5eda756fc2987eb104ad81881bd636b3de1c55439

Functions
Getter at block 21736391
 
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.