Transaction Hash:
Block:
22471156 at May-13-2025 01:51:11 AM +UTC
Transaction Fee:
0.000504937256774575 ETH
$1.33
Gas Used:
196,265 Gas / 2.572732055 Gwei
Emitted Events:
234 |
AdminUpgradeabilityProxy.0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef( 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x0000000000000000000000000257d5addb844893fa01220142a95e96372d5714, 0x00000000000000000000000074de5d4fcbf63e00296fd95d33236b9794016631, 0000000000000000000000000000000000000000000000000000000002527b80 )
|
235 |
AdminUpgradeabilityProxy.0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef( 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x00000000000000000000000074de5d4fcbf63e00296fd95d33236b9794016631, 0x00000000000000000000000051c72848c68a965f66fa7a88855f9f7784502a7f, 0000000000000000000000000000000000000000000000000000000002527b80 )
|
236 |
TetherToken.Transfer( from=0x51C72848c68a965f66FA7a88855F9f7784502a7F, to=Spender, value=38931397 )
|
237 |
TetherToken.Transfer( from=0x51C72848c68a965f66FA7a88855F9f7784502a7F, to=SplitWallet, value=19465 )
|
238 |
SwapERC20.SwapERC20( nonce=1746616911256, signerWallet=0x51C72848c68a965f66FA7a88855F9f7784502a7F )
|
239 |
TetherToken.Transfer( from=Spender, to=GnosisSafeProxy, value=340650 )
|
240 |
TetherToken.Transfer( from=Spender, to=[Sender] 0x0257d5addb844893fa01220142a95e96372d5714, value=38590747 )
|
241 |
MetaSwap.Swap( 0xbeee1e6e7fe307ddcf84b0a16137a4430ad5e2480fc4f4a8e250ab56ccd7630d, 0x74008a9e83921090a0cc3c37a7b39398a692db963164a76e069ab2e8fb053e10, 0x0000000000000000000000000257d5addb844893fa01220142a95e96372d5714 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x0257d5aD...6372d5714 |
0.002287952331478159 Eth
Nonce: 6
|
0.001783015074703584 Eth
Nonce: 7
| 0.000504937256774575 | ||
0x6c3ea903...A0e23A0e8 | |||||
0x95222290...5CC4BAfe5
Miner
| (beaverbuild) | 13.691709277131979836 Eth | 13.691905542132764896 Eth | 0.00019626500078506 | |
0xD82E10B9...e6CF2fC46 | (AirSwap: V5 DEX SwapERC20) | ||||
0xdAC17F95...13D831ec7 |
Execution Trace
MetaSwap.swap( aggregatorId=airSwap4_3FeeDynamic, tokenFrom=0x6c3ea9036406852006290770BEdFcAbA0e23A0e8, amount=38960000, data=0x00000000000000000000000000000000000000000000000000000196AA7B0598000000000000000000000000000000000000000000000000000000006822A60E00000000000000000000000051C72848C68A965F66FA7A88855F9F7784502A7F000000000000000000000000DAC17F958D2EE523A2206206994597C13D831EC70000000000000000000000000000000000000000000000000000000002520BC50000000000000000000000006C3EA9036406852006290770BEDFCABA0E23A0E80000000000000000000000000000000000000000000000000000000002527B80000000000000000000000000000000000000000000000000000000000000001C6AF79A228C16D266171DDEA345FC651A66E2CA8F78126CE66A23185F377DC7440D7CDAD12BD5D60D30E2E4954B7145D3F9B49D61D2E07E10E0BA5C51383EBEB600000000000000000000000000000000000000000000000000000000000532AA0000000000000000000000002ACF35C9A3F4C5C3F4C78EF5FB64C3EE82F07C450000000000000000000000000000000000000000000000000000000000000001 )
AdminUpgradeabilityProxy.23b872dd( )
-
PYUSD.transferFrom( from=0x0257d5aDdb844893fA01220142a95e96372d5714, to=0x74de5d4FCbf63E00296fd95d33236B9794016631, value=38960000 ) => ( True )
-
Spender.swap( adapter=0x60FBaF99832Fb4360351AbC2b55e4B1F2fe98c71, data=0x4495C0880000000000000000000000000257D5ADDB844893FA01220142A95E96372D571400000000000000000000000000000000000000000000000000000196AA7B0598000000000000000000000000000000000000000000000000000000006822A60E00000000000000000000000051C72848C68A965F66FA7A88855F9F7784502A7F000000000000000000000000DAC17F958D2EE523A2206206994597C13D831EC70000000000000000000000000000000000000000000000000000000002520BC50000000000000000000000006C3EA9036406852006290770BEDFCABA0E23A0E80000000000000000000000000000000000000000000000000000000002527B80000000000000000000000000000000000000000000000000000000000000001C6AF79A228C16D266171DDEA345FC651A66E2CA8F78126CE66A23185F377DC7440D7CDAD12BD5D60D30E2E4954B7145D3F9B49D61D2E07E10E0BA5C51383EBEB600000000000000000000000000000000000000000000000000000000000532AA0000000000000000000000002ACF35C9A3F4C5C3F4C78EF5FB64C3EE82F07C450000000000000000000000000000000000000000000000000000000000000001 )
0x60fbaf99832fb4360351abc2b55e4b1f2fe98c71.4495c088( )
AdminUpgradeabilityProxy.dd62ed3e( )
-
PYUSD.allowance( owner=0x74de5d4FCbf63E00296fd95d33236B9794016631, spender=0xD82E10B9A4107939e55fCCa9B53A9ede6CF2fC46 ) => ( 115792089237316195423570985008687907853269984665640564039457584006757260342050 )
-
SwapERC20.swapLight( nonce=1746616911256, expiry=1747101198, signerWallet=0x51C72848c68a965f66FA7a88855F9f7784502a7F, signerToken=0xdAC17F958D2ee523a2206206994597C13D831ec7, signerAmount=38931397, senderToken=0x6c3ea9036406852006290770BEdFcAbA0e23A0e8, senderAmount=38960000, v=28, r=6AF79A228C16D266171DDEA345FC651A66E2CA8F78126CE66A23185F377DC744, s=0D7CDAD12BD5D60D30E2E4954B7145D3F9B49D61D2E07E10E0BA5C51383EBEB6 )
-
Null: 0x000...001.ff8db32f( )
AdminUpgradeabilityProxy.23b872dd( )
-
PYUSD.transferFrom( from=0x74de5d4FCbf63E00296fd95d33236B9794016631, to=0x51C72848c68a965f66FA7a88855F9f7784502a7F, value=38960000 ) => ( True )
-
-
TetherToken.transferFrom( _from=0x51C72848c68a965f66FA7a88855F9f7784502a7F, _to=0x74de5d4FCbf63E00296fd95d33236B9794016631, _value=38931397 )
-
TetherToken.transferFrom( _from=0x51C72848c68a965f66FA7a88855F9f7784502a7F, _to=0xaD30f7EEBD9Bd5150a256F47DA41d4403033CdF0, _value=19465 )
-
-
TetherToken.transfer( _to=0x2aCf35C9A3F4c5C3F4c78EF5Fb64c3EE82f07c45, _value=340650 )
AdminUpgradeabilityProxy.70a08231( )
-
PYUSD.balanceOf( addr=0x74de5d4FCbf63E00296fd95d33236B9794016631 ) => ( 0 )
-
-
TetherToken.balanceOf( who=0x74de5d4FCbf63E00296fd95d33236B9794016631 ) => ( 38590747 )
-
TetherToken.transfer( _to=0x0257d5aDdb844893fA01220142a95e96372d5714, _value=38590747 )
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: AdminUpgradeabilityProxy
File 3 of 8: Spender
File 4 of 8: TetherToken
File 5 of 8: SplitWallet
File 6 of 8: SwapERC20
File 7 of 8: GnosisSafeProxy
File 8 of 8: PYUSD
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: AdminUpgradeabilityProxy
12345678910111213141516// File: contracts/zeppelin/Proxy.solpragma solidity ^0.4.24;/*** @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 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 4 of 8: 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 5 of 8: SplitWallet
12345678910111213141516// SPDX-License-Identifier: GPL-3.0-or-laterpragma solidity 0.8.4;import {ISplitMain} from './interfaces/ISplitMain.sol';import {ERC20} from '@rari-capital/solmate/src/tokens/ERC20.sol';import {SafeTransferLib} from '@rari-capital/solmate/src/utils/SafeTransferLib.sol';/*** ERRORS*//// @notice Unauthorized sendererror Unauthorized();/*** @title SplitWallet* @author 0xSplits <will@0xSplits.xyz>* @notice The implementation logic for `SplitProxy`.* @dev `SplitProxy` handles `receive()` itself to avoid the gas cost with `DELEGATECALL`.*/
File 6 of 8: SwapERC20
12345678910111213141516// SPDX-License-Identifier: MITpragma solidity 0.8.23;interface ISwapERC20 {struct OrderERC20 {uint256 nonce; // Unique number per signatory per orderuint256 expiry; // Expiry time (seconds since unix epoch)address signerWallet; // Party to the swap that sets termsaddress signerToken; // ERC20 token address transferred from signeruint256 signerAmount; // Amount of tokens transferred from signeraddress senderWallet; // Party to the swap that accepts termsaddress senderToken; // ERC20 token address transferred from senderuint256 senderAmount; // Amount of tokens transferred from senderuint8 v; // ECDSAbytes32 r;bytes32 s;}
File 7 of 8: 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 8 of 8: PYUSD
12345678910111213141516// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControlDefaultAdminRules.sol)pragma solidity ^0.8.0;import "./AccessControlUpgradeable.sol";import "./IAccessControlDefaultAdminRulesUpgradeable.sol";import "../utils/math/SafeCastUpgradeable.sol";import "../interfaces/IERC5313Upgradeable.sol";import "../proxy/utils/Initializable.sol";/*** @dev Extension of {AccessControl} that allows specifying special rules to manage* the `DEFAULT_ADMIN_ROLE` holder, which is a sensitive role with special permissions* over other roles that may potentially have privileged rights in the system.** If a specific role doesn't have an admin role assigned, the holder of the* `DEFAULT_ADMIN_ROLE` will have the ability to grant it and revoke it.*