Transaction Hash:
Block:
22547042 at May-23-2025 05:25:35 PM +UTC
Transaction Fee:
0.000620237688508144 ETH
$1.66
Gas Used:
182,587 Gas / 3.396943312 Gwei
Emitted Events:
245 |
DexRouter.SwapOrderId( id=112925 )
|
246 |
WETH9.Deposit( dst=DexRouter, wad=4956250000000000 )
|
247 |
FiatTokenProxy.0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef( 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x000000000000000000000000e0554a476a092703abdb3ef35c80e0d76d32939f, 0x00000000000000000000000074de5d4fcbf63e00296fd95d33236b9794016631, 0000000000000000000000000000000000000000000000000000000000c3684b )
|
248 |
WETH9.Transfer( src=DexRouter, dst=0xE0554a476A092703abdB3Ef35c80e0D76d32939F, wad=4956250000000000 )
|
249 |
0xe0554a476a092703abdb3ef35c80e0d76d32939f.0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67( 0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67, 0x0000000000000000000000007d0ccaa3fac1e5a943c5168b6ced828691b46b36, 0x00000000000000000000000074de5d4fcbf63e00296fd95d33236b9794016631, ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff3c97b5, 00000000000000000000000000000000000000000000000000119baee0ab0400, 0000000000000000000000000000000000004cd7d1db9b55a986ebce5dfda017, 0000000000000000000000000000000000000000000000000693fe7e12898f76, 0000000000000000000000000000000000000000000000000000000000030474 )
|
250 |
DexRouter.OrderRecord( fromToken=0xEeeeeEee...eeeeeEEeE, toToken=FiatTokenProxy, sender=[Sender] 0xa106d4d846ccbc476b30474cfab5e2bd2a9d11fc, fromAmount=4956250000000000, returnAmount=12806219 )
|
251 |
Proxy.0x3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d( 0x3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d, 0x00000000000000000000000074de5d4fcbf63e00296fd95d33236b9794016631, 000000000000000000000000000000000000000000000000000027ca57357c00 )
|
252 |
FiatTokenProxy.0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef( 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x00000000000000000000000074de5d4fcbf63e00296fd95d33236b9794016631, 0x000000000000000000000000a106d4d846ccbc476b30474cfab5e2bd2a9d11fc, 0000000000000000000000000000000000000000000000000000000000c3684b )
|
253 |
MetaSwap.Swap( 0xbeee1e6e7fe307ddcf84b0a16137a4430ad5e2480fc4f4a8e250ab56ccd7630d, 0xd6b6d5e0aacce0469a313983d889ed10d0bb7c9545af0285a19b4ff094b4041d, 0x000000000000000000000000a106d4d846ccbc476b30474cfab5e2bd2a9d11fc )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x95222290...5CC4BAfe5
Miner
| (beaverbuild) | 18.231496571975719506 Eth | 18.231861745975719506 Eth | 0.000365174 | |
0xA0b86991...E3606eB48 | |||||
0xA106d4D8...d2A9D11Fc |
0.040655685814103849 Eth
Nonce: 29
|
0.035035448125595705 Eth
Nonce: 30
| 0.005620237688508144 | ||
0xC02aaA39...83C756Cc2 | 2,820,265.236921093019207302 Eth | 2,820,265.241877343019207302 Eth | 0.00495625 | ||
0xE0554a47...76d32939F | (Uniswap V3: USDC 4) | ||||
0xF326e4dE...3c79f1915 | (MetaMask: DS Proxy) | 3,521.582223681486540722 Eth | 3,521.582267431486540722 Eth | 0.00004375 |
Execution Trace
ETH 0.005
MetaSwap.swap( aggregatorId=okx, tokenFrom=0x0000000000000000000000000000000000000000, amount=5000000000000000, data=0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000A0B86991C6218B36C1D19D4A2E9EB0CE3606EB4800000000000000000000000000000000000000000000000000119BAEE0AB04000000000000000000000000000000000000000000000000000000000000BF99310000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000027CA57357C00000000000000000000000000F326E4DE8F66A0BDC0970B79E0924E33C79F1915000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000C40D5F0E3B00000000000000000001B91D74DE5D4FCBF63E00296FD95D33236B979401663100000000000000000000000000000000000000000000000000119BAEE0AB04000000000000000000000000000000000000000000000000000000000000BF993100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001800000000000000000000000E0554A476A092703ABDB3EF35C80E0D76D32939F00000000000000000000000000000000000000000000000000000000 )
ETH 0.005
Spender.swap( adapter=0xa65Ed75603BeA45f821CEefE02D999AD99D2AfCA, data=0x92F5F037000000000000000000000000A106D4D846CCBC476B30474CFAB5E2BD2A9D11FC0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000A0B86991C6218B36C1D19D4A2E9EB0CE3606EB4800000000000000000000000000000000000000000000000000119BAEE0AB04000000000000000000000000000000000000000000000000000000000000BF99310000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000027CA57357C00000000000000000000000000F326E4DE8F66A0BDC0970B79E0924E33C79F1915000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000C40D5F0E3B00000000000000000001B91D74DE5D4FCBF63E00296FD95D33236B979401663100000000000000000000000000000000000000000000000000119BAEE0AB04000000000000000000000000000000000000000000000000000000000000BF993100000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001800000000000000000000000E0554A476A092703ABDB3EF35C80E0D76D32939F00000000000000000000000000000000000000000000000000000000 )
ETH 0.005
0xa65ed75603bea45f821ceefe02d999ad99d2afca.92f5f037( )
ETH 0.00495625
DexRouter.uniswapV3SwapTo( receiver=165040739597415657687820409033874011404928872077157937, amount=4956250000000000, minReturn=12556593, pools=[57896044618658097711785492505624669893251560180390193455121166874571151938463] ) => ( returnAmount=12806219 )
- ETH 0.00495625
WETH9.CALL( )
Uniswap V3: USDC 4.128acb08( )
FiatTokenProxy.a9059cbb( )
-
FiatTokenV2_2.transfer( to=0x74de5d4FCbf63E00296fd95d33236B9794016631, value=12806219 ) => ( True )
-
-
WETH9.balanceOf( 0xE0554a476A092703abdB3Ef35c80e0D76d32939F ) => ( 971779914690653054257 )
DexRouter.uniswapV3SwapCallback( amount0Delta=-12806219, amount1Delta=4956250000000000, 0x0000000000000000000000007D0CCAA3FAC1E5A943C5168B6CED828691B46B36 )
-
Uniswap V3: USDC 4.STATICCALL( )
-
Uniswap V3: USDC 4.STATICCALL( )
-
Uniswap V3: USDC 4.STATICCALL( )
-
WETH9.transfer( dst=0xE0554a476A092703abdB3Ef35c80e0D76d32939F, wad=4956250000000000 ) => ( True )
-
-
WETH9.balanceOf( 0xE0554a476A092703abdB3Ef35c80e0D76d32939F ) => ( 971784870940653054257 )
-
Uniswap V3: USDC 4.STATICCALL( )
- ETH 0.00495625
ETH 0.00004375
Proxy.CALL( )
- ETH 0.00004375
GnosisSafe.DELEGATECALL( )
- ETH 0.00004375
FiatTokenProxy.70a08231( )
-
FiatTokenV2_2.balanceOf( account=0x74de5d4FCbf63E00296fd95d33236B9794016631 ) => ( 12806219 )
-
FiatTokenProxy.a9059cbb( )
-
FiatTokenV2_2.transfer( to=0xA106d4D846cCbC476B30474cfab5e2bd2A9D11Fc, value=12806219 ) => ( True )
-
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 8: MetaSwap
File 2 of 8: DexRouter
File 3 of 8: WETH9
File 4 of 8: FiatTokenProxy
File 5 of 8: Proxy
File 6 of 8: Spender
File 7 of 8: FiatTokenV2_2
File 8 of 8: GnosisSafe
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 8: DexRouter
12345678910111213141516// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)pragma solidity ^0.8.0;import "../utils/ContextUpgradeable.sol";import "../proxy/utils/Initializable.sol";/*** @dev Contract module which provides a basic access control mechanism, where* there is an account (an owner) that can be granted exclusive access to* specific functions.** By default, the owner account will be the one that deploys the contract. This* can later be changed with {transferOwnership}.** This module is used through inheritance. It will make available the modifier* `onlyOwner`, which can be applied to your functions to restrict their use to* the owner.
File 3 of 8: 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 4 of 8: 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 5 of 8: Proxy
12345678910111213141516pragma solidity ^0.5.3;/// @title Proxy - Generic proxy contract allows to execute all transactions applying the code of a master contract./// @author Stefan George - <stefan@gnosis.io>/// @author Richard Meissner - <richard@gnosis.io>contract Proxy {// masterCopy always needs to be first declared variable, to ensure that it is at the same location in the contracts to which calls are delegated.// To reduce deployment costs this variable is internal and needs to be retrieved via `getStorageAt`address internal masterCopy;/// @dev Constructor function sets address of master copy contract./// @param _masterCopy Master copy address.constructor(address _masterCopy)public{
File 6 of 8: 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 7 of 8: 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 8 of 8: GnosisSafe
12345678910111213141516// SPDX-License-Identifier: LGPL-3.0-onlypragma solidity >=0.7.0 <0.9.0;import "./base/ModuleManager.sol";import "./base/OwnerManager.sol";import "./base/FallbackManager.sol";import "./base/GuardManager.sol";import "./common/EtherPaymentFallback.sol";import "./common/Singleton.sol";import "./common/SignatureDecoder.sol";import "./common/SecuredTokenTransfer.sol";import "./common/StorageAccessible.sol";import "./interfaces/ISignatureValidator.sol";import "./external/GnosisSafeMath.sol";/// @title Gnosis Safe - A multisignature wallet with support for confirmations using signed messages based on ERC191./// @author Stefan George - <stefan@gnosis.io>/// @author Richard Meissner - <richard@gnosis.io>