ETH Price: $2,917.39 (+4.42%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unoswap169115962023-03-26 12:27:23592 days ago1679833643IN
0x9d14a2ca...903382bF7
0.02789 ETH0.0041241713.26942791
Unoswap169066042023-03-25 19:38:59593 days ago1679773139IN
0x9d14a2ca...903382bF7
0.10089 ETH0.0080060717.15479807
Unoswap168692682023-03-20 13:45:35598 days ago1679319935IN
0x9d14a2ca...903382bF7
1.32081329 ETH0.0114442124.63902338
Unoswap168130182023-03-12 16:04:59606 days ago1678637099IN
0x9d14a2ca...903382bF7
0.10089 ETH0.0053417919.34078878
Unoswap166514352023-02-17 22:39:35629 days ago1676673575IN
0x9d14a2ca...903382bF7
0.09674352 ETH0.0081328737.60675056
Uniswap V3Swap T...166458182023-02-17 3:39:11630 days ago1676605151IN
0x9d14a2ca...903382bF7
0.00089 ETH0.0048365526.37738972
Unoswap166416542023-02-16 13:41:47630 days ago1676554907IN
0x9d14a2ca...903382bF7
0.04589 ETH0.0143119237.23999375
Unoswap166058022023-02-11 13:25:35635 days ago1676121935IN
0x9d14a2ca...903382bF7
0.12089 ETH0.0089957317.25145441
Unoswap165816422023-02-08 4:21:47639 days ago1675830107IN
0x9d14a2ca...903382bF7
0.27089 ETH0.0062040127.0309779
Unoswap165308032023-02-01 1:51:47646 days ago1675216307IN
0x9d14a2ca...903382bF7
0.01969013 ETH0.0051262616.49299226
Unoswap164862062023-01-25 20:25:23652 days ago1674678323IN
0x9d14a2ca...903382bF7
0.50089 ETH0.0068637326.1447657
Unoswap164862022023-01-25 20:24:35652 days ago1674678275IN
0x9d14a2ca...903382bF7
0.50089 ETH0.0057207126.93177184
Unoswap164796402023-01-24 22:25:35653 days ago1674599135IN
0x9d14a2ca...903382bF7
0.46089 ETH0.0079224926.18632848
Unoswap164750392023-01-24 7:00:23654 days ago1674543623IN
0x9d14a2ca...903382bF7
1.10089 ETH0.0038668514.08956072
Unoswap164717042023-01-23 19:49:47654 days ago1674503387IN
0x9d14a2ca...903382bF7
0.01089 ETH0.005224323.58355724
Unoswap164716952023-01-23 19:47:59654 days ago1674503279IN
0x9d14a2ca...903382bF7
0.00089 ETH0.0068536324.04605603
Unoswap164713342023-01-23 18:35:35654 days ago1674498935IN
0x9d14a2ca...903382bF7
0.00089 ETH0.0192654736.27931888
Unoswap164551872023-01-21 12:30:59656 days ago1674304259IN
0x9d14a2ca...903382bF7
0.20089 ETH0.0035030514.89316969
Unoswap164517852023-01-21 1:06:11657 days ago1674263171IN
0x9d14a2ca...903382bF7
0.22089 ETH0.0108976820.1868006
Unoswap164478872023-01-20 12:02:23657 days ago1674216143IN
0x9d14a2ca...903382bF7
0.09389 ETH0.003425216.12414855
Unoswap164437472023-01-19 22:11:23658 days ago1674166283IN
0x9d14a2ca...903382bF7
0.15089 ETH0.0043954420.69273262
Unoswap164427272023-01-19 18:45:59658 days ago1674153959IN
0x9d14a2ca...903382bF7
0.17589 ETH0.0052940523.89639326
Unoswap164374782023-01-19 1:09:59659 days ago1674090599IN
0x9d14a2ca...903382bF7
0.13089 ETH0.008175138.48867472
Unoswap164347002023-01-18 15:51:11659 days ago1674057071IN
0x9d14a2ca...903382bF7
1.00089 ETH0.0074366432.40158061
Unoswap164333212023-01-18 11:14:11660 days ago1674040451IN
0x9d14a2ca...903382bF7
0.64611044 ETH0.004413819.92220849
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
169115962023-03-26 12:27:23592 days ago1679833643
0x9d14a2ca...903382bF7
0.027 ETH
169115962023-03-26 12:27:23592 days ago1679833643
0x9d14a2ca...903382bF7
0.00089 ETH
169066042023-03-25 19:38:59593 days ago1679773139
0x9d14a2ca...903382bF7
0.1 ETH
169066042023-03-25 19:38:59593 days ago1679773139
0x9d14a2ca...903382bF7
0.00089 ETH
168692682023-03-20 13:45:35598 days ago1679319935
0x9d14a2ca...903382bF7
1.31992329 ETH
168692682023-03-20 13:45:35598 days ago1679319935
0x9d14a2ca...903382bF7
0.00089 ETH
168130182023-03-12 16:04:59606 days ago1678637099
0x9d14a2ca...903382bF7
0.1 ETH
168130182023-03-12 16:04:59606 days ago1678637099
0x9d14a2ca...903382bF7
0.00089 ETH
166514352023-02-17 22:39:35629 days ago1676673575
0x9d14a2ca...903382bF7
0.09585352 ETH
166514352023-02-17 22:39:35629 days ago1676673575
0x9d14a2ca...903382bF7
0.00089 ETH
166458182023-02-17 3:39:11630 days ago1676605151
0x9d14a2ca...903382bF7
0.00089 ETH
166416542023-02-16 13:41:47630 days ago1676554907
0x9d14a2ca...903382bF7
0.045 ETH
166416542023-02-16 13:41:47630 days ago1676554907
0x9d14a2ca...903382bF7
0.00089 ETH
166058022023-02-11 13:25:35635 days ago1676121935
0x9d14a2ca...903382bF7
0.12 ETH
166058022023-02-11 13:25:35635 days ago1676121935
0x9d14a2ca...903382bF7
0.00089 ETH
165816422023-02-08 4:21:47639 days ago1675830107
0x9d14a2ca...903382bF7
0.27 ETH
165816422023-02-08 4:21:47639 days ago1675830107
0x9d14a2ca...903382bF7
0.00089 ETH
165308032023-02-01 1:51:47646 days ago1675216307
0x9d14a2ca...903382bF7
0.01880013 ETH
165308032023-02-01 1:51:47646 days ago1675216307
0x9d14a2ca...903382bF7
0.00089 ETH
164862062023-01-25 20:25:23652 days ago1674678323
0x9d14a2ca...903382bF7
0.5 ETH
164862062023-01-25 20:25:23652 days ago1674678323
0x9d14a2ca...903382bF7
0.00089 ETH
164862022023-01-25 20:24:35652 days ago1674678275
0x9d14a2ca...903382bF7
0.5 ETH
164862022023-01-25 20:24:35652 days ago1674678275
0x9d14a2ca...903382bF7
0.00089 ETH
164796402023-01-24 22:25:35653 days ago1674599135
0x9d14a2ca...903382bF7
0.46 ETH
164796402023-01-24 22:25:35653 days ago1674599135
0x9d14a2ca...903382bF7
0.00089 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BrewlabsAggregator

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : BrewlabsAggregator.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
pragma abicoder v2;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import "contracts/helpers/UniERC20.sol";

struct SwapDescription {
    IERC20 srcToken;
    IERC20 dstToken;
    address payable srcReceiver;
    address payable dstReceiver;
    uint256 amount;
    uint256 minReturnAmount;
    uint256 flags;
    bytes permit;
}

interface IAggregationExecutor {
    function callBytes(address msgSender, bytes calldata data) external payable;
}

interface IAggregationRouter {
    function swap(
        IAggregationExecutor caller,
        SwapDescription calldata desc,
        bytes calldata data
    )
        external
        payable
        returns (
            uint256 returnAmount,
            uint256 spentAmount,
            uint256 gasLeft
        );

    function unoswap(
        IERC20 srcToken,
        uint256 amount,
        uint256 minReturn,
        bytes32[] calldata pools
    ) external payable returns (uint256 returnAmount);

    function uniswapV3SwapTo(
        address payable recipient,
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools
    ) external payable returns (uint256 returnAmount);
}

contract BrewlabsAggregator is Ownable {
    using SafeMath for uint256;
    using UniERC20 for IERC20;
    using SafeERC20 for IERC20;

    IAggregationRouter private constant aggregationRouter =
        IAggregationRouter(0x1111111254fb6c44bAC0beD2854e76F90643097d);

    uint256 public feeAmount;
    address payable public feeAddress;

    event UpdateFeeAmount(uint256 indexed oldAmount, uint256 indexed newAmount);
    event UpdateFeeAddress(
        address indexed oldAddress,
        address indexed newAddress
    );

    constructor(uint256 _feeAmount, address payable _feeAddress) {
        feeAmount = _feeAmount;
        feeAddress = _feeAddress;
    }

    receive() external payable {}

    function updateFeeAmount(uint256 _newAmount) external onlyOwner {
        require(
            _newAmount != feeAmount,
            "Brewlabs: Cannot update to same value"
        );
        uint256 _oldAmount = feeAmount;
        feeAmount = _newAmount;
        emit UpdateFeeAmount(_oldAmount, _newAmount);
    }

    function updateFeeAddress(address payable _newAddress) external onlyOwner {
        require(
            _newAddress != feeAddress,
            "Brewlabs: Cannot update to same value"
        );
        address _oldAddress = feeAddress;
        feeAddress = _newAddress;
        emit UpdateFeeAddress(_oldAddress, _newAddress);
    }

    function swap(
        IAggregationExecutor caller,
        SwapDescription calldata desc,
        bytes calldata data
    ) public payable {
        IERC20 srcToken = desc.srcToken;
        bool srcETH = srcToken.isETH();

        if (srcETH) {
            require(
                msg.value == desc.amount + feeAmount,
                "Brewlabs: ether is not correct"
            );
        } else {
            require(msg.value == feeAmount, "Brewlabs: ether is not correct");
        }

        feeAddress.transfer(feeAmount);

        if (!srcETH) {
            srcToken.safeTransferFrom(msg.sender, address(this), desc.amount);
            srcToken.safeApprove(address(aggregationRouter), desc.amount);
        }

        aggregationRouter.swap{value: srcETH ? desc.amount : 0}(
            caller,
            desc,
            data
        );
    }

    function unoswap(
        IERC20 srcToken,
        IERC20 dstToken,
        uint256 amount,
        uint256 minReturn,
        bytes32[] calldata pools
    ) public payable {
        bool srcETH = srcToken.isETH();
        bool dstETH = dstToken.isETH();

        if (srcETH) {
            require(
                msg.value == amount + feeAmount,
                "Brewlabs: ether is not correct"
            );
        } else {
            require(msg.value == feeAmount, "Brewlabs: ether is not correct");
        }

        feeAddress.transfer(feeAmount);

        uint256 beforeAmt;
        uint256 tokenAmt;

        if (!srcETH) {
            beforeAmt = srcToken.balanceOf(address(this));
            srcToken.safeTransferFrom(msg.sender, address(this), amount);
            tokenAmt = srcToken.balanceOf(address(this)).sub(beforeAmt);
            srcToken.safeApprove(address(aggregationRouter), tokenAmt);
        }

        if (!dstETH) beforeAmt = dstToken.balanceOf(address(this));

        uint256 returnAmount = aggregationRouter.unoswap{
            value: srcETH ? amount : 0
        }(srcToken, srcETH ? amount : tokenAmt, minReturn, pools);

        if (!dstETH)
            tokenAmt = dstToken.balanceOf(address(this)).sub(beforeAmt);

        if (!dstETH) {
            dstToken.safeTransfer(msg.sender, tokenAmt);
        } else {
            payable(msg.sender).transfer(returnAmount);
        }
    }

    function uniswapV3SwapTo(
        IERC20 srcToken,
        address payable recipient,
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools
    ) public payable {
        bool srcETH = srcToken.isETH();

        if (srcETH) {
            require(
                msg.value == amount + feeAmount,
                "Brewlabs: ether is not correct"
            );
        } else {
            require(msg.value == feeAmount, "Brewlabs: ether is not correct");
        }

        feeAddress.transfer(feeAmount);

        uint256 beforeAmt;
        uint256 tokenAmt;

        if (!srcETH) {
            beforeAmt = srcToken.balanceOf(address(this));
            srcToken.safeTransferFrom(msg.sender, address(this), amount);
            tokenAmt = srcToken.balanceOf(address(this)).sub(beforeAmt);
            srcToken.safeApprove(address(aggregationRouter), tokenAmt);
        }

        aggregationRouter.uniswapV3SwapTo{value: srcETH ? amount : 0}(
            recipient,
            srcETH ? amount : tokenAmt,
            minReturn,
            pools
        );
    }
}

File 2 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        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 3 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 4 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 5 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 6 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 7 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 8 of 10 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 9 of 10 : RevertReasonParser.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

/// @title Library that allows to parse unsuccessful arbitrary calls revert reasons.
/// See https://solidity.readthedocs.io/en/latest/control-structures.html#revert for details.
/// Note that we assume revert reason being abi-encoded as Error(string) so it may fail to parse reason
/// if structured reverts appear in the future.
///
/// All unsuccessful parsings get encoded as Unknown(data) string
library RevertReasonParser {
    bytes4 private constant _PANIC_SELECTOR =
        bytes4(keccak256("Panic(uint256)"));
    bytes4 private constant _ERROR_SELECTOR =
        bytes4(keccak256("Error(string)"));

    function parse(bytes memory data, string memory prefix)
        internal
        pure
        returns (string memory)
    {
        if (data.length >= 4) {
            bytes4 selector;
            assembly {
                // solhint-disable-line no-inline-assembly
                selector := mload(add(data, 0x20))
            }

            // 68 = 4-byte selector + 32 bytes offset + 32 bytes length
            if (selector == _ERROR_SELECTOR && data.length >= 68) {
                uint256 offset;
                bytes memory reason;
                // solhint-disable no-inline-assembly
                assembly {
                    // 36 = 32 bytes data length + 4-byte selector
                    offset := mload(add(data, 36))
                    reason := add(data, add(36, offset))
                }
                /*
                    revert reason is padded up to 32 bytes with ABI encoder: Error(string)
                    also sometimes there is extra 32 bytes of zeros padded in the end:
                    https://github.com/ethereum/solidity/issues/10170
                    because of that we can't check for equality and instead check
                    that offset + string length + extra 36 bytes is less than overall data length
                */
                require(
                    data.length >= 36 + offset + reason.length,
                    "Invalid revert reason"
                );
                return string(abi.encodePacked(prefix, "Error(", reason, ")"));
            }
            // 36 = 4-byte selector + 32 bytes integer
            else if (selector == _PANIC_SELECTOR && data.length == 36) {
                uint256 code;
                // solhint-disable no-inline-assembly
                assembly {
                    // 36 = 32 bytes data length + 4-byte selector
                    code := mload(add(data, 36))
                }
                return
                    string(
                        abi.encodePacked(prefix, "Panic(", _toHex(code), ")")
                    );
            }
        }

        return string(abi.encodePacked(prefix, "Unknown(", _toHex(data), ")"));
    }

    function _toHex(uint256 value) private pure returns (string memory) {
        return _toHex(abi.encodePacked(value));
    }

    function _toHex(bytes memory data) private pure returns (string memory) {
        bytes16 alphabet = 0x30313233343536373839616263646566;
        bytes memory str = new bytes(2 + data.length * 2);
        str[0] = "0";
        str[1] = "x";
        for (uint256 i = 0; i < data.length; i++) {
            str[2 * i + 2] = alphabet[uint8(data[i] >> 4)];
            str[2 * i + 3] = alphabet[uint8(data[i] & 0x0f)];
        }
        return string(str);
    }
}

File 10 of 10 : UniERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

import "contracts/helpers/RevertReasonParser.sol";

library UniERC20 {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    IERC20 private constant _ETH_ADDRESS =
        IERC20(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
    IERC20 private constant _ZERO_ADDRESS = IERC20(0x0000000000000000000000000000000000000000);

    function isETH(IERC20 token) internal pure returns (bool) {
        return (token == _ZERO_ADDRESS || token == _ETH_ADDRESS);
    }

    function uniBalanceOf(IERC20 token, address account)
        internal
        view
        returns (uint256)
    {
        if (isETH(token)) {
            return account.balance;
        } else {
            return token.balanceOf(account);
        }
    }

    function uniTransfer(
        IERC20 token,
        address payable to,
        uint256 amount
    ) internal {
        if (amount > 0) {
            if (isETH(token)) {
                to.transfer(amount);
            } else {
                token.safeTransfer(to, amount);
            }
        }
    }

    function uniApprove(
        IERC20 token,
        address to,
        uint256 amount
    ) internal {
        require(!isETH(token), "Approve called on ETH");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(
            abi.encodeWithSelector(token.approve.selector, to, amount)
        );

        if (
            !success ||
            (returndata.length > 0 && !abi.decode(returndata, (bool)))
        ) {
            _callOptionalReturn(
                token,
                abi.encodeWithSelector(token.approve.selector, to, 0)
            );
            _callOptionalReturn(
                token,
                abi.encodeWithSelector(token.approve.selector, to, amount)
            );
        }
    }

    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory result) = address(token).call(data);
        if (!success) {
            revert(RevertReasonParser.parse(result, "Low-level call failed: "));
        }

        if (result.length > 0) {
            // Return data is optional
            require(
                abi.decode(result, (bool)),
                "ERC20 operation did not succeed"
            );
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_feeAmount","type":"uint256"},{"internalType":"address payable","name":"_feeAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"UpdateFeeAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"oldAmount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"UpdateFeeAmount","type":"event"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IAggregationExecutor","name":"caller","type":"address"},{"components":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"internalType":"address payable","name":"srcReceiver","type":"address"},{"internalType":"address payable","name":"dstReceiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"internalType":"uint256","name":"flags","type":"uint256"},{"internalType":"bytes","name":"permit","type":"bytes"}],"internalType":"struct SwapDescription","name":"desc","type":"tuple"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"uint256[]","name":"pools","type":"uint256[]"}],"name":"uniswapV3SwapTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"bytes32[]","name":"pools","type":"bytes32[]"}],"name":"unoswap","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newAddress","type":"address"}],"name":"updateFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAmount","type":"uint256"}],"name":"updateFeeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162002ad338038062002ad3833981810160405281019062000037919062000218565b620000576200004b620000a760201b60201c565b620000af60201b60201c565b8160018190555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506200025f565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b6000819050919050565b6200018d8162000178565b81146200019957600080fd5b50565b600081519050620001ad8162000182565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001e082620001b3565b9050919050565b620001f281620001d3565b8114620001fe57600080fd5b50565b6000815190506200021281620001e7565b92915050565b6000806040838503121562000232576200023162000173565b5b600062000242858286016200019c565b9250506020620002558582860162000201565b9150509250929050565b612864806200026f6000396000f3fe6080604052600436106100955760003560e01c80638da5cb5b116100595780638da5cb5b146101465780639ea55bb014610171578063a749bd261461019a578063bbcaac38146101b6578063f2fde38b146101df5761009c565b806341275358146100a157806369e15404146100cc578063715018a6146100f757806378a35f891461010e5780637c0252001461012a5761009c565b3661009c57005b600080fd5b3480156100ad57600080fd5b506100b6610208565b6040516100c391906116f7565b60405180910390f35b3480156100d857600080fd5b506100e161022e565b6040516100ee919061172b565b60405180910390f35b34801561010357600080fd5b5061010c610234565b005b61012860048036038101906101239190611831565b610248565b005b610144600480360381019061013f9190611984565b61076d565b005b34801561015257600080fd5b5061015b6109e2565b6040516101689190611a23565b60405180910390f35b34801561017d57600080fd5b5061019860048036038101906101939190611a3e565b610a0b565b005b6101b460048036038101906101af9190611aed565b610a97565b005b3480156101c257600080fd5b506101dd60048036038101906101d89190611b87565b610e01565b005b3480156101eb57600080fd5b5061020660048036038101906102019190611be0565b610f5f565b005b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b61023c610fe2565b6102466000611060565b565b60006102698773ffffffffffffffffffffffffffffffffffffffff16611124565b9050600061028c8773ffffffffffffffffffffffffffffffffffffffff16611124565b905081156102e857600154866102a29190611c3c565b34146102e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102da90611ccd565b60405180910390fd5b61032d565b600154341461032c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032390611ccd565b60405180910390fd5b5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6001549081150290604051600060405180830381858888f19350505050158015610397573d6000803e3d6000fd5b5060008083610517578973ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016103d99190611a23565b602060405180830381865afa1580156103f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041a9190611d02565b915061044933308a8d73ffffffffffffffffffffffffffffffffffffffff166111a6909392919063ffffffff16565b6104d5828b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104869190611a23565b602060405180830381865afa1580156104a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c79190611d02565b61122f90919063ffffffff16565b9050610516731111111254fb6c44bac0bed2854e76f90643097d828c73ffffffffffffffffffffffffffffffffffffffff166112459092919063ffffffff16565b5b82610599578873ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016105559190611a23565b602060405180830381865afa158015610572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105969190611d02565b91505b6000731111111254fb6c44bac0bed2854e76f90643097d73ffffffffffffffffffffffffffffffffffffffff16632e95b6c8866105d75760006105d9565b8a5b8d886105e557856105e7565b8c5b8c8c8c6040518763ffffffff1660e01b815260040161060a959493929190611e09565b60206040518083038185885af1158015610628573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061064d9190611d02565b9050836106e3576106e0838b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106919190611a23565b602060405180830381865afa1580156106ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d29190611d02565b61122f90919063ffffffff16565b91505b836107185761071333838c73ffffffffffffffffffffffffffffffffffffffff166113949092919063ffffffff16565b610760565b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561075e573d6000803e3d6000fd5b505b5050505050505050505050565b60008360000160208101906107829190611e57565b905060006107a58273ffffffffffffffffffffffffffffffffffffffff16611124565b905080156108055760015485608001356107bf9190611c3c565b3414610800576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f790611ccd565b60405180910390fd5b61084a565b6001543414610849576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084090611ccd565b60405180910390fd5b5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6001549081150290604051600060405180830381858888f193505050501580156108b4573d6000803e3d6000fd5b508061092f576108eb333087608001358573ffffffffffffffffffffffffffffffffffffffff166111a6909392919063ffffffff16565b61092e731111111254fb6c44bac0bed2854e76f90643097d86608001358473ffffffffffffffffffffffffffffffffffffffff166112459092919063ffffffff16565b5b731111111254fb6c44bac0bed2854e76f90643097d73ffffffffffffffffffffffffffffffffffffffff16637c0252008261096b576000610971565b86608001355b888888886040518663ffffffff1660e01b81526004016109949493929190612117565b60606040518083038185885af11580156109b2573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906109d7919061215e565b505050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610a13610fe2565b6001548103610a57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4e90612223565b60405180910390fd5b600060015490508160018190555081817f42fc0ee30f9b1345acb70fb2449823ad2e6bd461e27507685db66fd8133d517060405160405180910390a35050565b6000610ab88773ffffffffffffffffffffffffffffffffffffffff16611124565b90508015610b145760015485610ace9190611c3c565b3414610b0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0690611ccd565b60405180910390fd5b610b59565b6001543414610b58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4f90611ccd565b60405180910390fd5b5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6001549081150290604051600060405180830381858888f19350505050158015610bc3573d6000803e3d6000fd5b5060008082610d43578873ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c059190611a23565b602060405180830381865afa158015610c22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c469190611d02565b9150610c753330898c73ffffffffffffffffffffffffffffffffffffffff166111a6909392919063ffffffff16565b610d01828a73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610cb29190611a23565b602060405180830381865afa158015610ccf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf39190611d02565b61122f90919063ffffffff16565b9050610d42731111111254fb6c44bac0bed2854e76f90643097d828b73ffffffffffffffffffffffffffffffffffffffff166112459092919063ffffffff16565b5b731111111254fb6c44bac0bed2854e76f90643097d73ffffffffffffffffffffffffffffffffffffffff1663bc80f1a884610d7f576000610d81565b885b8a86610d8d5784610d8f565b8a5b8a8a8a6040518763ffffffff1660e01b8152600401610db29594939291906122b0565b60206040518083038185885af1158015610dd0573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610df59190611d02565b50505050505050505050565b610e09610fe2565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9090612223565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f902851878f378b5ada06366b0ecb192abf50a68836fd2862d2bc551c174a6f8a60405160405180910390a35050565b610f67610fe2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcd90612370565b60405180910390fd5b610fdf81611060565b50565b610fea61141a565b73ffffffffffffffffffffffffffffffffffffffff166110086109e2565b73ffffffffffffffffffffffffffffffffffffffff161461105e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611055906123dc565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16148061119f575073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b611229846323b872dd60e01b8585856040516024016111c7939291906123fc565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611422565b50505050565b6000818361123d9190612433565b905092915050565b60008114806112cf575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b815260040161128c929190612467565b602060405180830381865afa1580156112a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112cd9190611d02565b145b61130e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130590612502565b60405180910390fd5b61138f8363095ea7b360e01b848460405160240161132d929190612522565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611422565b505050565b6114158363a9059cbb60e01b84846040516024016113b3929190612522565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611422565b505050565b600033905090565b6000611484826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114e99092919063ffffffff16565b90506000815111156114e457808060200190518101906114a49190612583565b6114e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114da90612622565b60405180910390fd5b5b505050565b60606114f88484600085611501565b90509392505050565b606082471015611546576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153d906126b4565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161156f9190612745565b60006040518083038185875af1925050503d80600081146115ac576040519150601f19603f3d011682016040523d82523d6000602084013e6115b1565b606091505b50915091506115c2878383876115ce565b92505050949350505050565b60608315611630576000835103611628576115e885611643565b611627576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161e906127a8565b60405180910390fd5b5b82905061163b565b61163a8383611666565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156116795781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ad919061280c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006116e1826116b6565b9050919050565b6116f1816116d6565b82525050565b600060208201905061170c60008301846116e8565b92915050565b6000819050919050565b61172581611712565b82525050565b6000602082019050611740600083018461171c565b92915050565b600080fd5b600080fd5b600061175b826116b6565b9050919050565b600061176d82611750565b9050919050565b61177d81611762565b811461178857600080fd5b50565b60008135905061179a81611774565b92915050565b6117a981611712565b81146117b457600080fd5b50565b6000813590506117c6816117a0565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126117f1576117f06117cc565b5b8235905067ffffffffffffffff81111561180e5761180d6117d1565b5b60208301915083602082028301111561182a576118296117d6565b5b9250929050565b60008060008060008060a0878903121561184e5761184d611746565b5b600061185c89828a0161178b565b965050602061186d89828a0161178b565b955050604061187e89828a016117b7565b945050606061188f89828a016117b7565b935050608087013567ffffffffffffffff8111156118b0576118af61174b565b5b6118bc89828a016117db565b92509250509295509295509295565b60006118d682611750565b9050919050565b6118e6816118cb565b81146118f157600080fd5b50565b600081359050611903816118dd565b92915050565b600080fd5b6000610100828403121561192557611924611909565b5b81905092915050565b60008083601f840112611944576119436117cc565b5b8235905067ffffffffffffffff811115611961576119606117d1565b5b60208301915083600182028301111561197d5761197c6117d6565b5b9250929050565b6000806000806060858703121561199e5761199d611746565b5b60006119ac878288016118f4565b945050602085013567ffffffffffffffff8111156119cd576119cc61174b565b5b6119d98782880161190e565b935050604085013567ffffffffffffffff8111156119fa576119f961174b565b5b611a068782880161192e565b925092505092959194509250565b611a1d81611750565b82525050565b6000602082019050611a386000830184611a14565b92915050565b600060208284031215611a5457611a53611746565b5b6000611a62848285016117b7565b91505092915050565b611a74816116d6565b8114611a7f57600080fd5b50565b600081359050611a9181611a6b565b92915050565b60008083601f840112611aad57611aac6117cc565b5b8235905067ffffffffffffffff811115611aca57611ac96117d1565b5b602083019150836020820283011115611ae657611ae56117d6565b5b9250929050565b60008060008060008060a08789031215611b0a57611b09611746565b5b6000611b1889828a0161178b565b9650506020611b2989828a01611a82565b9550506040611b3a89828a016117b7565b9450506060611b4b89828a016117b7565b935050608087013567ffffffffffffffff811115611b6c57611b6b61174b565b5b611b7889828a01611a97565b92509250509295509295509295565b600060208284031215611b9d57611b9c611746565b5b6000611bab84828501611a82565b91505092915050565b611bbd81611750565b8114611bc857600080fd5b50565b600081359050611bda81611bb4565b92915050565b600060208284031215611bf657611bf5611746565b5b6000611c0484828501611bcb565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611c4782611712565b9150611c5283611712565b9250828201905080821115611c6a57611c69611c0d565b5b92915050565b600082825260208201905092915050565b7f427265776c6162733a206574686572206973206e6f7420636f72726563740000600082015250565b6000611cb7601e83611c70565b9150611cc282611c81565b602082019050919050565b60006020820190508181036000830152611ce681611caa565b9050919050565b600081519050611cfc816117a0565b92915050565b600060208284031215611d1857611d17611746565b5b6000611d2684828501611ced565b91505092915050565b6000819050919050565b6000611d54611d4f611d4a846116b6565b611d2f565b6116b6565b9050919050565b6000611d6682611d39565b9050919050565b6000611d7882611d5b565b9050919050565b611d8881611d6d565b82525050565b600082825260208201905092915050565b600080fd5b82818337505050565b6000611db98385611d8e565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115611dec57611deb611d9f565b5b602083029250611dfd838584611da4565b82840190509392505050565b6000608082019050611e1e6000830188611d7f565b611e2b602083018761171c565b611e38604083018661171c565b8181036060830152611e4b818486611dad565b90509695505050505050565b600060208284031215611e6d57611e6c611746565b5b6000611e7b8482850161178b565b91505092915050565b6000611e8f82611d5b565b9050919050565b611e9f81611e84565b82525050565b6000611eb4602084018461178b565b905092915050565b611ec581611d6d565b82525050565b6000611eda6020840184611a82565b905092915050565b611eeb816116d6565b82525050565b6000611f0060208401846117b7565b905092915050565b611f1181611712565b82525050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112611f4357611f42611f21565b5b83810192508235915060208301925067ffffffffffffffff821115611f6b57611f6a611f17565b5b600182023603831315611f8157611f80611f1c565b5b509250929050565b600082825260208201905092915050565b82818337600083830152505050565b6000601f19601f8301169050919050565b6000611fc68385611f89565b9350611fd3838584611f9a565b611fdc83611fa9565b840190509392505050565b60006101008301611ffb6000840184611ea5565b6120086000860182611ebc565b506120166020840184611ea5565b6120236020860182611ebc565b506120316040840184611ecb565b61203e6040860182611ee2565b5061204c6060840184611ecb565b6120596060860182611ee2565b506120676080840184611ef1565b6120746080860182611f08565b5061208260a0840184611ef1565b61208f60a0860182611f08565b5061209d60c0840184611ef1565b6120aa60c0860182611f08565b506120b860e0840184611f26565b85830360e08701526120cb838284611fba565b925050508091505092915050565b600082825260208201905092915050565b60006120f683856120d9565b9350612103838584611f9a565b61210c83611fa9565b840190509392505050565b600060608201905061212c6000830187611e96565b818103602083015261213e8186611fe7565b905081810360408301526121538184866120ea565b905095945050505050565b60008060006060848603121561217757612176611746565b5b600061218586828701611ced565b935050602061219686828701611ced565b92505060406121a786828701611ced565b9150509250925092565b7f427265776c6162733a2043616e6e6f742075706461746520746f2073616d652060008201527f76616c7565000000000000000000000000000000000000000000000000000000602082015250565b600061220d602583611c70565b9150612218826121b1565b604082019050919050565b6000602082019050818103600083015261223c81612200565b9050919050565b600082825260208201905092915050565b60006122608385612243565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561229357612292611d9f565b5b6020830292506122a4838584611da4565b82840190509392505050565b60006080820190506122c560008301886116e8565b6122d2602083018761171c565b6122df604083018661171c565b81810360608301526122f2818486612254565b90509695505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061235a602683611c70565b9150612365826122fe565b604082019050919050565b600060208201905081810360008301526123898161234d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006123c6602083611c70565b91506123d182612390565b602082019050919050565b600060208201905081810360008301526123f5816123b9565b9050919050565b60006060820190506124116000830186611a14565b61241e6020830185611a14565b61242b604083018461171c565b949350505050565b600061243e82611712565b915061244983611712565b925082820390508181111561246157612460611c0d565b5b92915050565b600060408201905061247c6000830185611a14565b6124896020830184611a14565b9392505050565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b60006124ec603683611c70565b91506124f782612490565b604082019050919050565b6000602082019050818103600083015261251b816124df565b9050919050565b60006040820190506125376000830185611a14565b612544602083018461171c565b9392505050565b60008115159050919050565b6125608161254b565b811461256b57600080fd5b50565b60008151905061257d81612557565b92915050565b60006020828403121561259957612598611746565b5b60006125a78482850161256e565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061260c602a83611c70565b9150612617826125b0565b604082019050919050565b6000602082019050818103600083015261263b816125ff565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061269e602683611c70565b91506126a982612642565b604082019050919050565b600060208201905081810360008301526126cd81612691565b9050919050565b600081519050919050565b600081905092915050565b60005b838110156127085780820151818401526020810190506126ed565b60008484015250505050565b600061271f826126d4565b61272981856126df565b93506127398185602086016126ea565b80840191505092915050565b60006127518284612714565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612792601d83611c70565b915061279d8261275c565b602082019050919050565b600060208201905081810360008301526127c181612785565b9050919050565b600081519050919050565b60006127de826127c8565b6127e88185611c70565b93506127f88185602086016126ea565b61280181611fa9565b840191505092915050565b6000602082019050818103600083015261282681846127d3565b90509291505056fea2646970667358221220ac2464b544ff4e5c17ec0903d8f910bc31779b1906ffe9aa5da39f6b0befd33a64736f6c634300081100330000000000000000000000000000000000000000000000000003297345d9a00000000000000000000000000064961ffd0d84b2355ec2b5d35b0d8d8825a774dc

Deployed Bytecode

0x6080604052600436106100955760003560e01c80638da5cb5b116100595780638da5cb5b146101465780639ea55bb014610171578063a749bd261461019a578063bbcaac38146101b6578063f2fde38b146101df5761009c565b806341275358146100a157806369e15404146100cc578063715018a6146100f757806378a35f891461010e5780637c0252001461012a5761009c565b3661009c57005b600080fd5b3480156100ad57600080fd5b506100b6610208565b6040516100c391906116f7565b60405180910390f35b3480156100d857600080fd5b506100e161022e565b6040516100ee919061172b565b60405180910390f35b34801561010357600080fd5b5061010c610234565b005b61012860048036038101906101239190611831565b610248565b005b610144600480360381019061013f9190611984565b61076d565b005b34801561015257600080fd5b5061015b6109e2565b6040516101689190611a23565b60405180910390f35b34801561017d57600080fd5b5061019860048036038101906101939190611a3e565b610a0b565b005b6101b460048036038101906101af9190611aed565b610a97565b005b3480156101c257600080fd5b506101dd60048036038101906101d89190611b87565b610e01565b005b3480156101eb57600080fd5b5061020660048036038101906102019190611be0565b610f5f565b005b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b61023c610fe2565b6102466000611060565b565b60006102698773ffffffffffffffffffffffffffffffffffffffff16611124565b9050600061028c8773ffffffffffffffffffffffffffffffffffffffff16611124565b905081156102e857600154866102a29190611c3c565b34146102e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102da90611ccd565b60405180910390fd5b61032d565b600154341461032c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032390611ccd565b60405180910390fd5b5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6001549081150290604051600060405180830381858888f19350505050158015610397573d6000803e3d6000fd5b5060008083610517578973ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016103d99190611a23565b602060405180830381865afa1580156103f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041a9190611d02565b915061044933308a8d73ffffffffffffffffffffffffffffffffffffffff166111a6909392919063ffffffff16565b6104d5828b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104869190611a23565b602060405180830381865afa1580156104a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c79190611d02565b61122f90919063ffffffff16565b9050610516731111111254fb6c44bac0bed2854e76f90643097d828c73ffffffffffffffffffffffffffffffffffffffff166112459092919063ffffffff16565b5b82610599578873ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016105559190611a23565b602060405180830381865afa158015610572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105969190611d02565b91505b6000731111111254fb6c44bac0bed2854e76f90643097d73ffffffffffffffffffffffffffffffffffffffff16632e95b6c8866105d75760006105d9565b8a5b8d886105e557856105e7565b8c5b8c8c8c6040518763ffffffff1660e01b815260040161060a959493929190611e09565b60206040518083038185885af1158015610628573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061064d9190611d02565b9050836106e3576106e0838b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106919190611a23565b602060405180830381865afa1580156106ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d29190611d02565b61122f90919063ffffffff16565b91505b836107185761071333838c73ffffffffffffffffffffffffffffffffffffffff166113949092919063ffffffff16565b610760565b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561075e573d6000803e3d6000fd5b505b5050505050505050505050565b60008360000160208101906107829190611e57565b905060006107a58273ffffffffffffffffffffffffffffffffffffffff16611124565b905080156108055760015485608001356107bf9190611c3c565b3414610800576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f790611ccd565b60405180910390fd5b61084a565b6001543414610849576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084090611ccd565b60405180910390fd5b5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6001549081150290604051600060405180830381858888f193505050501580156108b4573d6000803e3d6000fd5b508061092f576108eb333087608001358573ffffffffffffffffffffffffffffffffffffffff166111a6909392919063ffffffff16565b61092e731111111254fb6c44bac0bed2854e76f90643097d86608001358473ffffffffffffffffffffffffffffffffffffffff166112459092919063ffffffff16565b5b731111111254fb6c44bac0bed2854e76f90643097d73ffffffffffffffffffffffffffffffffffffffff16637c0252008261096b576000610971565b86608001355b888888886040518663ffffffff1660e01b81526004016109949493929190612117565b60606040518083038185885af11580156109b2573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906109d7919061215e565b505050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610a13610fe2565b6001548103610a57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4e90612223565b60405180910390fd5b600060015490508160018190555081817f42fc0ee30f9b1345acb70fb2449823ad2e6bd461e27507685db66fd8133d517060405160405180910390a35050565b6000610ab88773ffffffffffffffffffffffffffffffffffffffff16611124565b90508015610b145760015485610ace9190611c3c565b3414610b0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0690611ccd565b60405180910390fd5b610b59565b6001543414610b58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4f90611ccd565b60405180910390fd5b5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6001549081150290604051600060405180830381858888f19350505050158015610bc3573d6000803e3d6000fd5b5060008082610d43578873ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c059190611a23565b602060405180830381865afa158015610c22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c469190611d02565b9150610c753330898c73ffffffffffffffffffffffffffffffffffffffff166111a6909392919063ffffffff16565b610d01828a73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610cb29190611a23565b602060405180830381865afa158015610ccf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf39190611d02565b61122f90919063ffffffff16565b9050610d42731111111254fb6c44bac0bed2854e76f90643097d828b73ffffffffffffffffffffffffffffffffffffffff166112459092919063ffffffff16565b5b731111111254fb6c44bac0bed2854e76f90643097d73ffffffffffffffffffffffffffffffffffffffff1663bc80f1a884610d7f576000610d81565b885b8a86610d8d5784610d8f565b8a5b8a8a8a6040518763ffffffff1660e01b8152600401610db29594939291906122b0565b60206040518083038185885af1158015610dd0573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610df59190611d02565b50505050505050505050565b610e09610fe2565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9090612223565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f902851878f378b5ada06366b0ecb192abf50a68836fd2862d2bc551c174a6f8a60405160405180910390a35050565b610f67610fe2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcd90612370565b60405180910390fd5b610fdf81611060565b50565b610fea61141a565b73ffffffffffffffffffffffffffffffffffffffff166110086109e2565b73ffffffffffffffffffffffffffffffffffffffff161461105e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611055906123dc565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16148061119f575073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b611229846323b872dd60e01b8585856040516024016111c7939291906123fc565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611422565b50505050565b6000818361123d9190612433565b905092915050565b60008114806112cf575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b815260040161128c929190612467565b602060405180830381865afa1580156112a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112cd9190611d02565b145b61130e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130590612502565b60405180910390fd5b61138f8363095ea7b360e01b848460405160240161132d929190612522565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611422565b505050565b6114158363a9059cbb60e01b84846040516024016113b3929190612522565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611422565b505050565b600033905090565b6000611484826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114e99092919063ffffffff16565b90506000815111156114e457808060200190518101906114a49190612583565b6114e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114da90612622565b60405180910390fd5b5b505050565b60606114f88484600085611501565b90509392505050565b606082471015611546576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153d906126b4565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161156f9190612745565b60006040518083038185875af1925050503d80600081146115ac576040519150601f19603f3d011682016040523d82523d6000602084013e6115b1565b606091505b50915091506115c2878383876115ce565b92505050949350505050565b60608315611630576000835103611628576115e885611643565b611627576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161e906127a8565b60405180910390fd5b5b82905061163b565b61163a8383611666565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156116795781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ad919061280c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006116e1826116b6565b9050919050565b6116f1816116d6565b82525050565b600060208201905061170c60008301846116e8565b92915050565b6000819050919050565b61172581611712565b82525050565b6000602082019050611740600083018461171c565b92915050565b600080fd5b600080fd5b600061175b826116b6565b9050919050565b600061176d82611750565b9050919050565b61177d81611762565b811461178857600080fd5b50565b60008135905061179a81611774565b92915050565b6117a981611712565b81146117b457600080fd5b50565b6000813590506117c6816117a0565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126117f1576117f06117cc565b5b8235905067ffffffffffffffff81111561180e5761180d6117d1565b5b60208301915083602082028301111561182a576118296117d6565b5b9250929050565b60008060008060008060a0878903121561184e5761184d611746565b5b600061185c89828a0161178b565b965050602061186d89828a0161178b565b955050604061187e89828a016117b7565b945050606061188f89828a016117b7565b935050608087013567ffffffffffffffff8111156118b0576118af61174b565b5b6118bc89828a016117db565b92509250509295509295509295565b60006118d682611750565b9050919050565b6118e6816118cb565b81146118f157600080fd5b50565b600081359050611903816118dd565b92915050565b600080fd5b6000610100828403121561192557611924611909565b5b81905092915050565b60008083601f840112611944576119436117cc565b5b8235905067ffffffffffffffff811115611961576119606117d1565b5b60208301915083600182028301111561197d5761197c6117d6565b5b9250929050565b6000806000806060858703121561199e5761199d611746565b5b60006119ac878288016118f4565b945050602085013567ffffffffffffffff8111156119cd576119cc61174b565b5b6119d98782880161190e565b935050604085013567ffffffffffffffff8111156119fa576119f961174b565b5b611a068782880161192e565b925092505092959194509250565b611a1d81611750565b82525050565b6000602082019050611a386000830184611a14565b92915050565b600060208284031215611a5457611a53611746565b5b6000611a62848285016117b7565b91505092915050565b611a74816116d6565b8114611a7f57600080fd5b50565b600081359050611a9181611a6b565b92915050565b60008083601f840112611aad57611aac6117cc565b5b8235905067ffffffffffffffff811115611aca57611ac96117d1565b5b602083019150836020820283011115611ae657611ae56117d6565b5b9250929050565b60008060008060008060a08789031215611b0a57611b09611746565b5b6000611b1889828a0161178b565b9650506020611b2989828a01611a82565b9550506040611b3a89828a016117b7565b9450506060611b4b89828a016117b7565b935050608087013567ffffffffffffffff811115611b6c57611b6b61174b565b5b611b7889828a01611a97565b92509250509295509295509295565b600060208284031215611b9d57611b9c611746565b5b6000611bab84828501611a82565b91505092915050565b611bbd81611750565b8114611bc857600080fd5b50565b600081359050611bda81611bb4565b92915050565b600060208284031215611bf657611bf5611746565b5b6000611c0484828501611bcb565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611c4782611712565b9150611c5283611712565b9250828201905080821115611c6a57611c69611c0d565b5b92915050565b600082825260208201905092915050565b7f427265776c6162733a206574686572206973206e6f7420636f72726563740000600082015250565b6000611cb7601e83611c70565b9150611cc282611c81565b602082019050919050565b60006020820190508181036000830152611ce681611caa565b9050919050565b600081519050611cfc816117a0565b92915050565b600060208284031215611d1857611d17611746565b5b6000611d2684828501611ced565b91505092915050565b6000819050919050565b6000611d54611d4f611d4a846116b6565b611d2f565b6116b6565b9050919050565b6000611d6682611d39565b9050919050565b6000611d7882611d5b565b9050919050565b611d8881611d6d565b82525050565b600082825260208201905092915050565b600080fd5b82818337505050565b6000611db98385611d8e565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115611dec57611deb611d9f565b5b602083029250611dfd838584611da4565b82840190509392505050565b6000608082019050611e1e6000830188611d7f565b611e2b602083018761171c565b611e38604083018661171c565b8181036060830152611e4b818486611dad565b90509695505050505050565b600060208284031215611e6d57611e6c611746565b5b6000611e7b8482850161178b565b91505092915050565b6000611e8f82611d5b565b9050919050565b611e9f81611e84565b82525050565b6000611eb4602084018461178b565b905092915050565b611ec581611d6d565b82525050565b6000611eda6020840184611a82565b905092915050565b611eeb816116d6565b82525050565b6000611f0060208401846117b7565b905092915050565b611f1181611712565b82525050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112611f4357611f42611f21565b5b83810192508235915060208301925067ffffffffffffffff821115611f6b57611f6a611f17565b5b600182023603831315611f8157611f80611f1c565b5b509250929050565b600082825260208201905092915050565b82818337600083830152505050565b6000601f19601f8301169050919050565b6000611fc68385611f89565b9350611fd3838584611f9a565b611fdc83611fa9565b840190509392505050565b60006101008301611ffb6000840184611ea5565b6120086000860182611ebc565b506120166020840184611ea5565b6120236020860182611ebc565b506120316040840184611ecb565b61203e6040860182611ee2565b5061204c6060840184611ecb565b6120596060860182611ee2565b506120676080840184611ef1565b6120746080860182611f08565b5061208260a0840184611ef1565b61208f60a0860182611f08565b5061209d60c0840184611ef1565b6120aa60c0860182611f08565b506120b860e0840184611f26565b85830360e08701526120cb838284611fba565b925050508091505092915050565b600082825260208201905092915050565b60006120f683856120d9565b9350612103838584611f9a565b61210c83611fa9565b840190509392505050565b600060608201905061212c6000830187611e96565b818103602083015261213e8186611fe7565b905081810360408301526121538184866120ea565b905095945050505050565b60008060006060848603121561217757612176611746565b5b600061218586828701611ced565b935050602061219686828701611ced565b92505060406121a786828701611ced565b9150509250925092565b7f427265776c6162733a2043616e6e6f742075706461746520746f2073616d652060008201527f76616c7565000000000000000000000000000000000000000000000000000000602082015250565b600061220d602583611c70565b9150612218826121b1565b604082019050919050565b6000602082019050818103600083015261223c81612200565b9050919050565b600082825260208201905092915050565b60006122608385612243565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561229357612292611d9f565b5b6020830292506122a4838584611da4565b82840190509392505050565b60006080820190506122c560008301886116e8565b6122d2602083018761171c565b6122df604083018661171c565b81810360608301526122f2818486612254565b90509695505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061235a602683611c70565b9150612365826122fe565b604082019050919050565b600060208201905081810360008301526123898161234d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006123c6602083611c70565b91506123d182612390565b602082019050919050565b600060208201905081810360008301526123f5816123b9565b9050919050565b60006060820190506124116000830186611a14565b61241e6020830185611a14565b61242b604083018461171c565b949350505050565b600061243e82611712565b915061244983611712565b925082820390508181111561246157612460611c0d565b5b92915050565b600060408201905061247c6000830185611a14565b6124896020830184611a14565b9392505050565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b60006124ec603683611c70565b91506124f782612490565b604082019050919050565b6000602082019050818103600083015261251b816124df565b9050919050565b60006040820190506125376000830185611a14565b612544602083018461171c565b9392505050565b60008115159050919050565b6125608161254b565b811461256b57600080fd5b50565b60008151905061257d81612557565b92915050565b60006020828403121561259957612598611746565b5b60006125a78482850161256e565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b600061260c602a83611c70565b9150612617826125b0565b604082019050919050565b6000602082019050818103600083015261263b816125ff565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061269e602683611c70565b91506126a982612642565b604082019050919050565b600060208201905081810360008301526126cd81612691565b9050919050565b600081519050919050565b600081905092915050565b60005b838110156127085780820151818401526020810190506126ed565b60008484015250505050565b600061271f826126d4565b61272981856126df565b93506127398185602086016126ea565b80840191505092915050565b60006127518284612714565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612792601d83611c70565b915061279d8261275c565b602082019050919050565b600060208201905081810360008301526127c181612785565b9050919050565b600081519050919050565b60006127de826127c8565b6127e88185611c70565b93506127f88185602086016126ea565b61280181611fa9565b840191505092915050565b6000602082019050818103600083015261282681846127d3565b90509291505056fea2646970667358221220ac2464b544ff4e5c17ec0903d8f910bc31779b1906ffe9aa5da39f6b0befd33a64736f6c63430008110033

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

0000000000000000000000000000000000000000000000000003297345d9a00000000000000000000000000064961ffd0d84b2355ec2b5d35b0d8d8825a774dc

-----Decoded View---------------
Arg [0] : _feeAmount (uint256): 890000000000000
Arg [1] : _feeAddress (address): 0x64961Ffd0d84b2355eC2B5d35B0d8D8825A774dc

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000003297345d9a000
Arg [1] : 00000000000000000000000064961ffd0d84b2355ec2b5d35b0d8d8825a774dc


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