SynapseRouter

Verified contract

Active on Ethereum with 51,189 txns
Deployed by via 0x9e9cef21 at 16669241
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
ERC-20
--
0xddf5f33b03902769c0733f3a4f838b0a39b5f3abc8cf6c28a2994372f6b4ee44
0xddd3412c74a503178b1b53f63ef1e600cd247a6afe11793ba2725111c3599e56
0x5e221a80ac6cd944402a556b48fc7842dbf7443abc762a00a5d224f777826e99
0xd7142d7563cd9c62c47cc366af33cbf719762a9e3bf99a086daff2fa7fab2e34
0x0ebecd8f5ffc0cd0cba1a353cb27e03ead152b536ee30e3ca12fb6d3850e8412
0xda95e01276d026da3c955feaa6c9dbe0a6b0893680392fc36c7ee74a32576e60
0x04f5bfa0ef397361144dc27399d55b9d1fa8747f289ce3d25a42918073161d7b
0x9f6480a12a3834ef9698bb081025b7c2f399ab18f8c67815077b456abf1dcd9a
0x0046ced4fb2e38b03b90584c5023f1da2541ef16a81d17e05b31d8c018841ebd
0x840b151320ed8a0d424b3ab9a617f69cf5e8b440bf87298627813e9b5af16d14

Functions
Getter at block 21261582
 
allPools(view returns (struct Pool[] pools)
 
bridgeTokens(view returns (address[] tokens)
bridgeTokensAmount(view returns (uint256 amount)
24
owner(view returns (address)
0x0fea3e5840334fc758a3decf14546bfdfbef5cd3
poolsAmount(view returns (uint256 amount)
2
swapQuoter(view returns (address)
0x5682dc851c33adb48f6958a963a5d3aa31f6f184
synapseBridge(view returns (address)
0x2796317b0ff8538f253012862c06787adfb8ceb6
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.