ETH Price: $3,754.61 (+0.75%)

Transaction Decoder

Block:
17728645 at Jul-19-2023 05:13:47 PM +UTC
Transaction Fee:
0.001362296087826862 ETH $5.11
Gas Used:
30,629 Gas / 44.477328278 Gwei

Account State Difference:

  Address   Before After State Difference Code
(Fee Recipient: 0x34...a26)
14.612310193383089068 Eth14.61234774247784014 Eth0.000037549094751072
0x91E9761D...2C068D07A
0.008646606174300681 Eth
Nonce: 50
0.007284310086473819 Eth
Nonce: 51
0.001362296087826862

Execution Trace

ETH 0.001877338901688717 WooCrossChainRouterV2.crossSwap( refId=931221689786705458, to=0x91E9761D346605B2d5db9C74eC7421B2C068D07A, 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:1000000000000000, valueString:1000000000000000}, {name:minBridgeAmount, type:uint256, order:4, indexed:false, value:1000000000000000, valueString:1000000000000000}], 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:990000000000000, valueString:990000000000000}, {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