AnyswapV4Router
Verified contract
Active on
Ethereum with 237,459 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($662.71)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
USDC | ERC-20 | 500 | $0.999414 |
$499.71 | |
BabyDoge | ERC-20 | 60B | $0.00 |
$120 | |
USDT | ERC-20 | 43 | $1.00 |
$43 | |
CANTO | ERC-20 | 80.005567M | -- | -- | |
ETHW | ERC-20 | 11.216752M | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 20730004 | 2 months ago | | | 0 | 0.00026444192 | |
| 19750075 | 6 months ago | | | 0 | 0.00031921200 | |
| 19432585 | 8 months ago | | | 0 | 0.0037394930 | |
| 19416613 | 8 months ago | | | 0 | 0.0039760452 | |
| 19018436 | 10 months ago | | | 0 | 0.0023550511 | |
| 19006303 | 10 months ago | | | 0 | 0.0023785131 | |
| 18938733 | 10 months ago | | | 0 | 0.0012946891 | |
| 18936604 | 10 months ago | | | 0 | 0.0020643833 | |
| 18882355 | 10 months ago | | | 0 | 0.0027014162 | |
| 18859173 | a year ago | | | 0 | 0.0013393151 |
ABI
ABI objects
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 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns (uint256 amountIn)
getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns (uint256 amountOut)
getAmountsIn(uint256 amountOut, address[] path) view returns (uint256[] amounts)
getAmountsOut(uint256 amountIn, address[] path) view returns (uint256[] amounts)
quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns (uint256 amountB)
State-modifying
Events anySwapFeeTo(address token, uint256 amount)
anySwapIn(bytes32 txs, address token, address to, uint256 amount, uint256 fromChainID)
anySwapIn(bytes32[] txs, address[] tokens, address[] to, uint256[] amounts, uint256[] fromChainIDs)
anySwapInAuto(bytes32 txs, address token, address to, uint256 amount, uint256 fromChainID)
anySwapInExactTokensForNative(bytes32 txs, uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline, uint256 fromChainID) returns (uint256[] amounts)
anySwapInExactTokensForTokens(bytes32 txs, uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline, uint256 fromChainID) returns (uint256[] amounts)
anySwapInUnderlying(bytes32 txs, address token, address to, uint256 amount, uint256 fromChainID)
anySwapOut(address token, address to, uint256 amount, uint256 toChainID)
anySwapOut(address[] tokens, address[] to, uint256[] amounts, uint256[] toChainIDs)
anySwapOutExactTokensForNative(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline, uint256 toChainID)
anySwapOutExactTokensForNativeUnderlying(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline, uint256 toChainID)
anySwapOutExactTokensForNativeUnderlyingWithPermit(address from, uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline, uint8 v, bytes32 r, bytes32 s, uint256 toChainID)
anySwapOutExactTokensForNativeUnderlyingWithTransferPermit(address from, uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline, uint8 v, bytes32 r, bytes32 s, uint256 toChainID)
anySwapOutExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline, uint256 toChainID)
anySwapOutExactTokensForTokensUnderlying(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline, uint256 toChainID)
anySwapOutExactTokensForTokensUnderlyingWithPermit(address from, uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline, uint8 v, bytes32 r, bytes32 s, uint256 toChainID)
anySwapOutExactTokensForTokensUnderlyingWithTransferPermit(address from, uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline, uint8 v, bytes32 r, bytes32 s, uint256 toChainID)
anySwapOutUnderlying(address token, address to, uint256 amount, uint256 toChainID)
anySwapOutUnderlyingWithPermit(address from, address token, address to, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s, uint256 toChainID)
anySwapOutUnderlyingWithTransferPermit(address from, address token, address to, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s, uint256 toChainID)
changeMPC(address newMPC) returns (bool)
changeVault(address token, address newVault) returns (bool)
LogAnySwapIn(bytes32 indexed txhash, address indexed token, address indexed to, uint256 amount, uint256 fromChainID, uint256 toChainID)
LogAnySwapOut(address indexed token, address indexed from, address indexed to, uint256 amount, uint256 fromChainID, uint256 toChainID)
LogAnySwapTradeTokensForNative(address[] path, address indexed from, address indexed to, uint256 amountIn, uint256 amountOutMin, uint256 fromChainID, uint256 toChainID)
LogAnySwapTradeTokensForTokens(address[] path, address indexed from, address indexed to, uint256 amountIn, uint256 amountOutMin, uint256 fromChainID, uint256 toChainID)
LogChangeMPC(address indexed oldMPC, address indexed newMPC, uint256 indexed effectiveTime, uint256 chainID)
LogChangeRouter(address indexed oldRouter, address indexed newRouter, uint256 chainID)
constructor(address _factory, address _wNATIVE, address _mpc)
receive()
This contract contains no error objects.