ETH Price: $2,046.86 (+0.51%)

Contract

0x4233DF6BB8adcEF7008B0b348b8a8779E778dC9F
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Pull Tokens192623192024-02-19 14:17:23751 days ago1708352243IN
0x4233DF6B...9E778dC9F
0 ETH0.0042862532.7207775
Pull ETH192623062024-02-19 14:14:47751 days ago1708352087IN
0x4233DF6B...9E778dC9F
0 ETH0.001364439.03534791
Swap With Fees O...191812472024-02-08 5:05:35762 days ago1707368735IN
0x4233DF6B...9E778dC9F
0 ETH0.0077141634.71923779
Swap With Fees O...191788612024-02-07 21:02:11763 days ago1707339731IN
0x4233DF6B...9E778dC9F
0 ETH0.0049992152.98134767
Swap With Fees O...191782942024-02-07 19:07:11763 days ago1707332831IN
0x4233DF6B...9E778dC9F
0 ETH0.0087298139.70099699
Swap From Eth Wi...191782782024-02-07 19:03:59763 days ago1707332639IN
0x4233DF6B...9E778dC9F
0.0041 ETH0.0056820943.23681283
Swap To Eth With...191777742024-02-07 17:22:11763 days ago1707326531IN
0x4233DF6B...9E778dC9F
0 ETH0.0129960878.63118095
Swap From Eth Wi...191742992024-02-07 5:41:23763 days ago1707284483IN
0x4233DF6B...9E778dC9F
0.87425 ETH0.0035523924.20647473
Swap From Eth Wi...191736302024-02-07 3:25:47763 days ago1707276347IN
0x4233DF6B...9E778dC9F
1.58 ETH0.0049809132.43987986
Swap With Fees O...191718302024-02-06 21:20:59764 days ago1707254459IN
0x4233DF6B...9E778dC9F
0 ETH0.0058010228.80263385
Swap From Eth Wi...191686492024-02-06 10:36:35764 days ago1707215795IN
0x4233DF6B...9E778dC9F
5 ETH0.0054399436.33968704
Swap From Eth Wi...191673612024-02-06 6:16:47764 days ago1707200207IN
0x4233DF6B...9E778dC9F
9.8 ETH0.0073393848.99095782
Swap From Eth Wi...191672782024-02-06 6:00:11764 days ago1707199211IN
0x4233DF6B...9E778dC9F
1 ETH0.01841124120.092375
Swap To Eth With...191638242024-02-05 18:24:59765 days ago1707157499IN
0x4233DF6B...9E778dC9F
0 ETH0.0063084521.92772915
Swap With Fees O...191637912024-02-05 18:18:11765 days ago1707157091IN
0x4233DF6B...9E778dC9F
0 ETH0.0019557620.82682887
Swap With Fees O...191637742024-02-05 18:14:35765 days ago1707156875IN
0x4233DF6B...9E778dC9F
0 ETH0.0019824121.11067465
Swap With Fees O...191637662024-02-05 18:12:59765 days ago1707156779IN
0x4233DF6B...9E778dC9F
0 ETH0.0019298220.55056592
Swap From Eth Wi...191632482024-02-05 16:27:11765 days ago1707150431IN
0x4233DF6B...9E778dC9F
0.5 ETH0.0037105824.77275618
Swap From Eth Wi...191632472024-02-05 16:26:59765 days ago1707150419IN
0x4233DF6B...9E778dC9F
0.9 ETH0.0032356722.01006715
Swap From Eth Wi...191632382024-02-05 16:25:11765 days ago1707150311IN
0x4233DF6B...9E778dC9F
1 ETH0.0034615422.52716838
Swap With Fees O...191626882024-02-05 14:32:59765 days ago1707143579IN
0x4233DF6B...9E778dC9F
0 ETH0.0031094432.88401185
Swap With Fees O...191626002024-02-05 14:15:23765 days ago1707142523IN
0x4233DF6B...9E778dC9F
0 ETH0.0152015645.27173588
Swap From Eth Wi...191623202024-02-05 13:18:35765 days ago1707139115IN
0x4233DF6B...9E778dC9F
30 ETH0.0040646914.37369568
Swap From Eth Wi...191622942024-02-05 13:13:23765 days ago1707138803IN
0x4233DF6B...9E778dC9F
10.45 ETH0.0026459317.70315176
Swap From Eth Wi...191622092024-02-05 12:56:23765 days ago1707137783IN
0x4233DF6B...9E778dC9F
30.3 ETH0.0039413317.08321426
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer192623062024-02-19 14:14:47751 days ago1708352087
0x4233DF6B...9E778dC9F
2.55563919 ETH
Unoswap To191782782024-02-07 19:03:59763 days ago1707332639
0x4233DF6B...9E778dC9F
0.00408773 ETH
Transfer191777742024-02-07 17:22:11763 days ago1707326531
0x4233DF6B...9E778dC9F
3.99324211 ETH
Transfer191777742024-02-07 17:22:11763 days ago1707326531
0x4233DF6B...9E778dC9F
4.00522184 ETH
Uniswap V3Swap T...191742992024-02-07 5:41:23763 days ago1707284483
0x4233DF6B...9E778dC9F
0.87163509 ETH
Uniswap V3Swap T...191736302024-02-07 3:25:47763 days ago1707276347
0x4233DF6B...9E778dC9F
1.57527417 ETH
Uniswap V3Swap T...191686492024-02-06 10:36:35764 days ago1707215795
0x4233DF6B...9E778dC9F
4.98504486 ETH
Uniswap V3Swap T...191673612024-02-06 6:16:47764 days ago1707200207
0x4233DF6B...9E778dC9F
9.77068793 ETH
Uniswap V3Swap T...191672782024-02-06 6:00:11764 days ago1707199211
0x4233DF6B...9E778dC9F
0.99700897 ETH
Transfer191638242024-02-05 18:24:59765 days ago1707157499
0x4233DF6B...9E778dC9F
0.21386436 ETH
Transfer191638242024-02-05 18:24:59765 days ago1707157499
0x4233DF6B...9E778dC9F
0.21450596 ETH
Uniswap V3Swap T...191632482024-02-05 16:27:11765 days ago1707150431
0x4233DF6B...9E778dC9F
0.49850448 ETH
Uniswap V3Swap T...191632472024-02-05 16:26:59765 days ago1707150419
0x4233DF6B...9E778dC9F
0.89730807 ETH
Uniswap V3Swap T...191632382024-02-05 16:25:11765 days ago1707150311
0x4233DF6B...9E778dC9F
0.99700897 ETH
Swap191623202024-02-05 13:18:35765 days ago1707139115
0x4233DF6B...9E778dC9F
29.91026919 ETH
Uniswap V3Swap T...191622942024-02-05 13:13:23765 days ago1707138803
0x4233DF6B...9E778dC9F
10.41874376 ETH
Uniswap V3Swap T...191622092024-02-05 12:56:23765 days ago1707137783
0x4233DF6B...9E778dC9F
30.20937188 ETH
Swap191620742024-02-05 12:29:11765 days ago1707136151
0x4233DF6B...9E778dC9F
9.97008973 ETH
Swap191620112024-02-05 12:16:35765 days ago1707135395
0x4233DF6B...9E778dC9F
29.91026919 ETH
Uniswap V3Swap T...191619362024-02-05 12:01:35765 days ago1707134495
0x4233DF6B...9E778dC9F
19.94017946 ETH
Uniswap V3Swap T...191618882024-02-05 11:51:59765 days ago1707133919
0x4233DF6B...9E778dC9F
9.97008973 ETH
Uniswap V3Swap T...191614892024-02-05 10:30:23765 days ago1707129023
0x4233DF6B...9E778dC9F
10.9670987 ETH
Uniswap V3Swap T...191611462024-02-05 9:20:47765 days ago1707124847
0x4233DF6B...9E778dC9F
4.98504486 ETH
Uniswap V3Swap T...191581322024-02-04 23:13:11766 days ago1707088391
0x4233DF6B...9E778dC9F
3.98803589 ETH
Call Bridge Call191568352024-02-04 18:50:11766 days ago1707072611
0x4233DF6B...9E778dC9F
0.03953685 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SwapFeeRouter

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion
// SPDX-License-Identifier: MIT

pragma solidity 0.8.16;

import { IERC20, SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import { Ownable } from "./Ownable.sol";

// NOTE: There is no non-arbitrary upper-limit for the `feeBasisPoints`, and setting it above 10_000 just pauses the swap functions.

contract SwapFeeRouter is Ownable {

    error ETHTransferFailed(bytes errorData);
    error FeeBasisPointsNotRespected(uint256 expectedFeeBasisPoints_, uint256 actualFeeBasisPoints_);
    error ContractNotWhitelisted(address callee);
    error RenterAttempted();
    error SwapCallFailed(bytes errorData);

    event ContractAddedToWhitelist(address indexed contract_);
    event ContractRemovedFromWhitelist(address indexed contract_);
    event ETHPulled(address indexed destination_, uint256 amount_);
    event FeeSet(uint256 feeBasisPoints_);
    event TokensPulled(address indexed token_, address indexed destination_, uint256 amount_);

    uint256 internal _locked = 1;

    uint256 public feeBasisPoints;  // 1 = 0.01%, 100 = 1%, 10_000 = 100%

    mapping(address => bool) public isWhitelisted;

    constructor(address owner_, uint256 feeBasisPoints_, address[] memory whitelist_) {
        _setOwner(owner_);
        _setFees(feeBasisPoints_);
        _addToWhitelist(whitelist_);
    }

    modifier noRenter() {
        if (_locked == 2) revert RenterAttempted();

        _locked = 2;

        _;

        _locked = 1;
    }

    modifier feeBasisPointsRespected(uint256 feeBasisPoints_) {
        // Revert if the expected fee is less than the current fee.
        if (feeBasisPoints_ < feeBasisPoints) revert FeeBasisPointsNotRespected(feeBasisPoints_, feeBasisPoints);

        _;
    }

    function swapWithFeesOnInput(
        address inAsset_,
        uint256 swapAmount_,
        uint256 feeBasisPoints_,
        address swapContract_,
        address tokenPuller_,
        bytes calldata swapCallData_
    ) public noRenter feeBasisPointsRespected(feeBasisPoints_) {
        // Pull funds plus fees from caller.
        // NOTE: Assuming `swapCallData_` is correct, fees will remain in this contract.
        // NOTE: Worst case, assuming `swapCallData_` is incorrect/malicious, this contract loses nothing, but gains nothing.
        SafeERC20.safeTransferFrom(IERC20(inAsset_), msg.sender, address(this), getAmountWithFees(swapAmount_, feeBasisPoints_));

        // Perform the swap (set allowance, swap, unset allowance).
        // NOTE: This assume that the `swapCallData_` instructs the swapContract to send outAsset to correct destination.
        _performSwap(inAsset_, swapAmount_, swapContract_, tokenPuller_, swapCallData_);
    }

    function swapWithFeesOnOutput(
        address inAsset_,
        uint256 swapAmount_,
        address outAsset_,
        uint256 feeBasisPoints_,
        address swapContract_,
        address tokenPuller_,
        bytes calldata swapCallData_
    ) external noRenter feeBasisPointsRespected(feeBasisPoints_) {
        // Track this contract's starting outAsset balance to determine its increase later.
        uint256 startingOutAssetBalance = IERC20(outAsset_).balanceOf(address(this));

        // Pull funds from caller.
        SafeERC20.safeTransferFrom(IERC20(inAsset_), msg.sender, address(this), swapAmount_);

        // Perform the swap (set allowance, swap, unset allowance).
        // NOTE: This assume that the `swapCallData_` instructs the swapContract to send outAsset to this contract.
        _performSwap(inAsset_, swapAmount_, swapContract_, tokenPuller_, swapCallData_);

        // Send the amount of outAsset the swap produced, minus fees, to the destination.
        SafeERC20.safeTransfer(
            IERC20(outAsset_),
            msg.sender,
            getAmountWithoutFees(
                IERC20(outAsset_).balanceOf(address(this)) - startingOutAssetBalance,
                feeBasisPoints
            )
        );
    }

    function swapFromEthWithFeesOnInput(
        uint256 feeBasisPoints_,
        address swapContract_,
        bytes calldata swapCallData_
    ) external payable noRenter feeBasisPointsRespected(feeBasisPoints_) {
        // Perform the swap (attaching ETH minus fees to call).
        // NOTE: This assume that the `swapCallData_` instructs the swapContract to send outAsset to correct destination.
        _performSwap(getAmountWithoutFees(msg.value, feeBasisPoints_), swapContract_, swapCallData_);
    }

    function swapFromEthWithFeesOnOutput(
        address outAsset_,
        uint256 feeBasisPoints_,
        address swapContract_,
        bytes calldata swapCallData_
    ) external payable noRenter feeBasisPointsRespected(feeBasisPoints_) {
        // Track this contract's starting outAsset balance to determine its increase later.
        uint256 startingOutAssetBalance = IERC20(outAsset_).balanceOf(address(this));

        // Perform the swap (attaching ETH to call).
        // NOTE: This assume that the `swapCallData_` instructs the swapContract to send outAsset to this contract.
        _performSwap(msg.value, swapContract_, swapCallData_);

        // Send the amount of outAsset the swap produced, minus fees, to the destination.
        SafeERC20.safeTransfer(
            IERC20(outAsset_),
            msg.sender,
            getAmountWithoutFees(
                IERC20(outAsset_).balanceOf(address(this)) - startingOutAssetBalance,
                feeBasisPoints
            )
        );
    }

    function swapToEthWithFeesOnInput(
        address inAsset_,
        uint256 swapAmount_,
        uint256 feeBasisPoints_,
        address swapContract_,
        address tokenPuller_,
        bytes calldata swapCallData_
    ) external feeBasisPointsRespected(feeBasisPoints_) {
        // NOTE: Ths is functionally the same as `swapWithFeesOnInput` since the output is irrelevant.
        // NOTE: No `noRenter` needed since `swapWithFeesOnInput` will check that.
        swapWithFeesOnInput(inAsset_, swapAmount_, feeBasisPoints_, swapContract_, tokenPuller_, swapCallData_);
    }

    function swapToEthWithFeesOnOutput(
        address inAsset_,
        uint256 swapAmount_,
        uint256 feeBasisPoints_,
        address swapContract_,
        address tokenPuller_,
        bytes calldata swapCallData_
    ) external noRenter feeBasisPointsRespected(feeBasisPoints_) {
        // Track this contract's starting ETH balance to determine its increase later.
        uint256 startingETHBalance = address(this).balance;

        // Pull funds from caller.
        SafeERC20.safeTransferFrom(IERC20(inAsset_), msg.sender, address(this), swapAmount_);

        // Perform the swap (set allowance, swap, unset allowance).
        // NOTE: This assume that the `swapCallData_` instructs the swapContract to send ETH to this contract.
        _performSwap(inAsset_, swapAmount_, swapContract_, tokenPuller_, swapCallData_);

        // Send the amount of ETH the swap produced, minus fees, to the destination, and revert if it fails.
        _transferETH(
            msg.sender,
            getAmountWithoutFees(
                address(this).balance - startingETHBalance,
                feeBasisPoints_
            )
        );
    }

    function addToWhitelist(address[] calldata whitelist_) external onlyOwner {
        _addToWhitelist(whitelist_);
    }

    function removeFromWhitelist(address[] calldata whitelist_) external onlyOwner {
        _removeFromWhitelist(whitelist_);
    }

    function setFee(uint256 feeBasisPoints_) external onlyOwner {
        _setFees(feeBasisPoints_);
    }

    function pullToken(address token_, address destination_) public onlyOwner {
        if (destination_ == address(0)) revert ZeroAddress();

        uint256 amount = IERC20(token_).balanceOf(address(this));

        emit TokensPulled(token_, destination_, amount);

        SafeERC20.safeTransfer(IERC20(token_), destination_, amount);
    }

    function pullTokens(address[] calldata tokens_, address destination_) external onlyOwner {
        for (uint256 i; i < tokens_.length; ++i) {
            pullToken(tokens_[i], destination_);
        }
    }

    function pullETH(address destination_) external onlyOwner {
        if (destination_ == address(0)) revert ZeroAddress();

        uint256 amount = address(this).balance;

        emit ETHPulled(destination_, amount);

        _transferETH(destination_, amount);
    }

    function getAmountWithFees(uint256 amountWithoutFees_, uint256 feeBasisPoints_) public pure returns (uint256 amountWithFees_) {
        amountWithFees_ = (amountWithoutFees_ * (10_000 + feeBasisPoints_)) / 10_000;
    }

    function getAmountWithoutFees(uint256 amountWithFees_, uint256 feeBasisPoints_) public pure returns (uint256 amountWithoutFees_) {
        amountWithoutFees_ = (10_000 * amountWithFees_) / (10_000 + feeBasisPoints_);
    }

    function _addToWhitelist(address[] memory whitelist_) internal {
        for (uint256 i; i < whitelist_.length; ++i) {
            address account = whitelist_[i];
            isWhitelisted[whitelist_[i]] = true;
            emit ContractAddedToWhitelist(account);
        }
    }

    function _performSwap(address inAsset_, uint256 swapAmount_, address swapContract_, address tokenPuller_, bytes calldata swapCallData_) internal {
        // Prevent calling contracts that are not whitelisted.
        if (!isWhitelisted[swapContract_]) revert ContractNotWhitelisted(swapContract_);

        // Approve the contract that will pull inAsset.
        IERC20(inAsset_).approve(tokenPuller_, swapAmount_);

        // Call the swap contract as defined by `swapCallData_`, and revert if it fails.
        ( bool success, bytes memory errorData ) = swapContract_.call(swapCallData_);
        if (!success) revert SwapCallFailed(errorData);

        // Un-approve the contract that pulled inAsset.
        // NOTE: This is important to prevent exploits that rely on allowances to arbitrary swapContracts to be non-zero after swap calls.
        IERC20(inAsset_).approve(tokenPuller_, 0);
    }

    function _performSwap(uint256 swapAmount_, address swapContract_, bytes calldata swapCallData_) internal {
        // Prevent calling contracts that are not whitelisted.
        if (!isWhitelisted[swapContract_]) revert ContractNotWhitelisted(swapContract_);

        // Call the swap contract as defined by `swapCallData_`, and revert if it fails.
        ( bool success, bytes memory errorData ) = swapContract_.call{ value: swapAmount_ }(swapCallData_);
        if (!success) revert SwapCallFailed(errorData);
    }

    function _removeFromWhitelist(address[] memory whitelist_) internal {
        for (uint256 i; i < whitelist_.length; ++i) {
            address account = whitelist_[i];
            isWhitelisted[whitelist_[i]] = false;
            emit ContractRemovedFromWhitelist(account);
        }
    }

    function _setFees(uint256 feeBasisPoints_) internal {
        emit FeeSet(feeBasisPoints = feeBasisPoints_);
    }

    function _transferETH(address destination_, uint256 amount_) internal {
        // NOTE: callers of this function are validating `destination_` to not be zero.
        ( bool success, bytes memory errorData ) = destination_.call{ value: amount_ }("");
        if (!success) revert ETHTransferFailed(errorData);
    }

    receive() external payable {}

}

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 functionCall(target, data, "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");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// SPDX-License-Identifier: MIT

pragma solidity 0.8.16;

abstract contract Ownable {

    error Unauthorized();
    error ZeroAddress();

    event OwnerSet(address indexed newOwner_);
    event PendingOwnerSet(address indexed pendingOwner_);

    address public owner;
    address public pendingOwner;

    modifier onlyOwner() {
        if (msg.sender != owner) revert Unauthorized();

        _;
    }

    function setPendingOwner(address pendingOwner_) external onlyOwner {
        _setPendingOwner(pendingOwner_);
    }

    function acceptOwnership() external {
        if (msg.sender != pendingOwner) revert Unauthorized();

        _setPendingOwner(address(0));
        _setOwner(msg.sender);
    }

    function _setOwner(address owner_) internal {
        if (owner_ == address(0)) revert ZeroAddress();

        emit OwnerSet(owner = owner_);
    }

    function _setPendingOwner(address pendingOwner_) internal {
        emit PendingOwnerSet(pendingOwner = pendingOwner_);
    }

}

Settings
{
  "evmVersion": "london",
  "optimizer": {
    "enabled": true,
    "runs": 200,
    "details": {
      "peephole": true,
      "inliner": true,
      "jumpdestRemover": true,
      "orderLiterals": true,
      "deduplicate": true,
      "cse": true,
      "constantOptimizer": true,
      "yul": true,
      "yulDetails": {
        "stackAllocation": true
      }
    }
  },
  "metadata": {
    "bytecodeHash": "none"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"},{"internalType":"address[]","name":"whitelist_","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"callee","type":"address"}],"name":"ContractNotWhitelisted","type":"error"},{"inputs":[{"internalType":"bytes","name":"errorData","type":"bytes"}],"name":"ETHTransferFailed","type":"error"},{"inputs":[{"internalType":"uint256","name":"expectedFeeBasisPoints_","type":"uint256"},{"internalType":"uint256","name":"actualFeeBasisPoints_","type":"uint256"}],"name":"FeeBasisPointsNotRespected","type":"error"},{"inputs":[],"name":"RenterAttempted","type":"error"},{"inputs":[{"internalType":"bytes","name":"errorData","type":"bytes"}],"name":"SwapCallFailed","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contract_","type":"address"}],"name":"ContractAddedToWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contract_","type":"address"}],"name":"ContractRemovedFromWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"destination_","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"ETHPulled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"}],"name":"FeeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newOwner_","type":"address"}],"name":"OwnerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner_","type":"address"}],"name":"PendingOwnerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token_","type":"address"},{"indexed":true,"internalType":"address","name":"destination_","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"TokensPulled","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"whitelist_","type":"address[]"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountWithoutFees_","type":"uint256"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"}],"name":"getAmountWithFees","outputs":[{"internalType":"uint256","name":"amountWithFees_","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountWithFees_","type":"uint256"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"}],"name":"getAmountWithoutFees","outputs":[{"internalType":"uint256","name":"amountWithoutFees_","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"destination_","type":"address"}],"name":"pullETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"address","name":"destination_","type":"address"}],"name":"pullToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens_","type":"address[]"},{"internalType":"address","name":"destination_","type":"address"}],"name":"pullTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"whitelist_","type":"address[]"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner_","type":"address"}],"name":"setPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"},{"internalType":"address","name":"swapContract_","type":"address"},{"internalType":"bytes","name":"swapCallData_","type":"bytes"}],"name":"swapFromEthWithFeesOnInput","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"outAsset_","type":"address"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"},{"internalType":"address","name":"swapContract_","type":"address"},{"internalType":"bytes","name":"swapCallData_","type":"bytes"}],"name":"swapFromEthWithFeesOnOutput","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"inAsset_","type":"address"},{"internalType":"uint256","name":"swapAmount_","type":"uint256"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"},{"internalType":"address","name":"swapContract_","type":"address"},{"internalType":"address","name":"tokenPuller_","type":"address"},{"internalType":"bytes","name":"swapCallData_","type":"bytes"}],"name":"swapToEthWithFeesOnInput","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"inAsset_","type":"address"},{"internalType":"uint256","name":"swapAmount_","type":"uint256"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"},{"internalType":"address","name":"swapContract_","type":"address"},{"internalType":"address","name":"tokenPuller_","type":"address"},{"internalType":"bytes","name":"swapCallData_","type":"bytes"}],"name":"swapToEthWithFeesOnOutput","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"inAsset_","type":"address"},{"internalType":"uint256","name":"swapAmount_","type":"uint256"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"},{"internalType":"address","name":"swapContract_","type":"address"},{"internalType":"address","name":"tokenPuller_","type":"address"},{"internalType":"bytes","name":"swapCallData_","type":"bytes"}],"name":"swapWithFeesOnInput","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"inAsset_","type":"address"},{"internalType":"uint256","name":"swapAmount_","type":"uint256"},{"internalType":"address","name":"outAsset_","type":"address"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"},{"internalType":"address","name":"swapContract_","type":"address"},{"internalType":"address","name":"tokenPuller_","type":"address"},{"internalType":"bytes","name":"swapCallData_","type":"bytes"}],"name":"swapWithFeesOnOutput","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405260016002553480156200001657600080fd5b5060405162001d5a38038062001d5a833981016040819052620000399162000217565b620000448362000063565b6200004f82620000d3565b6200005a816200010e565b50505062000347565b6001600160a01b0381166200008b5760405163d92e233d60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b038316908117825560405190917f50146d0e3c60aa1d17a70635b05494f864e86144a2201275021014fbf08bafe291a250565b60038190556040518181527f20461e09b8e557b77e107939f9ce6544698123aad0fc964ac5cc59b7df2e608f9060200160405180910390a150565b60005b8151811015620001e057600082828151811062000132576200013262000309565b6020026020010151905060016004600085858151811062000157576200015762000309565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550806001600160a01b03167f6e52dd2f27ea2ff599396dc0473c7f182d40ad3a9efe860f37f0c3fce64a851460405160405180910390a250620001d8816200031f565b905062000111565b5050565b80516001600160a01b0381168114620001fc57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156200022d57600080fd5b6200023884620001e4565b60208581015160408701519295509350906001600160401b03808211156200025f57600080fd5b818701915087601f8301126200027457600080fd5b81518181111562000289576200028962000201565b8060051b604051601f19603f83011681018181108582111715620002b157620002b162000201565b60405291825284820192508381018501918a831115620002d057600080fd5b938501935b82851015620002f957620002e985620001e4565b84529385019392850192620002d5565b8096505050505050509250925092565b634e487b7160e01b600052603260045260246000fd5b6000600182016200034057634e487b7160e01b600052601160045260246000fd5b5060010190565b611a0380620003576000396000f3fe6080604052600436106101235760003560e01c806379ba5097116100a0578063b8606eef11610064578063b8606eef14610337578063c42069ec1461034d578063e30c39781461036d578063e3d90acf1461038d578063e679b6f5146103ad57600080fd5b806379ba50971461028a5780637f6497831461029f578063871bb2c9146102bf5780638bf6e374146102df5780638da5cb5b146102ff57600080fd5b806358d18b3f116100e757806358d18b3f146101f757806359856af01461021757806368443f2e14610237578063685c587a1461025757806369fe0e2d1461026a57600080fd5b806313bfbc4d1461012f5780631640ff3e146101625780632c0f0e87146101775780633af32abf14610197578063548db174146101d757600080fd5b3661012a57005b600080fd5b34801561013b57600080fd5b5061014f61014a3660046114c6565b6103cd565b6040519081526020015b60405180910390f35b61017561017036600461154d565b6103f8565b005b34801561018357600080fd5b5061014f6101923660046114c6565b61047c565b3480156101a357600080fd5b506101c76101b23660046115a7565b60046020526000908152604090205460ff1681565b6040519015158152602001610159565b3480156101e357600080fd5b506101756101f2366004611607565b610495565b34801561020357600080fd5b50610175610212366004611649565b6104ff565b34801561022357600080fd5b50610175610232366004611649565b61054a565b34801561024357600080fd5b506101756102523660046116d2565b6105eb565b610175610265366004611726565b610666565b34801561027657600080fd5b50610175610285366004611795565b6107d5565b34801561029657600080fd5b5061017561080b565b3480156102ab57600080fd5b506101756102ba366004611607565b61084a565b3480156102cb57600080fd5b506101756102da3660046117ae565b6108b0565b3480156102eb57600080fd5b506101756102fa3660046117e1565b6109cb565b34801561030b57600080fd5b5060005461031f906001600160a01b031681565b6040516001600160a01b039091168152602001610159565b34801561034357600080fd5b5061014f60035481565b34801561035957600080fd5b506101756103683660046115a7565b610af7565b34801561037957600080fd5b5060015461031f906001600160a01b031681565b34801561039957600080fd5b506101756103a8366004611649565b610b2a565b3480156103b957600080fd5b506101756103c83660046115a7565b610bb6565b60006103db82612710611890565b6103e7846127106118a9565b6103f191906118c8565b9392505050565b60025460020361041b5760405163729668f560e11b815260040160405180910390fd5b60028055600354849081101561045b576003546040516306a215ad60e21b8152610452918391600401918252602082015260400190565b60405180910390fd5b61047061046834876103cd565b858585610c51565b50506001600255505050565b600061271061048b8382611890565b6103e790856118a9565b6000546001600160a01b031633146104bf576040516282b42960e81b815260040160405180910390fd5b6104fb828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250610d2292505050565b5050565b84600354811015610531576003546040516306a215ad60e21b8152610452918391600401918252602082015260400190565b61054088888888888888610b2a565b5050505050505050565b60025460020361056d5760405163729668f560e11b815260040160405180910390fd5b6002805560035485908110156105a4576003546040516306a215ad60e21b8152610452918391600401918252602082015260400190565b476105b18933308b610dea565b6105bf898988888888610e55565b6105db336105d66105d084476118ea565b8a6103cd565b61100f565b5050600160025550505050505050565b6000546001600160a01b03163314610615576040516282b42960e81b815260040160405180910390fd5b60005b8281101561066057610650848483818110610635576106356118fd565b905060200201602081019061064a91906115a7565b836108b0565b61065981611913565b9050610618565b50505050565b6002546002036106895760405163729668f560e11b815260040160405180910390fd5b6002805560035484908110156106c0576003546040516306a215ad60e21b8152610452918391600401918252602082015260400190565b6040516370a0823160e01b81523060048201526000906001600160a01b038816906370a0823190602401602060405180830381865afa158015610707573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061072b919061192c565b905061073934868686610c51565b6040516370a0823160e01b81523060048201526107c790889033906107c29085906001600160a01b038516906370a08231906024015b602060405180830381865afa15801561078c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b0919061192c565b6107ba91906118ea565b6003546103cd565b611087565b505060016002555050505050565b6000546001600160a01b031633146107ff576040516282b42960e81b815260040160405180910390fd5b610808816110b7565b50565b6001546001600160a01b03163314610835576040516282b42960e81b815260040160405180910390fd5b61083f60006110f2565b6108483361113c565b565b6000546001600160a01b03163314610874576040516282b42960e81b815260040160405180910390fd5b6104fb8282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506111ab92505050565b6000546001600160a01b031633146108da576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0381166109015760405163d92e233d60e01b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610948573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096c919061192c565b9050816001600160a01b0316836001600160a01b03167ff247aed45b8afd5ae54bd3f6f884eb78df14bc00208ca905e6ae335ffe678d8c836040516109b391815260200190565b60405180910390a36109c6838383611087565b505050565b6002546002036109ee5760405163729668f560e11b815260040160405180910390fd5b600280556003548590811015610a25576003546040516306a215ad60e21b8152610452918391600401918252602082015260400190565b6040516370a0823160e01b81523060048201526000906001600160a01b038916906370a0823190602401602060405180830381865afa158015610a6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a90919061192c565b9050610a9e8a33308c610dea565b610aac8a8a88888888610e55565b6040516370a0823160e01b8152306004820152610ae690899033906107c29085906001600160a01b038516906370a082319060240161076f565b505060016002555050505050505050565b6000546001600160a01b03163314610b21576040516282b42960e81b815260040160405180910390fd5b610808816110f2565b600254600203610b4d5760405163729668f560e11b815260040160405180910390fd5b600280556003548590811015610b84576003546040516306a215ad60e21b8152610452918391600401918252602082015260400190565b610b99883330610b948b8b61047c565b610dea565b610ba7888887878787610e55565b50506001600255505050505050565b6000546001600160a01b03163314610be0576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116610c075760405163d92e233d60e01b815260040160405180910390fd5b60405147808252906001600160a01b038316907f9f15f0df128ea65ddf3aaa8d614e5f49a3c1e64d78f072b28aabdc36c9d27bf29060200160405180910390a26104fb828261100f565b6001600160a01b03831660009081526004602052604090205460ff16610c95576040516340d53e3360e11b81526001600160a01b0384166004820152602401610452565b600080846001600160a01b0316868585604051610cb3929190611945565b60006040518083038185875af1925050503d8060008114610cf0576040519150601f19603f3d011682016040523d82523d6000602084013e610cf5565b606091505b509150915081610d1a578060405163729a0b5b60e01b815260040161045291906119a5565b505050505050565b60005b81518110156104fb576000828281518110610d4257610d426118fd565b60200260200101519050600060046000858581518110610d6457610d646118fd565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550806001600160a01b03167ffb8b462bd4e3db069eb434596fcfb88044cfe688f7329d1c4bdfbb113257b1ac60405160405180910390a250610de381611913565b9050610d25565b6040516001600160a01b03808516602483015283166044820152606481018290526106609085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611273565b6001600160a01b03841660009081526004602052604090205460ff16610e99576040516340d53e3360e11b81526001600160a01b0385166004820152602401610452565b60405163095ea7b360e01b81526001600160a01b0384811660048301526024820187905287169063095ea7b3906044016020604051808303816000875af1158015610ee8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0c91906119b8565b50600080856001600160a01b03168484604051610f2a929190611945565b6000604051808303816000865af19150503d8060008114610f67576040519150601f19603f3d011682016040523d82523d6000602084013e610f6c565b606091505b509150915081610f91578060405163729a0b5b60e01b815260040161045291906119a5565b60405163095ea7b360e01b81526001600160a01b0386811660048301526000602483015289169063095ea7b3906044016020604051808303816000875af1158015610fe0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100491906119b8565b505050505050505050565b600080836001600160a01b03168360405160006040518083038185875af1925050503d806000811461105d576040519150601f19603f3d011682016040523d82523d6000602084013e611062565b606091505b50915091508161066057806040516311c9b8f560e01b815260040161045291906119a5565b6040516001600160a01b0383166024820152604481018290526109c690849063a9059cbb60e01b90606401610e1e565b60038190556040518181527f20461e09b8e557b77e107939f9ce6544698123aad0fc964ac5cc59b7df2e608f9060200160405180910390a150565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f68f49b346b94582a8b5f9d10e3fe3365318fe8f191ff8dce7c59c6cad06b02f590600090a250565b6001600160a01b0381166111635760405163d92e233d60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b038316908117825560405190917f50146d0e3c60aa1d17a70635b05494f864e86144a2201275021014fbf08bafe291a250565b60005b81518110156104fb5760008282815181106111cb576111cb6118fd565b602002602001015190506001600460008585815181106111ed576111ed6118fd565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550806001600160a01b03167f6e52dd2f27ea2ff599396dc0473c7f182d40ad3a9efe860f37f0c3fce64a851460405160405180910390a25061126c81611913565b90506111ae565b60006112c8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113459092919063ffffffff16565b8051909150156109c657808060200190518101906112e691906119b8565b6109c65760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610452565b6060611354848460008561135c565b949350505050565b6060824710156113bd5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610452565b6001600160a01b0385163b6114145760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610452565b600080866001600160a01b0316858760405161143091906119da565b60006040518083038185875af1925050503d806000811461146d576040519150601f19603f3d011682016040523d82523d6000602084013e611472565b606091505b509150915061148282828661148d565b979650505050505050565b6060831561149c5750816103f1565b8251156114ac5782518084602001fd5b8160405162461bcd60e51b815260040161045291906119a5565b600080604083850312156114d957600080fd5b50508035926020909101359150565b80356001600160a01b03811681146114ff57600080fd5b919050565b60008083601f84011261151657600080fd5b50813567ffffffffffffffff81111561152e57600080fd5b60208301915083602082850101111561154657600080fd5b9250929050565b6000806000806060858703121561156357600080fd5b84359350611573602086016114e8565b9250604085013567ffffffffffffffff81111561158f57600080fd5b61159b87828801611504565b95989497509550505050565b6000602082840312156115b957600080fd5b6103f1826114e8565b60008083601f8401126115d457600080fd5b50813567ffffffffffffffff8111156115ec57600080fd5b6020830191508360208260051b850101111561154657600080fd5b6000806020838503121561161a57600080fd5b823567ffffffffffffffff81111561163157600080fd5b61163d858286016115c2565b90969095509350505050565b600080600080600080600060c0888a03121561166457600080fd5b61166d886114e8565b96506020880135955060408801359450611689606089016114e8565b9350611697608089016114e8565b925060a088013567ffffffffffffffff8111156116b357600080fd5b6116bf8a828b01611504565b989b979a50959850939692959293505050565b6000806000604084860312156116e757600080fd5b833567ffffffffffffffff8111156116fe57600080fd5b61170a868287016115c2565b909450925061171d9050602085016114e8565b90509250925092565b60008060008060006080868803121561173e57600080fd5b611747866114e8565b94506020860135935061175c604087016114e8565b9250606086013567ffffffffffffffff81111561177857600080fd5b61178488828901611504565b969995985093965092949392505050565b6000602082840312156117a757600080fd5b5035919050565b600080604083850312156117c157600080fd5b6117ca836114e8565b91506117d8602084016114e8565b90509250929050565b60008060008060008060008060e0898b0312156117fd57600080fd5b611806896114e8565b97506020890135965061181b60408a016114e8565b95506060890135945061183060808a016114e8565b935061183e60a08a016114e8565b925060c089013567ffffffffffffffff81111561185a57600080fd5b6118668b828c01611504565b999c989b5096995094979396929594505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156118a3576118a361187a565b92915050565b60008160001904831182151516156118c3576118c361187a565b500290565b6000826118e557634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156118a3576118a361187a565b634e487b7160e01b600052603260045260246000fd5b6000600182016119255761192561187a565b5060010190565b60006020828403121561193e57600080fd5b5051919050565b8183823760009101908152919050565b60005b83811015611970578181015183820152602001611958565b50506000910152565b60008151808452611991816020860160208601611955565b601f01601f19169290920160200192915050565b6020815260006103f16020830184611979565b6000602082840312156119ca57600080fd5b815180151581146103f157600080fd5b600082516119ec818460208701611955565b919091019291505056fea164736f6c6343000810000a000000000000000000000000251a2f29d2b2b87736553ca140baf3b45a32cdbc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000050000000000000000000000001111111254fb6c44bac0bed2854e76f90643097d000000000000000000000000def171fe48cf0115b1d80b88dc8eab59176fee570000000000000000000000006352a56caadc4f1e25cd6c75970fa768a3304e64000000000000000000000000c30141b657f4216252dc59af2e7cdb9d8792e1b0000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d666

Deployed Bytecode

0x6080604052600436106101235760003560e01c806379ba5097116100a0578063b8606eef11610064578063b8606eef14610337578063c42069ec1461034d578063e30c39781461036d578063e3d90acf1461038d578063e679b6f5146103ad57600080fd5b806379ba50971461028a5780637f6497831461029f578063871bb2c9146102bf5780638bf6e374146102df5780638da5cb5b146102ff57600080fd5b806358d18b3f116100e757806358d18b3f146101f757806359856af01461021757806368443f2e14610237578063685c587a1461025757806369fe0e2d1461026a57600080fd5b806313bfbc4d1461012f5780631640ff3e146101625780632c0f0e87146101775780633af32abf14610197578063548db174146101d757600080fd5b3661012a57005b600080fd5b34801561013b57600080fd5b5061014f61014a3660046114c6565b6103cd565b6040519081526020015b60405180910390f35b61017561017036600461154d565b6103f8565b005b34801561018357600080fd5b5061014f6101923660046114c6565b61047c565b3480156101a357600080fd5b506101c76101b23660046115a7565b60046020526000908152604090205460ff1681565b6040519015158152602001610159565b3480156101e357600080fd5b506101756101f2366004611607565b610495565b34801561020357600080fd5b50610175610212366004611649565b6104ff565b34801561022357600080fd5b50610175610232366004611649565b61054a565b34801561024357600080fd5b506101756102523660046116d2565b6105eb565b610175610265366004611726565b610666565b34801561027657600080fd5b50610175610285366004611795565b6107d5565b34801561029657600080fd5b5061017561080b565b3480156102ab57600080fd5b506101756102ba366004611607565b61084a565b3480156102cb57600080fd5b506101756102da3660046117ae565b6108b0565b3480156102eb57600080fd5b506101756102fa3660046117e1565b6109cb565b34801561030b57600080fd5b5060005461031f906001600160a01b031681565b6040516001600160a01b039091168152602001610159565b34801561034357600080fd5b5061014f60035481565b34801561035957600080fd5b506101756103683660046115a7565b610af7565b34801561037957600080fd5b5060015461031f906001600160a01b031681565b34801561039957600080fd5b506101756103a8366004611649565b610b2a565b3480156103b957600080fd5b506101756103c83660046115a7565b610bb6565b60006103db82612710611890565b6103e7846127106118a9565b6103f191906118c8565b9392505050565b60025460020361041b5760405163729668f560e11b815260040160405180910390fd5b60028055600354849081101561045b576003546040516306a215ad60e21b8152610452918391600401918252602082015260400190565b60405180910390fd5b61047061046834876103cd565b858585610c51565b50506001600255505050565b600061271061048b8382611890565b6103e790856118a9565b6000546001600160a01b031633146104bf576040516282b42960e81b815260040160405180910390fd5b6104fb828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250610d2292505050565b5050565b84600354811015610531576003546040516306a215ad60e21b8152610452918391600401918252602082015260400190565b61054088888888888888610b2a565b5050505050505050565b60025460020361056d5760405163729668f560e11b815260040160405180910390fd5b6002805560035485908110156105a4576003546040516306a215ad60e21b8152610452918391600401918252602082015260400190565b476105b18933308b610dea565b6105bf898988888888610e55565b6105db336105d66105d084476118ea565b8a6103cd565b61100f565b5050600160025550505050505050565b6000546001600160a01b03163314610615576040516282b42960e81b815260040160405180910390fd5b60005b8281101561066057610650848483818110610635576106356118fd565b905060200201602081019061064a91906115a7565b836108b0565b61065981611913565b9050610618565b50505050565b6002546002036106895760405163729668f560e11b815260040160405180910390fd5b6002805560035484908110156106c0576003546040516306a215ad60e21b8152610452918391600401918252602082015260400190565b6040516370a0823160e01b81523060048201526000906001600160a01b038816906370a0823190602401602060405180830381865afa158015610707573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061072b919061192c565b905061073934868686610c51565b6040516370a0823160e01b81523060048201526107c790889033906107c29085906001600160a01b038516906370a08231906024015b602060405180830381865afa15801561078c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b0919061192c565b6107ba91906118ea565b6003546103cd565b611087565b505060016002555050505050565b6000546001600160a01b031633146107ff576040516282b42960e81b815260040160405180910390fd5b610808816110b7565b50565b6001546001600160a01b03163314610835576040516282b42960e81b815260040160405180910390fd5b61083f60006110f2565b6108483361113c565b565b6000546001600160a01b03163314610874576040516282b42960e81b815260040160405180910390fd5b6104fb8282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506111ab92505050565b6000546001600160a01b031633146108da576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0381166109015760405163d92e233d60e01b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610948573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096c919061192c565b9050816001600160a01b0316836001600160a01b03167ff247aed45b8afd5ae54bd3f6f884eb78df14bc00208ca905e6ae335ffe678d8c836040516109b391815260200190565b60405180910390a36109c6838383611087565b505050565b6002546002036109ee5760405163729668f560e11b815260040160405180910390fd5b600280556003548590811015610a25576003546040516306a215ad60e21b8152610452918391600401918252602082015260400190565b6040516370a0823160e01b81523060048201526000906001600160a01b038916906370a0823190602401602060405180830381865afa158015610a6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a90919061192c565b9050610a9e8a33308c610dea565b610aac8a8a88888888610e55565b6040516370a0823160e01b8152306004820152610ae690899033906107c29085906001600160a01b038516906370a082319060240161076f565b505060016002555050505050505050565b6000546001600160a01b03163314610b21576040516282b42960e81b815260040160405180910390fd5b610808816110f2565b600254600203610b4d5760405163729668f560e11b815260040160405180910390fd5b600280556003548590811015610b84576003546040516306a215ad60e21b8152610452918391600401918252602082015260400190565b610b99883330610b948b8b61047c565b610dea565b610ba7888887878787610e55565b50506001600255505050505050565b6000546001600160a01b03163314610be0576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116610c075760405163d92e233d60e01b815260040160405180910390fd5b60405147808252906001600160a01b038316907f9f15f0df128ea65ddf3aaa8d614e5f49a3c1e64d78f072b28aabdc36c9d27bf29060200160405180910390a26104fb828261100f565b6001600160a01b03831660009081526004602052604090205460ff16610c95576040516340d53e3360e11b81526001600160a01b0384166004820152602401610452565b600080846001600160a01b0316868585604051610cb3929190611945565b60006040518083038185875af1925050503d8060008114610cf0576040519150601f19603f3d011682016040523d82523d6000602084013e610cf5565b606091505b509150915081610d1a578060405163729a0b5b60e01b815260040161045291906119a5565b505050505050565b60005b81518110156104fb576000828281518110610d4257610d426118fd565b60200260200101519050600060046000858581518110610d6457610d646118fd565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550806001600160a01b03167ffb8b462bd4e3db069eb434596fcfb88044cfe688f7329d1c4bdfbb113257b1ac60405160405180910390a250610de381611913565b9050610d25565b6040516001600160a01b03808516602483015283166044820152606481018290526106609085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611273565b6001600160a01b03841660009081526004602052604090205460ff16610e99576040516340d53e3360e11b81526001600160a01b0385166004820152602401610452565b60405163095ea7b360e01b81526001600160a01b0384811660048301526024820187905287169063095ea7b3906044016020604051808303816000875af1158015610ee8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0c91906119b8565b50600080856001600160a01b03168484604051610f2a929190611945565b6000604051808303816000865af19150503d8060008114610f67576040519150601f19603f3d011682016040523d82523d6000602084013e610f6c565b606091505b509150915081610f91578060405163729a0b5b60e01b815260040161045291906119a5565b60405163095ea7b360e01b81526001600160a01b0386811660048301526000602483015289169063095ea7b3906044016020604051808303816000875af1158015610fe0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100491906119b8565b505050505050505050565b600080836001600160a01b03168360405160006040518083038185875af1925050503d806000811461105d576040519150601f19603f3d011682016040523d82523d6000602084013e611062565b606091505b50915091508161066057806040516311c9b8f560e01b815260040161045291906119a5565b6040516001600160a01b0383166024820152604481018290526109c690849063a9059cbb60e01b90606401610e1e565b60038190556040518181527f20461e09b8e557b77e107939f9ce6544698123aad0fc964ac5cc59b7df2e608f9060200160405180910390a150565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f68f49b346b94582a8b5f9d10e3fe3365318fe8f191ff8dce7c59c6cad06b02f590600090a250565b6001600160a01b0381166111635760405163d92e233d60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b038316908117825560405190917f50146d0e3c60aa1d17a70635b05494f864e86144a2201275021014fbf08bafe291a250565b60005b81518110156104fb5760008282815181106111cb576111cb6118fd565b602002602001015190506001600460008585815181106111ed576111ed6118fd565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550806001600160a01b03167f6e52dd2f27ea2ff599396dc0473c7f182d40ad3a9efe860f37f0c3fce64a851460405160405180910390a25061126c81611913565b90506111ae565b60006112c8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113459092919063ffffffff16565b8051909150156109c657808060200190518101906112e691906119b8565b6109c65760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610452565b6060611354848460008561135c565b949350505050565b6060824710156113bd5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610452565b6001600160a01b0385163b6114145760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610452565b600080866001600160a01b0316858760405161143091906119da565b60006040518083038185875af1925050503d806000811461146d576040519150601f19603f3d011682016040523d82523d6000602084013e611472565b606091505b509150915061148282828661148d565b979650505050505050565b6060831561149c5750816103f1565b8251156114ac5782518084602001fd5b8160405162461bcd60e51b815260040161045291906119a5565b600080604083850312156114d957600080fd5b50508035926020909101359150565b80356001600160a01b03811681146114ff57600080fd5b919050565b60008083601f84011261151657600080fd5b50813567ffffffffffffffff81111561152e57600080fd5b60208301915083602082850101111561154657600080fd5b9250929050565b6000806000806060858703121561156357600080fd5b84359350611573602086016114e8565b9250604085013567ffffffffffffffff81111561158f57600080fd5b61159b87828801611504565b95989497509550505050565b6000602082840312156115b957600080fd5b6103f1826114e8565b60008083601f8401126115d457600080fd5b50813567ffffffffffffffff8111156115ec57600080fd5b6020830191508360208260051b850101111561154657600080fd5b6000806020838503121561161a57600080fd5b823567ffffffffffffffff81111561163157600080fd5b61163d858286016115c2565b90969095509350505050565b600080600080600080600060c0888a03121561166457600080fd5b61166d886114e8565b96506020880135955060408801359450611689606089016114e8565b9350611697608089016114e8565b925060a088013567ffffffffffffffff8111156116b357600080fd5b6116bf8a828b01611504565b989b979a50959850939692959293505050565b6000806000604084860312156116e757600080fd5b833567ffffffffffffffff8111156116fe57600080fd5b61170a868287016115c2565b909450925061171d9050602085016114e8565b90509250925092565b60008060008060006080868803121561173e57600080fd5b611747866114e8565b94506020860135935061175c604087016114e8565b9250606086013567ffffffffffffffff81111561177857600080fd5b61178488828901611504565b969995985093965092949392505050565b6000602082840312156117a757600080fd5b5035919050565b600080604083850312156117c157600080fd5b6117ca836114e8565b91506117d8602084016114e8565b90509250929050565b60008060008060008060008060e0898b0312156117fd57600080fd5b611806896114e8565b97506020890135965061181b60408a016114e8565b95506060890135945061183060808a016114e8565b935061183e60a08a016114e8565b925060c089013567ffffffffffffffff81111561185a57600080fd5b6118668b828c01611504565b999c989b5096995094979396929594505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156118a3576118a361187a565b92915050565b60008160001904831182151516156118c3576118c361187a565b500290565b6000826118e557634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156118a3576118a361187a565b634e487b7160e01b600052603260045260246000fd5b6000600182016119255761192561187a565b5060010190565b60006020828403121561193e57600080fd5b5051919050565b8183823760009101908152919050565b60005b83811015611970578181015183820152602001611958565b50506000910152565b60008151808452611991816020860160208601611955565b601f01601f19169290920160200192915050565b6020815260006103f16020830184611979565b6000602082840312156119ca57600080fd5b815180151581146103f157600080fd5b600082516119ec818460208701611955565b919091019291505056fea164736f6c6343000810000a

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

000000000000000000000000251a2f29d2b2b87736553ca140baf3b45a32cdbc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000050000000000000000000000001111111254fb6c44bac0bed2854e76f90643097d000000000000000000000000def171fe48cf0115b1d80b88dc8eab59176fee570000000000000000000000006352a56caadc4f1e25cd6c75970fa768a3304e64000000000000000000000000c30141b657f4216252dc59af2e7cdb9d8792e1b0000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d666

-----Decoded View---------------
Arg [0] : owner_ (address): 0x251a2F29d2b2B87736553ca140bAf3b45A32CDbc
Arg [1] : feeBasisPoints_ (uint256): 0
Arg [2] : whitelist_ (address[]): 0x1111111254fb6c44bAC0beD2854e76F90643097d,0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57,0x6352a56caadC4F1E25CD6c75970Fa768A3304e64,0xc30141B657f4216252dc59Af2e7CdB9D8792e1B0,0xce16F69375520ab01377ce7B88f5BA8C48F8D666

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 000000000000000000000000251a2f29d2b2b87736553ca140baf3b45a32cdbc
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [4] : 0000000000000000000000001111111254fb6c44bac0bed2854e76f90643097d
Arg [5] : 000000000000000000000000def171fe48cf0115b1d80b88dc8eab59176fee57
Arg [6] : 0000000000000000000000006352a56caadc4f1e25cd6c75970fa768a3304e64
Arg [7] : 000000000000000000000000c30141b657f4216252dc59af2e7cdb9d8792e1b0
Arg [8] : 000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d666


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
0x4233DF6BB8adcEF7008B0b348b8a8779E778dC9F
Net Worth in USD
$297.60

Net Worth in ETH
0.145394

Token Allocations
SOL 25.22%
GUSD 8.57%
LINK 7.49%
Others 58.72%
Chain Token Portfolio % Price Amount Value
ETH25.22%$86.510.8677$75.06
ETH8.57%$125.49$25.52
ETH7.49%$8.972.4841$22.28
ETH5.81%$0.31386755.0602$17.28
ETH5.43%$0.9999416.1677$16.17
ETH5.05%$1,860.090.00807577$15.02
ETH5.02%$1.311.4885$14.94
ETH4.81%$0.096969147.6192$14.31
ETH4.78%$2,376.540.00598205$14.22
ETH4.17%$2.165.747$12.4
ETH2.66%$0.9926417.986$7.93
ETH2.36%$17.0155$7.02
ETH2.15%$32.1338$6.39
ETH2.08%$0.06764991.3496$6.18
ETH2.05%$3,494.030.00174467$6.1
ETH1.89%$3.881.4515$5.63
ETH1.53%$0.7922055.7428$4.55
ETH1.47%$2,046.410.00213956$4.38
ETH1.32%$0.31796512.33$3.92
ETH1.16%$0.10321533.4233$3.45
ETH0.85%$0.2969378.4712$2.52
ETH0.78%$0.02572390.1465$2.32
ETH0.55%$0.08658719.0427$1.65
ETH0.50%$0.005228282.2762$1.48
ETH0.48%$5,156.480.0002791$1.44
ETH0.47%$0.2339046.0352$1.41
ETH0.44%$0.6462582.0271$1.31
ETH0.30%$0.005593157.2806$0.8796
ETH0.24%$0.0837568.5549$0.7165
ETH0.10%$0.2903161.0083$0.2927
ETH0.09%$0.00681738.6442$0.2634
ETH0.07%$0.2136981$0.2136
ETH0.05%$62.690.00232782$0.1459
ETH0.04%$3,603.70.00003196$0.1151
ETH0.04%$0.2961460.3883$0.1149
Loading...
Loading
Loading...
Loading
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.