ETH Price: $2,717.96 (+1.76%)

Contract

0xbAB3bE86465b704ee367c8427EE1595530882A4c

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Exact Input Cros...1320665192025-02-16 18:50:1525 hrs ago1739731815IN
0xbAB3bE86...530882A4c
0.005018258106718 ETH0.0000004574720.0001034
Exact Input1320649362025-02-16 17:57:2926 hrs ago1739728649IN
0xbAB3bE86...530882A4c
0 ETH0.0000003055990.0010013
Exact Input1319360542025-02-13 18:21:254 days ago1739470885IN
0xbAB3bE86...530882A4c
0.0084 ETH0.0000003098730.00100058
Exact Input1317800172025-02-10 3:40:117 days ago1739158811IN
0xbAB3bE86...530882A4c
0 ETH0.0000001938050.0010119
Exact Input1316800412025-02-07 20:07:399 days ago1738958859IN
0xbAB3bE86...530882A4c
0.00002 ETH0.0000004440490.00100128
Exact Input1315010732025-02-03 16:42:0314 days ago1738600923IN
0xbAB3bE86...530882A4c
0 ETH0.0000005373040.00125223
Exact Input1314954562025-02-03 13:34:4914 days ago1738589689IN
0xbAB3bE86...530882A4c
0 ETH0.0000003280910.0010026
Exact Input1314514302025-02-02 13:07:1715 days ago1738501637IN
0xbAB3bE86...530882A4c
0 ETH0.0000004005650.00100057
Exact Input1313749842025-01-31 18:39:0517 days ago1738348745IN
0xbAB3bE86...530882A4c
0.0002 ETH0.0000015745620.00100068
Exact Input1310325912025-01-23 20:25:5924 days ago1737663959IN
0xbAB3bE86...530882A4c
0.0005 ETH0.0000009956570.00094161
Exact Input Cros...1309517612025-01-21 23:31:3926 days ago1737502299IN
0xbAB3bE86...530882A4c
0.000628621512933 ETH0.0000041043570.0010004
Exact Input1307805422025-01-18 0:24:2130 days ago1737159861IN
0xbAB3bE86...530882A4c
0 ETH0.0000032276740.0010003
Exact Input Cros...1305915352025-01-13 15:24:0735 days ago1736781847IN
0xbAB3bE86...530882A4c
0.000304109065888 ETH0.000090655320.00010028
Exact Input1304308332025-01-09 22:07:2338 days ago1736460443IN
0xbAB3bE86...530882A4c
0.00001 ETH0.0000066622910.00110027
Exact Input1303935572025-01-09 1:24:5139 days ago1736385891IN
0xbAB3bE86...530882A4c
0.0002 ETH0.00000066430.00100051
Exact Input1303310352025-01-07 14:40:4741 days ago1736260847IN
0xbAB3bE86...530882A4c
0 ETH0.0000003615020.0010005
Exact Input1303086202025-01-07 2:13:3741 days ago1736216017IN
0xbAB3bE86...530882A4c
0.0003 ETH0.0000002872650.00100034
Exact Input1302888482025-01-06 15:14:3342 days ago1736176473IN
0xbAB3bE86...530882A4c
0.01 ETH0.000062928890.00100028
Exact Input1302781412025-01-06 9:17:3942 days ago1736155059IN
0xbAB3bE86...530882A4c
0.000001 ETH0.0000001525950.00010044
Exact Input1302560512025-01-05 21:01:1942 days ago1736110879IN
0xbAB3bE86...530882A4c
0.000360338866061 ETH0.0000001101750.00010044
Exact Input1302517112025-01-05 18:36:3943 days ago1736102199IN
0xbAB3bE86...530882A4c
0.0003 ETH0.0000003509510.0010005
Exact Input1302471092025-01-05 16:03:1543 days ago1736092995IN
0xbAB3bE86...530882A4c
0.0001 ETH0.0000003201690.00100056
Exact Input1302452012025-01-05 14:59:3943 days ago1736089179IN
0xbAB3bE86...530882A4c
0 ETH0.0000001618620.00010093
Exact Input1302450212025-01-05 14:53:3943 days ago1736088819IN
0xbAB3bE86...530882A4c
0 ETH0.0000001707830.00010096
Exact Input1302446282025-01-05 14:40:3343 days ago1736088033IN
0xbAB3bE86...530882A4c
0 ETH0.0000001913940.00010084
VIEW ADVANCED FILTER

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
1320674502025-02-16 19:21:1724 hrs ago1739733677
0xbAB3bE86...530882A4c
0.000013891172075 ETH
1320674502025-02-16 19:21:1724 hrs ago1739733677
0xbAB3bE86...530882A4c
0.004616499519674 ETH
1320674502025-02-16 19:21:1724 hrs ago1739733677
0xbAB3bE86...530882A4c
0.004630390691749 ETH
1320665192025-02-16 18:50:1525 hrs ago1739731815
0xbAB3bE86...530882A4c
0.000018258106718 ETH
1320665192025-02-16 18:50:1525 hrs ago1739731815
0xbAB3bE86...530882A4c
0.005 ETH
1320649362025-02-16 17:57:2926 hrs ago1739728649
0xbAB3bE86...530882A4c
0.000009178656298 ETH
1320649362025-02-16 17:57:2926 hrs ago1739728649
0xbAB3bE86...530882A4c
0.003050373443144 ETH
1320649362025-02-16 17:57:2926 hrs ago1739728649
0xbAB3bE86...530882A4c
0.003059552099442 ETH
1319360542025-02-13 18:21:254 days ago1739470885
0xbAB3bE86...530882A4c
0.0084 ETH
1316800412025-02-07 20:07:399 days ago1738958859
0xbAB3bE86...530882A4c
0.00002 ETH
1314008712025-02-01 9:01:5916 days ago1738400519
0xbAB3bE86...530882A4c
0.000000862365967 ETH
1314008712025-02-01 9:01:5916 days ago1738400519
0xbAB3bE86...530882A4c
0.000286592956669 ETH
1314008712025-02-01 9:01:5916 days ago1738400519
0xbAB3bE86...530882A4c
0.000287455322637 ETH
1313749842025-01-31 18:39:0517 days ago1738348745
0xbAB3bE86...530882A4c
0.0002 ETH
1310325912025-01-23 20:25:5924 days ago1737663959
0xbAB3bE86...530882A4c
0.0005 ETH
1309517612025-01-21 23:31:3926 days ago1737502299
0xbAB3bE86...530882A4c
0.000128621512933 ETH
1309517612025-01-21 23:31:3926 days ago1737502299
0xbAB3bE86...530882A4c
0.0005 ETH
1308554222025-01-19 18:00:2129 days ago1737309621
0xbAB3bE86...530882A4c
0.000106667566301 ETH
1308554222025-01-19 18:00:2129 days ago1737309621
0xbAB3bE86...530882A4c
0.035449187867375 ETH
1308554222025-01-19 18:00:2129 days ago1737309621
0xbAB3bE86...530882A4c
0.035555855433676 ETH
1307805422025-01-18 0:24:2130 days ago1737159861
0xbAB3bE86...530882A4c
0.000001645489069 ETH
1307805422025-01-18 0:24:2130 days ago1737159861
0xbAB3bE86...530882A4c
0.000546850867313 ETH
1307805422025-01-18 0:24:2130 days ago1737159861
0xbAB3bE86...530882A4c
0.000548496356382 ETH
1305915352025-01-13 15:24:0735 days ago1736781847
0xbAB3bE86...530882A4c
0.000304109065888 ETH
1304308332025-01-09 22:07:2338 days ago1736460443
0xbAB3bE86...530882A4c
0.00001 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OMOOptimismUniswapV3Aggregator

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : OMOOptimismUniswapV3Aggregator.sol
// SPDX-License-Identifier: AGPL-3.0

pragma solidity ^0.8.0;

import "../../access/Ownable.sol";
import "../../interfaces/IBridge.sol";
import "../../assets/interfaces/IWETH.sol";
import "../interfaces/IUniswapV3SwapRouter.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

contract OMOOptimismUniswapV3Aggregator is Ownable {
    using SafeERC20 for IERC20;

    event LOG_AGG_SWAP (
        address caller,
        uint256 amountIn,
        address tokenIn,
        uint256 amountOut,
        address tokenOut,
        address receiver,
        uint256 fee
    );

    address public WETH = 0x4200000000000000000000000000000000000006;
    address public router = 0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45;
    address public bridge = 0x96e8Cf990545c5853ac8DeF324C72fB0E5759019;
    address public feeCollector;

    uint256 public aggregatorFee = 3 * 10 ** 7;
    uint256 public constant FEE_DENOMINATOR = 10 ** 10;
    uint256 private constant MAX_AGGREGATOR_FEE = 5 * 10**8;

    constructor (address _feeCollector) {
        require(_feeCollector != address(0), "feeCollector address cannot be zero");
        feeCollector = _feeCollector;
    }

    receive() external payable { }

    function exactInput(
        IUniswapV3SwapRouter.ExactInputParams memory params,
        bool unwrapETH
    ) external payable {
        (address tokenIn, address tokenOut) = decodeTokenInTokenOut(params);

        if (params.amountIn == 0) {
            require(msg.sender == IBridge(bridge).callProxy(), "invalid caller");
            params.amountIn = IERC20(tokenIn).allowance(msg.sender, address(this));
        }

        _pull(tokenIn, params.amountIn, 0);

        (uint amountOut, uint feeAmount, address receiver) = _swap(params, msg.value > 0, unwrapETH, params.recipient);

        if (unwrapETH) {
            require(tokenOut == WETH, 'OMOAggregator: INVALID_TOKEN_OUT');

            IWETH(WETH).withdraw(amountOut);

            _sendETH(receiver, amountOut - feeAmount);
            _sendETH(feeCollector, feeAmount);
        } else {
            IERC20(tokenOut).safeTransfer(receiver, amountOut - feeAmount);
            IERC20(tokenOut).safeTransfer(feeCollector, feeAmount);
        }
    }

    function exactInputCrossChain(
        IUniswapV3SwapRouter.ExactInputParams memory params,
        uint netFee, uint32 destinationDomain, bytes32 recipient, bytes memory callData // args for bridge
    ) external payable {
        (address tokenIn, address tokenOut) = decodeTokenInTokenOut(params);

        _pull(tokenIn, params.amountIn, netFee);

        (uint amountOut, uint feeAmount, ) = _swap(params, msg.value > netFee, false, msg.sender);
        IERC20(tokenOut).safeTransfer(feeCollector, feeAmount);
        uint bridgeAmount = amountOut - feeAmount;

        IERC20(tokenOut).safeApprove(bridge, bridgeAmount);

        IBridge(bridge).bridgeOut{value: netFee}(
            tokenOut,
            bridgeAmount,
            destinationDomain,
            recipient,
            callData
        );
    }

    function _pull(address token, uint amount, uint netFee) internal {
        require(msg.value >= netFee, "OMOAggregator: invalid netFee");

        if (msg.value > netFee) {
            require(token == WETH, 'OMOAggregator: INVALID_TOKEN_IN');
            IWETH(WETH).deposit{value: msg.value - netFee}();
        } else {
            require(amount > 0, 'OMOAggregator: INSUFFICIENT_INPUT_AMOUNT');
            IERC20(token).safeTransferFrom(msg.sender, address(this), amount);
        }
    }

    function _swap(
        IUniswapV3SwapRouter.ExactInputParams memory params,
        bool nativeIn, bool nativeOut, address logReceiver
    ) internal returns (uint, uint, address) {
        require(params.recipient != address(0), 'OMOAggregator: INVALID_RECIPIENT');
        address receiver = params.recipient;
        params.recipient = address(this);

        (address tokenIn, address tokenOut) = decodeTokenInTokenOut(params);

        IERC20(tokenIn).safeApprove(router, params.amountIn);

        uint balanceBefore = IERC20(tokenOut).balanceOf(address(this));
        IUniswapV3SwapRouter(router).exactInput(params);
        uint amountOut = IERC20(tokenOut).balanceOf(address(this)) - balanceBefore;
        uint feeAmount = amountOut * aggregatorFee / FEE_DENOMINATOR;

        if (nativeIn) tokenIn = address(0);
        if (nativeOut) tokenOut = address(0);

        emit LOG_AGG_SWAP(
            msg.sender,
            params.amountIn,
            tokenIn,
            amountOut,
            tokenOut,
            logReceiver,
            feeAmount
        );

        return (amountOut, feeAmount, receiver);
    }

    function _sendETH(address to, uint256 amount) internal {
        (bool success,) = to.call{value:amount}(new bytes(0));
        require(success, 'OMOAggregator: ETH_TRANSFER_FAILED');
    }

    function setWETH(address _weth) external onlyOwner {
        WETH = _weth;
    }

    function setRouter(address _router) external onlyOwner {
        require(_router != address(0), "router address cannot be zero");
        router = _router;
    }

    function setBridge(address _bridge) external onlyOwner {
        require(_bridge != address(0), "bridge address cannot be zero");
        bridge = _bridge;
    }

    function setFeeCollector(address _feeCollector) external onlyOwner {
        feeCollector = _feeCollector;
    }

    function setAggregatorFee(uint _fee) external onlyOwner {
        require(_fee < MAX_AGGREGATOR_FEE, "aggregator fee exceeds maximum");
        aggregatorFee = _fee;
    }

    function rescueFund(address tokenAddress) external onlyOwner {
        IERC20 token = IERC20(tokenAddress);
        if (tokenAddress == WETH && address(this).balance > 0) {
            _sendETH(msg.sender, address(this).balance);
        }
        token.safeTransfer(msg.sender, token.balanceOf(address(this)));
    }

    function decodeTokenInTokenOut(
        IUniswapV3SwapRouter.ExactInputParams memory params
    ) internal pure returns (address, address) {
        require(params.path.length >= 43, 'toAddress_outOfBounds');
        bytes memory _bytes = params.path;

        address tokenIn;
        assembly {
            tokenIn := div(mload(add(add(_bytes, 0x20), 0)), 0x1000000000000000000000000)
        }

        address tokenOut;
        uint offset = _bytes.length-20;
        assembly {
            tokenOut := div(mload(add(add(_bytes, 0x20), offset)), 0x1000000000000000000000000)
        }

        return (tokenIn, tokenOut);
    }
}

File 2 of 10 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 3 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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 amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` 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 amount
    ) external returns (bool);
}

File 4 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 5 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 6 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @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;
    }
}

File 7 of 10 : Ownable.sol
// SPDX-License-Identifier: AGPL-3.0

pragma solidity 0.8.17;

import "@openzeppelin/contracts/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.
 *
 * By default, the owner account will be the one that deploys the contract. 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;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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);
    }
}

File 8 of 10 : IUniswapV3SwapRouter.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
pragma abicoder v2;

/// @title Callback for IUniswapV3PoolActions#swap
/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface
interface IUniswapV3SwapCallback {
    /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.
    /// @dev In the implementation you must pay the pool tokens owed for the swap.
    /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.
    /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.
    /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.
    /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.
    /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call
    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata data
    ) external;
}

/// @title Router token swapping functionality
/// @notice Functions for swapping tokens via Uniswap V3
interface IUniswapV3SwapRouter is IUniswapV3SwapCallback {
    struct ExactInputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 amountIn;
        uint256 amountOutMinimum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another token
    /// @dev Setting `amountIn` to 0 will cause the contract to look up its own balance,
    /// and swap the entire amount, enabling contracts to send tokens before calling this function.
    /// @param params The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata
    /// @return amountOut The amount of the received token
    function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut);

    struct ExactInputParams {
        bytes path;
        address recipient;
        uint256 amountIn;
        uint256 amountOutMinimum;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path
    /// @dev Setting `amountIn` to 0 will cause the contract to look up its own balance,
    /// and swap the entire amount, enabling contracts to send tokens before calling this function.
    /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata
    /// @return amountOut The amount of the received token
    function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut);

    struct ExactOutputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 amountOut;
        uint256 amountInMaximum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another token
    /// that may remain in the router after the swap.
    /// @param params The parameters necessary for the swap, encoded as `ExactOutputSingleParams` in calldata
    /// @return amountIn The amount of the input token
    function exactOutputSingle(ExactOutputSingleParams calldata params) external payable returns (uint256 amountIn);

    struct ExactOutputParams {
        bytes path;
        address recipient;
        uint256 amountOut;
        uint256 amountInMaximum;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed)
    /// that may remain in the router after the swap.
    /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactOutputParams` in calldata
    /// @return amountIn The amount of the input token
    function exactOutput(ExactOutputParams calldata params) external payable returns (uint256 amountIn);
}

File 9 of 10 : IWETH.sol
// SPDX-License-Identifier: AGPL-3.0

pragma solidity ^0.8.0;

interface IWETH {
    function deposit() external payable;
    function withdraw(uint wad) external;

    function transfer(address dst, uint wad) external returns (bool);
}

File 10 of 10 : IBridge.sol
// SPDX-License-Identifier: AGPL-3.0

pragma solidity ^0.8.0;

interface IBridge {
    function callProxy() external returns (address);

    function bridgeOut(
        address token,
        uint256 amount,
        uint32 destinationDomain,
        bytes32 recipient,
        bytes calldata callData
    ) external payable;

    function bridgeIn(
        bytes calldata args,
        bytes calldata attestation
    ) external;
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_feeCollector","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"},{"indexed":false,"internalType":"address","name":"tokenOut","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"LOG_AGG_SWAP","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"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aggregatorFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"}],"internalType":"struct IUniswapV3SwapRouter.ExactInputParams","name":"params","type":"tuple"},{"internalType":"bool","name":"unwrapETH","type":"bool"}],"name":"exactInput","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"}],"internalType":"struct IUniswapV3SwapRouter.ExactInputParams","name":"params","type":"tuple"},{"internalType":"uint256","name":"netFee","type":"uint256"},{"internalType":"uint32","name":"destinationDomain","type":"uint32"},{"internalType":"bytes32","name":"recipient","type":"bytes32"},{"internalType":"bytes","name":"callData","type":"bytes"}],"name":"exactInputCrossChain","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"rescueFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setAggregatorFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"setBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeCollector","type":"address"}],"name":"setFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_weth","type":"address"}],"name":"setWETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600180546001600160a01b0319908116734200000000000000000000000000000000000006179091556002805482167368b3465833fb72a70ecdf485e0e4c7bd8665fc45179055600380549091167396e8cf990545c5853ac8def324c72fb0e57590191790556301c9c38060055534801561007e57600080fd5b5060405162001af038038062001af083398101604081905261009f91610183565b6100a833610133565b6001600160a01b03811661010e5760405162461bcd60e51b815260206004820152602360248201527f666565436f6c6c6563746f7220616464726573732063616e6e6f74206265207a60448201526265726f60e81b606482015260840160405180910390fd5b600480546001600160a01b0319166001600160a01b03929092169190911790556101b3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561019557600080fd5b81516001600160a01b03811681146101ac57600080fd5b9392505050565b61192d80620001c36000396000f3fe6080604052600436106100f75760003560e01c8063c0d786551161008a578063e78cea9211610059578063e78cea921461028c578063f2fde38b146102ac578063f887ea40146102cc578063fb3ed9c2146102ec57600080fd5b8063c0d7865514610220578063c292d06d14610240578063c415b95c14610253578063d73792a91461027357600080fd5b80639ed5b4dd116100c65780639ed5b4dd1461019c578063a42dce80146101c0578063ad5c4648146101e0578063b8c6fd841461020057600080fd5b8063355466c8146101035780635b769f3c146101255780638da5cb5b146101455780638dd148021461017c57600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b5061012361011e366004611489565b6102ff565b005b34801561013157600080fd5b506101236101403660046114b7565b61038a565b34801561015157600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b34801561018857600080fd5b506101236101973660046114b7565b6103d6565b3480156101a857600080fd5b506101b260055481565b604051908152602001610173565b3480156101cc57600080fd5b506101236101db3660046114b7565b610478565b3480156101ec57600080fd5b5060015461015f906001600160a01b031681565b34801561020c57600080fd5b5061012361021b3660046114b7565b6104c4565b34801561022c57600080fd5b5061012361023b3660046114b7565b61059f565b61012361024e36600461160c565b610641565b34801561025f57600080fd5b5060045461015f906001600160a01b031681565b34801561027f57600080fd5b506101b26402540be40081565b34801561029857600080fd5b5060035461015f906001600160a01b031681565b3480156102b857600080fd5b506101236102c73660046114b7565b610733565b3480156102d857600080fd5b5060025461015f906001600160a01b031681565b6101236102fa3660046116af565b6107ce565b6000546001600160a01b031633146103325760405162461bcd60e51b815260040161032990611701565b60405180910390fd5b631dcd650081106103855760405162461bcd60e51b815260206004820152601e60248201527f61676772656761746f72206665652065786365656473206d6178696d756d00006044820152606401610329565b600555565b6000546001600160a01b031633146103b45760405162461bcd60e51b815260040161032990611701565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104005760405162461bcd60e51b815260040161032990611701565b6001600160a01b0381166104565760405162461bcd60e51b815260206004820152601d60248201527f62726964676520616464726573732063616e6e6f74206265207a65726f0000006044820152606401610329565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104a25760405162461bcd60e51b815260040161032990611701565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104ee5760405162461bcd60e51b815260040161032990611701565b60015481906001600160a01b03808316911614801561050d5750600047115b1561051c5761051c3347610a89565b6040516370a0823160e01b815230600482015261059b9033906001600160a01b038416906370a0823190602401602060405180830381865afa158015610566573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058a9190611736565b6001600160a01b0384169190610b56565b5050565b6000546001600160a01b031633146105c95760405162461bcd60e51b815260040161032990611701565b6001600160a01b03811661061f5760405162461bcd60e51b815260206004820152601d60248201527f726f7574657220616464726573732063616e6e6f74206265207a65726f0000006044820152606401610329565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60008061064d87610bb9565b9150915061066082886040015188610c49565b60008061067289893411600033610dd8565b506004549193509150610692906001600160a01b03858116911683610b56565b600061069e8284611765565b6003549091506106bb906001600160a01b03868116911683611084565b6003546040516335b53a3760e01b81526001600160a01b03909116906335b53a37908b906106f590889086908e908e908e906004016117ce565b6000604051808303818588803b15801561070e57600080fd5b505af1158015610722573d6000803e3d6000fd5b505050505050505050505050505050565b6000546001600160a01b0316331461075d5760405162461bcd60e51b815260040161032990611701565b6001600160a01b0381166107c25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610329565b6107cb81611199565b50565b6000806107da84610bb9565b91509150836040015160000361092857600360009054906101000a90046001600160a01b03166001600160a01b0316632da688ac6040518163ffffffff1660e01b81526004016020604051808303816000875af115801561083f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108639190611807565b6001600160a01b0316336001600160a01b0316146108b45760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21031b0b63632b960911b6044820152606401610329565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b0383169063dd62ed3e90604401602060405180830381865afa1580156108fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109229190611736565b60408501525b6109388285604001516000610c49565b60008060006109508760003411888a60200151610dd8565b9250925092508515610a47576001546001600160a01b038581169116146109b95760405162461bcd60e51b815260206004820181905260248201527f4f4d4f41676772656761746f723a20494e56414c49445f544f4b454e5f4f55546044820152606401610329565b600154604051632e1a7d4d60e01b8152600481018590526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b1580156109ff57600080fd5b505af1158015610a13573d6000803e3d6000fd5b50505050610a2c818385610a279190611765565b610a89565b600454610a42906001600160a01b031683610a89565b610a80565b610a6681610a558486611765565b6001600160a01b0387169190610b56565b600454610a80906001600160a01b03868116911684610b56565b50505050505050565b604080516000808252602082019092526001600160a01b038416908390604051610ab39190611824565b60006040518083038185875af1925050503d8060008114610af0576040519150601f19603f3d011682016040523d82523d6000602084013e610af5565b606091505b5050905080610b515760405162461bcd60e51b815260206004820152602260248201527f4f4d4f41676772656761746f723a204554485f5452414e534645525f4641494c604482015261115160f21b6064820152608401610329565b505050565b6040516001600160a01b038316602482015260448101829052610b5190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526111e9565b600080602b8360000151511015610c0a5760405162461bcd60e51b8152602060048201526015602482015274746f416464726573735f6f75744f66426f756e647360581b6044820152606401610329565b825160208101518151600160601b909104906000908190610c2d90601490611765565b93909301602001519196600160601b9092049550909350505050565b80341015610c995760405162461bcd60e51b815260206004820152601d60248201527f4f4d4f41676772656761746f723a20696e76616c6964206e65744665650000006044820152606401610329565b80341115610d62576001546001600160a01b03848116911614610cfe5760405162461bcd60e51b815260206004820152601f60248201527f4f4d4f41676772656761746f723a20494e56414c49445f544f4b454e5f494e006044820152606401610329565b6001546001600160a01b031663d0e30db0610d198334611765565b6040518263ffffffff1660e01b81526004016000604051808303818588803b158015610d4457600080fd5b505af1158015610d58573d6000803e3d6000fd5b5050505050505050565b60008211610dc35760405162461bcd60e51b815260206004820152602860248201527f4f4d4f41676772656761746f723a20494e53554646494349454e545f494e50556044820152671517d05353d5539560c21b6064820152608401610329565b610b516001600160a01b0384163330856112bb565b6020840151600090819081906001600160a01b0316610e395760405162461bcd60e51b815260206004820181905260248201527f4f4d4f41676772656761746f723a20494e56414c49445f524543495049454e546044820152606401610329565b60208701805130909152600080610e4f8a610bb9565b60025460408d0151929450909250610e74916001600160a01b03808616921690611084565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610ebb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610edf9190611736565b60025460405163b858183f60e01b81529192506001600160a01b03169063b858183f90610f10908e90600401611840565b6020604051808303816000875af1158015610f2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f539190611736565b506040516370a0823160e01b815230600482015260009082906001600160a01b038516906370a0823190602401602060405180830381865afa158015610f9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc19190611736565b610fcb9190611765565b905060006402540be40060055483610fe3919061188e565b610fed91906118a5565b90508b15610ffa57600094505b8a1561100557600093505b60408d810151815133815260208101919091526001600160a01b03878116828401526060820185905286811660808301528c1660a082015260c0810183905290517fb12e9d11a497e0551b14e8ebbe378a5639cdf291d17bfa65c8083f8747682fc19181900360e00190a1909c909b5093995092975050505050505050565b8015806110fe5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa1580156110d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fc9190611736565b155b6111695760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610329565b6040516001600160a01b038316602482015260448101829052610b5190849063095ea7b360e01b90606401610b82565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061123e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112f99092919063ffffffff16565b805190915015610b51578080602001905181019061125c91906118c7565b610b515760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610329565b6040516001600160a01b03808516602483015283166044820152606481018290526112f39085906323b872dd60e01b90608401610b82565b50505050565b60606113088484600085611310565b949350505050565b6060824710156113715760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610329565b600080866001600160a01b0316858760405161138d9190611824565b60006040518083038185875af1925050503d80600081146113ca576040519150601f19603f3d011682016040523d82523d6000602084013e6113cf565b606091505b50915091506113e0878383876113eb565b979650505050505050565b6060831561145a578251600003611453576001600160a01b0385163b6114535760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610329565b5081611308565b611308838381511561146f5781518083602001fd5b8060405162461bcd60e51b815260040161032991906118e4565b60006020828403121561149b57600080fd5b5035919050565b6001600160a01b03811681146107cb57600080fd5b6000602082840312156114c957600080fd5b81356114d4816114a2565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261150257600080fd5b813567ffffffffffffffff8082111561151d5761151d6114db565b604051601f8301601f19908116603f01168101908282118183101715611545576115456114db565b8160405283815286602085880101111561155e57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006080828403121561159057600080fd5b6040516080810167ffffffffffffffff82821081831117156115b4576115b46114db565b8160405282935084359150808211156115cc57600080fd5b506115d9858286016114f1565b82525060208301356115ea816114a2565b8060208301525060408301356040820152606083013560608201525092915050565b600080600080600060a0868803121561162457600080fd5b853567ffffffffffffffff8082111561163c57600080fd5b61164889838a0161157e565b9650602088013595506040880135915063ffffffff8216821461166a57600080fd5b909350606087013592506080870135908082111561168757600080fd5b50611694888289016114f1565b9150509295509295909350565b80151581146107cb57600080fd5b600080604083850312156116c257600080fd5b823567ffffffffffffffff8111156116d957600080fd5b6116e58582860161157e565b92505060208301356116f6816116a1565b809150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561174857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156117785761177861174f565b92915050565b60005b83811015611799578181015183820152602001611781565b50506000910152565b600081518084526117ba81602086016020860161177e565b601f01601f19169290920160200192915050565b60018060a01b038616815284602082015263ffffffff8416604082015282606082015260a0608082015260006113e060a08301846117a2565b60006020828403121561181957600080fd5b81516114d4816114a2565b6000825161183681846020870161177e565b9190910192915050565b60208152600082516080602084015261185c60a08401826117a2565b905060018060a01b03602085015116604084015260408401516060840152606084015160808401528091505092915050565b80820281158282048414176117785761177861174f565b6000826118c257634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156118d957600080fd5b81516114d4816116a1565b6020815260006114d460208301846117a256fea2646970667358221220bf143d511853307a8d9b20038dacd9cf7f8142139b2ef9ebeeecd9c6d43af36564736f6c63430008110033000000000000000000000000a81dc97fc2f5df4c1dc39cd9dc20ec778ee31700

Deployed Bytecode

0x6080604052600436106100f75760003560e01c8063c0d786551161008a578063e78cea9211610059578063e78cea921461028c578063f2fde38b146102ac578063f887ea40146102cc578063fb3ed9c2146102ec57600080fd5b8063c0d7865514610220578063c292d06d14610240578063c415b95c14610253578063d73792a91461027357600080fd5b80639ed5b4dd116100c65780639ed5b4dd1461019c578063a42dce80146101c0578063ad5c4648146101e0578063b8c6fd841461020057600080fd5b8063355466c8146101035780635b769f3c146101255780638da5cb5b146101455780638dd148021461017c57600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b5061012361011e366004611489565b6102ff565b005b34801561013157600080fd5b506101236101403660046114b7565b61038a565b34801561015157600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b34801561018857600080fd5b506101236101973660046114b7565b6103d6565b3480156101a857600080fd5b506101b260055481565b604051908152602001610173565b3480156101cc57600080fd5b506101236101db3660046114b7565b610478565b3480156101ec57600080fd5b5060015461015f906001600160a01b031681565b34801561020c57600080fd5b5061012361021b3660046114b7565b6104c4565b34801561022c57600080fd5b5061012361023b3660046114b7565b61059f565b61012361024e36600461160c565b610641565b34801561025f57600080fd5b5060045461015f906001600160a01b031681565b34801561027f57600080fd5b506101b26402540be40081565b34801561029857600080fd5b5060035461015f906001600160a01b031681565b3480156102b857600080fd5b506101236102c73660046114b7565b610733565b3480156102d857600080fd5b5060025461015f906001600160a01b031681565b6101236102fa3660046116af565b6107ce565b6000546001600160a01b031633146103325760405162461bcd60e51b815260040161032990611701565b60405180910390fd5b631dcd650081106103855760405162461bcd60e51b815260206004820152601e60248201527f61676772656761746f72206665652065786365656473206d6178696d756d00006044820152606401610329565b600555565b6000546001600160a01b031633146103b45760405162461bcd60e51b815260040161032990611701565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104005760405162461bcd60e51b815260040161032990611701565b6001600160a01b0381166104565760405162461bcd60e51b815260206004820152601d60248201527f62726964676520616464726573732063616e6e6f74206265207a65726f0000006044820152606401610329565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104a25760405162461bcd60e51b815260040161032990611701565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104ee5760405162461bcd60e51b815260040161032990611701565b60015481906001600160a01b03808316911614801561050d5750600047115b1561051c5761051c3347610a89565b6040516370a0823160e01b815230600482015261059b9033906001600160a01b038416906370a0823190602401602060405180830381865afa158015610566573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058a9190611736565b6001600160a01b0384169190610b56565b5050565b6000546001600160a01b031633146105c95760405162461bcd60e51b815260040161032990611701565b6001600160a01b03811661061f5760405162461bcd60e51b815260206004820152601d60248201527f726f7574657220616464726573732063616e6e6f74206265207a65726f0000006044820152606401610329565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60008061064d87610bb9565b9150915061066082886040015188610c49565b60008061067289893411600033610dd8565b506004549193509150610692906001600160a01b03858116911683610b56565b600061069e8284611765565b6003549091506106bb906001600160a01b03868116911683611084565b6003546040516335b53a3760e01b81526001600160a01b03909116906335b53a37908b906106f590889086908e908e908e906004016117ce565b6000604051808303818588803b15801561070e57600080fd5b505af1158015610722573d6000803e3d6000fd5b505050505050505050505050505050565b6000546001600160a01b0316331461075d5760405162461bcd60e51b815260040161032990611701565b6001600160a01b0381166107c25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610329565b6107cb81611199565b50565b6000806107da84610bb9565b91509150836040015160000361092857600360009054906101000a90046001600160a01b03166001600160a01b0316632da688ac6040518163ffffffff1660e01b81526004016020604051808303816000875af115801561083f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108639190611807565b6001600160a01b0316336001600160a01b0316146108b45760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21031b0b63632b960911b6044820152606401610329565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b0383169063dd62ed3e90604401602060405180830381865afa1580156108fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109229190611736565b60408501525b6109388285604001516000610c49565b60008060006109508760003411888a60200151610dd8565b9250925092508515610a47576001546001600160a01b038581169116146109b95760405162461bcd60e51b815260206004820181905260248201527f4f4d4f41676772656761746f723a20494e56414c49445f544f4b454e5f4f55546044820152606401610329565b600154604051632e1a7d4d60e01b8152600481018590526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b1580156109ff57600080fd5b505af1158015610a13573d6000803e3d6000fd5b50505050610a2c818385610a279190611765565b610a89565b600454610a42906001600160a01b031683610a89565b610a80565b610a6681610a558486611765565b6001600160a01b0387169190610b56565b600454610a80906001600160a01b03868116911684610b56565b50505050505050565b604080516000808252602082019092526001600160a01b038416908390604051610ab39190611824565b60006040518083038185875af1925050503d8060008114610af0576040519150601f19603f3d011682016040523d82523d6000602084013e610af5565b606091505b5050905080610b515760405162461bcd60e51b815260206004820152602260248201527f4f4d4f41676772656761746f723a204554485f5452414e534645525f4641494c604482015261115160f21b6064820152608401610329565b505050565b6040516001600160a01b038316602482015260448101829052610b5190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526111e9565b600080602b8360000151511015610c0a5760405162461bcd60e51b8152602060048201526015602482015274746f416464726573735f6f75744f66426f756e647360581b6044820152606401610329565b825160208101518151600160601b909104906000908190610c2d90601490611765565b93909301602001519196600160601b9092049550909350505050565b80341015610c995760405162461bcd60e51b815260206004820152601d60248201527f4f4d4f41676772656761746f723a20696e76616c6964206e65744665650000006044820152606401610329565b80341115610d62576001546001600160a01b03848116911614610cfe5760405162461bcd60e51b815260206004820152601f60248201527f4f4d4f41676772656761746f723a20494e56414c49445f544f4b454e5f494e006044820152606401610329565b6001546001600160a01b031663d0e30db0610d198334611765565b6040518263ffffffff1660e01b81526004016000604051808303818588803b158015610d4457600080fd5b505af1158015610d58573d6000803e3d6000fd5b5050505050505050565b60008211610dc35760405162461bcd60e51b815260206004820152602860248201527f4f4d4f41676772656761746f723a20494e53554646494349454e545f494e50556044820152671517d05353d5539560c21b6064820152608401610329565b610b516001600160a01b0384163330856112bb565b6020840151600090819081906001600160a01b0316610e395760405162461bcd60e51b815260206004820181905260248201527f4f4d4f41676772656761746f723a20494e56414c49445f524543495049454e546044820152606401610329565b60208701805130909152600080610e4f8a610bb9565b60025460408d0151929450909250610e74916001600160a01b03808616921690611084565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610ebb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610edf9190611736565b60025460405163b858183f60e01b81529192506001600160a01b03169063b858183f90610f10908e90600401611840565b6020604051808303816000875af1158015610f2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f539190611736565b506040516370a0823160e01b815230600482015260009082906001600160a01b038516906370a0823190602401602060405180830381865afa158015610f9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc19190611736565b610fcb9190611765565b905060006402540be40060055483610fe3919061188e565b610fed91906118a5565b90508b15610ffa57600094505b8a1561100557600093505b60408d810151815133815260208101919091526001600160a01b03878116828401526060820185905286811660808301528c1660a082015260c0810183905290517fb12e9d11a497e0551b14e8ebbe378a5639cdf291d17bfa65c8083f8747682fc19181900360e00190a1909c909b5093995092975050505050505050565b8015806110fe5750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa1580156110d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fc9190611736565b155b6111695760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610329565b6040516001600160a01b038316602482015260448101829052610b5190849063095ea7b360e01b90606401610b82565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061123e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112f99092919063ffffffff16565b805190915015610b51578080602001905181019061125c91906118c7565b610b515760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610329565b6040516001600160a01b03808516602483015283166044820152606481018290526112f39085906323b872dd60e01b90608401610b82565b50505050565b60606113088484600085611310565b949350505050565b6060824710156113715760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610329565b600080866001600160a01b0316858760405161138d9190611824565b60006040518083038185875af1925050503d80600081146113ca576040519150601f19603f3d011682016040523d82523d6000602084013e6113cf565b606091505b50915091506113e0878383876113eb565b979650505050505050565b6060831561145a578251600003611453576001600160a01b0385163b6114535760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610329565b5081611308565b611308838381511561146f5781518083602001fd5b8060405162461bcd60e51b815260040161032991906118e4565b60006020828403121561149b57600080fd5b5035919050565b6001600160a01b03811681146107cb57600080fd5b6000602082840312156114c957600080fd5b81356114d4816114a2565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261150257600080fd5b813567ffffffffffffffff8082111561151d5761151d6114db565b604051601f8301601f19908116603f01168101908282118183101715611545576115456114db565b8160405283815286602085880101111561155e57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006080828403121561159057600080fd5b6040516080810167ffffffffffffffff82821081831117156115b4576115b46114db565b8160405282935084359150808211156115cc57600080fd5b506115d9858286016114f1565b82525060208301356115ea816114a2565b8060208301525060408301356040820152606083013560608201525092915050565b600080600080600060a0868803121561162457600080fd5b853567ffffffffffffffff8082111561163c57600080fd5b61164889838a0161157e565b9650602088013595506040880135915063ffffffff8216821461166a57600080fd5b909350606087013592506080870135908082111561168757600080fd5b50611694888289016114f1565b9150509295509295909350565b80151581146107cb57600080fd5b600080604083850312156116c257600080fd5b823567ffffffffffffffff8111156116d957600080fd5b6116e58582860161157e565b92505060208301356116f6816116a1565b809150509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561174857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156117785761177861174f565b92915050565b60005b83811015611799578181015183820152602001611781565b50506000910152565b600081518084526117ba81602086016020860161177e565b601f01601f19169290920160200192915050565b60018060a01b038616815284602082015263ffffffff8416604082015282606082015260a0608082015260006113e060a08301846117a2565b60006020828403121561181957600080fd5b81516114d4816114a2565b6000825161183681846020870161177e565b9190910192915050565b60208152600082516080602084015261185c60a08401826117a2565b905060018060a01b03602085015116604084015260408401516060840152606084015160808401528091505092915050565b80820281158282048414176117785761177861174f565b6000826118c257634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156118d957600080fd5b81516114d4816116a1565b6020815260006114d460208301846117a256fea2646970667358221220bf143d511853307a8d9b20038dacd9cf7f8142139b2ef9ebeeecd9c6d43af36564736f6c63430008110033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000a81dc97fc2f5df4c1dc39cd9dc20ec778ee31700

-----Decoded View---------------
Arg [0] : _feeCollector (address): 0xa81Dc97Fc2f5Df4c1dc39cd9dC20ec778ee31700

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a81dc97fc2f5df4c1dc39cd9dc20ec778ee31700


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ 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.