AnyswapV4Router

Verified contract

Active on Ethereum with 237,459 txns
Deployed by via 0xf1082839 at 12657964
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $499.71
ERC-20
Value $120
ERC-20
Value $43
ERC-20
--
ERC-20
--
0x8f58c7cce3d0e4e5840242d32e0a57964e9ef8000942a3d9c10e79341155cd73
0x3fbd682f7a7566fca5ad1db7b3cfb74868eacc6fc86d8b339b30016d6f4ea027
0x8cf8a4f76405657958bfecb7b82380873319cba81a9906d17a98eaec6a6d1e0c
0x87979b49e359fb79930fd8439c95a813b553e9784d0a37941dc249be199aa174
0x87ba9e4b21707bc317d256476674f78edb07280e3a03f8591916ddd6e83db4d3
0x518f71a0f7c80d93bf35e59896137a598ee08391a8a5800e6df713b33bba8005
0x7ebe4f9abd6e6be2095ab7cf7378b22fe58db422dc883e7ebf04b86562aa23f3
0x9a4b5eb8e6e45e07b5c150c484b0f06de73fbfeb66d5641fc5a2f428304ebf64
0xb4dc1a671bcab577b22d168376181e4034df2c1dab12210289ebcb517a7e385d
0xe4734e01290a92af383663b2ac88f3700d6670e2b9d71ebb1e1ffd7be10127d5

Functions
Getter at block 21159784
cID(view returns (uint256 id)
1
factory(view returns (address)
0xc0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac
mpc(view returns (address)
0x2a038e100f8b85df21e4d44121bdbfe0c288a869
wNATIVE(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
getAmountIn(uint256 amountOutuint256 reserveInuint256 reserveOutpure returns (uint256 amountIn)
getAmountOut(uint256 amountInuint256 reserveInuint256 reserveOutpure returns (uint256 amountOut)
getAmountsIn(uint256 amountOutaddress[] pathview returns (uint256[] amounts)
getAmountsOut(uint256 amountInaddress[] pathview returns (uint256[] amounts)
quote(uint256 amountAuint256 reserveAuint256 reserveBpure returns (uint256 amountB)
State-modifying
anySwapFeeTo(address tokenuint256 amount
anySwapIn(bytes32 txsaddress tokenaddress touint256 amountuint256 fromChainID
anySwapIn(bytes32[] txsaddress[] tokensaddress[] touint256[] amountsuint256[] fromChainIDs
anySwapInAuto(bytes32 txsaddress tokenaddress touint256 amountuint256 fromChainID
anySwapInExactTokensForNative(bytes32 txsuint256 amountInuint256 amountOutMinaddress[] pathaddress touint256 deadlineuint256 fromChainIDreturns (uint256[] amounts)
anySwapInExactTokensForTokens(bytes32 txsuint256 amountInuint256 amountOutMinaddress[] pathaddress touint256 deadlineuint256 fromChainIDreturns (uint256[] amounts)
anySwapInUnderlying(bytes32 txsaddress tokenaddress touint256 amountuint256 fromChainID
anySwapOut(address tokenaddress touint256 amountuint256 toChainID
anySwapOut(address[] tokensaddress[] touint256[] amountsuint256[] toChainIDs
anySwapOutExactTokensForNative(uint256 amountInuint256 amountOutMinaddress[] pathaddress touint256 deadlineuint256 toChainID
anySwapOutExactTokensForNativeUnderlying(uint256 amountInuint256 amountOutMinaddress[] pathaddress touint256 deadlineuint256 toChainID
anySwapOutExactTokensForNativeUnderlyingWithPermit(address fromuint256 amountInuint256 amountOutMinaddress[] pathaddress touint256 deadlineuint8 vbytes32 rbytes32 suint256 toChainID
anySwapOutExactTokensForNativeUnderlyingWithTransferPermit(address fromuint256 amountInuint256 amountOutMinaddress[] pathaddress touint256 deadlineuint8 vbytes32 rbytes32 suint256 toChainID
anySwapOutExactTokensForTokens(uint256 amountInuint256 amountOutMinaddress[] pathaddress touint256 deadlineuint256 toChainID
anySwapOutExactTokensForTokensUnderlying(uint256 amountInuint256 amountOutMinaddress[] pathaddress touint256 deadlineuint256 toChainID
anySwapOutExactTokensForTokensUnderlyingWithPermit(address fromuint256 amountInuint256 amountOutMinaddress[] pathaddress touint256 deadlineuint8 vbytes32 rbytes32 suint256 toChainID
anySwapOutExactTokensForTokensUnderlyingWithTransferPermit(address fromuint256 amountInuint256 amountOutMinaddress[] pathaddress touint256 deadlineuint8 vbytes32 rbytes32 suint256 toChainID
anySwapOutUnderlying(address tokenaddress touint256 amountuint256 toChainID
anySwapOutUnderlyingWithPermit(address fromaddress tokenaddress touint256 amountuint256 deadlineuint8 vbytes32 rbytes32 suint256 toChainID
anySwapOutUnderlyingWithTransferPermit(address fromaddress tokenaddress touint256 amountuint256 deadlineuint8 vbytes32 rbytes32 suint256 toChainID
changeMPC(address newMPCreturns (bool)
changeVault(address tokenaddress newVaultreturns (bool)
Events
LogAnySwapIn(bytes32 indexed txhashaddress indexed tokenaddress indexed touint256 amountuint256 fromChainIDuint256 toChainID
LogAnySwapOut(address indexed tokenaddress indexed fromaddress indexed touint256 amountuint256 fromChainIDuint256 toChainID
LogAnySwapTradeTokensForNative(address[] pathaddress indexed fromaddress indexed touint256 amountInuint256 amountOutMinuint256 fromChainIDuint256 toChainID
LogAnySwapTradeTokensForTokens(address[] pathaddress indexed fromaddress indexed touint256 amountInuint256 amountOutMinuint256 fromChainIDuint256 toChainID
LogChangeMPC(address indexed oldMPCaddress indexed newMPCuint256 indexed effectiveTimeuint256 chainID
LogChangeRouter(address indexed oldRouteraddress indexed newRouteruint256 chainID
Constructor
constructor(address _factoryaddress _wNATIVEaddress _mpc
Fallback and receive
receive(
Errors

This contract contains no error objects.