Transaction Hash:
Block:
22701930 at Jun-14-2025 09:35:11 AM +UTC
Transaction Fee:
0.000260773960172832 ETH
$1.01
Gas Used:
176,823 Gas / 1.474773984 Gwei
Emitted Events:
335 |
Uni.Transfer( from=[Sender] 0x7e1d9268869b8cff2b66d08874b2dc6cd0c21898, to=Spender, amount=583160857720093842 )
|
336 |
Uni.Transfer( from=Spender, to=CroDefiSwapPair, amount=583160857720093842 )
|
337 |
WETH9.Transfer( src=CroDefiSwapPair, dst=AggregationRouterV5, wad=1684139833635270 )
|
338 |
CroDefiSwapPair.Sync( reserve0=679743502423965739870, reserve1=1967283464944232519 )
|
339 |
CroDefiSwapPair.Swap( sender=AggregationRouterV5, amount0In=583160857720093842, amount1In=0, amount0Out=0, amount1Out=1684139833635270, to=AggregationRouterV5 )
|
340 |
WETH9.Withdrawal( src=AggregationRouterV5, wad=1684139833635270 )
|
341 |
MetaSwap.Swap( 0xbeee1e6e7fe307ddcf84b0a16137a4430ad5e2480fc4f4a8e250ab56ccd7630d, 0xf35f348d53012d52a5d39f9390d246956ac932d5778d2bb49e359dba4fa0896d, 0x0000000000000000000000007e1d9268869b8cff2b66d08874b2dc6cd0c21898 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x1f9840a8...C4201F984 | |||||
0x4838B106...B0BAD5f97
Miner
| (Titan Builder) | 12.51558027248685295 Eth | 12.515757095487029773 Eth | 0.000176823000176823 | |
0x7E1D9268...cd0c21898 |
0.000393042998220993 Eth
Nonce: 10
|
0.001303080233039195 Eth
Nonce: 11
| 0.000910037234818202 | ||
0xC02aaA39...83C756Cc2 | 2,639,033.207746653048166049 Eth | 2,639,033.206062513214530779 Eth | 0.00168413983363527 | ||
0xd360131B...E01dC8cB5 | |||||
0xe3478b0B...948Be1964 | (MetaMask: Gas Station Swap) | 502.470197172241515162 Eth | 502.470710500880159398 Eth | 0.000513328638644236 |
Execution Trace
MetaSwap.swap( aggregatorId=oneInchV5FeeDynamic, tokenFrom=0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984, amount=583160857720093842, data=0x0000000000000000000000001F9840A85D5AF5BF1D1762F925BDADDC4201F98400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000817CDB5DB517C920000000000000000000000000000000000000000000000000004138CB5AB410D00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000001D2DEA328D00C000000000000000000000000E3478B0BB1A5084567C319096437924948BE1964000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000C80502B1C50000000000000000000000001F9840A85D5AF5BF1D1762F925BDADDC4201F9840000000000000000000000000000000000000000000000000817CDB5DB517C920000000000000000000000000000000000000000000000000005DD14F967BB040000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000140000000000000003B6D0340D360131B77EAD72F1F23FB185B4896FE01DC8CB57DCBEA7C000000000000000000000000000000000000000000000000 )
-
Uni.transferFrom( src=0x7E1D9268869b8cfF2b66D08874b2Dc6cd0c21898, dst=0x74de5d4FCbf63E00296fd95d33236B9794016631, rawAmount=583160857720093842 ) => ( True )
Spender.swap( adapter=0x7CDf68CE9A05413Cbb76cb7F80EAF415A826E313, data=0x92F5F0370000000000000000000000007E1D9268869B8CFF2B66D08874B2DC6CD0C218980000000000000000000000001F9840A85D5AF5BF1D1762F925BDADDC4201F98400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000817CDB5DB517C920000000000000000000000000000000000000000000000000004138CB5AB410D00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000001D2DEA328D00C000000000000000000000000E3478B0BB1A5084567C319096437924948BE1964000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000C80502B1C50000000000000000000000001F9840A85D5AF5BF1D1762F925BDADDC4201F9840000000000000000000000000000000000000000000000000817CDB5DB517C920000000000000000000000000000000000000000000000000005DD14F967BB040000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000140000000000000003B6D0340D360131B77EAD72F1F23FB185B4896FE01DC8CB57DCBEA7C000000000000000000000000000000000000000000000000 )
0x7cdf68ce9a05413cbb76cb7f80eaf415a826e313.92f5f037( )
-
Uni.allowance( account=0x74de5d4FCbf63E00296fd95d33236B9794016631, spender=0x1111111254EEB25477B68fb85Ed929f73A960582 ) => ( 79228162514264337593543950335 )
AggregationRouterV5.unoswap( srcToken=0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984, amount=583160857720093842, minReturn=1650457036962564, pools=[28948022309329048857349863385797626761429913127787808862287742966260312083637] ) => ( returnAmount=1684139833635270 )
-
Uni.transferFrom( src=0x74de5d4FCbf63E00296fd95d33236B9794016631, dst=0xd360131B77EAD72F1f23fB185b4896fE01dC8cB5, rawAmount=583160857720093842 ) => ( True )
-
CroDefiSwapPair.STATICCALL( )
CroDefiSwapPair.swap( amount0Out=0, amount1Out=1684139833635270, to=0x1111111254EEB25477B68fb85Ed929f73A960582, data=0x )
-
WETH9.transfer( dst=0x1111111254EEB25477B68fb85Ed929f73A960582, wad=1684139833635270 ) => ( True )
-
Uni.balanceOf( account=0xd360131B77EAD72F1f23fB185b4896fE01dC8cB5 ) => ( 679743502423965739870 )
-
WETH9.balanceOf( 0xd360131B77EAD72F1f23fB185b4896fE01dC8cB5 ) => ( 1967283464944232519 )
-
CroDefiSwapFactory.STATICCALL( )
-
WETH9.withdraw( wad=1684139833635270 )
- ETH 0.00168413983363527
AggregationRouterV5.CALL( )
- ETH 0.00168413983363527
- ETH 0.00168413983363527
Spender.CALL( )
-
- ETH 0.000513328638644236
MetaMask: Gas Station Swap.CALL( )
-
Uni.balanceOf( account=0x74de5d4FCbf63E00296fd95d33236B9794016631 ) => ( 0 )
- ETH 0.001170811194991034
0x7e1d9268869b8cff2b66d08874b2dc6cd0c21898.CALL( )
-
swap[MetaSwap (ln:1598)]
_swap[MetaSwap (ln:1604)]
safeTransferFrom[MetaSwap (ln:1637)]
swap[MetaSwap (ln:1639)]
encode[MetaSwap (ln:1643)]
Swap[MetaSwap (ln:1648)]
File 1 of 7: MetaSwap
File 2 of 7: Spender
File 3 of 7: Uni
File 4 of 7: CroDefiSwapPair
File 5 of 7: AggregationRouterV5
File 6 of 7: WETH9
File 7 of 7: CroDefiSwapFactory
12345678910111213141516pragma solidity ^0.6.0;import "@openzeppelin/contracts/token/ERC20/IERC20.sol";import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";import "@openzeppelin/contracts/utils/Address.sol";import "../Constants.sol";contract CommonAdapter {using SafeERC20 for IERC20;using Address for address;using Address for address payable;/*** @dev Performs a swap* @param recipient The original msg.sender performing the swap* @param aggregator Address of the aggregator's contract* @param spender Address to which tokens will be approved* @param method Selector of the function to be called in the aggregator's contract* @param tokenFrom Token to be swapped
File 2 of 7: Spender
1{"Constants.84ef19f8.sol":{"content":"// SPDX-License-Identifier: MIT\r\n\r\npragma solidity ^0.6.0;\r\n\r\nlibrary Constants {\r\n address internalconstant ETH = 0x0000000000000000000000000000000000000000;\r\n}\r\n"},"Spender.3372a096.sol":{"content":"// SPDX-License-Identifier:MIT\r\n\r\npragma solidity ^0.6.0;\r\n\r\nimport \"./Constants.84ef19f8.sol\";\r\n\r\ncontract Spender {\r\n address public immutable metaswap;\r\n\r\n constructor() public {\r\n metaswap = msg.sender;\r\n }\r\n\r\n /// @dev Receives ether from swaps\r\n fallback()external payable {}\r\n\r\n function swap(address adapter, bytes calldata data) external payable {\r\n require(msg.sender == metaswap,\"FORBIDDEN\");\r\n require(adapter != address(0), \"ADAPTER_NOT_PROVIDED\");\r\n _delegate(adapter, data,\"ADAPTER_DELEGATECALL_FAILED\");\r\n }\r\n\r\n /**\r\n * @dev Performs a delegatecall and bubbles up the errors, adapted from\r\n *https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol\r\n * @param target Address of the contract todelegatecall\r\n * @param data Data passed in the delegatecall\r\n * @param errorMessage Fallback revert reason\r\n */\r\n function_delegate(\r\n address target,\r\n bytes memory data,\r\n string memory errorMessage\r\n ) private returns (bytes memory){\r\n // solhint-disable-next-line avoid-low-level-calls\r\n (bool success, bytes memory returndata) = target.delegatecall(data);\r\nif (success) {\r\n return returndata;\r\n } else {\r\n // Look for revert reason and bubble it up ifpresent\r\n if (returndata.length \u003e 0) {\r\n // The easiest way to bubble the revert reason is using memory viaassembly\r\n\r\n // solhint-disable-next-line no-inline-assembly\r\n assembly {\r\n letreturndata_size := mload(returndata)\r\n revert(add(32, returndata), returndata_size)\r\n }\r\n } else{\r\n revert(errorMessage);\r\n }\r\n }\r\n }\r\n}\r\n"}}
File 3 of 7: Uni
12345678910111213141516/***Submitted for verification at Etherscan.io on 2020-09-15*/pragma solidity ^0.5.16;pragma experimental ABIEncoderV2;// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol// Subject to the MIT license./*** @dev Wrappers over Solidity's arithmetic operations with added overflow* checks.** Arithmetic operations in Solidity wrap on overflow. This can easily result* in bugs, because programmers usually assume that an overflow raises an
File 4 of 7: CroDefiSwapPair
12345678910111213141516// File: contracts/interfaces/ICroDefiSwapPair.solpragma solidity >=0.5.0;interface ICroDefiSwapPair {event Approval(address indexed owner, address indexed spender, uint value);event Transfer(address indexed from, address indexed to, uint value);function name() external pure returns (string memory);function symbol() external pure returns (string memory);function decimals() external pure returns (uint8);function totalSupply() external view returns (uint);function balanceOf(address owner) external view returns (uint);function allowance(address owner, address spender) external view returns (uint);function approve(address spender, uint value) external returns (bool);
File 5 of 7: AggregationRouterV5
12345678910111213141516/*,▄▓▓██▌ ,╓▄▄▓▓▓▓▓▓▓▓▄▄▄,,,▓██▓███▓▄▓███▓╬╬╬╬╬╬╬╬╬╬╬╬╬▓███▓▄,▄█ ▓██╬╣███████╬▓▀╬╬▓▓▓████████████▓█████▄,▓██▌ ▓██╬╣██████╬▓▌ ██████████████████████▌╙╙▀ⁿ▐████████╬▓████▓▓█╨ ▄ ╟█████████▓▓╬╬╬╬╬▓▓█████▓▄└▀▓▓▄╓ ╟█▓╣█████▓██████▀ ╓█▌ ███████▓▓▓▓▓╬╬╬╬╬╬╬╬╬╬╬╬▓██▓▄└▀████▓▄╥ ▐██╬╬██████████╙ Æ▀─ ▓███▀╚╠╬╩▀▀███████▓▓╬╬╬╬╬╬╬╬╬██▄└▀██▓▀▀█████▓╬▓██████▀ ▄█████▒╠" └╙▓██████▓╬╬╬╬╬╬╬╬██▄└▀██▄,└╙▀▀████▌└╙ ^"▀╙╙╙"╙██ @▄ ╙▀███████╬╬╬╬╬╬╬██µ└▀██▓▄, ██▌ ╒ ╙█▓ ]▓█▓╔ ▀███████▓╬╬╬╬╬▓█▌▀█████ ▓ ╟█▌ ]╠██▓░▒╓ ▀████████╬╬╬╬╣█▌▐████ ╓█▀█▌ ,██▌ ╚Å███▓▒▒╠╓ ╙█████████╬╬╬╣█▌└████ ▓█░░▓█ ▀▀▀ φ▒╫████▒▒▒▒╠╓ █████████▓╬╬▓█µ╘███µ ▌▄█▓▄▓▀` ,▀ ,╔╠░▓██████▌╠▒▒▒φ ██████████╬╬██▐████µ╙▓▀` ,▀╙,╔╔φφφ╠░▄▓███████▌░▓╙▒▒▒╠ └██╬███████╬▓█⌐
File 6 of 7: WETH9
12345678910111213141516// Copyright (C) 2015, 2016, 2017 Dapphub// This program is free software: you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation, either version 3 of the License, or// (at your option) any later version.// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.// You should have received a copy of the GNU General Public License// along with this program. If not, see <http://www.gnu.org/licenses/>.pragma solidity ^0.4.18;
File 7 of 7: CroDefiSwapFactory
12345678910111213141516// File: contracts/interfaces/ICroDefiSwapFactory.solpragma solidity >=0.5.0;interface ICroDefiSwapFactory {event PairCreated(address indexed token0, address indexed token1, address pair, uint);event FeeSetterUpdated(address latestFeeSetter, address previousFeeSetter);event FeeToUpdated(address latestFeeTo, address previousFeeTo);event FeeToBasisPointUpdated(uint latestFeeToBasisPoint, uint previousFeeToBasisPoint);event TotalFeeBasisPointUpdated(uint latestTotalFeeBasisPoint, uint previousTotalFeeBasisPoint);function feeTo() external view returns (address);function feeToBasisPoint() external view returns (uint);// technically must be bigger than or equal to feeToBasisPointfunction totalFeeBasisPoint() external view returns (uint);