ETH Price: $2,686.17 (-1.71%)

Contract

0xf7756Cb2EA960C7DC6da1bA2b7F52dF73735cE75

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Set Destination ...4059039842025-12-01 2:47:5260 days ago1764557272IN
0xf7756Cb2...73735cE75
0 ETH0.000001330.027621
Set Source Contr...4059039582025-12-01 2:47:4660 days ago1764557266IN
0xf7756Cb2...73735cE75
0 ETH0.000001250.026291
Set Destination ...4059039372025-12-01 2:47:4060 days ago1764557260IN
0xf7756Cb2...73735cE75
0 ETH0.000001270.026496
Whitelist Token4059038902025-12-01 2:47:2860 days ago1764557248IN
0xf7756Cb2...73735cE75
0 ETH0.000001220.025605
Whitelist Token4059038692025-12-01 2:47:2360 days ago1764557243IN
0xf7756Cb2...73735cE75
0 ETH0.000001140.023966
Whitelist Token4059038482025-12-01 2:47:1860 days ago1764557238IN
0xf7756Cb2...73735cE75
0 ETH0.00000110.023207
Whitelist Dex4059038272025-12-01 2:47:1360 days ago1764557233IN
0xf7756Cb2...73735cE75
0 ETH0.000001110.023216
Whitelist Dex4059038062025-12-01 2:47:0760 days ago1764557227IN
0xf7756Cb2...73735cE75
0 ETH0.000001090.022917
Whitelist Dex4059037842025-12-01 2:47:0260 days ago1764557222IN
0xf7756Cb2...73735cE75
0 ETH0.000001110.023221
Whitelist Dex4059037622025-12-01 2:46:5660 days ago1764557216IN
0xf7756Cb2...73735cE75
0 ETH0.000001120.023564
Whitelist Dex4059037392025-12-01 2:46:5160 days ago1764557211IN
0xf7756Cb2...73735cE75
0 ETH0.000001140.023813

Parent Transaction Hash Block From To
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xba2B4c6d...a5DC128E4
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
FlashLoanArbitrageCrossChain

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

// ============================================
// INTERFACES
// ============================================

interface IStargateRouter {
    struct lzTxObj {
        uint256 dstGasForCall;
        uint256 dstNativeAmount;
        bytes dstNativeAddr;
    }

    function swap(
        uint16 _dstChainId,
        uint256 _srcPoolId,
        uint256 _dstPoolId,
        address payable _refundAddress,
        uint256 _amountLD,
        uint256 _minAmountLD,
        lzTxObj memory _lzTxParams,
        bytes calldata _to,
        bytes calldata _payload
    ) external payable;

    function quoteLayerZeroFee(
        uint16 _dstChainId,
        uint8 _functionType,
        bytes calldata _toAddress,
        bytes calldata _transferAndCallPayload,
        lzTxObj memory _lzTxParams
    ) external view returns (uint256, uint256);
}

interface IStargateReceiver {
    function sgReceive(
        uint16 _srcChainId,
        bytes memory _srcAddress,
        uint256 _nonce,
        address _token,
        uint256 amountLD,
        bytes memory payload
    ) external;
}

interface ISushiRouter {
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    
    function getAmountsOut(uint amountIn, address[] calldata path)
        external view returns (uint[] memory amounts);
}

interface IUniswapV3Router {
    struct ExactInputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
        uint160 sqrtPriceLimitX96;
    }

    function exactInputSingle(ExactInputSingleParams calldata params)
        external payable returns (uint256 amountOut);
}

/// @title FlashLoanArbitrageCrossChain
/// @notice Cross-chain arbitrage with Stargate - STACK FIXED VERSION
contract FlashLoanArbitrageCrossChain is Ownable, ReentrancyGuard, IStargateReceiver {
    
    // ============================================
    // STATE VARIABLES
    // ============================================
    
    address public stargateRouter;
    address public wrappedNative;
    uint16 public localChainId;

    mapping(address => bool) public whitelistedTokens;
    mapping(address => bool) public whitelistedDex;
    mapping(uint16 => address) public destinationContracts;
    mapping(uint16 => address) public sourceContracts;
    
    uint256 public totalProfit;
    uint256 public totalTrades;
    uint256 public totalCrossChainTrades;
    
    uint256 public minProfitBps = 30;
    uint256 public maxSlippageBps = 100;
    bool public paused = false;

    // ============================================
    // EVENTS
    // ============================================

    event ArbitrageFailed(bytes32 indexed operationId, string reason);
    event ArbitrageExecuted(bytes32 indexed operationId, uint256 profit);
    event SwapExecuted(bytes32 indexed operationId, uint256 amountIn, uint256 amountOut);
    event DexWhitelisted(address indexed dex, bool status);
    event TokenWhitelisted(address indexed token, bool status);
    event CrossChainInitiated(bytes32 indexed operationId, uint16 dstChainId, uint256 amount);
    event CrossChainReceived(uint16 srcChainId, address token, uint256 amount);
    event CrossChainReturned(uint16 dstChainId, uint256 amount);
    event DestinationSet(uint16 indexed chainId, address contractAddress);
    event SourceSet(uint16 indexed chainId, address contractAddress);

    // ============================================
    // CONSTRUCTOR
    // ============================================

    constructor(
        address _stargateRouter,
        address _wrappedNative,
        uint16 _localChainId
    ) Ownable(msg.sender) {
        stargateRouter = _stargateRouter;
        wrappedNative = _wrappedNative;
        localChainId = _localChainId;
        whitelistedTokens[_wrappedNative] = true;
    }

    // ============================================
    // MODIFIERS
    // ============================================

    modifier notPaused() {
        require(!paused, "Paused");
        _;
    }

    modifier onlyStargate() {
        require(msg.sender == stargateRouter, "Not Stargate");
        _;
    }

    // ============================================
    // WHITELIST FUNCTIONS (Individual only)
    // ============================================

    function whitelistToken(address token, bool status) external onlyOwner {
        whitelistedTokens[token] = status;
        emit TokenWhitelisted(token, status);
    }

    function whitelistDex(address dex, bool status) external onlyOwner {
        whitelistedDex[dex] = status;
        emit DexWhitelisted(dex, status);
    }

    // ============================================
    // CROSS-CHAIN CONFIG
    // ============================================

    function setDestinationContract(uint16 chainId, address addr) external onlyOwner {
        destinationContracts[chainId] = addr;
        emit DestinationSet(chainId, addr);
    }

    function setSourceContract(uint16 chainId, address addr) external onlyOwner {
        sourceContracts[chainId] = addr;
        emit SourceSet(chainId, addr);
    }

    // ============================================
    // VIEW FUNCTIONS
    // ============================================

    function quoteCrossChainFee(uint16 dstChainId) external view returns (uint256) {
        address dst = destinationContracts[dstChainId];
        if (dst == address(0)) return 0;
        
        (uint256 fee,) = IStargateRouter(stargateRouter).quoteLayerZeroFee(
            dstChainId,
            1,
            abi.encodePacked(dst),
            bytes(""),
            IStargateRouter.lzTxObj(500000, 0, bytes(""))
        );
        return fee;
    }

    // ============================================
    // CROSS-CHAIN ARBITRAGE
    // ============================================

    function executeCrossChainArbitrage(
        address token,
        uint256 amount,
        address srcDex,
        address tgtDex,
        address midToken,
        uint16 dstChain,
        uint256 poolId
    ) external payable onlyOwner nonReentrant notPaused {
        require(whitelistedTokens[token], "Token not whitelisted");
        require(whitelistedDex[srcDex] && whitelistedDex[tgtDex], "DEX not whitelisted");
        require(destinationContracts[dstChain] != address(0), "No destination");

        bytes32 opId = keccak256(abi.encodePacked(token, amount, block.timestamp));

        // Get fee
        uint256 fee = this.quoteCrossChainFee(dstChain);
        require(msg.value >= fee, "Need more ETH for fee");

        // Transfer tokens
        IERC20(token).transferFrom(msg.sender, address(this), amount);
        IERC20(token).approve(stargateRouter, amount);

        // Build payload
        bytes memory payload = abi.encode(opId, msg.sender, srcDex, tgtDex, midToken);

        // Execute swap
        _doStargateSwap(dstChain, poolId, amount, payload, fee);

        emit CrossChainInitiated(opId, dstChain, amount);

        // Refund extra
        if (msg.value > fee) {
            payable(msg.sender).transfer(msg.value - fee);
        }
    }

    function _doStargateSwap(
        uint16 dstChain,
        uint256 poolId,
        uint256 amount,
        bytes memory payload,
        uint256 fee
    ) internal {
        uint256 minOut = (amount * (10000 - maxSlippageBps)) / 10000;
        address dst = destinationContracts[dstChain];
        
        IStargateRouter(stargateRouter).swap{value: fee}(
            dstChain,
            poolId,
            poolId,
            payable(msg.sender),
            amount,
            minOut,
            IStargateRouter.lzTxObj(500000, 0, bytes("")),
            abi.encodePacked(dst),
            payload
        );
    }

    // ============================================
    // STARGATE RECEIVER
    // ============================================

    function sgReceive(
        uint16 srcChain,
        bytes memory,
        uint256,
        address token,
        uint256 amount,
        bytes memory payload
    ) external override onlyStargate notPaused {
        emit CrossChainReceived(srcChain, token, amount);

        // Decode
        (bytes32 opId, address initiator, address srcDex, address tgtDex, address midToken) = 
            abi.decode(payload, (bytes32, address, address, address, address));

        // Do swaps
        uint256 result = _doLocalSwaps(token, amount, srcDex, tgtDex, midToken, opId);

        // Return funds
        _sendBack(srcChain, token, result, opId, initiator, amount);
    }

    function _doLocalSwaps(
        address token,
        uint256 amount,
        address srcDex,
        address tgtDex,
        address midToken,
        bytes32 opId
    ) internal returns (uint256) {
        // Swap 1: token -> midToken
        uint256 midAmt = _swap(token, midToken, srcDex, amount, opId);
        if (midAmt == 0) return amount;

        // Swap 2: midToken -> token
        uint256 finalAmt = _swap(midToken, token, tgtDex, midAmt, opId);
        return finalAmt > 0 ? finalAmt : amount;
    }

    function _swap(
        address tokenIn,
        address tokenOut,
        address dex,
        uint256 amtIn,
        bytes32 opId
    ) internal returns (uint256) {
        IERC20(tokenIn).approve(dex, amtIn);

        address[] memory path = new address[](2);
        path[0] = tokenIn;
        path[1] = tokenOut;

        try ISushiRouter(dex).swapExactTokensForTokens(
            amtIn, 1, path, address(this), block.timestamp + 300
        ) returns (uint256[] memory amts) {
            emit SwapExecuted(opId, amtIn, amts[1]);
            return amts[1];
        } catch {
            emit ArbitrageFailed(opId, "Swap failed");
            return 0;
        }
    }

    function _sendBack(
        uint16 srcChain,
        address token,
        uint256 amount,
        bytes32 opId,
        address initiator,
        uint256 origAmt
    ) internal {
        // Quote fee
        uint256 fee = _getReturnFee(srcChain);
        require(address(this).balance >= fee, "No gas for return");

        // Approve and send
        IERC20(token).approve(stargateRouter, amount);
        
        _executeReturn(srcChain, amount, fee, opId, initiator, origAmt);

        totalCrossChainTrades++;
        emit CrossChainReturned(srcChain, amount);

        if (amount > origAmt) {
            totalProfit += (amount - origAmt);
            emit ArbitrageExecuted(opId, amount - origAmt);
        }
    }

    function _getReturnFee(uint16 srcChain) internal view returns (uint256) {
        address src = sourceContracts[srcChain];
        (uint256 fee,) = IStargateRouter(stargateRouter).quoteLayerZeroFee(
            srcChain,
            1,
            abi.encodePacked(src),
            bytes(""),
            IStargateRouter.lzTxObj(300000, 0, bytes(""))
        );
        return fee;
    }

    function _executeReturn(
        uint16 srcChain,
        uint256 amount,
        uint256 fee,
        bytes32 opId,
        address initiator,
        uint256 origAmt
    ) internal {
        address src = sourceContracts[srcChain];
        bytes memory retPayload = abi.encode(opId, initiator, origAmt);
        uint256 minOut = (amount * 995) / 1000;

        IStargateRouter(stargateRouter).swap{value: fee}(
            srcChain,
            1, // USDC pool
            1,
            payable(address(this)),
            amount,
            minOut,
            IStargateRouter.lzTxObj(300000, 0, bytes("")),
            abi.encodePacked(src),
            retPayload
        );
    }

    // ============================================
    // ADMIN FUNCTIONS
    // ============================================

    function setPaused(bool _paused) external onlyOwner {
        paused = _paused;
    }

    function setMinProfitBps(uint256 val) external onlyOwner {
        minProfitBps = val;
    }

    function setMaxSlippageBps(uint256 val) external onlyOwner {
        maxSlippageBps = val;
    }

    function withdrawToken(address token, uint256 amount, address to) external onlyOwner {
        IERC20(token).transfer(to, amount);
    }

    function withdrawETH(uint256 amount, address to) external onlyOwner {
        payable(to).transfer(amount);
    }

    function fundGas() external payable {}

    function getContractInfo() external view returns (
        address, address, uint16, uint256, uint256, uint256, string memory
    ) {
        return (
            stargateRouter,
            wrappedNative,
            localChainId,
            totalProfit,
            totalTrades,
            totalCrossChainTrades,
            "CrossChain v1.2 Stack-Fixed"
        );
    }

    receive() external payable {}
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

Settings
{
  "evmVersion": "paris",
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "viaIR": true,
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_stargateRouter","type":"address"},{"internalType":"address","name":"_wrappedNative","type":"address"},{"internalType":"uint16","name":"_localChainId","type":"uint16"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"operationId","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"profit","type":"uint256"}],"name":"ArbitrageExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"operationId","type":"bytes32"},{"indexed":false,"internalType":"string","name":"reason","type":"string"}],"name":"ArbitrageFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"operationId","type":"bytes32"},{"indexed":false,"internalType":"uint16","name":"dstChainId","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CrossChainInitiated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"srcChainId","type":"uint16"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CrossChainReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"dstChainId","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CrossChainReturned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"chainId","type":"uint16"},{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"}],"name":"DestinationSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"dex","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"DexWhitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"chainId","type":"uint16"},{"indexed":false,"internalType":"address","name":"contractAddress","type":"address"}],"name":"SourceSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"operationId","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"SwapExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"TokenWhitelisted","type":"event"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"destinationContracts","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"srcDex","type":"address"},{"internalType":"address","name":"tgtDex","type":"address"},{"internalType":"address","name":"midToken","type":"address"},{"internalType":"uint16","name":"dstChain","type":"uint16"},{"internalType":"uint256","name":"poolId","type":"uint256"}],"name":"executeCrossChainArbitrage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"fundGas","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getContractInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"localChainId","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSlippageBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minProfitBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"dstChainId","type":"uint16"}],"name":"quoteCrossChainFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"chainId","type":"uint16"},{"internalType":"address","name":"addr","type":"address"}],"name":"setDestinationContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"val","type":"uint256"}],"name":"setMaxSlippageBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"val","type":"uint256"}],"name":"setMinProfitBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"chainId","type":"uint16"},{"internalType":"address","name":"addr","type":"address"}],"name":"setSourceContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"srcChain","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"payload","type":"bytes"}],"name":"sgReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"sourceContracts","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stargateRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCrossChainTrades","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalProfit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTrades","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"dex","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"whitelistDex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"whitelistToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedDex","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrappedNative","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

0x6080346200013f57601f62001c8638819003918201601f19168301916001600160401b0383118484101762000144578084926060946040528339810103126200013f576200004d816200015a565b60406200005d602084016200015a565b92015161ffff811681036200013f573315620001265760008054336001600160a01b031980831682178455604080519760019691959491936001600160a01b0393919284167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08780a3868055601e600b556064600c558260ff199889600d5416600d55169060025416176002551690816003549161ffff60a01b9060a01b1691868060b01b0319161717600355815260046020522091825416179055611b169081620001708239f35b604051631e4fbdf760e01b815260006004820152602490fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036200013f5756fe6080604052600436101561001b575b361561001957600080fd5b005b6000803560e01c80630ffb1d8b146113a557806316c38b3c146113695780631768c401146112e657806325fc1b3d146112c357806336118b5214611274578063383aeeae146112565780633ccdbb28146111b1578063418b253c146111325780635b056da51461110d5780635c975abb146110ea5780636e5eb89f146110ae578063715018a614611054578063739e509d1461101557806376fb229514610ff757806377d69eca14610fbb5780637b0b29a614610f8f5780637cc1f86714610eec5780638600151914610ece5780638da5cb5b14610ea7578063a9e56f3c14610e7e578063ab8236f314610965578063c4aa739514610947578063d9c85b23146108c4578063daf9c21014610885578063e275c99714610867578063e4c0b6fa14610858578063eb6d3a111461082f578063f2fde38b146107a4578063fb7830a3146101965763fcff2c2814610171575061000e565b346101935760203660031901126101935761018a6115d1565b600435600b5580f35b80fd5b5060e0366003190112610193576101ab61141c565b6101b3611448565b906101bc61145e565b6084356001600160a01b038116810361079f5761ffff60a4351660a4350361079f576101e66115d1565b60026001541461078d57600260015561020460ff600d541615611770565b6001600160a01b03831685526004602052604085205460ff1615610750576001600160a01b03841685526005602052604085205460ff1680610736575b156106fb5760a43561ffff168552600660205260408520546001600160a01b0316156106c5576040516001600160601b03198460601b1660208201526024356034820152426054820152605481526102988161153c565b602081519101209160405193633d8594d360e11b855261ffff60a435166004860152602085602481305afa94851561061d57879561068d575b50843410610650576040516323b872dd60e01b8152336004820152306024808301919091523560448201528791602082606481866001600160a01b0386165af19081156106455760209261035c92610628575b5060025460405163095ea7b360e01b81526001600160a01b039091166004820152602480359082015293849283919082906044820190565b03926001600160a01b03165af1801561061d576105ee575b50604080516020810185905233918101919091526001600160a01b0395861660608201529085166080820152931660a080850191909152835260c0830167ffffffffffffffff8111848210176105d857604052600c54612710908103908082116105c4576024358083029281159184041417156105ae5760a43561ffff168652600660205260408087205460025491518897919390926001600160a01b03169161041d84611520565b8884526040519361042d856114d4565b6207a12085528960208601526040850152604051946001600160601b03199060601b1660208601526014855261046285611504565b823b156105aa576104cc956104f189926104de8c986040519a8b998a9889976327efc43f60e21b895261ffff60a4351660048a015260c4358060248b015260448a01523360648a015260243560848a01520460a488015261012060c4880152610124870190611613565b8581036003190160e487015290611494565b8381036003190161010485015290611494565b03925af190811561059f578491610587575b50506040805160a43561ffff16815260243560208201527f28da8b4873ca2e59c92d78e88d0b38f3aabae91b844cbef25a286b53f93780949190a280341161054e575b506001805580f35b818061055b8193346117bd565b81811561057e575b3390f115610572578038610546565b604051903d90823e3d90fd5b506108fc610563565b610590906114f0565b61059b578238610503565b5050fd5b6040513d86823e3d90fd5b8880fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b86526011600452602486fd5b634e487b7160e01b600052604160045260246000fd5b61060f9060203d602011610616575b6106078183611558565b8101906117a5565b5038610374565b503d6105fd565b6040513d89823e3d90fd5b61063e90843d8611610616576106078183611558565b5038610324565b6040513d85823e3d90fd5b60405162461bcd60e51b81526020600482015260156024820152744e656564206d6f72652045544820666f722066656560581b6044820152606490fd5b9094506020813d6020116106bd575b816106a960209383611558565b810103126106b9575193386102d1565b8680fd5b3d915061069c565b60405162461bcd60e51b815260206004820152600e60248201526d2737903232b9ba34b730ba34b7b760911b6044820152606490fd5b60405162461bcd60e51b8152602060048201526013602482015272111156081b9bdd081dda1a5d195b1a5cdd1959606a1b6044820152606490fd5b506001600160a01b0382168552604085205460ff16610241565b60405162461bcd60e51b8152602060048201526015602482015274151bdad95b881b9bdd081dda1a5d195b1a5cdd1959605a1b6044820152606490fd5b604051633ee5aeb560e01b8152600490fd5b600080fd5b5034610193576020366003190112610193576107be61141c565b6107c66115d1565b6001600160a01b0390811690811561081657600054826001600160601b0360a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b604051631e4fbdf760e01b815260048101849052602490fd5b50346101935780600319360112610193576003546040516001600160a01b039091168152602090f35b50806003193601126101935780f35b50346101935780600319360112610193576020600954604051908152f35b50346101935760203660031901126101935760209060ff906040906001600160a01b036108b061141c565b168152600484522054166040519015158152f35b5034610193576040366003190112610193576108de611483565b7f3c9e78b045cd59bf9227677f7a510e90436642d4418f29b79d07f1d2e1403361602061ffff61090c611432565b936109156115d1565b1680855260068252604080862080546001600160a01b0319166001600160a01b0390961695861790555193845292a280f35b50346101935780600319360112610193576020600c54604051908152f35b50346101935760c03660031901126101935761097f611483565b67ffffffffffffffff602435818111610e46576109a090369060040161157a565b506109a961145e565b9060a435908111610e46576109c290369060040161157a565b6002549092906001600160a01b03163303610e4a576109e660ff600d541615611770565b7f32a26e3cada332f94346f04b52257429b46c536f995d06884c1de72375885df3606060405161ffff8416815260018060a01b03851660208201526084356040820152a160a083805181010312610e4657602083015192610a9484610a4d604084016117ca565b92610a5a606082016117ca565b610a66608083016117ca565b916001600160a01b0390610a7c9060a0016117ca565b16916001600160a01b039081169116608435886117de565b9261ffff83168652600760205260408620549060018060a01b036002541690604051926001600160601b03199060601b16602084015260148352610ad783611504565b60408051610ae481611520565b898152815194610af386611520565b8a8652825195610b02876114d4565b620493e087528b602088015283870152610b3083519687938493630a51236960e01b85528b6004860161163d565b0381855afa928315610e3b578893610e09575b50824710610dd05760405163095ea7b360e01b81526001600160a01b0392831660048201526024810187905291602091839160449183918c91165af1801561061d57610db1575b5061ffff8316865260076020526040862054906040519286602085015260018060a01b03166040840152608435606084015260608352610bc98361153c565b6103e3928584810204841486151715610d9d579087929160018060a01b036002541691604051610bf881611520565b85815260405190610c08826114d4565b620493e082528660208301526040820152604051946001600160601b03199060601b16602086015260148552610c3d85611504565b833b15610d9957610ca661ffff936104de8b976104cc8c956103e86040519d8e9c8d9b8c9a6327efc43f60e21b8c521660048b0152600160248b0152600160448b01523060648b01528060848b0152020460a488015261012060c4880152610124870190611613565b03925af18015610d8e57610d7b575b50600a546000198114610d6757600101600a556040805161ffff929092168252602082018390527f0e80c1cfabcb91f582c62e0755a31adee588a21067526cb992a58eee4d2179c791a16084358111610d0c578280f35b610d18608435826117bd565b906008549182018092116105ae57610d5a6020917fd3aff6695a4e7f0e3bcea00a8ae8663c04b8b393b2b754719bef1895c4828b2c93600855608435906117bd565b604051908152a238808280f35b634e487b7160e01b85526011600452602485fd5b610d87909491946114f0565b9238610cb5565b6040513d87823e3d90fd5b8580fd5b634e487b7160e01b88526011600452602488fd5b610dc99060203d602011610616576106078183611558565b5038610b8a565b60405162461bcd60e51b815260206004820152601160248201527027379033b0b9903337b9103932ba3ab93760791b6044820152606490fd5b610e2c91935060403d604011610e34575b610e248183611558565b8101906115fd565b509138610b43565b503d610e1a565b6040513d8a823e3d90fd5b8380fd5b60405162461bcd60e51b815260206004820152600c60248201526b4e6f7420537461726761746560a01b6044820152606490fd5b50346101935780600319360112610193576002546040516001600160a01b039091168152602090f35b5034610193578060031936011261019357546040516001600160a01b039091168152602090f35b50346101935780600319360112610193576020600854604051908152f35b503461019357806003193601126101935760018060a01b038060025416610f8b600354600854600954600a549161ffff60405194610f2986611504565b601b86527f43726f7373436861696e2076312e3220537461636b2d46697865640000000000602087015260405198899889528116602089015260a01c1660408701526060860152608085015260a084015260e060c084015260e0830190611494565b0390f35b5034610193576020366003190112610193576020610fb3610fae611483565b611684565b604051908152f35b50346101935760203660031901126101935760209061ffff610fdb611483565b16815260068252604060018060a01b0391205416604051908152f35b50346101935780600319360112610193576020600a54604051908152f35b50346101935760203660031901126101935760209060ff906040906001600160a01b0361104061141c565b168152600584522054166040519015158152f35b503461019357806003193601126101935761106d6115d1565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50346101935760203660031901126101935760209061ffff6110ce611483565b16815260078252604060018060a01b0391205416604051908152f35b5034610193578060031936011261019357602060ff600d54166040519015158152f35b5034610193578060031936011261019357602061ffff60035460a01c16604051908152f35b50346101935760403660031901126101935761114c61141c565b7f20f452f21f3f655ef588bfff20769de0ea12d29e13eca95441d59fa920e44ce56020611177611474565b926111806115d1565b6001600160a01b03168085526005825260408520805460ff191660ff86151516179055925b6040519015158152a280f35b5034610193576060366003190112610193578060206112156111d161141c565b6111d9611448565b6111e16115d1565b60405163a9059cbb60e01b81526001600160a01b039091166004820152602480359082015293849283919082906044820190565b03926001600160a01b03165af1801561124b57611230575080f35b6112479060203d8111610616576106078183611558565b5080f35b6040513d84823e3d90fd5b50346101935780600319360112610193576020600b54604051908152f35b50346101935760403660031901126101935780808080600435611295611432565b61129d6115d1565b829082156112b9575b6001600160a01b031690f1156105725780f35b6108fc91506112a6565b5034610193576020366003190112610193576112dd6115d1565b600435600c5580f35b503461019357604036600319011261019357611300611483565b7fd14d74ec467395a16b9ccc05516ce9de9e440c199137762efe89990a1494f8b9602061ffff61132e611432565b936113376115d1565b1680855260078252604080862080546001600160a01b0319166001600160a01b0390961695861790555193845292a280f35b5034610193576020366003190112610193576004358015158091036113a1576113906115d1565b60ff8019600d5416911617600d5580f35b5080fd5b5034610193576040366003190112610193576113bf61141c565b7fef81a9943b96c8df4ef243401c9bf5159146166211356898b52d382086168d9260206113ea611474565b926113f36115d1565b6001600160a01b03168085526004825260408520805460ff191660ff86151516179055926111a5565b600435906001600160a01b038216820361079f57565b602435906001600160a01b038216820361079f57565b604435906001600160a01b038216820361079f57565b606435906001600160a01b038216820361079f57565b60243590811515820361079f57565b6004359061ffff8216820361079f57565b919082519283825260005b8481106114c0575050826000602080949584010152601f8019910116010190565b60208183018101518483018201520161149f565b6060810190811067ffffffffffffffff8211176105d857604052565b67ffffffffffffffff81116105d857604052565b6040810190811067ffffffffffffffff8211176105d857604052565b6020810190811067ffffffffffffffff8211176105d857604052565b6080810190811067ffffffffffffffff8211176105d857604052565b90601f8019910116810190811067ffffffffffffffff8211176105d857604052565b81601f8201121561079f5780359067ffffffffffffffff82116105d857604051926115af601f8401601f191660200185611558565b8284526020838301011161079f57816000926020809301838601378301015290565b6000546001600160a01b031633036115e557565b60405163118cdaa760e01b8152336004820152602490fd5b919082604091031261079f576020825192015190565b906060604061163a9380518452602081015160208501520151918160408201520190611494565b90565b9261166861163a959361ffff611676941686526001602087015260a0604087015260a0860190611494565b908482036060860152611494565b916080818403910152611613565b61ffff8116600090815260066020526040808220549192916001600160a01b039081811615611769578291600254168251916001600160601b03199060601b166020830152601482526116d682611504565b8251916116e283611520565b8683528351956116f187611520565b878752845196611700886114d4565b6207a12088528860208901528588015261172f855197889586948594630a51236960e01b86526004860161163d565b03915afa92831561175e579261174457505090565b61175a9250803d10610e3457610e248183611558565b5090565b9051903d90823e3d90fd5b5050505090565b1561177757565b60405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b6044820152606490fd5b9081602091031261079f5751801515810361079f5790565b919082039182116105ae57565b51906001600160a01b038216820361079f57565b9185826117f09297959397878661183e565b918215611810576118009461183e565b90811561180b575090565b905090565b505050505090565b8051600110156118285760400190565b634e487b7160e01b600052603260045260246000fd5b6040805163095ea7b360e01b81526001600160a01b03858116600483015260248201879052600097966020969395949093929082169087816044818d865af18015611ad657611ab9575b50855194611895866114d4565b600286528786019187368437865115611aa5578252826118b487611818565b9116905261012c4201804211611a9157949189939187519687946338ed173960e01b865260a486019088600488015260019081602489015260a060448901525180925260c487019391885b8d828210611a6c57505050505091848692819430606484015260848301520393165af18692816119be575b506119775750507f97a9de000864af57f2376f101e82b60f20613732a785add8000f8ef83a4ff26e916a14ddd85c0819985a5b195960aa1b82600b6060945193808552840152820152a290565b6119ba95508194936119aa7f40cad0fc6608ab3d2ae001f577ab42bcfb812d314e78770986cfc1d2025fbe129493611818565b51908351928352820152a2611818565b5190565b9092503d8088833e6119d08183611558565b81018582820312611a6857815167ffffffffffffffff92838211611a50570181601f820112156105aa578051928311611a54578260051b90865193611a1789840186611558565b84528780850192820101928311611a505787809101915b838310611a405750505050913861192a565b8251815291810191889101611a2e565b8980fd5b634e487b7160e01b89526041600452602489fd5b8780fd5b919496985092969850808295898951168152019601910192899694928e9896946118ff565b634e487b7160e01b8a52601160045260248afd5b634e487b7160e01b8b52603260045260248bfd5b611acf90883d8a11610616576106078183611558565b5038611888565b87513d8c823e3d90fdfea26469706673582212206b2f8540c71f0f2f84d8ae31153f341dc8e7be70e82ddf52da8900abd3eeada464736f6c6343000814003300000000000000000000000053bf833a5d6c4dda888f69c22c88c9f356a4161400000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1000000000000000000000000000000000000000000000000000000000000006e

Deployed Bytecode

0x6080604052600436101561001b575b361561001957600080fd5b005b6000803560e01c80630ffb1d8b146113a557806316c38b3c146113695780631768c401146112e657806325fc1b3d146112c357806336118b5214611274578063383aeeae146112565780633ccdbb28146111b1578063418b253c146111325780635b056da51461110d5780635c975abb146110ea5780636e5eb89f146110ae578063715018a614611054578063739e509d1461101557806376fb229514610ff757806377d69eca14610fbb5780637b0b29a614610f8f5780637cc1f86714610eec5780638600151914610ece5780638da5cb5b14610ea7578063a9e56f3c14610e7e578063ab8236f314610965578063c4aa739514610947578063d9c85b23146108c4578063daf9c21014610885578063e275c99714610867578063e4c0b6fa14610858578063eb6d3a111461082f578063f2fde38b146107a4578063fb7830a3146101965763fcff2c2814610171575061000e565b346101935760203660031901126101935761018a6115d1565b600435600b5580f35b80fd5b5060e0366003190112610193576101ab61141c565b6101b3611448565b906101bc61145e565b6084356001600160a01b038116810361079f5761ffff60a4351660a4350361079f576101e66115d1565b60026001541461078d57600260015561020460ff600d541615611770565b6001600160a01b03831685526004602052604085205460ff1615610750576001600160a01b03841685526005602052604085205460ff1680610736575b156106fb5760a43561ffff168552600660205260408520546001600160a01b0316156106c5576040516001600160601b03198460601b1660208201526024356034820152426054820152605481526102988161153c565b602081519101209160405193633d8594d360e11b855261ffff60a435166004860152602085602481305afa94851561061d57879561068d575b50843410610650576040516323b872dd60e01b8152336004820152306024808301919091523560448201528791602082606481866001600160a01b0386165af19081156106455760209261035c92610628575b5060025460405163095ea7b360e01b81526001600160a01b039091166004820152602480359082015293849283919082906044820190565b03926001600160a01b03165af1801561061d576105ee575b50604080516020810185905233918101919091526001600160a01b0395861660608201529085166080820152931660a080850191909152835260c0830167ffffffffffffffff8111848210176105d857604052600c54612710908103908082116105c4576024358083029281159184041417156105ae5760a43561ffff168652600660205260408087205460025491518897919390926001600160a01b03169161041d84611520565b8884526040519361042d856114d4565b6207a12085528960208601526040850152604051946001600160601b03199060601b1660208601526014855261046285611504565b823b156105aa576104cc956104f189926104de8c986040519a8b998a9889976327efc43f60e21b895261ffff60a4351660048a015260c4358060248b015260448a01523360648a015260243560848a01520460a488015261012060c4880152610124870190611613565b8581036003190160e487015290611494565b8381036003190161010485015290611494565b03925af190811561059f578491610587575b50506040805160a43561ffff16815260243560208201527f28da8b4873ca2e59c92d78e88d0b38f3aabae91b844cbef25a286b53f93780949190a280341161054e575b506001805580f35b818061055b8193346117bd565b81811561057e575b3390f115610572578038610546565b604051903d90823e3d90fd5b506108fc610563565b610590906114f0565b61059b578238610503565b5050fd5b6040513d86823e3d90fd5b8880fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b86526011600452602486fd5b634e487b7160e01b600052604160045260246000fd5b61060f9060203d602011610616575b6106078183611558565b8101906117a5565b5038610374565b503d6105fd565b6040513d89823e3d90fd5b61063e90843d8611610616576106078183611558565b5038610324565b6040513d85823e3d90fd5b60405162461bcd60e51b81526020600482015260156024820152744e656564206d6f72652045544820666f722066656560581b6044820152606490fd5b9094506020813d6020116106bd575b816106a960209383611558565b810103126106b9575193386102d1565b8680fd5b3d915061069c565b60405162461bcd60e51b815260206004820152600e60248201526d2737903232b9ba34b730ba34b7b760911b6044820152606490fd5b60405162461bcd60e51b8152602060048201526013602482015272111156081b9bdd081dda1a5d195b1a5cdd1959606a1b6044820152606490fd5b506001600160a01b0382168552604085205460ff16610241565b60405162461bcd60e51b8152602060048201526015602482015274151bdad95b881b9bdd081dda1a5d195b1a5cdd1959605a1b6044820152606490fd5b604051633ee5aeb560e01b8152600490fd5b600080fd5b5034610193576020366003190112610193576107be61141c565b6107c66115d1565b6001600160a01b0390811690811561081657600054826001600160601b0360a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b604051631e4fbdf760e01b815260048101849052602490fd5b50346101935780600319360112610193576003546040516001600160a01b039091168152602090f35b50806003193601126101935780f35b50346101935780600319360112610193576020600954604051908152f35b50346101935760203660031901126101935760209060ff906040906001600160a01b036108b061141c565b168152600484522054166040519015158152f35b5034610193576040366003190112610193576108de611483565b7f3c9e78b045cd59bf9227677f7a510e90436642d4418f29b79d07f1d2e1403361602061ffff61090c611432565b936109156115d1565b1680855260068252604080862080546001600160a01b0319166001600160a01b0390961695861790555193845292a280f35b50346101935780600319360112610193576020600c54604051908152f35b50346101935760c03660031901126101935761097f611483565b67ffffffffffffffff602435818111610e46576109a090369060040161157a565b506109a961145e565b9060a435908111610e46576109c290369060040161157a565b6002549092906001600160a01b03163303610e4a576109e660ff600d541615611770565b7f32a26e3cada332f94346f04b52257429b46c536f995d06884c1de72375885df3606060405161ffff8416815260018060a01b03851660208201526084356040820152a160a083805181010312610e4657602083015192610a9484610a4d604084016117ca565b92610a5a606082016117ca565b610a66608083016117ca565b916001600160a01b0390610a7c9060a0016117ca565b16916001600160a01b039081169116608435886117de565b9261ffff83168652600760205260408620549060018060a01b036002541690604051926001600160601b03199060601b16602084015260148352610ad783611504565b60408051610ae481611520565b898152815194610af386611520565b8a8652825195610b02876114d4565b620493e087528b602088015283870152610b3083519687938493630a51236960e01b85528b6004860161163d565b0381855afa928315610e3b578893610e09575b50824710610dd05760405163095ea7b360e01b81526001600160a01b0392831660048201526024810187905291602091839160449183918c91165af1801561061d57610db1575b5061ffff8316865260076020526040862054906040519286602085015260018060a01b03166040840152608435606084015260608352610bc98361153c565b6103e3928584810204841486151715610d9d579087929160018060a01b036002541691604051610bf881611520565b85815260405190610c08826114d4565b620493e082528660208301526040820152604051946001600160601b03199060601b16602086015260148552610c3d85611504565b833b15610d9957610ca661ffff936104de8b976104cc8c956103e86040519d8e9c8d9b8c9a6327efc43f60e21b8c521660048b0152600160248b0152600160448b01523060648b01528060848b0152020460a488015261012060c4880152610124870190611613565b03925af18015610d8e57610d7b575b50600a546000198114610d6757600101600a556040805161ffff929092168252602082018390527f0e80c1cfabcb91f582c62e0755a31adee588a21067526cb992a58eee4d2179c791a16084358111610d0c578280f35b610d18608435826117bd565b906008549182018092116105ae57610d5a6020917fd3aff6695a4e7f0e3bcea00a8ae8663c04b8b393b2b754719bef1895c4828b2c93600855608435906117bd565b604051908152a238808280f35b634e487b7160e01b85526011600452602485fd5b610d87909491946114f0565b9238610cb5565b6040513d87823e3d90fd5b8580fd5b634e487b7160e01b88526011600452602488fd5b610dc99060203d602011610616576106078183611558565b5038610b8a565b60405162461bcd60e51b815260206004820152601160248201527027379033b0b9903337b9103932ba3ab93760791b6044820152606490fd5b610e2c91935060403d604011610e34575b610e248183611558565b8101906115fd565b509138610b43565b503d610e1a565b6040513d8a823e3d90fd5b8380fd5b60405162461bcd60e51b815260206004820152600c60248201526b4e6f7420537461726761746560a01b6044820152606490fd5b50346101935780600319360112610193576002546040516001600160a01b039091168152602090f35b5034610193578060031936011261019357546040516001600160a01b039091168152602090f35b50346101935780600319360112610193576020600854604051908152f35b503461019357806003193601126101935760018060a01b038060025416610f8b600354600854600954600a549161ffff60405194610f2986611504565b601b86527f43726f7373436861696e2076312e3220537461636b2d46697865640000000000602087015260405198899889528116602089015260a01c1660408701526060860152608085015260a084015260e060c084015260e0830190611494565b0390f35b5034610193576020366003190112610193576020610fb3610fae611483565b611684565b604051908152f35b50346101935760203660031901126101935760209061ffff610fdb611483565b16815260068252604060018060a01b0391205416604051908152f35b50346101935780600319360112610193576020600a54604051908152f35b50346101935760203660031901126101935760209060ff906040906001600160a01b0361104061141c565b168152600584522054166040519015158152f35b503461019357806003193601126101935761106d6115d1565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50346101935760203660031901126101935760209061ffff6110ce611483565b16815260078252604060018060a01b0391205416604051908152f35b5034610193578060031936011261019357602060ff600d54166040519015158152f35b5034610193578060031936011261019357602061ffff60035460a01c16604051908152f35b50346101935760403660031901126101935761114c61141c565b7f20f452f21f3f655ef588bfff20769de0ea12d29e13eca95441d59fa920e44ce56020611177611474565b926111806115d1565b6001600160a01b03168085526005825260408520805460ff191660ff86151516179055925b6040519015158152a280f35b5034610193576060366003190112610193578060206112156111d161141c565b6111d9611448565b6111e16115d1565b60405163a9059cbb60e01b81526001600160a01b039091166004820152602480359082015293849283919082906044820190565b03926001600160a01b03165af1801561124b57611230575080f35b6112479060203d8111610616576106078183611558565b5080f35b6040513d84823e3d90fd5b50346101935780600319360112610193576020600b54604051908152f35b50346101935760403660031901126101935780808080600435611295611432565b61129d6115d1565b829082156112b9575b6001600160a01b031690f1156105725780f35b6108fc91506112a6565b5034610193576020366003190112610193576112dd6115d1565b600435600c5580f35b503461019357604036600319011261019357611300611483565b7fd14d74ec467395a16b9ccc05516ce9de9e440c199137762efe89990a1494f8b9602061ffff61132e611432565b936113376115d1565b1680855260078252604080862080546001600160a01b0319166001600160a01b0390961695861790555193845292a280f35b5034610193576020366003190112610193576004358015158091036113a1576113906115d1565b60ff8019600d5416911617600d5580f35b5080fd5b5034610193576040366003190112610193576113bf61141c565b7fef81a9943b96c8df4ef243401c9bf5159146166211356898b52d382086168d9260206113ea611474565b926113f36115d1565b6001600160a01b03168085526004825260408520805460ff191660ff86151516179055926111a5565b600435906001600160a01b038216820361079f57565b602435906001600160a01b038216820361079f57565b604435906001600160a01b038216820361079f57565b606435906001600160a01b038216820361079f57565b60243590811515820361079f57565b6004359061ffff8216820361079f57565b919082519283825260005b8481106114c0575050826000602080949584010152601f8019910116010190565b60208183018101518483018201520161149f565b6060810190811067ffffffffffffffff8211176105d857604052565b67ffffffffffffffff81116105d857604052565b6040810190811067ffffffffffffffff8211176105d857604052565b6020810190811067ffffffffffffffff8211176105d857604052565b6080810190811067ffffffffffffffff8211176105d857604052565b90601f8019910116810190811067ffffffffffffffff8211176105d857604052565b81601f8201121561079f5780359067ffffffffffffffff82116105d857604051926115af601f8401601f191660200185611558565b8284526020838301011161079f57816000926020809301838601378301015290565b6000546001600160a01b031633036115e557565b60405163118cdaa760e01b8152336004820152602490fd5b919082604091031261079f576020825192015190565b906060604061163a9380518452602081015160208501520151918160408201520190611494565b90565b9261166861163a959361ffff611676941686526001602087015260a0604087015260a0860190611494565b908482036060860152611494565b916080818403910152611613565b61ffff8116600090815260066020526040808220549192916001600160a01b039081811615611769578291600254168251916001600160601b03199060601b166020830152601482526116d682611504565b8251916116e283611520565b8683528351956116f187611520565b878752845196611700886114d4565b6207a12088528860208901528588015261172f855197889586948594630a51236960e01b86526004860161163d565b03915afa92831561175e579261174457505090565b61175a9250803d10610e3457610e248183611558565b5090565b9051903d90823e3d90fd5b5050505090565b1561177757565b60405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b6044820152606490fd5b9081602091031261079f5751801515810361079f5790565b919082039182116105ae57565b51906001600160a01b038216820361079f57565b9185826117f09297959397878661183e565b918215611810576118009461183e565b90811561180b575090565b905090565b505050505090565b8051600110156118285760400190565b634e487b7160e01b600052603260045260246000fd5b6040805163095ea7b360e01b81526001600160a01b03858116600483015260248201879052600097966020969395949093929082169087816044818d865af18015611ad657611ab9575b50855194611895866114d4565b600286528786019187368437865115611aa5578252826118b487611818565b9116905261012c4201804211611a9157949189939187519687946338ed173960e01b865260a486019088600488015260019081602489015260a060448901525180925260c487019391885b8d828210611a6c57505050505091848692819430606484015260848301520393165af18692816119be575b506119775750507f97a9de000864af57f2376f101e82b60f20613732a785add8000f8ef83a4ff26e916a14ddd85c0819985a5b195960aa1b82600b6060945193808552840152820152a290565b6119ba95508194936119aa7f40cad0fc6608ab3d2ae001f577ab42bcfb812d314e78770986cfc1d2025fbe129493611818565b51908351928352820152a2611818565b5190565b9092503d8088833e6119d08183611558565b81018582820312611a6857815167ffffffffffffffff92838211611a50570181601f820112156105aa578051928311611a54578260051b90865193611a1789840186611558565b84528780850192820101928311611a505787809101915b838310611a405750505050913861192a565b8251815291810191889101611a2e565b8980fd5b634e487b7160e01b89526041600452602489fd5b8780fd5b919496985092969850808295898951168152019601910192899694928e9896946118ff565b634e487b7160e01b8a52601160045260248afd5b634e487b7160e01b8b52603260045260248bfd5b611acf90883d8a11610616576106078183611558565b5038611888565b87513d8c823e3d90fdfea26469706673582212206b2f8540c71f0f2f84d8ae31153f341dc8e7be70e82ddf52da8900abd3eeada464736f6c63430008140033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.