SynapseRouter
Verified contract
Active on
Ethereum with 51,189 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
0x5682…f184
Balances ($0.00)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
HQG | ERC-20 | 0.1 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 21261548 | 7 minutes ago | | | 0.0016 | 0.00017584555 | |
| 21260870 | 2 hours ago | | | 15 | 0.00073391050 | |
| 21260730 | 3 hours ago | | | 0.3 | 0.00079555422 | |
| 21260507 | 4 hours ago | | | 0 | 0.0022714804 | |
| 21260227 | 5 hours ago | | | 0 | 0.0023422721 | |
| 21259647 | 6 hours ago | | | 0 | 0.0023367317 | |
| 21259214 | 8 hours ago | | | 1 | 0.0010875172 | |
| 21258791 | 9 hours ago | | | 0 | 0.0010648840 | |
| 21258722 | 10 hours ago | | | 1 | 0.0010399127 | |
| 21258305 | 11 hours ago | | | 0 | 0.0036784688 |
ABI
ABI objects
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 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.