MNT Price: $0.90 (-0.29%)

Contract

0xa39628ee6Ca80eb2D93f21Def75A7B4D03b82e1E
 

Overview

MNT Balance

Mantle Mainnet Network LogoMantle Mainnet Network LogoMantle Mainnet Network Logo0 MNT

MNT Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Exact Input840328992025-08-26 8:15:10151 days ago1756196110IN
0xa39628ee...D03b82e1E
0 MNT0.013683340.0201
VIEW ADVANCED FILTER

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
840328992025-08-26 8:15:10151 days ago1756196110
0xa39628ee...D03b82e1E
0.0001917 MNT
840328992025-08-26 8:15:10151 days ago1756196110
0xa39628ee...D03b82e1E
0.06371076 MNT
840328992025-08-26 8:15:10151 days ago1756196110
0xa39628ee...D03b82e1E
0.06390247 MNT
789467902025-04-30 14:38:12269 days ago1746023892
0xa39628ee...D03b82e1E
1.8 MNT
743285752025-01-13 16:57:42376 days ago1736787462
0xa39628ee...D03b82e1E
0.00089663 MNT
743285752025-01-13 16:57:42376 days ago1736787462
0xa39628ee...D03b82e1E
0.2979817 MNT
743285752025-01-13 16:57:42376 days ago1736787462
0xa39628ee...D03b82e1E
0.29887833 MNT
743284312025-01-13 16:52:54376 days ago1736787174
0xa39628ee...D03b82e1E
0.00910648 MNT
743284312025-01-13 16:52:54376 days ago1736787174
0xa39628ee...D03b82e1E
3.02638806 MNT
743284312025-01-13 16:52:54376 days ago1736787174
0xa39628ee...D03b82e1E
3.03549455 MNT
725611682024-12-03 19:04:08417 days ago1733252648
0xa39628ee...D03b82e1E
0.9 MNT
723266662024-11-28 8:47:24422 days ago1732783644
0xa39628ee...D03b82e1E
0.00421165 MNT
723266662024-11-28 8:47:24422 days ago1732783644
0xa39628ee...D03b82e1E
1.39967273 MNT
723266662024-11-28 8:47:24422 days ago1732783644
0xa39628ee...D03b82e1E
1.40388438 MNT
715378112024-11-10 2:32:14441 days ago1731205934
0xa39628ee...D03b82e1E
0.00601322 MNT
715378112024-11-10 2:32:14441 days ago1731205934
0xa39628ee...D03b82e1E
1.99839402 MNT
715378112024-11-10 2:32:14441 days ago1731205934
0xa39628ee...D03b82e1E
2.00440724 MNT
714929762024-11-09 1:37:44442 days ago1731116264
0xa39628ee...D03b82e1E
0.00108501 MNT
714929762024-11-09 1:37:44442 days ago1731116264
0xa39628ee...D03b82e1E
0.36058556 MNT
714929762024-11-09 1:37:44442 days ago1731116264
0xa39628ee...D03b82e1E
0.36167057 MNT
710019242024-10-28 16:49:20453 days ago1730134160
0xa39628ee...D03b82e1E
0.01568154 MNT
710019242024-10-28 16:49:20453 days ago1730134160
0xa39628ee...D03b82e1E
5.21149969 MNT
710019242024-10-28 16:49:20453 days ago1730134160
0xa39628ee...D03b82e1E
5.22718123 MNT
696477642024-09-27 8:30:40484 days ago1727425840
0xa39628ee...D03b82e1E
0.15322019 MNT
696477642024-09-27 8:30:40484 days ago1727425840
0xa39628ee...D03b82e1E
50.92017894 MNT
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OMOMantleAgniAggregator

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// 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/IAgniSwapRouter.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

contract OMOMantleAgniAggregator 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 = 0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8;
    address public router = 0x319B69888b0d11cEC22caA5034e25FfFBDc88421;
    address public bridge = 0x0000000000000000000000000000000000000000;
    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(
        IAgniSwapRouter.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));
        }

        uint256 balanceBefore = IERC20(tokenOut).balanceOf(address(this));
        _pull(tokenIn, params.amountIn, 0);

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

        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(
        IAgniSwapRouter.ExactInputParams calldata params,
        uint netFee, uint32 destinationDomain, bytes32 recipient, bytes calldata callData // args for bridge
    ) external payable {
        (address tokenIn, address tokenOut) = decodeTokenInTokenOut(params);

        uint256 balanceBefore = IERC20(tokenOut).balanceOf(address(this));
        _pull(tokenIn, params.amountIn, netFee);

        (uint amountOut, uint feeAmount, ) = _swap(
            params, msg.value > netFee, false, msg.sender, balanceBefore
        );
        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(
        IAgniSwapRouter.ExactInputParams memory params,
        bool nativeIn, bool nativeOut, address logReceiver, uint256 balanceBefore
    ) 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);

        if (params.deadline == 0) {
            params.deadline = block.timestamp+1;
        }

        IAgniSwapRouter(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(
        IAgniSwapRouter.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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/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.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
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].
     *
     * CAUTION: See Security Considerations above.
     */
    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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/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;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    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));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    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");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation 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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

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

// 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);
    }
}

// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
pragma abicoder v2;

import {IUniswapV3SwapCallback} from "./IUniswapV3SwapRouter.sol";

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

    /// @notice Swaps `amountIn` of one token for as much as possible of another token
    /// @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 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path
    /// @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 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another token
    /// @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 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed)
    /// @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);
}

// 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);
}

// 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);
}

// 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

API
[{"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":"deadline","type":"uint256"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"}],"internalType":"struct IAgniSwapRouter.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":"deadline","type":"uint256"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"}],"internalType":"struct IAgniSwapRouter.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"}]

6080604052600180546001600160a01b03199081167378c1b0c915c4faa5fffa6cabf0219da63d7f4cb81790915560028054821673319b69888b0d11cec22caa5034e25fffbdc884211790556003805490911690556301c9c3806005553480156200006957600080fd5b5060405162001c3138038062001c318339810160408190526200008c9162000174565b620000973362000124565b6001600160a01b038116620000fe5760405162461bcd60e51b815260206004820152602360248201527f666565436f6c6c6563746f7220616464726573732063616e6e6f74206265207a60448201526265726f60e81b606482015260840160405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055620001a6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156200018757600080fd5b81516001600160a01b03811681146200019f57600080fd5b9392505050565b611a7b80620001b66000396000f3fe6080604052600436106100f75760003560e01c8063ad5c46481161008a578063d73792a911610059578063d73792a914610286578063e78cea921461029f578063f2fde38b146102bf578063f887ea40146102df57600080fd5b8063ad5c464814610206578063b8c6fd8414610226578063c0d7865514610246578063c415b95c1461026657600080fd5b80638dd14802116100c65780638dd148021461018f5780639ed5b4dd146101af578063a42dce80146101d3578063a76a706e146101f357600080fd5b8063355466c8146101035780635b769f3c14610125578063833da769146101455780638da5cb5b1461015857600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b5061012361011e366004611537565b6102ff565b005b34801561013157600080fd5b50610123610140366004611575565b61038a565b6101236101533660046116e5565b6103d6565b34801561016457600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b34801561019b57600080fd5b506101236101aa366004611575565b610700565b3480156101bb57600080fd5b506101c560055481565b604051908152602001610186565b3480156101df57600080fd5b506101236101ee366004611575565b6107a2565b610123610201366004611737565b6107ee565b34801561021257600080fd5b50600154610172906001600160a01b031681565b34801561023257600080fd5b50610123610241366004611575565b610973565b34801561025257600080fd5b50610123610261366004611575565b610a4e565b34801561027257600080fd5b50600454610172906001600160a01b031681565b34801561029257600080fd5b506101c56402540be40081565b3480156102ab57600080fd5b50600354610172906001600160a01b031681565b3480156102cb57600080fd5b506101236102da366004611575565b610af0565b3480156102eb57600080fd5b50600254610172906001600160a01b031681565b6000546001600160a01b031633146103325760405162461bcd60e51b815260040161032990611806565b60405180910390fd5b631dcd650081106103855760405162461bcd60e51b815260206004820152601e60248201527f61676772656761746f72206665652065786365656473206d6178696d756d00006044820152606401610329565b600555565b6000546001600160a01b031633146103b45760405162461bcd60e51b815260040161032990611806565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000806103e284610b8b565b91509150836060015160000361053057600360009054906101000a90046001600160a01b03166001600160a01b0316632da688ac6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610447573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046b919061183b565b6001600160a01b0316336001600160a01b0316146104bc5760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21031b0b63632b960911b6044820152606401610329565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b0383169063dd62ed3e90604401602060405180830381865afa158015610506573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052a9190611858565b60608501525b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610577573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059b9190611858565b90506105ad8386606001516000610c1b565b60008060006105c68860003411898b6020015188610da5565b92509250925086156106bd576001546001600160a01b0386811691161461062f5760405162461bcd60e51b815260206004820181905260248201527f4f4d4f41676772656761746f723a20494e56414c49445f544f4b454e5f4f55546044820152606401610329565b600154604051632e1a7d4d60e01b8152600481018590526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561067557600080fd5b505af1158015610689573d6000803e3d6000fd5b505050506106a281838561069d9190611887565b611004565b6004546106b8906001600160a01b031683611004565b6106f6565b6106dc816106cb8486611887565b6001600160a01b03881691906110cc565b6004546106f6906001600160a01b038781169116846110cc565b5050505050505050565b6000546001600160a01b0316331461072a5760405162461bcd60e51b815260040161032990611806565b6001600160a01b0381166107805760405162461bcd60e51b815260206004820152601d60248201527f62726964676520616464726573732063616e6e6f74206265207a65726f0000006044820152606401610329565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146107cc5760405162461bcd60e51b815260040161032990611806565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000806108026107fd896118a0565b610b8b565b6040516370a0823160e01b815230600482015291935091506000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561084e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108729190611858565b9050610883838a606001358a610c1b565b60008061089e6108928c6118a0565b8b341160003387610da5565b5060045491935091506108be906001600160a01b038681169116836110cc565b60006108ca8284611887565b6003549091506108e7906001600160a01b0387811691168361112f565b600360009054906101000a90046001600160a01b03166001600160a01b03166335b53a378c87848e8e8e8e6040518863ffffffff1660e01b8152600401610933969594939291906118ac565b6000604051808303818588803b15801561094c57600080fd5b505af1158015610960573d6000803e3d6000fd5b5050505050505050505050505050505050565b6000546001600160a01b0316331461099d5760405162461bcd60e51b815260040161032990611806565b60015481906001600160a01b0380831691161480156109bc5750600047115b156109cb576109cb3347611004565b6040516370a0823160e01b8152306004820152610a4a9033906001600160a01b038416906370a0823190602401602060405180830381865afa158015610a15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a399190611858565b6001600160a01b03841691906110cc565b5050565b6000546001600160a01b03163314610a785760405162461bcd60e51b815260040161032990611806565b6001600160a01b038116610ace5760405162461bcd60e51b815260206004820152601d60248201527f726f7574657220616464726573732063616e6e6f74206265207a65726f0000006044820152606401610329565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610b1a5760405162461bcd60e51b815260040161032990611806565b6001600160a01b038116610b7f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610329565b610b8881611244565b50565b600080602b8360000151511015610bdc5760405162461bcd60e51b8152602060048201526015602482015274746f416464726573735f6f75744f66426f756e647360581b6044820152606401610329565b825160208101518151600160601b909104906000908190610bff90601490611887565b93909301602001519196600160601b9092049550909350505050565b80341015610c6b5760405162461bcd60e51b815260206004820152601d60248201527f4f4d4f41676772656761746f723a20696e76616c6964206e65744665650000006044820152606401610329565b80341115610d2a576001546001600160a01b03848116911614610cd05760405162461bcd60e51b815260206004820152601f60248201527f4f4d4f41676772656761746f723a20494e56414c49445f544f4b454e5f494e006044820152606401610329565b6001546001600160a01b031663d0e30db0610ceb8334611887565b6040518263ffffffff1660e01b81526004016000604051808303818588803b158015610d1657600080fd5b505af11580156106f6573d6000803e3d6000fd5b60008211610d8b5760405162461bcd60e51b815260206004820152602860248201527f4f4d4f41676772656761746f723a20494e53554646494349454e545f494e50556044820152671517d05353d5539560c21b6064820152608401610329565b610da06001600160a01b038416333085611294565b505050565b6020850151600090819081906001600160a01b0316610e065760405162461bcd60e51b815260206004820181905260248201527f4f4d4f41676772656761746f723a20494e56414c49445f524543495049454e546044820152606401610329565b60208801805130909152600080610e1c8b610b8b565b60025460608e0151929450909250610e41916001600160a01b0380861692169061112f565b8a60400151600003610e5e57610e58426001611905565b60408c01525b60025460405163c04b8d5960e01b81526001600160a01b039091169063c04b8d5990610e8e908e90600401611968565b6020604051808303816000875af1158015610ead573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed19190611858565b506040516370a0823160e01b815230600482015260009088906001600160a01b038416906370a0823190602401602060405180830381865afa158015610f1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3f9190611858565b610f499190611887565b905060006402540be40060055483610f6191906119c0565b610f6b91906119d7565b90508b15610f7857600093505b8a15610f8357600092505b60608d8101516040805133815260208101929092526001600160a01b03878116838301529282018590528583166080830152918c1660a082015260c0810183905290517fb12e9d11a497e0551b14e8ebbe378a5639cdf291d17bfa65c8083f8747682fc19181900360e00190a1909c909b5092995091975050505050505050565b604080516000808252602082019092526001600160a01b03841690839060405161102e91906119f9565b60006040518083038185875af1925050503d806000811461106b576040519150601f19603f3d011682016040523d82523d6000602084013e611070565b606091505b5050905080610da05760405162461bcd60e51b815260206004820152602260248201527f4f4d4f41676772656761746f723a204554485f5452414e534645525f4641494c604482015261115160f21b6064820152608401610329565b6040516001600160a01b038316602482015260448101829052610da090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526112d2565b8015806111a95750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611183573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a79190611858565b155b6112145760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610329565b6040516001600160a01b038316602482015260448101829052610da090849063095ea7b360e01b906064016110f8565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526112cc9085906323b872dd60e01b906084016110f8565b50505050565b6000611327826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113a79092919063ffffffff16565b90508051600014806113485750808060200190518101906113489190611a15565b610da05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610329565b60606113b684846000856113be565b949350505050565b60608247101561141f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610329565b600080866001600160a01b0316858760405161143b91906119f9565b60006040518083038185875af1925050503d8060008114611478576040519150601f19603f3d011682016040523d82523d6000602084013e61147d565b606091505b509150915061148e87838387611499565b979650505050505050565b60608315611508578251600003611501576001600160a01b0385163b6115015760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610329565b50816113b6565b6113b6838381511561151d5781518083602001fd5b8060405162461bcd60e51b81526004016103299190611a32565b60006020828403121561154957600080fd5b5035919050565b6001600160a01b0381168114610b8857600080fd5b803561157081611550565b919050565b60006020828403121561158757600080fd5b813561159281611550565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60405160a0810167ffffffffffffffff811182821017156115d2576115d2611599565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561160157611601611599565b604052919050565b600060a0828403121561161b57600080fd5b6116236115af565b9050813567ffffffffffffffff8082111561163d57600080fd5b818401915084601f83011261165157600080fd5b813560208282111561166557611665611599565b611677601f8301601f191682016115d8565b9250818352868183860101111561168d57600080fd5b818185018285013760008183850101528285526116ab818701611565565b818601525050505060408201356040820152606082013560608201526080820135608082015292915050565b8015158114610b8857600080fd5b600080604083850312156116f857600080fd5b823567ffffffffffffffff81111561170f57600080fd5b61171b85828601611609565b925050602083013561172c816116d7565b809150509250929050565b60008060008060008060a0878903121561175057600080fd5b863567ffffffffffffffff8082111561176857600080fd5b9088019060a0828b03121561177c57600080fd5b9096506020880135955060408801359063ffffffff8216821461179e57600080fd5b90945060608801359350608088013590808211156117bb57600080fd5b818901915089601f8301126117cf57600080fd5b8135818111156117de57600080fd5b8a60208285010111156117f057600080fd5b6020830194508093505050509295509295509295565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561184d57600080fd5b815161159281611550565b60006020828403121561186a57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561189a5761189a611871565b92915050565b600061189a3683611609565b60018060a01b038716815285602082015263ffffffff8516604082015283606082015260a060808201528160a0820152818360c0830137600081830160c090810191909152601f909201601f1916010195945050505050565b8082018082111561189a5761189a611871565b60005b8381101561193357818101518382015260200161191b565b50506000910152565b60008151808452611954816020860160208601611918565b601f01601f19169290920160200192915050565b602081526000825160a0602084015261198460c084018261193c565b905060018060a01b0360208501511660408401526040840151606084015260608401516080840152608084015160a08401528091505092915050565b808202811582820484141761189a5761189a611871565b6000826119f457634e487b7160e01b600052601260045260246000fd5b500490565b60008251611a0b818460208701611918565b9190910192915050565b600060208284031215611a2757600080fd5b8151611592816116d7565b602081526000611592602083018461193c56fea26469706673582212202a7c56d6c7513172fab8edafb177cef67994ce221590850ffaacb5fa9536af1e64736f6c63430008110033000000000000000000000000a81dc97fc2f5df4c1dc39cd9dc20ec778ee31700

Deployed Bytecode

0x6080604052600436106100f75760003560e01c8063ad5c46481161008a578063d73792a911610059578063d73792a914610286578063e78cea921461029f578063f2fde38b146102bf578063f887ea40146102df57600080fd5b8063ad5c464814610206578063b8c6fd8414610226578063c0d7865514610246578063c415b95c1461026657600080fd5b80638dd14802116100c65780638dd148021461018f5780639ed5b4dd146101af578063a42dce80146101d3578063a76a706e146101f357600080fd5b8063355466c8146101035780635b769f3c14610125578063833da769146101455780638da5cb5b1461015857600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b5061012361011e366004611537565b6102ff565b005b34801561013157600080fd5b50610123610140366004611575565b61038a565b6101236101533660046116e5565b6103d6565b34801561016457600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b34801561019b57600080fd5b506101236101aa366004611575565b610700565b3480156101bb57600080fd5b506101c560055481565b604051908152602001610186565b3480156101df57600080fd5b506101236101ee366004611575565b6107a2565b610123610201366004611737565b6107ee565b34801561021257600080fd5b50600154610172906001600160a01b031681565b34801561023257600080fd5b50610123610241366004611575565b610973565b34801561025257600080fd5b50610123610261366004611575565b610a4e565b34801561027257600080fd5b50600454610172906001600160a01b031681565b34801561029257600080fd5b506101c56402540be40081565b3480156102ab57600080fd5b50600354610172906001600160a01b031681565b3480156102cb57600080fd5b506101236102da366004611575565b610af0565b3480156102eb57600080fd5b50600254610172906001600160a01b031681565b6000546001600160a01b031633146103325760405162461bcd60e51b815260040161032990611806565b60405180910390fd5b631dcd650081106103855760405162461bcd60e51b815260206004820152601e60248201527f61676772656761746f72206665652065786365656473206d6178696d756d00006044820152606401610329565b600555565b6000546001600160a01b031633146103b45760405162461bcd60e51b815260040161032990611806565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000806103e284610b8b565b91509150836060015160000361053057600360009054906101000a90046001600160a01b03166001600160a01b0316632da688ac6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610447573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046b919061183b565b6001600160a01b0316336001600160a01b0316146104bc5760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21031b0b63632b960911b6044820152606401610329565b604051636eb1769f60e11b81523360048201523060248201526001600160a01b0383169063dd62ed3e90604401602060405180830381865afa158015610506573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052a9190611858565b60608501525b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610577573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059b9190611858565b90506105ad8386606001516000610c1b565b60008060006105c68860003411898b6020015188610da5565b92509250925086156106bd576001546001600160a01b0386811691161461062f5760405162461bcd60e51b815260206004820181905260248201527f4f4d4f41676772656761746f723a20494e56414c49445f544f4b454e5f4f55546044820152606401610329565b600154604051632e1a7d4d60e01b8152600481018590526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561067557600080fd5b505af1158015610689573d6000803e3d6000fd5b505050506106a281838561069d9190611887565b611004565b6004546106b8906001600160a01b031683611004565b6106f6565b6106dc816106cb8486611887565b6001600160a01b03881691906110cc565b6004546106f6906001600160a01b038781169116846110cc565b5050505050505050565b6000546001600160a01b0316331461072a5760405162461bcd60e51b815260040161032990611806565b6001600160a01b0381166107805760405162461bcd60e51b815260206004820152601d60248201527f62726964676520616464726573732063616e6e6f74206265207a65726f0000006044820152606401610329565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146107cc5760405162461bcd60e51b815260040161032990611806565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000806108026107fd896118a0565b610b8b565b6040516370a0823160e01b815230600482015291935091506000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561084e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108729190611858565b9050610883838a606001358a610c1b565b60008061089e6108928c6118a0565b8b341160003387610da5565b5060045491935091506108be906001600160a01b038681169116836110cc565b60006108ca8284611887565b6003549091506108e7906001600160a01b0387811691168361112f565b600360009054906101000a90046001600160a01b03166001600160a01b03166335b53a378c87848e8e8e8e6040518863ffffffff1660e01b8152600401610933969594939291906118ac565b6000604051808303818588803b15801561094c57600080fd5b505af1158015610960573d6000803e3d6000fd5b5050505050505050505050505050505050565b6000546001600160a01b0316331461099d5760405162461bcd60e51b815260040161032990611806565b60015481906001600160a01b0380831691161480156109bc5750600047115b156109cb576109cb3347611004565b6040516370a0823160e01b8152306004820152610a4a9033906001600160a01b038416906370a0823190602401602060405180830381865afa158015610a15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a399190611858565b6001600160a01b03841691906110cc565b5050565b6000546001600160a01b03163314610a785760405162461bcd60e51b815260040161032990611806565b6001600160a01b038116610ace5760405162461bcd60e51b815260206004820152601d60248201527f726f7574657220616464726573732063616e6e6f74206265207a65726f0000006044820152606401610329565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610b1a5760405162461bcd60e51b815260040161032990611806565b6001600160a01b038116610b7f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610329565b610b8881611244565b50565b600080602b8360000151511015610bdc5760405162461bcd60e51b8152602060048201526015602482015274746f416464726573735f6f75744f66426f756e647360581b6044820152606401610329565b825160208101518151600160601b909104906000908190610bff90601490611887565b93909301602001519196600160601b9092049550909350505050565b80341015610c6b5760405162461bcd60e51b815260206004820152601d60248201527f4f4d4f41676772656761746f723a20696e76616c6964206e65744665650000006044820152606401610329565b80341115610d2a576001546001600160a01b03848116911614610cd05760405162461bcd60e51b815260206004820152601f60248201527f4f4d4f41676772656761746f723a20494e56414c49445f544f4b454e5f494e006044820152606401610329565b6001546001600160a01b031663d0e30db0610ceb8334611887565b6040518263ffffffff1660e01b81526004016000604051808303818588803b158015610d1657600080fd5b505af11580156106f6573d6000803e3d6000fd5b60008211610d8b5760405162461bcd60e51b815260206004820152602860248201527f4f4d4f41676772656761746f723a20494e53554646494349454e545f494e50556044820152671517d05353d5539560c21b6064820152608401610329565b610da06001600160a01b038416333085611294565b505050565b6020850151600090819081906001600160a01b0316610e065760405162461bcd60e51b815260206004820181905260248201527f4f4d4f41676772656761746f723a20494e56414c49445f524543495049454e546044820152606401610329565b60208801805130909152600080610e1c8b610b8b565b60025460608e0151929450909250610e41916001600160a01b0380861692169061112f565b8a60400151600003610e5e57610e58426001611905565b60408c01525b60025460405163c04b8d5960e01b81526001600160a01b039091169063c04b8d5990610e8e908e90600401611968565b6020604051808303816000875af1158015610ead573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed19190611858565b506040516370a0823160e01b815230600482015260009088906001600160a01b038416906370a0823190602401602060405180830381865afa158015610f1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f3f9190611858565b610f499190611887565b905060006402540be40060055483610f6191906119c0565b610f6b91906119d7565b90508b15610f7857600093505b8a15610f8357600092505b60608d8101516040805133815260208101929092526001600160a01b03878116838301529282018590528583166080830152918c1660a082015260c0810183905290517fb12e9d11a497e0551b14e8ebbe378a5639cdf291d17bfa65c8083f8747682fc19181900360e00190a1909c909b5092995091975050505050505050565b604080516000808252602082019092526001600160a01b03841690839060405161102e91906119f9565b60006040518083038185875af1925050503d806000811461106b576040519150601f19603f3d011682016040523d82523d6000602084013e611070565b606091505b5050905080610da05760405162461bcd60e51b815260206004820152602260248201527f4f4d4f41676772656761746f723a204554485f5452414e534645525f4641494c604482015261115160f21b6064820152608401610329565b6040516001600160a01b038316602482015260448101829052610da090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526112d2565b8015806111a95750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611183573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111a79190611858565b155b6112145760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b6064820152608401610329565b6040516001600160a01b038316602482015260448101829052610da090849063095ea7b360e01b906064016110f8565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526112cc9085906323b872dd60e01b906084016110f8565b50505050565b6000611327826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113a79092919063ffffffff16565b90508051600014806113485750808060200190518101906113489190611a15565b610da05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610329565b60606113b684846000856113be565b949350505050565b60608247101561141f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610329565b600080866001600160a01b0316858760405161143b91906119f9565b60006040518083038185875af1925050503d8060008114611478576040519150601f19603f3d011682016040523d82523d6000602084013e61147d565b606091505b509150915061148e87838387611499565b979650505050505050565b60608315611508578251600003611501576001600160a01b0385163b6115015760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610329565b50816113b6565b6113b6838381511561151d5781518083602001fd5b8060405162461bcd60e51b81526004016103299190611a32565b60006020828403121561154957600080fd5b5035919050565b6001600160a01b0381168114610b8857600080fd5b803561157081611550565b919050565b60006020828403121561158757600080fd5b813561159281611550565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60405160a0810167ffffffffffffffff811182821017156115d2576115d2611599565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561160157611601611599565b604052919050565b600060a0828403121561161b57600080fd5b6116236115af565b9050813567ffffffffffffffff8082111561163d57600080fd5b818401915084601f83011261165157600080fd5b813560208282111561166557611665611599565b611677601f8301601f191682016115d8565b9250818352868183860101111561168d57600080fd5b818185018285013760008183850101528285526116ab818701611565565b818601525050505060408201356040820152606082013560608201526080820135608082015292915050565b8015158114610b8857600080fd5b600080604083850312156116f857600080fd5b823567ffffffffffffffff81111561170f57600080fd5b61171b85828601611609565b925050602083013561172c816116d7565b809150509250929050565b60008060008060008060a0878903121561175057600080fd5b863567ffffffffffffffff8082111561176857600080fd5b9088019060a0828b03121561177c57600080fd5b9096506020880135955060408801359063ffffffff8216821461179e57600080fd5b90945060608801359350608088013590808211156117bb57600080fd5b818901915089601f8301126117cf57600080fd5b8135818111156117de57600080fd5b8a60208285010111156117f057600080fd5b6020830194508093505050509295509295509295565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561184d57600080fd5b815161159281611550565b60006020828403121561186a57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561189a5761189a611871565b92915050565b600061189a3683611609565b60018060a01b038716815285602082015263ffffffff8516604082015283606082015260a060808201528160a0820152818360c0830137600081830160c090810191909152601f909201601f1916010195945050505050565b8082018082111561189a5761189a611871565b60005b8381101561193357818101518382015260200161191b565b50506000910152565b60008151808452611954816020860160208601611918565b601f01601f19169290920160200192915050565b602081526000825160a0602084015261198460c084018261193c565b905060018060a01b0360208501511660408401526040840151606084015260608401516080840152608084015160a08401528091505092915050565b808202811582820484141761189a5761189a611871565b6000826119f457634e487b7160e01b600052601260045260246000fd5b500490565b60008251611a0b818460208701611918565b9190910192915050565b600060208284031215611a2757600080fd5b8151611592816116d7565b602081526000611592602083018461193c56fea26469706673582212202a7c56d6c7513172fab8edafb177cef67994ce221590850ffaacb5fa9536af1e64736f6c63430008110033

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
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.