Transaction Hash:
Block:
22476344 at May-13-2025 07:22:35 PM +UTC
Transaction Fee:
0.00245072629004233 ETH
$6.20
Gas Used:
197,851 Gas / 12.38672683 Gwei
Emitted Events:
157 |
BridgeToken.0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef( 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x0000000000000000000000009221b5a4031aa0ba933cc0b3c8785b1c4b865941, 0x00000000000000000000000074de5d4fcbf63e00296fd95d33236b9794016631, 00000000000000000000000000000000000000000000000000000013d084cf88 )
|
158 |
BridgeToken.0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925( 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925, 0x0000000000000000000000009221b5a4031aa0ba933cc0b3c8785b1c4b865941, 0x000000000000000000000000881d40237659c251811cec9c364ef91dc08d300c, ffffffffffffffffffffffffffffffffffffffffffffffffffffffec2f7b3077 )
|
159 |
WETH9.Transfer( src=UniswapV3Pool, dst=AggregationRouterV5, wad=7371126662071269 )
|
160 |
BridgeToken.0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef( 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x00000000000000000000000074de5d4fcbf63e00296fd95d33236b9794016631, 0x000000000000000000000000403b1b747b1efb309070436c9ac99bf476f299ea, 00000000000000000000000000000000000000000000000000000013d084cf88 )
|
161 |
BridgeToken.0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925( 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925, 0x00000000000000000000000074de5d4fcbf63e00296fd95d33236b9794016631, 0x0000000000000000000000001111111254eeb25477b68fb85ed929f73a960582, ffffffffffffffffffffffffffffffffffffffffffffffffffa5653cfc112db7 )
|
162 |
UniswapV3Pool.Swap( sender=AggregationRouterV5, recipient=AggregationRouterV5, amount0=85102743432, amount1=-7371126662071269, sqrtPriceX96=23434352662859962684740206445939, liquidity=1294023661743831204, tick=113798 )
|
163 |
WETH9.Withdrawal( src=AggregationRouterV5, wad=7371126662071269 )
|
164 |
MetaSwap.Swap( 0xbeee1e6e7fe307ddcf84b0a16137a4430ad5e2480fc4f4a8e250ab56ccd7630d, 0xf35f348d53012d52a5d39f9390d246956ac932d5778d2bb49e359dba4fa0896d, 0x0000000000000000000000009221b5a4031aa0ba933cc0b3c8785b1c4b865941 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x1151CB3d...2178567F6 | |||||
0x403b1b74...476f299ea | (Uniswap V3: Bonk 6) | ||||
0x9221B5A4...C4B865941 |
0.004562481764925196 Eth
Nonce: 4
|
0.004587543227748407 Eth
Nonce: 5
| 0.000025061462823211 | ||
0x95222290...5CC4BAfe5
Miner
| (beaverbuild) | 10.200933208970072069 Eth | 10.20113105997026992 Eth | 0.000197851000197851 | |
0xC02aaA39...83C756Cc2 | 2,746,535.811249578625057942 Eth | 2,746,535.803878451962986673 Eth | 0.007371126662071269 | ||
0xe3478b0B...948Be1964 | 376.778858551630204725 Eth | 376.783753890539410453 Eth | 0.004895338909205728 |
Execution Trace
MetaSwap.swap( aggregatorId=oneInchV5FeeDynamic, tokenFrom=0x1151CB3d861920e07a38e03eEAd12C32178567F6, amount=85102743432, data=0x0000000000000000000000001151CB3D861920E07A38E03EEAD12C32178567F6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013D084CF8800000000000000000000000000000000000000000000000000089EAE788ECE66000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000116448E8BD04E0000000000000000000000000E3478B0BB1A5084567C319096437924948BE1964000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000A8E449022E00000000000000000000000000000000000000000000000000000013D084CF880000000000000000000000000000000000000000000000000019A9EBAE8FB99300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000001200000000000000000000000403B1B747B1EFB309070436C9AC99BF476F299EA7DCBEA7C000000000000000000000000000000000000000000000000 )
BridgeToken.23b872dd( )
TokenBridge.STATICCALL( )
-
BridgeImplementation.DELEGATECALL( )
-
-
TokenImplementation.transferFrom( sender_=0x9221B5A4031Aa0BA933CC0B3C8785B1C4B865941, recipient_=0x74de5d4FCbf63E00296fd95d33236B9794016631, amount_=85102743432 ) => ( True )
Spender.swap( adapter=0x7CDf68CE9A05413Cbb76cb7F80EAF415A826E313, data=0x92F5F0370000000000000000000000009221B5A4031AA0BA933CC0B3C8785B1C4B8659410000000000000000000000001151CB3D861920E07A38E03EEAD12C32178567F6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013D084CF8800000000000000000000000000000000000000000000000000089EAE788ECE66000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000116448E8BD04E0000000000000000000000000E3478B0BB1A5084567C319096437924948BE1964000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000A8E449022E00000000000000000000000000000000000000000000000000000013D084CF880000000000000000000000000000000000000000000000000019A9EBAE8FB99300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000001200000000000000000000000403B1B747B1EFB309070436C9AC99BF476F299EA7DCBEA7C000000000000000000000000000000000000000000000000 )
0x7cdf68ce9a05413cbb76cb7f80eaf415a826e313.92f5f037( )
BridgeToken.dd62ed3e( )
TokenBridge.STATICCALL( )
-
BridgeImplementation.DELEGATECALL( )
-
-
TokenImplementation.allowance( owner_=0x74de5d4FCbf63E00296fd95d33236B9794016631, spender_=0x1111111254EEB25477B68fb85Ed929f73A960582 ) => ( 115792089237316195423570985008687907853269984665640564039457558505087953141055 )
AggregationRouterV5.uniswapV3Swap( amount=85102743432, minReturn=7223704128829843, pools=[14474011154664524427946373126452682026626317746996628115044111696270734825962] ) => ( returnAmount=7371126662071269 )
UniswapV3Pool.swap( recipient=0x1111111254EEB25477B68fb85Ed929f73A960582, zeroForOne=True, amountSpecified=85102743432, sqrtPriceLimitX96=4295128740, data=0x00000000000000000000000074DE5D4FCBF63E00296FD95D33236B9794016631 ) => ( amount0=85102743432, amount1=-7371126662071269 )
-
WETH9.transfer( dst=0x1111111254EEB25477B68fb85Ed929f73A960582, wad=7371126662071269 ) => ( True )
BridgeToken.70a08231( )
-
TokenBridge.STATICCALL( )
-
TokenImplementation.balanceOf( account_=0x403b1b747b1EFB309070436c9aC99Bf476f299ea ) => ( 525239898651376 )
-
AggregationRouterV5.uniswapV3SwapCallback( amount0Delta=85102743432, amount1Delta=-7371126662071269, 0x00000000000000000000000074DE5D4FCBF63E00296FD95D33236B9794016631 )
-
UniswapV3Pool.STATICCALL( )
-
UniswapV3Pool.STATICCALL( )
-
UniswapV3Pool.STATICCALL( )
-
BridgeToken.23b872dd( )
-
BridgeToken.70a08231( )
-
TokenBridge.STATICCALL( )
-
TokenImplementation.balanceOf( account_=0x403b1b747b1EFB309070436c9aC99Bf476f299ea ) => ( 525325001394808 )
-
-
WETH9.withdraw( wad=7371126662071269 )
- ETH 0.007371126662071269
AggregationRouterV5.CALL( )
- ETH 0.007371126662071269
- ETH 0.007371126662071269
Spender.CALL( )
- ETH 0.004895338909205728
0xe3478b0bb1a5084567c319096437924948be1964.CALL( )
BridgeToken.70a08231( )
TokenBridge.STATICCALL( )
-
BridgeImplementation.DELEGATECALL( )
-
-
TokenImplementation.balanceOf( account_=0x74de5d4FCbf63E00296fd95d33236B9794016631 ) => ( 0 )
- ETH 0.002475787752865541
0x9221b5a4031aa0ba933cc0b3c8785b1c4b865941.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 9: MetaSwap
File 2 of 9: BridgeToken
File 3 of 9: UniswapV3Pool
File 4 of 9: AggregationRouterV5
File 5 of 9: WETH9
File 6 of 9: TokenBridge
File 7 of 9: BridgeImplementation
File 8 of 9: TokenImplementation
File 9 of 9: 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 9: BridgeToken
12345678910111213141516// File: @openzeppelin/contracts/proxy/beacon/IBeacon.sol// SPDX-License-Identifier: MITpragma solidity ^0.8.0;/*** @dev This is the interface that {BeaconProxy} expects of its beacon.*/interface IBeacon {/*** @dev Must return an address that can be used as a delegate call target.** {BeaconProxy} will check that this address is a contract.*/function implementation() external view returns (address);
File 3 of 9: UniswapV3Pool
12345678910111213141516// SPDX-License-Identifier: BUSL-1.1pragma solidity =0.7.6;import './interfaces/IUniswapV3Pool.sol';import './NoDelegateCall.sol';import './libraries/LowGasSafeMath.sol';import './libraries/SafeCast.sol';import './libraries/Tick.sol';import './libraries/TickBitmap.sol';import './libraries/Position.sol';import './libraries/Oracle.sol';import './libraries/FullMath.sol';import './libraries/FixedPoint128.sol';import './libraries/TransferHelper.sol';import './libraries/TickMath.sol';import './libraries/LiquidityMath.sol';import './libraries/SqrtPriceMath.sol';
File 4 of 9: AggregationRouterV5
12345678910111213141516/*,▄▓▓██▌ ,╓▄▄▓▓▓▓▓▓▓▓▄▄▄,,,▓██▓███▓▄▓███▓╬╬╬╬╬╬╬╬╬╬╬╬╬▓███▓▄,▄█ ▓██╬╣███████╬▓▀╬╬▓▓▓████████████▓█████▄,▓██▌ ▓██╬╣██████╬▓▌ ██████████████████████▌╙╙▀ⁿ▐████████╬▓████▓▓█╨ ▄ ╟█████████▓▓╬╬╬╬╬▓▓█████▓▄└▀▓▓▄╓ ╟█▓╣█████▓██████▀ ╓█▌ ███████▓▓▓▓▓╬╬╬╬╬╬╬╬╬╬╬╬▓██▓▄└▀████▓▄╥ ▐██╬╬██████████╙ Æ▀─ ▓███▀╚╠╬╩▀▀███████▓▓╬╬╬╬╬╬╬╬╬██▄└▀██▓▀▀█████▓╬▓██████▀ ▄█████▒╠" └╙▓██████▓╬╬╬╬╬╬╬╬██▄└▀██▄,└╙▀▀████▌└╙ ^"▀╙╙╙"╙██ @▄ ╙▀███████╬╬╬╬╬╬╬██µ└▀██▓▄, ██▌ ╒ ╙█▓ ]▓█▓╔ ▀███████▓╬╬╬╬╬▓█▌▀█████ ▓ ╟█▌ ]╠██▓░▒╓ ▀████████╬╬╬╬╣█▌▐████ ╓█▀█▌ ,██▌ ╚Å███▓▒▒╠╓ ╙█████████╬╬╬╣█▌└████ ▓█░░▓█ ▀▀▀ φ▒╫████▒▒▒▒╠╓ █████████▓╬╬▓█µ╘███µ ▌▄█▓▄▓▀` ,▀ ,╔╠░▓██████▌╠▒▒▒φ ██████████╬╬██▐████µ╙▓▀` ,▀╙,╔╔φφφ╠░▄▓███████▌░▓╙▒▒▒╠ └██╬███████╬▓█⌐
File 5 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 6 of 9: TokenBridge
12345678910111213141516// contracts/Wormhole.sol// SPDX-License-Identifier: Apache 2pragma solidity ^0.8.0;import "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";contract TokenBridge is ERC1967Proxy {constructor (address implementation, bytes memory initData)ERC1967Proxy(implementation,initData){}}// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import "../Proxy.sol";import "./ERC1967Upgrade.sol";/**
File 7 of 9: BridgeImplementation
12345678910111213141516// contracts/Implementation.sol// SPDX-License-Identifier: Apache 2pragma solidity ^0.8.0;pragma experimental ABIEncoderV2;import "@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol";import "./Bridge.sol";contract BridgeImplementation is Bridge {// Beacon getter for the token contractsfunction implementation() public view returns (address) {return tokenImplementation();}function initialize() initializer public virtual {// this function needs to be exposed for an upgrade to pass}modifier initializer() {address impl = ERC1967Upgrade._getImplementation();
File 8 of 9: TokenImplementation
12345678910111213141516// SPDX-License-Identifier: Apache 2// File: @openzeppelin/contracts/utils/Counters.solpragma solidity ^0.8.0;/*** @title Counters* @author Matt Condon (@shrugs)* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number* of elements in a mapping, issuing ERC721 ids, or counting request ids.** Include with `using Counters for Counters.Counter;`*/library Counters {struct Counter {
File 9 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"}}