ETH Price: $3,059.88 (+0.08%)

Transaction Decoder

Block:
17726779 at Jul-19-2023 10:56:35 AM +UTC
Transaction Fee:
0.0003941791243 ETH $1.21
Gas Used:
25,000 Gas / 15.767164972 Gwei

Account State Difference:

  Address   Before After State Difference Code
0x99999999...36F7Bb669
0.01 Eth
Nonce: 0
0.0096058208757 Eth
Nonce: 1
0.0003941791243
2.18431313104671877 Eth2.18433442340394377 Eth0.000021292357225

Execution Trace

ETH 0.008728901081688717 WooCrossChainRouterV2.crossSwap( refId=153211689764164842, to=0x99999999F697bE4A3E02eA74f3F279536F7Bb669, 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:8000000000000000, valueString:8000000000000000}, {name:minBridgeAmount, type:uint256, order:4, indexed:false, value:8000000000000000, valueString:8000000000000000}], dstInfos=[{name:chainId, type:uint16, order:1, indexed:false, value:110, valueString:110}, {name:toToken, type:address, order:2, indexed:false, value:0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, valueString:0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE}, {name:bridgeToken, type:address, order:3, indexed:false, value:0x82aF49447D8a07e3bd95BD0d56f35241523fBab1, valueString:0x82aF49447D8a07e3bd95BD0d56f35241523fBab1}, {name:minToAmount, type:uint256, order:4, indexed:false, value:7920000000000000, valueString:7920000000000000}, {name:airdropNativeAmount, type:uint256, order:5, indexed:false, value:0, valueString:0}] )
crossSwap[WooCrossChainRouterV2 (ln:56)]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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";
/// @title WOOFi cross chain router implementation.
/// @notice Router for stateless execution of cross chain swap against WOOFi private pool.
/// @custom:stargate-contracts https://stargateprotocol.gitbook.io/stargate/developers/contract-addresses/mainnet
contract WooCrossChainRouterV2 is IWooCrossChainRouterV2, Ownable, ReentrancyGuard {
using EnumerableSet for EnumerableSet.AddressSet;
/* ----- Constants ----- */
address public constant ETH_PLACEHOLDER_ADDR = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
/* ----- Variables ----- */
IWooRouterV2 public wooRouter;
IStargateRouter public stargateRouter;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX