ETH Price: $2,527.08 (+0.70%)

Transaction Decoder

Block:
20452961 at Aug-04-2024 05:01:11 AM +UTC
Transaction Fee:
0.000191103 ETH $0.48
Gas Used:
191,103 Gas / 1 Gwei

Account State Difference:

  Address   Before After State Difference Code
2.225307730072645807 Eth2.225314901798451502 Eth0.000007171725805695
0xC0EF5628...8F687e959
0.019742690347898178 Eth
Nonce: 1
0.019551587347898178 Eth
Nonce: 2
0.000191103

Execution Trace

ETH 0.014027998657300426 WooCrossChainRouterV2.crossSwap( refId=971841685600629923, to=0xC0EF562880c56106dF793190f3B8C288F687e959, srcInfos=[{name:fromToken, type:address, order:1, indexed:false, value:0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, valueString:0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE}, {name:bridgeToken, type:address, order:2, indexed:false, value:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, valueString:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2}, {name:fromAmount, type:uint256, order:3, indexed:false, value:12999999999999999, valueString:12999999999999999}, {name:minBridgeAmount, type:uint256, order:4, indexed:false, value:12999999999999999, valueString:12999999999999999}], dstInfos=[{name:chainId, type:uint16, order:1, indexed:false, value:110, valueString:110}, {name:toToken, type:address, order:2, indexed:false, value:0x912CE59144191C1204E64559FE8253a0e49E6548, valueString:0x912CE59144191C1204E64559FE8253a0e49E6548}, {name:bridgeToken, type:address, order:3, indexed:false, value:0x82aF49447D8a07e3bd95BD0d56f35241523fBab1, valueString:0x82aF49447D8a07e3bd95BD0d56f35241523fBab1}, {name:minToAmount, type:uint256, order:4, indexed:false, value:20776734000000001146, valueString:20776734000000001146}, {name:airdropNativeAmount, type:uint256, order:5, indexed:false, value:0, valueString:0}] )
  • ETH 0.012999999999999999 WETH9.CALL( )
  • WETH9.balanceOf( 0x9D1A92e601db0901e69bd810029F2C14bCCA3128 ) => ( 12999999999999999 )
  • WETH9.withdraw( wad=12999999999999999 )
    • ETH 0.012999999999999999 WooCrossChainRouterV2.CALL( )
    • ETH 0.012999999999999999 StargateEthVault.CALL( )
    • StargateEthVault.approve( guy=0xeCc19E177d24551aA7ed6Bc6FE566eCa726CC8a9, wad=12999999999999999 ) => ( True )
    • ETH 0.001027998657300427 StargateComposer.swap( _dstChainId=110, _srcPoolId=13, _dstPoolId=13, _refundAddress=0xC0EF562880c56106dF793190f3B8C288F687e959, _amountLD=12999999999999999, _minAmountLD=12869999999999999, _lzTxParams=[{name:dstGasForCall, type:uint256, order:1, indexed:false, value:360000, valueString:360000}, {name:dstNativeAmount, type:uint256, order:2, indexed:false, value:0, valueString:0}, {name:dstNativeAddr, type:bytes, order:3, indexed:false, value:0xC0EF562880C56106DF793190F3B8C288F687E959, valueString:0xC0EF562880C56106DF793190F3B8C288F687E959}], _to=0x4AB421DE52B3112D02442B040DD3DC73E8AF63B5, _payload=0x0000000000000000000000000000000000000000000000000D7CACDD302474A3000000000000000000000000C0EF562880C56106DF793190F3B8C288F687E959000000000000000000000000912CE59144191C1204E64559FE8253A0E49E65480000000000000000000000000000000000000000000000012055C97E3EC7E47A )
      crossSwap[WooCrossChainRouterV2 (ln:56)]
      File 1 of 4: WooCrossChainRouterV2
      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      // SPDX-License-Identifier: MIT
      pragma solidity =0.8.14;
      // OpenZeppelin Contracts
      import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
      import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
      import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
      import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
      import {ICommonOFT, IOFTWithFee} from "@layerzerolabs/solidity-examples/contracts/token/oft/v2/fee/IOFTWithFee.sol";
      // Local Contracts
      import {IWETH} from "./interfaces/IWETH.sol";
      import {IWooCrossChainRouterV2} from "./interfaces/IWooCrossChainRouterV2.sol";
      import {IWooRouterV2} from "./interfaces/IWooRouterV2.sol";
      import {IStargateEthVault} from "./interfaces/Stargate/IStargateEthVault.sol";
      import {IStargateRouter} from "./interfaces/Stargate/IStargateRouter.sol";
      import {ILzApp} from "./interfaces/LayerZero/ILzApp.sol";
      import {TransferHelper} from "./libraries/TransferHelper.sol";
      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

      File 2 of 4: WETH9
      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      // 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;
      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

      File 3 of 4: StargateEthVault
      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      // 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.7.6;
      import "@openzeppelin/contracts/access/Ownable.sol";
      import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
      import "./interfaces/IStargateEthVault.sol";
      // This contract always UNWRAPS the erc20 for native gas token on transfer + transferFrom.
      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

      File 4 of 4: StargateComposer
      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      // SPDX-License-Identifier: UNLICENSED
      pragma solidity 0.7.6;
      pragma abicoder v2;
      import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
      import "@openzeppelin/contracts/access/Ownable.sol";
      import "@openzeppelin/contracts/utils/Address.sol";
      import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
      import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
      import "@openzeppelin/contracts/math/SafeMath.sol";
      import "./interfaces/IStargateRouter.sol";
      import "./interfaces/IStargateReceiver.sol";
      import "./interfaces/IStargateEthVault.sol";
      import "./util/BytesLib.sol";
      import "./util/SafeCall.sol";
      interface IStargateBridge {
      function quoteLayerZeroFee(
      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX