AnyswapV4Router
Verified contract
Active on
Ethereum with 84,924 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "AnyswapV4Router"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 20337481 | 4 months ago | | | 0 | 0.00071261907 | |
| 19660963 | 7 months ago | | | 0 | 0.0018158081 | |
| 19622672 | 7 months ago | | | 0 | 0.00054841112 | |
| 19540914 | 8 months ago | | | 0 | 0.0013309969 | |
| 19064638 | 10 months ago | | | 0 | 0.0015561402 | |
| 19032265 | 10 months ago | | | 0 | 0.0012112322 | |
| 19008542 | 10 months ago | | | 0 | 0.0015094830 | |
| 18988148 | 10 months ago | | | 0 | 0.0012082109 | |
| 18981929 | 10 months ago | | | 0 | 0.0020817511 | |
| 18953967 | a year ago | | | 0 | 0.0025102232 |
ABI
ABI objects
Getter at block 21247302
cID() view returns (uint256 id)
1
factory() view returns (address)
0x0000000000000000000000000000000000000000
mpc() view returns (address)
0x647dc1366da28f8a64eb831fc8e9f05c90d1ea5a
wNATIVE() view returns (address)
0x0000000000000000000000000000000000000000
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.