Transaction Hash:
Block:
22544178 at May-23-2025 07:48:47 AM +UTC
Transaction Fee:
0.000538590102238305 ETH
$1.37
Gas Used:
242,073 Gas / 2.224907785 Gwei
Emitted Events:
211 |
TetherToken.Transfer( from=[Sender] 0x19cedab01db00c317204733097d957ea38a23087, to=Spender, value=5000000 )
|
212 |
TetherToken.Transfer( from=Spender, to=UniswapV2Pair, value=4956250 )
|
213 |
WETH9.Transfer( src=UniswapV2Pair, dst=UniswapV2Pair, wad=1854452969855121 )
|
214 |
UniswapV2Pair.Sync( reserve0=332413770997085519511, reserve1=885755742033 )
|
215 |
UniswapV2Pair.Swap( sender=AggregationRouterV5, amount0In=0, amount1In=4956250, amount0Out=1854452969855121, amount1Out=0, to=UniswapV2Pair )
|
216 |
ERC677BridgeToken.Transfer( from=UniswapV2Pair, to=Spender, value=1321410264387703374661 )
|
217 |
UniswapV2Pair.Sync( reserve0=5842553726888906606410255, reserve1=8176633458520811892 )
|
218 |
UniswapV2Pair.Swap( sender=AggregationRouterV5, amount0In=0, amount1In=1854452969855121, amount0Out=1321410264387703374661, amount1Out=0, to=Spender )
|
219 |
TetherToken.Transfer( from=Spender, to=GnosisSafeProxy, value=43750 )
|
220 |
ERC677BridgeToken.Transfer( from=Spender, to=[Sender] 0x19cedab01db00c317204733097d957ea38a23087, value=1321410264387703374661 )
|
221 |
MetaSwap.Swap( 0xbeee1e6e7fe307ddcf84b0a16137a4430ad5e2480fc4f4a8e250ab56ccd7630d, 0xf35f348d53012d52a5d39f9390d246956ac932d5778d2bb49e359dba4fa0896d, 0x00000000000000000000000019cedab01db00c317204733097d957ea38a23087 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x06da0fd4...10A184553 | |||||
0x19cEdAB0...A38A23087 |
0.00351575096421569 Eth
Nonce: 9
|
0.002977160861977385 Eth
Nonce: 10
| 0.000538590102238305 | ||
0x4838B106...B0BAD5f97
Miner
| (Titan Builder) | 9.041501157147439876 Eth | 9.041743230148408168 Eth | 0.000242073000968292 | |
0x8C543AED...791a9Edb9 | |||||
0xC02aaA39...83C756Cc2 | |||||
0xdAC17F95...13D831ec7 | |||||
0xeCC558B8...EB534d17A |
Execution Trace
MetaSwap.swap( aggregatorId=oneInchV5FeeDynamic, tokenFrom=0xdAC17F958D2ee523a2206206994597C13D831ec7, amount=5000000, data=0x000000000000000000000000DAC17F958D2EE523A2206206994597C13D831EC70000000000000000000000008C543AED163909142695F2D2ACD0D55791A9EDB900000000000000000000000000000000000000000000000000000000004BA05A000000000000000000000000000000000000000000000046337C79A4746315200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000AAE60000000000000000000000002ACF35C9A3F4C5C3F4C78EF5FB64C3EE82F07C45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E80502B1C5000000000000000000000000DAC17F958D2EE523A2206206994597C13D831EC700000000000000000000000000000000000000000000000000000000004BA05A000000000000000000000000000000000000000000000046337C79A47463151F0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000280000000000000003B6D034006DA0FD433C1A5D7A4FAA01111C044910A18455380000000000000003B6D0340ECC558B8DB3F95D043844442F51187CEB534D17A7DCBEA7C000000000000000000000000000000000000000000000000 )
-
TetherToken.transferFrom( _from=0x19cEdAB01dB00c317204733097D957EA38A23087, _to=0x74de5d4FCbf63E00296fd95d33236B9794016631, _value=5000000 )
Spender.swap( adapter=0x7CDf68CE9A05413Cbb76cb7F80EAF415A826E313, data=0x92F5F03700000000000000000000000019CEDAB01DB00C317204733097D957EA38A23087000000000000000000000000DAC17F958D2EE523A2206206994597C13D831EC70000000000000000000000008C543AED163909142695F2D2ACD0D55791A9EDB900000000000000000000000000000000000000000000000000000000004BA05A000000000000000000000000000000000000000000000046337C79A4746315200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000AAE60000000000000000000000002ACF35C9A3F4C5C3F4C78EF5FB64C3EE82F07C45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000E80502B1C5000000000000000000000000DAC17F958D2EE523A2206206994597C13D831EC700000000000000000000000000000000000000000000000000000000004BA05A000000000000000000000000000000000000000000000046337C79A47463151F0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000280000000000000003B6D034006DA0FD433C1A5D7A4FAA01111C044910A18455380000000000000003B6D0340ECC558B8DB3F95D043844442F51187CEB534D17A7DCBEA7C000000000000000000000000000000000000000000000000 )
0x7cdf68ce9a05413cbb76cb7f80eaf415a826e313.92f5f037( )
-
TetherToken.allowance( _owner=0x74de5d4FCbf63E00296fd95d33236B9794016631, _spender=0x1111111254EEB25477B68fb85Ed929f73A960582 ) => ( remaining=115792089237316195423570985008687907853269984665640564039457584007913129639935 )
AggregationRouterV5.unoswap( srcToken=0xdAC17F958D2ee523a2206206994597C13D831ec7, amount=4956250, minReturn=1294982059099949307167, pools=[57896044618658097713242609636801981022055235692432749797071859623328908592467, 57896044618658097713242609638114586933587151364229071275744566670245062037882] ) => ( returnAmount=1321410264387703374661 )
-
TetherToken.transferFrom( _from=0x74de5d4FCbf63E00296fd95d33236B9794016631, _to=0x06da0fd433C1A5d7a4faa01111c044910A184553, _value=4956250 )
-
UniswapV2Pair.STATICCALL( )
UniswapV2Pair.swap( amount0Out=1854452969855121, amount1Out=0, to=0xeCC558B8dB3f95d043844442F51187cEB534d17A, data=0x )
-
UniswapV2Pair.STATICCALL( )
UniswapV2Pair.swap( amount0Out=1321410264387703374661, amount1Out=0, to=0x74de5d4FCbf63E00296fd95d33236B9794016631, data=0x )
-
ERC677BridgeToken.transfer( _to=0x74de5d4FCbf63E00296fd95d33236B9794016631, _value=1321410264387703374661 ) => ( True )
-
ERC677BridgeToken.balanceOf( _owner=0xeCC558B8dB3f95d043844442F51187cEB534d17A ) => ( 5842553726888906606410255 )
-
WETH9.balanceOf( 0xeCC558B8dB3f95d043844442F51187cEB534d17A ) => ( 8176633458520811892 )
-
-
-
TetherToken.transfer( _to=0x2aCf35C9A3F4c5C3F4c78EF5Fb64c3EE82f07c45, _value=43750 )
-
TetherToken.balanceOf( who=0x74de5d4FCbf63E00296fd95d33236B9794016631 ) => ( 0 )
-
ERC677BridgeToken.balanceOf( _owner=0x74de5d4FCbf63E00296fd95d33236B9794016631 ) => ( 1321410264387703374661 )
-
ERC677BridgeToken.transfer( _to=0x19cEdAB01dB00c317204733097D957EA38A23087, _value=1321410264387703374661 ) => ( 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 9: MetaSwap
File 2 of 9: Spender
File 3 of 9: TetherToken
File 4 of 9: UniswapV2Pair
File 5 of 9: UniswapV2Pair
File 6 of 9: WETH9
File 7 of 9: ERC677BridgeToken
File 8 of 9: GnosisSafeProxy
File 9 of 9: AggregationRouterV5
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 9: 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 9: TetherToken
12345678910111213141516pragma solidity ^0.4.17;/*** @title SafeMath* @dev Math operations with safety checks that throw on error*/library SafeMath {function mul(uint256 a, uint256 b) internal pure returns (uint256) {if (a == 0) {return 0;}uint256 c = a * b;assert(c / a == b);return c;}
File 4 of 9: 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 5 of 9: UniswapV2Pair
12345678910111213141516// File: contracts/interfaces/IUniswapV2Pair.solpragma solidity >=0.5.0;interface IUniswapV2Pair {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 6 of 9: 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 9: ERC677BridgeToken
12345678910111213141516// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.solpragma solidity ^0.4.24;/*** @title ERC20Basic* @dev Simpler version of ERC20 interface* See https://github.com/ethereum/EIPs/issues/179*/contract ERC20Basic {function totalSupply() public view returns (uint256);function balanceOf(address _who) public view returns (uint256);function transfer(address _to, uint256 _value) public returns (bool);event Transfer(address indexed from, address indexed to, uint256 value);}
File 8 of 9: GnosisSafeProxy
12345678910111213141516// SPDX-License-Identifier: LGPL-3.0-onlypragma solidity >=0.7.0 <0.9.0;/// @title IProxy - Helper interface to access masterCopy of the Proxy on-chain/// @author Richard Meissner - <richard@gnosis.io>interface IProxy {function masterCopy() external view returns (address);}/// @title GnosisSafeProxy - 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 GnosisSafeProxy {// singleton 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 singleton;
File 9 of 9: AggregationRouterV5
12345678910111213141516/*,▄▓▓██▌ ,╓▄▄▓▓▓▓▓▓▓▓▄▄▄,,,▓██▓███▓▄▓███▓╬╬╬╬╬╬╬╬╬╬╬╬╬▓███▓▄,▄█ ▓██╬╣███████╬▓▀╬╬▓▓▓████████████▓█████▄,▓██▌ ▓██╬╣██████╬▓▌ ██████████████████████▌╙╙▀ⁿ▐████████╬▓████▓▓█╨ ▄ ╟█████████▓▓╬╬╬╬╬▓▓█████▓▄└▀▓▓▄╓ ╟█▓╣█████▓██████▀ ╓█▌ ███████▓▓▓▓▓╬╬╬╬╬╬╬╬╬╬╬╬▓██▓▄└▀████▓▄╥ ▐██╬╬██████████╙ Æ▀─ ▓███▀╚╠╬╩▀▀███████▓▓╬╬╬╬╬╬╬╬╬██▄└▀██▓▀▀█████▓╬▓██████▀ ▄█████▒╠" └╙▓██████▓╬╬╬╬╬╬╬╬██▄└▀██▄,└╙▀▀████▌└╙ ^"▀╙╙╙"╙██ @▄ ╙▀███████╬╬╬╬╬╬╬██µ└▀██▓▄, ██▌ ╒ ╙█▓ ]▓█▓╔ ▀███████▓╬╬╬╬╬▓█▌▀█████ ▓ ╟█▌ ]╠██▓░▒╓ ▀████████╬╬╬╬╣█▌▐████ ╓█▀█▌ ,██▌ ╚Å███▓▒▒╠╓ ╙█████████╬╬╬╣█▌└████ ▓█░░▓█ ▀▀▀ φ▒╫████▒▒▒▒╠╓ █████████▓╬╬▓█µ╘███µ ▌▄█▓▄▓▀` ,▀ ,╔╠░▓██████▌╠▒▒▒φ ██████████╬╬██▐████µ╙▓▀` ,▀╙,╔╔φφφ╠░▄▓███████▌░▓╙▒▒▒╠ └██╬███████╬▓█⌐