AnyswapV3Router

Verified contract

Active on Ethereum with 59,570 txns
Deployed by via 0x50a8c715 at 13644533
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $4,927.32
ERC-20
Value $815.13
ERC-20
Value $43.27
ERC-20
--
0x4f02fe909e15566981e4d9a85967b929dc69c12dc6d22a461ce2ad9c13d1ee3b
0x79a500ac3d157102230547fffd834dcb2f471b72c44f627decd2533ff8cbac88
0x035b50281de5c7ae750ff855b4df580090a684afb339593046b878852b93ac99
0x91e295a7990f2b2b5b1de1b1f8ccbe0e2e3f0adfa8ebf1d448e396976018d169
0xb314ba6e187ff686d5000cb41f13c8e5ea5014d75212ee06d1ae6873112e8d41
0x7c022896f8049eaa7bd5941ff8d7b2e166bbc9392d9a6cb512cb36b5a2af4b43
0x9068c88f43e96e2191e7ea6aa6c2305c8430b0b63675827f8f7174605458ebf8
0x80e6436fbc20e981936d7fcfd19b94b6f0679f208bbdf2b0144913f15878f6fd
0x0b886a935f106c324e0809be8dbe69404c05ad70e32d20466d308fa49a126070
0x998c44beaf97f1988bde546fef342e63c8fec32d708b4032f1facdfdba7c74df

Functions
Getter at block 21168151
cID(view returns (uint256 id)
1
factory(view returns (address)
0xc0aee478e3658e2610c5f7a4a2e1777ce9e4f2ac
mpc(view returns (address)
0xf39fee2fdfe7db022591f4a82e3537fa0b55fb9c
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
anySwapOutNative(address tokenaddress touint256 toChainIDpayable 
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)
depositNative(address tokenaddress topayable returns (uint256)
withdrawNative(address tokenuint256 amountaddress toreturns (uint256)
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.