Transaction Hash:
Block:
20510561 at Aug-12-2024 05:51:35 AM +UTC
Transaction Fee:
0.000395479527325975 ETH
$1.48
Gas Used:
186,295 Gas / 2.122867105 Gwei
Emitted Events:
165 |
RSS3.Transfer( from=[Sender] 0x82c5c6d83041e34b186582bf10128d66ba93003f, to=Spender, value=2219865879267457420043 )
|
166 |
RSS3.Approval( owner=[Sender] 0x82c5c6d83041e34b186582bf10128d66ba93003f, spender=[Receiver] MetaSwap, value=115792089237316195423570985008687907853269984665640564037237718128645672219892 )
|
167 |
WETH9.Transfer( src=0xd04d14D2F9122372e41D2dE9a82f721E9Ea2F069, dst=AggregationRouterV5, wad=95341868050626141 )
|
168 |
RSS3.Transfer( from=Spender, to=0xd04d14D2F9122372e41D2dE9a82f721E9Ea2F069, value=2219865879267457420043 )
|
169 |
RSS3.Approval( owner=Spender, spender=AggregationRouterV5, value=115792089237316195423570985008687907853269984665640562583068977586009637193090 )
|
170 |
0xd04d14d2f9122372e41d2de9a82f721e9ea2f069.0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67( 0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67, 0x0000000000000000000000001111111254eeb25477b68fb85ed929f73a960582, 0x0000000000000000000000001111111254eeb25477b68fb85ed929f73a960582, fffffffffffffffffffffffffffffffffffffffffffffffffead47137e9ec9a3, 00000000000000000000000000000000000000000000007856d3dfd71af8cb0b, 000000000000000000000000000000000000009880aefc4631dc8544d6e23f39, 0000000000000000000000000000000000000000000001a2c5875567a81c45f6, 00000000000000000000000000000000000000000000000000000000000188c4 )
|
171 |
WETH9.Withdrawal( src=AggregationRouterV5, wad=95341868050626141 )
|
172 |
Proxy.0x3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d( 0x3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d, 0x00000000000000000000000074de5d4fcbf63e00296fd95d33236b9794016631, 0000000000000000000000000000000000000000000000000002f6ba9e853cbd )
|
173 |
MetaSwap.Swap( 0xbeee1e6e7fe307ddcf84b0a16137a4430ad5e2480fc4f4a8e250ab56ccd7630d, 0xf35f348d53012d52a5d39f9390d246956ac932d5778d2bb49e359dba4fa0896d, 0x00000000000000000000000082c5c6d83041e34b186582bf10128d66ba93003f )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x1f9090aa...8e676c326
Miner
| 2.497716005343385853 Eth | 2.497902300343385853 Eth | 0.000186295 | ||
0x82c5C6D8...6ba93003F |
0.0166438642992136 Eth
Nonce: 122
|
0.110756021485210537 Eth
Nonce: 123
| 0.094112157185996937 | ||
0xC02aaA39...83C756Cc2 | 2,796,584.269584682950681 Eth | 2,796,584.174242814900054859 Eth | 0.095341868050626141 | ||
0xc98D64DA...2e7B8D57F | |||||
0xd04d14D2...E9Ea2F069 | (Uniswap V3: RSS3) | ||||
0xF326e4dE...3c79f1915 | (MetaMask: DS Proxy) | 5,225.108921142574840622 Eth | 5,225.109755373912143851 Eth | 0.000834231337303229 |
Execution Trace
MetaSwap.swap( aggregatorId=oneInchV5FeeDynamic, tokenFrom=0xc98D64DA73a6616c42117b582e832812e7B8D57F, amount=2219865879267457420043, data=0x000000000000000000000000C98D64DA73A6616C42117B582E832812E7B8D57F000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007856D3DFD71AF8CB0B00000000000000000000000000000000000000000000000001490A176D0570BD00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000002F6BA9E853CBD000000000000000000000000F326E4DE8F66A0BDC0970B79E0924E33C79F1915000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000A8E449022E00000000000000000000000000000000000000000000007856D3DFD71AF8CB0B000000000000000000000000000000000000000000000000014BF1A55A4A92A900000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000001A00000000000000000000000D04D14D2F9122372E41D2DE9A82F721E9EA2F0697DCBEA7C000000000000000000000000000000000000000000000000 )
-
RSS3.transferFrom( sender=0x82c5C6D83041e34B186582bF10128D66ba93003F, recipient=0x74de5d4FCbf63E00296fd95d33236B9794016631, amount=2219865879267457420043 ) => ( True )
Spender.swap( adapter=0x7CDf68CE9A05413Cbb76cb7F80EAF415A826E313, data=0x92F5F03700000000000000000000000082C5C6D83041E34B186582BF10128D66BA93003F000000000000000000000000C98D64DA73A6616C42117B582E832812E7B8D57F000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007856D3DFD71AF8CB0B00000000000000000000000000000000000000000000000001490A176D0570BD00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000002F6BA9E853CBD000000000000000000000000F326E4DE8F66A0BDC0970B79E0924E33C79F1915000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000A8E449022E00000000000000000000000000000000000000000000007856D3DFD71AF8CB0B000000000000000000000000000000000000000000000000014BF1A55A4A92A900000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000001A00000000000000000000000D04D14D2F9122372E41D2DE9A82F721E9EA2F0697DCBEA7C000000000000000000000000000000000000000000000000 )
0x7cdf68ce9a05413cbb76cb7f80eaf415a826e313.92f5f037( )
-
RSS3.allowance( owner=0x74de5d4FCbf63E00296fd95d33236B9794016631, spender=0x1111111254EEB25477B68fb85Ed929f73A960582 ) => ( 115792089237316195423570985008687907853269984665640562585288843465277094613133 )
AggregationRouterV5.uniswapV3Swap( amount=2219865879267457420043, minReturn=93433909777961641, pools=[72370055773322622139731865631619131460041473534930597152926319953160005939305] ) => ( returnAmount=95341868050626141 )
Uniswap V3: RSS3.128acb08( )
-
WETH9.transfer( dst=0x1111111254EEB25477B68fb85Ed929f73A960582, wad=95341868050626141 ) => ( True )
-
RSS3.balanceOf( account=0xd04d14D2F9122372e41D2dE9a82f721E9Ea2F069 ) => ( 1629742591403765019527209 )
AggregationRouterV5.uniswapV3SwapCallback( amount0Delta=-95341868050626141, amount1Delta=2219865879267457420043, 0x00000000000000000000000074DE5D4FCBF63E00296FD95D33236B9794016631 )
-
Uniswap V3: RSS3.STATICCALL( )
-
Uniswap V3: RSS3.STATICCALL( )
-
Uniswap V3: RSS3.STATICCALL( )
-
RSS3.transferFrom( sender=0x74de5d4FCbf63E00296fd95d33236B9794016631, recipient=0xd04d14D2F9122372e41D2dE9a82f721E9Ea2F069, amount=2219865879267457420043 ) => ( True )
-
-
RSS3.balanceOf( account=0xd04d14D2F9122372e41D2dE9a82f721E9Ea2F069 ) => ( 1631962457283032476947252 )
-
WETH9.withdraw( wad=95341868050626141 )
- ETH 0.095341868050626141
AggregationRouterV5.CALL( )
- ETH 0.095341868050626141
- ETH 0.095341868050626141
Spender.CALL( )
ETH 0.000834231337303229
Proxy.CALL( )
- ETH 0.000834231337303229
GnosisSafe.DELEGATECALL( )
- ETH 0.000834231337303229
-
RSS3.balanceOf( account=0x74de5d4FCbf63E00296fd95d33236B9794016631 ) => ( 0 )
- ETH 0.094507636713322912
0x82c5c6d83041e34b186582bf10128d66ba93003f.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: RSS3
File 4 of 7: AggregationRouterV5
File 5 of 7: WETH9
File 6 of 7: Proxy
File 7 of 7: 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 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: RSS3
12345678910111213141516// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import "@openzeppelin/contracts/token/ERC20/ERC20.sol";contract RSS3 is ERC20 {constructor(address initialAccount) ERC20("RSS3", "RSS3") {_mint(initialAccount, 10 * 10 ** 8 * 10 ** 18);}}// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)pragma solidity ^0.8.0;/*** @dev Provides information about the current execution context, including the* sender of the transaction and its data. While these are generally available* via msg.sender and msg.data, they should not be accessed in such a direct* manner, since when dealing with meta-transactions the account sending and* paying for execution may not be the actual sender (as far as an application
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: 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 7 of 7: 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>