SynapseRouter
Verified contract
Active on
Base with 1,536 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
0x06fe…2a5c
Balances ($0.00)
No balances found for "SynapseRouter"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 2186847 | a year ago | | | 4.7 | 0.00029708222 | |
| 2157994 | a year ago | | | 0 | 0.00028877155 | |
| 2137265 | a year ago | | | 0.8 | 0.00025592606 | |
| 2136922 | a year ago | | | 0 | 0.00028877155 | |
| 2136887 | a year ago | | | 0 | 0.000054208165 | |
| 2136785 | a year ago | | | 0 | 0.00037801400 | |
| 2136782 | a year ago | | | 0 | 0.00037801400 | |
| 2136779 | a year ago | | | 0 | 0.000054208165 | |
| 2136779 | a year ago | | | 0 | 0.00037801400 | |
| 2136776 | a year ago | | | 0 | 0.00037801400 |
ABI
ABI objects
Getter at block 21873424
allPools() view returns (struct Pool[] pools)
[(0x6223bd82010e2fb69f329933de20897e7a4c225f, 0xc35b09c8fdefc90ec580b327d32deaada4f581da, [(false, 0xb554a55358ff0382fb21f0a478c3546d1106be8c), (true, 0x4200000000000000000000000000000000000006)])]
bridgeTokens() view returns (address[] tokens)
[0x432036208d2717394d2614d6697c46DF3Ed69540, 0xb554A55358fF0382Fb21F0a478C3546d1106Be8c]
bridgeTokensAmount() view returns (uint256 amount)
2
owner() view returns (address)
0x0af91fa049a7e1894f480bfe5bba20142c6c29a9
poolsAmount() view returns (uint256 amount)
1
swapQuoter() view returns (address)
0x06fea8513ff03a0d3f61324da709d4cf06f42a5c
synapseBridge() view returns (address)
0xf07d1c752fab503e47fef309bf14fbdd3e867089
Read-only
calculateAddLiquidity(address pool, uint256[] amounts) view returns (uint256)
calculateBridgeFee(address token, uint256 amount) view returns (uint256 feeAmount)
calculateRemoveLiquidity(address pool, uint256 amount) view returns (uint256[] amountsOut)
calculateSwap(address pool, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) view returns (uint256 amountOut)
calculateWithdrawOneToken(address pool, uint256 tokenAmount, uint8 tokenIndex) view returns (uint256 amountOut)
config(address) view returns (uint8 tokenType, address bridgeToken)
fee(address) view returns (uint40 bridgeFee, uint104 minFee, uint112 maxFee)
getAmountOut(address tokenIn, address tokenOut, uint256 amountIn) view returns (struct SwapQuery)
getConnectedBridgeTokens(address tokenOut) view returns (struct BridgeToken[] tokens)
getDestinationAmountOut(struct DestRequest[] requests, address tokenOut) view returns (struct SwapQuery[] destQueries)
getOriginAmountOut(address tokenIn, string[] tokenSymbols, uint256 amountIn) view returns (struct SwapQuery[] originQueries)
multicallView(bytes[] data) view returns (struct MulticallViewResult[] callResults)
poolInfo(address pool) view returns (uint256, address)
poolTokens(address pool) view returns (struct PoolToken[] tokens)
symbolToToken(string) view returns (address)
tokenToSymbol(address) view returns (string)
State-modifying
Events adapterSwap(address to, address tokenIn, uint256 amountIn, address tokenOut, bytes rawParams) payable returns (uint256 amountOut)
addToken(string symbol, address token, uint8 tokenType, address bridgeToken, uint256 bridgeFee, uint256 minFee, uint256 maxFee) returns (bool wasAdded)
addTokens(struct LocalBridgeConfigBridgeTokenConfig[] tokens)
bridge(address to, uint256 chainId, address token, uint256 amount, struct SwapQuery originQuery, struct SwapQuery destQuery) payable
removeToken(address token) returns (bool wasRemoved)
removeTokens(address[] tokens)
renounceOwnership()
setAllowance(address token, address spender, uint256 amount)
setSwapQuoter(address _swapQuoter)
setTokenConfig(address token, uint8 tokenType, address bridgeToken)
setTokenFee(address token, uint256 bridgeFee, uint256 minFee, uint256 maxFee)
swap(address to, address token, uint256 amount, struct SwapQuery query) payable returns (uint256 amountOut)
transferOwnership(address newOwner)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
constructor(address _synapseBridge, address owner_)
receive()
This contract contains no error objects.