Transaction Hash:
Block:
22476334 at May-13-2025 07:20:35 PM +UTC
Transaction Fee:
0.001897549706451826 ETH
$5.39
Gas Used:
174,923 Gas / 10.847914262 Gwei
Emitted Events:
324 |
FiatTokenProxy.0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef( 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x00000000000000000000000000c5292650a8b9b3c864903a0516c98eac639982, 0x00000000000000000000000074de5d4fcbf63e00296fd95d33236b9794016631, 000000000000000000000000000000000000000000000000000000000646bcd4 )
|
325 |
FiatTokenProxy.0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef( 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x00000000000000000000000074de5d4fcbf63e00296fd95d33236b9794016631, 0x000000000000000000000000397ff1542f962076d0bfe58ea045ffa2d347aca0, 000000000000000000000000000000000000000000000000000000000646bcd4 )
|
326 |
WETH9.Transfer( src=UniswapV2Pair, dst=AggregationRouterV5, wad=39261438556137292 )
|
327 |
UniswapV2Pair.Sync( reserve0=1301935787028, reserve1=486856079957866504882 )
|
328 |
UniswapV2Pair.Swap( sender=AggregationRouterV5, amount0In=105299156, amount1In=0, amount0Out=0, amount1Out=39261438556137292, to=AggregationRouterV5 )
|
329 |
WETH9.Withdrawal( src=AggregationRouterV5, wad=39261438556137292 )
|
330 |
MetaSwap.Swap( 0xbeee1e6e7fe307ddcf84b0a16137a4430ad5e2480fc4f4a8e250ab56ccd7630d, 0xf35f348d53012d52a5d39f9390d246956ac932d5778d2bb49e359dba4fa0896d, 0x00000000000000000000000000c5292650a8b9b3c864903a0516c98eac639982 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x00C52926...eac639982 |
0.002790265792357588 Eth
Nonce: 1
|
0.03618421406623038 Eth
Nonce: 2
| 0.033393948273872792 | ||
0x397FF154...2d347ACa0 | |||||
0x4838B106...B0BAD5f97
Miner
| (Titan Builder) | 6.838318943289406621 Eth | 6.838493866289581544 Eth | 0.000174923000174923 | |
0xA0b86991...E3606eB48 | |||||
0xC02aaA39...83C756Cc2 | 2,747,061.913190109937190613 Eth | 2,747,061.873928671381053321 Eth | 0.039261438556137292 | ||
0xe3478b0B...948Be1964 | 376.756820437145993131 Eth | 376.760790377721805805 Eth | 0.003969940575812674 |
Execution Trace
MetaSwap.swap( aggregatorId=oneInchV5FeeDynamic, tokenFrom=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, amount=105299156, data=0x000000000000000000000000A0B86991C6218B36C1D19D4A2E9EB0CE3606EB480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000646BCD4000000000000000000000000000000000000000000000000007AE30A1B58C1000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000E1AA3D1CCFC42000000000000000000000000E3478B0BB1A5084567C319096437924948BE1964000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000C80502B1C5000000000000000000000000A0B86991C6218B36C1D19D4A2E9EB0CE3606EB48000000000000000000000000000000000000000000000000000000000646BCD40000000000000000000000000000000000000000000000000088B5777330FFE40000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000140000000000000003B6D0340397FF1542F962076D0BFE58EA045FFA2D347ACA07DCBEA7C000000000000000000000000000000000000000000000000 )
FiatTokenProxy.23b872dd( )
-
FiatTokenV2_2.transferFrom( from=0x00C5292650a8b9b3C864903A0516c98eac639982, to=0x74de5d4FCbf63E00296fd95d33236B9794016631, value=105299156 ) => ( True )
-
Spender.swap( adapter=0x7CDf68CE9A05413Cbb76cb7F80EAF415A826E313, data=0x92F5F03700000000000000000000000000C5292650A8B9B3C864903A0516C98EAC639982000000000000000000000000A0B86991C6218B36C1D19D4A2E9EB0CE3606EB480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000646BCD4000000000000000000000000000000000000000000000000007AE30A1B58C1000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000E1AA3D1CCFC42000000000000000000000000E3478B0BB1A5084567C319096437924948BE1964000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000C80502B1C5000000000000000000000000A0B86991C6218B36C1D19D4A2E9EB0CE3606EB48000000000000000000000000000000000000000000000000000000000646BCD40000000000000000000000000000000000000000000000000088B5777330FFE40000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000140000000000000003B6D0340397FF1542F962076D0BFE58EA045FFA2D347ACA07DCBEA7C000000000000000000000000000000000000000000000000 )
0x7cdf68ce9a05413cbb76cb7f80eaf415a826e313.92f5f037( )
FiatTokenProxy.dd62ed3e( )
-
FiatTokenV2_2.allowance( owner=0x74de5d4FCbf63E00296fd95d33236B9794016631, spender=0x1111111254EEB25477B68fb85Ed929f73A960582 ) => ( 115792089237316195423570985008687907853269984665640564039457583421877124516524 )
-
AggregationRouterV5.unoswap( srcToken=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, amount=105299156, minReturn=38480121470975972, pools=[28948022309329048857349863384919152864051623781008118819634420345581659991200] ) => ( returnAmount=39261438556137292 )
FiatTokenProxy.23b872dd( )
-
FiatTokenV2_2.transferFrom( from=0x74de5d4FCbf63E00296fd95d33236B9794016631, to=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0, value=105299156 ) => ( True )
-
-
UniswapV2Pair.STATICCALL( )
UniswapV2Pair.swap( amount0Out=0, amount1Out=39261438556137292, to=0x1111111254EEB25477B68fb85Ed929f73A960582, data=0x )
-
WETH9.transfer( dst=0x1111111254EEB25477B68fb85Ed929f73A960582, wad=39261438556137292 ) => ( True )
FiatTokenProxy.70a08231( )
-
FiatTokenV2_2.balanceOf( account=0x397FF1542f962076d0BFE58eA045FfA2d347ACa0 ) => ( 1301935787028 )
-
-
WETH9.balanceOf( 0x397FF1542f962076d0BFE58eA045FfA2d347ACa0 ) => ( 486856079957866504882 )
-
WETH9.withdraw( wad=39261438556137292 )
- ETH 0.039261438556137292
AggregationRouterV5.CALL( )
- ETH 0.039261438556137292
- ETH 0.039261438556137292
Spender.CALL( )
- ETH 0.003969940575812674
0xe3478b0bb1a5084567c319096437924948be1964.CALL( )
FiatTokenProxy.70a08231( )
-
FiatTokenV2_2.balanceOf( account=0x74de5d4FCbf63E00296fd95d33236B9794016631 ) => ( 0 )
-
- ETH 0.035291497980324618
0x00c5292650a8b9b3c864903a0516c98eac639982.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: FiatTokenProxy
File 3 of 7: UniswapV2Pair
File 4 of 7: AggregationRouterV5
File 5 of 7: WETH9
File 6 of 7: FiatTokenV2_2
File 7 of 7: Spender
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: FiatTokenProxy
12345678910111213141516pragma solidity ^0.4.24;// File: zos-lib/contracts/upgradeability/Proxy.sol/*** @title Proxy* @dev Implements delegation of calls to other contracts, with proper* forwarding of return values and bubbling of failures.* It defines a fallback function that delegates all calls to the address* returned by the abstract _implementation() internal function.*/contract Proxy {/*** @dev Fallback function.* Implemented entirely in `_fallback`.*/
File 3 of 7: UniswapV2Pair
12345678910111213141516// File: contracts/uniswapv2/interfaces/IUniswapV2Factory.solpragma solidity >=0.5.0;interface IUniswapV2Factory {event PairCreated(address indexed token0, address indexed token1, address pair, uint);function feeTo() external view returns (address);function feeToSetter() external view returns (address);function migrator() external view returns (address);function getPair(address tokenA, address tokenB) external view returns (address pair);function allPairs(uint) external view returns (address pair);function allPairsLength() external view returns (uint);function createPair(address tokenA, address tokenB) external returns (address pair);
File 4 of 7: AggregationRouterV5
12345678910111213141516/*,▄▓▓██▌ ,╓▄▄▓▓▓▓▓▓▓▓▄▄▄,,,▓██▓███▓▄▓███▓╬╬╬╬╬╬╬╬╬╬╬╬╬▓███▓▄,▄█ ▓██╬╣███████╬▓▀╬╬▓▓▓████████████▓█████▄,▓██▌ ▓██╬╣██████╬▓▌ ██████████████████████▌╙╙▀ⁿ▐████████╬▓████▓▓█╨ ▄ ╟█████████▓▓╬╬╬╬╬▓▓█████▓▄└▀▓▓▄╓ ╟█▓╣█████▓██████▀ ╓█▌ ███████▓▓▓▓▓╬╬╬╬╬╬╬╬╬╬╬╬▓██▓▄└▀████▓▄╥ ▐██╬╬██████████╙ Æ▀─ ▓███▀╚╠╬╩▀▀███████▓▓╬╬╬╬╬╬╬╬╬██▄└▀██▓▀▀█████▓╬▓██████▀ ▄█████▒╠" └╙▓██████▓╬╬╬╬╬╬╬╬██▄└▀██▄,└╙▀▀████▌└╙ ^"▀╙╙╙"╙██ @▄ ╙▀███████╬╬╬╬╬╬╬██µ└▀██▓▄, ██▌ ╒ ╙█▓ ]▓█▓╔ ▀███████▓╬╬╬╬╬▓█▌▀█████ ▓ ╟█▌ ]╠██▓░▒╓ ▀████████╬╬╬╬╣█▌▐████ ╓█▀█▌ ,██▌ ╚Å███▓▒▒╠╓ ╙█████████╬╬╬╣█▌└████ ▓█░░▓█ ▀▀▀ φ▒╫████▒▒▒▒╠╓ █████████▓╬╬▓█µ╘███µ ▌▄█▓▄▓▀` ,▀ ,╔╠░▓██████▌╠▒▒▒φ ██████████╬╬██▐████µ╙▓▀` ,▀╙,╔╔φφφ╠░▄▓███████▌░▓╙▒▒▒╠ └██╬███████╬▓█⌐
File 5 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 6 of 7: FiatTokenV2_2
12345678910111213141516/*** SPDX-License-Identifier: Apache-2.0** Copyright (c) 2023, Circle Internet Financial, LLC.** Licensed under the Apache License, Version 2.0 (the "License");* you may not use this file except in compliance with the License.* You may obtain a copy of the License at** http://www.apache.org/licenses/LICENSE-2.0** Unless required by applicable law or agreed to in writing, software* distributed under the License is distributed on an "AS IS" BASIS,* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.* See the License for the specific language governing permissions and* limitations under the License.
File 7 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"}}