ETH Price: $3,472.71 (+4.67%)

Contract

0xF964b0E3FfdeA659c44a5a52bc0B82A24b89CE0E
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve211780132024-11-13 9:55:5910 days ago1731491759IN
0xF964b0E3...24b89CE0E
0 ETH0.0004986820.5
Approve206596532024-09-02 1:39:2382 days ago1725241163IN
0xF964b0E3...24b89CE0E
0 ETH0.000028271.06953077
Approve205896892024-08-23 7:03:3592 days ago1724396615IN
0xF964b0E3...24b89CE0E
0 ETH0.000034991.32920072
Approve205896892024-08-23 7:03:3592 days ago1724396615IN
0xF964b0E3...24b89CE0E
0 ETH0.000029781.22431625
Approve205696412024-08-20 11:49:4795 days ago1724154587IN
0xF964b0E3...24b89CE0E
0 ETH0.000062682.57822904
Approve205556142024-08-18 12:48:4797 days ago1723985327IN
0xF964b0E3...24b89CE0E
0 ETH0.00009752.1
Approve204542062024-08-04 9:10:47111 days ago1722762647IN
0xF964b0E3...24b89CE0E
0 ETH0.000046321
Approve204445972024-08-03 1:00:47112 days ago1722646847IN
0xF964b0E3...24b89CE0E
0 ETH0.00007022.8861146
Approve204401632024-08-02 10:07:59113 days ago1722593279IN
0xF964b0E3...24b89CE0E
0 ETH0.000072973
Approve204207872024-07-30 17:13:47115 days ago1722359627IN
0xF964b0E3...24b89CE0E
0 ETH0.000243139.21033781
Transfer204073002024-07-28 20:00:11117 days ago1722196811IN
0xF964b0E3...24b89CE0E
0 ETH0.000093892.00167197
Approve203985912024-07-27 14:49:59119 days ago1722091799IN
0xF964b0E3...24b89CE0E
0 ETH0.000101254.164419
Approve203985902024-07-27 14:49:47119 days ago1722091787IN
0xF964b0E3...24b89CE0E
0 ETH0.000102474.21256949
Approve203200532024-07-16 15:45:35130 days ago1721144735IN
0xF964b0E3...24b89CE0E
0 ETH0.000310212.75216778
Approve202462382024-07-06 8:20:35140 days ago1720254035IN
0xF964b0E3...24b89CE0E
0 ETH0.000058812.41773634
Approve200285502024-06-05 22:15:23170 days ago1717625723IN
0xF964b0E3...24b89CE0E
0 ETH0.0012793427.61133687
Approve198503572024-05-12 0:25:47195 days ago1715473547IN
0xF964b0E3...24b89CE0E
0 ETH0.000095393.92132551
Approve198503572024-05-12 0:25:47195 days ago1715473547IN
0xF964b0E3...24b89CE0E
0 ETH0.000095393.92132551
Approve198503552024-05-12 0:25:23195 days ago1715473523IN
0xF964b0E3...24b89CE0E
0 ETH0.000088923.65754804
Approve197446832024-04-27 5:46:59210 days ago1714196819IN
0xF964b0E3...24b89CE0E
0 ETH0.000241625.18400068
Approve195874612024-04-05 5:28:23232 days ago1712294903IN
0xF964b0E3...24b89CE0E
0 ETH0.0003900516.04238633
Approve195342282024-03-28 18:07:11239 days ago1711649231IN
0xF964b0E3...24b89CE0E
0 ETH0.0010765344.27643628
Approve194527902024-03-17 6:29:35251 days ago1710656975IN
0xF964b0E3...24b89CE0E
0 ETH0.0012114626.1463949
Approve193807152024-03-07 3:49:11261 days ago1709783351IN
0xF964b0E3...24b89CE0E
0 ETH0.0034762575.0259247
Approve193807062024-03-07 3:47:23261 days ago1709783243IN
0xF964b0E3...24b89CE0E
0 ETH0.0033105471.44963608
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GenericUnionVault

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-03-12
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.8.9;



// Part: IStrategy

interface IStrategy {
    function harvest(address caller) external returns (uint256 harvested);

    function totalUnderlying() external view returns (uint256 total);

    function stake(uint256 _amount) external;

    function withdraw(uint256 _amount) external;

    function setApprovals() external;
}

// Part: OpenZeppelin/[email protected]/Address

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// Part: OpenZeppelin/[email protected]/Context

/*
 * @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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// Part: OpenZeppelin/[email protected]/IERC20

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool);

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

// Part: OpenZeppelin/[email protected]/IERC20Metadata

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// Part: OpenZeppelin/[email protected]/Ownable

/**
 * @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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// Part: OpenZeppelin/[email protected]/SafeERC20

/**
 * @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'
        // solhint-disable-next-line max-line-length
        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));
        }
    }

    /**
     * @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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// Part: OpenZeppelin/[email protected]/ERC20

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The defaut value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - amount);

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

// File: GenericVault.sol

contract GenericUnionVault is ERC20, Ownable {
    using SafeERC20 for IERC20;

    uint256 public withdrawalPenalty = 100;
    uint256 public constant MAX_WITHDRAWAL_PENALTY = 150;
    uint256 public platformFee = 500;
    uint256 public constant MAX_PLATFORM_FEE = 2000;
    uint256 public callIncentive = 500;
    uint256 public constant MAX_CALL_INCENTIVE = 500;
    uint256 public constant FEE_DENOMINATOR = 10000;

    address public immutable underlying;
    address public strategy;
    address public platform;

    event Harvest(address indexed _caller, uint256 _value);
    event Deposit(address indexed _from, address indexed _to, uint256 _value);
    event Withdraw(address indexed _from, address indexed _to, uint256 _value);

    event WithdrawalPenaltyUpdated(uint256 _penalty);
    event CallerIncentiveUpdated(uint256 _incentive);
    event PlatformFeeUpdated(uint256 _fee);
    event PlatformUpdated(address indexed _platform);
    event StrategySet(address indexed _strategy);

    constructor(address _token)
        ERC20(
            string(abi.encodePacked("Unionized ", ERC20(_token).name())),
            string(abi.encodePacked("u", ERC20(_token).symbol()))
        )
    {
        underlying = _token;
    }

    /// @notice Updates the withdrawal penalty
    /// @param _penalty - the amount of the new penalty (in BIPS)
    function setWithdrawalPenalty(uint256 _penalty) external onlyOwner {
        require(_penalty <= MAX_WITHDRAWAL_PENALTY);
        withdrawalPenalty = _penalty;
        emit WithdrawalPenaltyUpdated(_penalty);
    }

    /// @notice Updates the caller incentive for harvests
    /// @param _incentive - the amount of the new incentive (in BIPS)
    function setCallIncentive(uint256 _incentive) external onlyOwner {
        require(_incentive <= MAX_CALL_INCENTIVE);
        callIncentive = _incentive;
        emit CallerIncentiveUpdated(_incentive);
    }

    /// @notice Updates the part of yield redirected to the platform
    /// @param _fee - the amount of the new platform fee (in BIPS)
    function setPlatformFee(uint256 _fee) external onlyOwner {
        require(_fee <= MAX_PLATFORM_FEE);
        platformFee = _fee;
        emit PlatformFeeUpdated(_fee);
    }

    /// @notice Updates the address to which platform fees are paid out
    /// @param _platform - the new platform wallet address
    function setPlatform(address _platform)
        external
        onlyOwner
        notToZeroAddress(_platform)
    {
        platform = _platform;
        emit PlatformUpdated(_platform);
    }

    /// @notice Set the address of the strategy contract
    /// @dev Can only be set once
    /// @param _strategy - address of the strategy contract
    function setStrategy(address _strategy)
        external
        onlyOwner
        notToZeroAddress(_strategy)
    {
        require(strategy == address(0), "Strategy already set");
        strategy = _strategy;
        emit StrategySet(_strategy);
    }

    /// @notice Query the amount currently staked
    /// @return total - the total amount of tokens staked
    function totalUnderlying() public view returns (uint256 total) {
        return IStrategy(strategy).totalUnderlying();
    }

    /// @notice Returns the amount of underlying a user can claim
    /// @param user - address whose claimable amount to query
    /// @return amount - claimable amount
    /// @dev Does not account for penalties and fees
    function balanceOfUnderlying(address user)
        external
        view
        returns (uint256 amount)
    {
        require(totalSupply() > 0, "No users");
        return ((balanceOf(user) * totalUnderlying()) / totalSupply());
    }

    /// @notice Deposit user funds in the autocompounder and mints tokens
    /// representing user's share of the pool in exchange
    /// @param _to - the address that will receive the shares
    /// @param _amount - the amount of underlying to deposit
    /// @return _shares - the amount of shares issued
    function deposit(address _to, uint256 _amount)
        public
        notToZeroAddress(_to)
        returns (uint256 _shares)
    {
        require(_amount > 0, "Deposit too small");

        uint256 _before = totalUnderlying();
        IERC20(underlying).safeTransferFrom(msg.sender, strategy, _amount);
        IStrategy(strategy).stake(_amount);

        // Issues shares in proportion of deposit to pool amount
        uint256 shares = 0;
        if (totalSupply() == 0) {
            shares = _amount;
        } else {
            shares = (_amount * totalSupply()) / _before;
        }
        _mint(_to, shares);
        emit Deposit(msg.sender, _to, _amount);
        return shares;
    }

    /// @notice Deposit all of user's underlying balance
    /// @param _to - the address that will receive the shares
    /// @return _shares - the amount of shares issued
    function depositAll(address _to) external returns (uint256 _shares) {
        return deposit(_to, IERC20(underlying).balanceOf(msg.sender));
    }

    /// @notice Unstake underlying in proportion to the amount of shares sent
    /// @param _shares - the number of shares sent
    /// @return _withdrawable - the withdrawable underlying amount
    function _withdraw(uint256 _shares)
        internal
        returns (uint256 _withdrawable)
    {
        require(totalSupply() > 0);
        // Computes the amount withdrawable based on the number of shares sent
        uint256 amount = (_shares * totalUnderlying()) / totalSupply();
        // Burn the shares before retrieving tokens
        _burn(msg.sender, _shares);
        // If user is last to withdraw, harvest before exit
        if (totalSupply() == 0) {
            harvest();
            IStrategy(strategy).withdraw(totalUnderlying());
            _withdrawable = IERC20(underlying).balanceOf(address(this));
        }
        // Otherwise compute share and unstake
        else {
            _withdrawable = amount;
            // Substract a small withdrawal fee to prevent users "timing"
            // the harvests. The fee stays staked and is therefore
            // redistributed to all remaining participants.
            uint256 _penalty = (_withdrawable * withdrawalPenalty) /
                FEE_DENOMINATOR;
            _withdrawable = _withdrawable - _penalty;
            IStrategy(strategy).withdraw(_withdrawable);
        }
        return _withdrawable;
    }

    /// @notice Unstake underlying token in proportion to the amount of shares sent
    /// @param _to - address to send underlying to
    /// @param _shares - the number of shares sent
    /// @return withdrawn - the amount of underlying returned to the user
    function withdraw(address _to, uint256 _shares)
        public
        notToZeroAddress(_to)
        returns (uint256 withdrawn)
    {
        // Withdraw requested amount of underlying
        uint256 _withdrawable = _withdraw(_shares);
        // And sends back underlying to user
        IERC20(underlying).safeTransfer(_to, _withdrawable);
        emit Withdraw(msg.sender, _to, _withdrawable);
        return _withdrawable;
    }

    /// @notice Withdraw all of a users' position as underlying
    /// @param _to - address to send underlying to
    /// @return withdrawn - the amount of underlying returned to the user
    function withdrawAll(address _to)
        external
        notToZeroAddress(_to)
        returns (uint256 withdrawn)
    {
        return withdraw(_to, balanceOf(msg.sender));
    }

    /// @notice Claim rewards and swaps them to FXS for restaking
    /// @dev Can be called by anyone against an incentive in FXS
    /// @dev Harvest logic in the strategy contract
    function harvest() public {
        uint256 _harvested = IStrategy(strategy).harvest(msg.sender);
        emit Harvest(msg.sender, _harvested);
    }

    modifier notToZeroAddress(address _to) {
        require(_to != address(0), "Invalid address!");
        _;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_incentive","type":"uint256"}],"name":"CallerIncentiveUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"PlatformFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_platform","type":"address"}],"name":"PlatformUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_strategy","type":"address"}],"name":"StrategySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_penalty","type":"uint256"}],"name":"WithdrawalPenaltyUpdated","type":"event"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_CALL_INCENTIVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PLATFORM_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WITHDRAWAL_PENALTY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"balanceOfUnderlying","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"callIncentive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"depositAll","outputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platform","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_incentive","type":"uint256"}],"name":"setCallIncentive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_platform","type":"address"}],"name":"setPlatform","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setPlatformFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"setStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_penalty","type":"uint256"}],"name":"setWithdrawalPenalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUnderlying","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"underlying","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"withdrawn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawAll","outputs":[{"internalType":"uint256","name":"withdrawn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalPenalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60a060405260646006556101f46007556101f46008553480156200002257600080fd5b5060405162002221380380620022218339810160408190526200004591620002c4565b806001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b1580156200007f57600080fd5b505afa15801562000094573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620000be91908101906200033f565b604051602001620000d09190620003f7565b604051602081830303815290604052816001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156200011957600080fd5b505afa1580156200012e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200015891908101906200033f565b6040516020016200016a91906200042b565b60408051601f1981840301815291905281516200018f9060039060208501906200021e565b508051620001a59060049060208401906200021e565b5050506000620001ba6200021a60201b60201c565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b031660805262000493565b3390565b8280546200022c9062000456565b90600052602060002090601f0160209004810192826200025057600085556200029b565b82601f106200026b57805160ff19168380011785556200029b565b828001600101855582156200029b579182015b828111156200029b5782518255916020019190600101906200027e565b50620002a9929150620002ad565b5090565b5b80821115620002a95760008155600101620002ae565b600060208284031215620002d757600080fd5b81516001600160a01b0381168114620002ef57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620003295781810151838201526020016200030f565b8381111562000339576000848401525b50505050565b6000602082840312156200035257600080fd5b81516001600160401b03808211156200036a57600080fd5b818401915084601f8301126200037f57600080fd5b815181811115620003945762000394620002f6565b604051601f8201601f19908116603f01168101908382118183101715620003bf57620003bf620002f6565b81604052828152876020848701011115620003d957600080fd5b620003ec8360208301602088016200030c565b979650505050505050565b6902ab734b7b734bd32b2160b51b8152600082516200041e81600a8501602087016200030c565b91909101600a0192915050565b607560f81b815260008251620004498160018501602087016200030c565b9190910160010192915050565b600181811c908216806200046b57607f821691505b602082108114156200048d57634e487b7160e01b600052602260045260246000fd5b50919050565b608051611d56620004cb6000396000818161035c0152818161099a01528181610c5f01528181610f9f015261157c0152611d566000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c8063715018a611610125578063c70920bc116100ad578063dd62ed3e1161007c578063dd62ed3e1461045d578063e7c1b77114610496578063f2fde38b1461049f578063f3fef3a3146104b2578063fa09e630146104c557600080fd5b8063c70920bc14610430578063cb22356b14610438578063cc7554eb14610441578063d73792a91461045457600080fd5b80639f0d5f27116100f45780639f0d5f27146103db578063a2468c19146103ee578063a457c2d7146103f7578063a8c62e761461040a578063a9059cbb1461041d57600080fd5b8063715018a6146103a75780637faaa6c1146103af5780638da5cb5b146103c257806395d89b41146103d357600080fd5b806339509351116101a857806347e7ef241161017757806347e7ef24146103065780634bde38c8146103195780636945c5ea146103445780636f307dc31461035757806370a082311461037e57600080fd5b806339509351146102cf5780633998a681146102e25780633af9e669146102eb5780634641257d146102fe57600080fd5b80632060176b116101ef5780632060176b1461028957806323b872dd1461029157806326232a2e146102a4578063313ce567146102ad57806333a100ca146102bc57600080fd5b806306fdde0314610221578063095ea7b31461023f57806312e8e2c31461026257806318160ddd14610277575b600080fd5b6102296104d8565b6040516102369190611a93565b60405180910390f35b61025261024d366004611ae2565b61056a565b6040519015158152602001610236565b610275610270366004611b0c565b610580565b005b6002545b604051908152602001610236565b61027b609681565b61025261029f366004611b25565b6105fe565b61027b60075481565b60405160128152602001610236565b6102756102ca366004611b61565b6106b1565b6102526102dd366004611ae2565b61079d565b61027b6107d081565b61027b6102f9366004611b61565b6107d4565b610275610856565b61027b610314366004611ae2565b61090f565b600a5461032c906001600160a01b031681565b6040516001600160a01b039091168152602001610236565b610275610352366004611b61565b610aad565b61032c7f000000000000000000000000000000000000000000000000000000000000000081565b61027b61038c366004611b61565b6001600160a01b031660009081526020819052604090205490565b610275610b49565b6102756103bd366004611b0c565b610bbd565b6005546001600160a01b031661032c565b610229610c2a565b61027b6103e9366004611b61565b610c39565b61027b60065481565b610252610405366004611ae2565b610cd9565b60095461032c906001600160a01b031681565b61025261042b366004611ae2565b610d74565b61027b610d81565b61027b60085481565b61027561044f366004611b0c565b610e03565b61027b61271081565b61027b61046b366004611b7c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61027b6101f481565b6102756104ad366004611b61565b610e71565b61027b6104c0366004611ae2565b610f5c565b61027b6104d3366004611b61565b61100e565b6060600380546104e790611baf565b80601f016020809104026020016040519081016040528092919081815260200182805461051390611baf565b80156105605780601f1061053557610100808354040283529160200191610560565b820191906000526020600020905b81548152906001019060200180831161054357829003601f168201915b5050505050905090565b600061057733848461105b565b50600192915050565b6005546001600160a01b031633146105b35760405162461bcd60e51b81526004016105aa90611be4565b60405180910390fd5b6107d08111156105c257600080fd5b60078190556040518181527f45610d581145924dd7090a5017e5f2b1d6f42213bb2e95707ff86846bbfcb1ca906020015b60405180910390a150565b600061060b848484611180565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106905760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016105aa565b6106a4853361069f8685611c2f565b61105b565b60019150505b9392505050565b6005546001600160a01b031633146106db5760405162461bcd60e51b81526004016105aa90611be4565b806001600160a01b0381166107025760405162461bcd60e51b81526004016105aa90611c46565b6009546001600160a01b0316156107525760405162461bcd60e51b815260206004820152601460248201527314dd1c985d1959de48185b1c9958591e481cd95d60621b60448201526064016105aa565b600980546001600160a01b0319166001600160a01b0384169081179091556040517fe70d79dad95c835bdd87e9cf4665651c9e5abb3b756e4fd2bf45f29c95c3aa4090600090a25050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161057791859061069f908690611c70565b6000806107e060025490565b116108185760405162461bcd60e51b81526020600482015260086024820152674e6f20757365727360c01b60448201526064016105aa565b600254610823610d81565b6001600160a01b0384166000908152602081905260409020546108469190611c88565b6108509190611ca7565b92915050565b60095460405163072e008f60e11b81523360048201526000916001600160a01b031690630e5c011e90602401602060405180830381600087803b15801561089c57600080fd5b505af11580156108b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d49190611cc9565b60405181815290915033907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a250565b6000826001600160a01b0381166109385760405162461bcd60e51b81526004016105aa90611c46565b6000831161097c5760405162461bcd60e51b815260206004820152601160248201527011195c1bdcda5d081d1bdbc81cdb585b1b607a1b60448201526064016105aa565b6000610986610d81565b6009549091506109c5906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169133911687611358565b60095460405163534a7e1d60e11b8152600481018690526001600160a01b039091169063a694fc3a90602401600060405180830381600087803b158015610a0b57600080fd5b505af1158015610a1f573d6000803e3d6000fd5b505050506000610a2e60025490565b610a39575083610a5a565b81610a4360025490565b610a4d9087611c88565b610a579190611ca7565b90505b610a6486826113c9565b6040518581526001600160a01b0387169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a395945050505050565b6005546001600160a01b03163314610ad75760405162461bcd60e51b81526004016105aa90611be4565b806001600160a01b038116610afe5760405162461bcd60e51b81526004016105aa90611c46565b600a80546001600160a01b0319166001600160a01b0384169081179091556040517f38703bc9e5fbfe6a4ab89353328531fd2a9b9b0a4953c587bd38e559da9c29cf90600090a25050565b6005546001600160a01b03163314610b735760405162461bcd60e51b81526004016105aa90611be4565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b03163314610be75760405162461bcd60e51b81526004016105aa90611be4565b6096811115610bf557600080fd5b60068190556040518181527f9d5ddc6fdb90a6647fe4981fdf08b45a5f9ef6d8ea960de27bef48fb48132592906020016105f3565b6060600480546104e790611baf565b6040516370a0823160e01b81523360048201526000906108509083906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b158015610ca157600080fd5b505afa158015610cb5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103149190611cc9565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610d5b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105aa565b610d6a338561069f8685611c2f565b5060019392505050565b6000610577338484611180565b600954604080516331c2482f60e21b815290516000926001600160a01b03169163c70920bc916004808301926020929190829003018186803b158015610dc657600080fd5b505afa158015610dda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfe9190611cc9565b905090565b6005546001600160a01b03163314610e2d5760405162461bcd60e51b81526004016105aa90611be4565b6101f4811115610e3c57600080fd5b60088190556040518181527fff2ad85db78b9bc0b02422fae65198371bd6bc7141d80682b7c048c83ee37a42906020016105f3565b6005546001600160a01b03163314610e9b5760405162461bcd60e51b81526004016105aa90611be4565b6001600160a01b038116610f005760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105aa565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b038116610f855760405162461bcd60e51b81526004016105aa90611c46565b6000610f90846114a8565b9050610fc66001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168683611699565b6040518181526001600160a01b0386169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a3949350505050565b6000816001600160a01b0381166110375760405162461bcd60e51b81526004016105aa90611c46565b33600090815260208190526040902054611052908490610f5c565b91505b50919050565b6001600160a01b0383166110bd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105aa565b6001600160a01b03821661111e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105aa565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166111e45760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105aa565b6001600160a01b0382166112465760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105aa565b6001600160a01b038316600090815260208190526040902054818110156112be5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105aa565b6112c88282611c2f565b6001600160a01b0380861660009081526020819052604080822093909355908516815290812080548492906112fe908490611c70565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161134a91815260200190565b60405180910390a350505050565b6040516001600160a01b03808516602483015283166044820152606481018290526113c39085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526116ce565b50505050565b6001600160a01b03821661141f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105aa565b80600260008282546114319190611c70565b90915550506001600160a01b0382166000908152602081905260408120805483929061145e908490611c70565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000806114b460025490565b116114be57600080fd5b60006114c960025490565b6114d1610d81565b6114db9085611c88565b6114e59190611ca7565b90506114f133846117a0565b60025461160757611500610856565b6009546001600160a01b0316632e1a7d4d611519610d81565b6040518263ffffffff1660e01b815260040161153791815260200190565b600060405180830381600087803b15801561155157600080fd5b505af1158015611565573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506370a08231915060240160206040518083038186803b1580156115c857600080fd5b505afa1580156115dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116009190611cc9565b9150611055565b80915060006127106006548461161d9190611c88565b6116279190611ca7565b90506116338184611c2f565b600954604051632e1a7d4d60e01b8152600481018390529194506001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561167a57600080fd5b505af115801561168e573d6000803e3d6000fd5b505050505050919050565b6040516001600160a01b0383166024820152604481018290526116c990849063a9059cbb60e01b9060640161138c565b505050565b6000611723826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118ef9092919063ffffffff16565b8051909150156116c957808060200190518101906117419190611ce2565b6116c95760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105aa565b6001600160a01b0382166118005760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105aa565b6001600160a01b038216600090815260208190526040902054818110156118745760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105aa565b61187e8282611c2f565b6001600160a01b038416600090815260208190526040812091909155600280548492906118ac908490611c2f565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611173565b60606118fe8484600085611906565b949350505050565b6060824710156119675760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105aa565b843b6119b55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105aa565b600080866001600160a01b031685876040516119d19190611d04565b60006040518083038185875af1925050503d8060008114611a0e576040519150601f19603f3d011682016040523d82523d6000602084013e611a13565b606091505b5091509150611a23828286611a2e565b979650505050505050565b60608315611a3d5750816106aa565b825115611a4d5782518084602001fd5b8160405162461bcd60e51b81526004016105aa9190611a93565b60005b83811015611a82578181015183820152602001611a6a565b838111156113c35750506000910152565b6020815260008251806020840152611ab2816040850160208701611a67565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611add57600080fd5b919050565b60008060408385031215611af557600080fd5b611afe83611ac6565b946020939093013593505050565b600060208284031215611b1e57600080fd5b5035919050565b600080600060608486031215611b3a57600080fd5b611b4384611ac6565b9250611b5160208501611ac6565b9150604084013590509250925092565b600060208284031215611b7357600080fd5b6106aa82611ac6565b60008060408385031215611b8f57600080fd5b611b9883611ac6565b9150611ba660208401611ac6565b90509250929050565b600181811c90821680611bc357607f821691505b6020821081141561105557634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015611c4157611c41611c19565b500390565b60208082526010908201526f496e76616c696420616464726573732160801b604082015260600190565b60008219821115611c8357611c83611c19565b500190565b6000816000190483118215151615611ca257611ca2611c19565b500290565b600082611cc457634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611cdb57600080fd5b5051919050565b600060208284031215611cf457600080fd5b815180151581146106aa57600080fd5b60008251611d16818460208701611a67565b919091019291505056fea2646970667358221220fe3f1a365d60368152f46addf9162ddf93589161c89e0e902a110550523d2d7864736f6c63430008090033000000000000000000000000f3a43307dcafa93275993862aae628fcb50dc768

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061021c5760003560e01c8063715018a611610125578063c70920bc116100ad578063dd62ed3e1161007c578063dd62ed3e1461045d578063e7c1b77114610496578063f2fde38b1461049f578063f3fef3a3146104b2578063fa09e630146104c557600080fd5b8063c70920bc14610430578063cb22356b14610438578063cc7554eb14610441578063d73792a91461045457600080fd5b80639f0d5f27116100f45780639f0d5f27146103db578063a2468c19146103ee578063a457c2d7146103f7578063a8c62e761461040a578063a9059cbb1461041d57600080fd5b8063715018a6146103a75780637faaa6c1146103af5780638da5cb5b146103c257806395d89b41146103d357600080fd5b806339509351116101a857806347e7ef241161017757806347e7ef24146103065780634bde38c8146103195780636945c5ea146103445780636f307dc31461035757806370a082311461037e57600080fd5b806339509351146102cf5780633998a681146102e25780633af9e669146102eb5780634641257d146102fe57600080fd5b80632060176b116101ef5780632060176b1461028957806323b872dd1461029157806326232a2e146102a4578063313ce567146102ad57806333a100ca146102bc57600080fd5b806306fdde0314610221578063095ea7b31461023f57806312e8e2c31461026257806318160ddd14610277575b600080fd5b6102296104d8565b6040516102369190611a93565b60405180910390f35b61025261024d366004611ae2565b61056a565b6040519015158152602001610236565b610275610270366004611b0c565b610580565b005b6002545b604051908152602001610236565b61027b609681565b61025261029f366004611b25565b6105fe565b61027b60075481565b60405160128152602001610236565b6102756102ca366004611b61565b6106b1565b6102526102dd366004611ae2565b61079d565b61027b6107d081565b61027b6102f9366004611b61565b6107d4565b610275610856565b61027b610314366004611ae2565b61090f565b600a5461032c906001600160a01b031681565b6040516001600160a01b039091168152602001610236565b610275610352366004611b61565b610aad565b61032c7f000000000000000000000000f3a43307dcafa93275993862aae628fcb50dc76881565b61027b61038c366004611b61565b6001600160a01b031660009081526020819052604090205490565b610275610b49565b6102756103bd366004611b0c565b610bbd565b6005546001600160a01b031661032c565b610229610c2a565b61027b6103e9366004611b61565b610c39565b61027b60065481565b610252610405366004611ae2565b610cd9565b60095461032c906001600160a01b031681565b61025261042b366004611ae2565b610d74565b61027b610d81565b61027b60085481565b61027561044f366004611b0c565b610e03565b61027b61271081565b61027b61046b366004611b7c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61027b6101f481565b6102756104ad366004611b61565b610e71565b61027b6104c0366004611ae2565b610f5c565b61027b6104d3366004611b61565b61100e565b6060600380546104e790611baf565b80601f016020809104026020016040519081016040528092919081815260200182805461051390611baf565b80156105605780601f1061053557610100808354040283529160200191610560565b820191906000526020600020905b81548152906001019060200180831161054357829003601f168201915b5050505050905090565b600061057733848461105b565b50600192915050565b6005546001600160a01b031633146105b35760405162461bcd60e51b81526004016105aa90611be4565b60405180910390fd5b6107d08111156105c257600080fd5b60078190556040518181527f45610d581145924dd7090a5017e5f2b1d6f42213bb2e95707ff86846bbfcb1ca906020015b60405180910390a150565b600061060b848484611180565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106905760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016105aa565b6106a4853361069f8685611c2f565b61105b565b60019150505b9392505050565b6005546001600160a01b031633146106db5760405162461bcd60e51b81526004016105aa90611be4565b806001600160a01b0381166107025760405162461bcd60e51b81526004016105aa90611c46565b6009546001600160a01b0316156107525760405162461bcd60e51b815260206004820152601460248201527314dd1c985d1959de48185b1c9958591e481cd95d60621b60448201526064016105aa565b600980546001600160a01b0319166001600160a01b0384169081179091556040517fe70d79dad95c835bdd87e9cf4665651c9e5abb3b756e4fd2bf45f29c95c3aa4090600090a25050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161057791859061069f908690611c70565b6000806107e060025490565b116108185760405162461bcd60e51b81526020600482015260086024820152674e6f20757365727360c01b60448201526064016105aa565b600254610823610d81565b6001600160a01b0384166000908152602081905260409020546108469190611c88565b6108509190611ca7565b92915050565b60095460405163072e008f60e11b81523360048201526000916001600160a01b031690630e5c011e90602401602060405180830381600087803b15801561089c57600080fd5b505af11580156108b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d49190611cc9565b60405181815290915033907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a250565b6000826001600160a01b0381166109385760405162461bcd60e51b81526004016105aa90611c46565b6000831161097c5760405162461bcd60e51b815260206004820152601160248201527011195c1bdcda5d081d1bdbc81cdb585b1b607a1b60448201526064016105aa565b6000610986610d81565b6009549091506109c5906001600160a01b037f000000000000000000000000f3a43307dcafa93275993862aae628fcb50dc76881169133911687611358565b60095460405163534a7e1d60e11b8152600481018690526001600160a01b039091169063a694fc3a90602401600060405180830381600087803b158015610a0b57600080fd5b505af1158015610a1f573d6000803e3d6000fd5b505050506000610a2e60025490565b610a39575083610a5a565b81610a4360025490565b610a4d9087611c88565b610a579190611ca7565b90505b610a6486826113c9565b6040518581526001600160a01b0387169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a395945050505050565b6005546001600160a01b03163314610ad75760405162461bcd60e51b81526004016105aa90611be4565b806001600160a01b038116610afe5760405162461bcd60e51b81526004016105aa90611c46565b600a80546001600160a01b0319166001600160a01b0384169081179091556040517f38703bc9e5fbfe6a4ab89353328531fd2a9b9b0a4953c587bd38e559da9c29cf90600090a25050565b6005546001600160a01b03163314610b735760405162461bcd60e51b81526004016105aa90611be4565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b03163314610be75760405162461bcd60e51b81526004016105aa90611be4565b6096811115610bf557600080fd5b60068190556040518181527f9d5ddc6fdb90a6647fe4981fdf08b45a5f9ef6d8ea960de27bef48fb48132592906020016105f3565b6060600480546104e790611baf565b6040516370a0823160e01b81523360048201526000906108509083906001600160a01b037f000000000000000000000000f3a43307dcafa93275993862aae628fcb50dc76816906370a082319060240160206040518083038186803b158015610ca157600080fd5b505afa158015610cb5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103149190611cc9565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610d5b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105aa565b610d6a338561069f8685611c2f565b5060019392505050565b6000610577338484611180565b600954604080516331c2482f60e21b815290516000926001600160a01b03169163c70920bc916004808301926020929190829003018186803b158015610dc657600080fd5b505afa158015610dda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfe9190611cc9565b905090565b6005546001600160a01b03163314610e2d5760405162461bcd60e51b81526004016105aa90611be4565b6101f4811115610e3c57600080fd5b60088190556040518181527fff2ad85db78b9bc0b02422fae65198371bd6bc7141d80682b7c048c83ee37a42906020016105f3565b6005546001600160a01b03163314610e9b5760405162461bcd60e51b81526004016105aa90611be4565b6001600160a01b038116610f005760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105aa565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b038116610f855760405162461bcd60e51b81526004016105aa90611c46565b6000610f90846114a8565b9050610fc66001600160a01b037f000000000000000000000000f3a43307dcafa93275993862aae628fcb50dc768168683611699565b6040518181526001600160a01b0386169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a3949350505050565b6000816001600160a01b0381166110375760405162461bcd60e51b81526004016105aa90611c46565b33600090815260208190526040902054611052908490610f5c565b91505b50919050565b6001600160a01b0383166110bd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105aa565b6001600160a01b03821661111e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105aa565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166111e45760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105aa565b6001600160a01b0382166112465760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105aa565b6001600160a01b038316600090815260208190526040902054818110156112be5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105aa565b6112c88282611c2f565b6001600160a01b0380861660009081526020819052604080822093909355908516815290812080548492906112fe908490611c70565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161134a91815260200190565b60405180910390a350505050565b6040516001600160a01b03808516602483015283166044820152606481018290526113c39085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526116ce565b50505050565b6001600160a01b03821661141f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105aa565b80600260008282546114319190611c70565b90915550506001600160a01b0382166000908152602081905260408120805483929061145e908490611c70565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000806114b460025490565b116114be57600080fd5b60006114c960025490565b6114d1610d81565b6114db9085611c88565b6114e59190611ca7565b90506114f133846117a0565b60025461160757611500610856565b6009546001600160a01b0316632e1a7d4d611519610d81565b6040518263ffffffff1660e01b815260040161153791815260200190565b600060405180830381600087803b15801561155157600080fd5b505af1158015611565573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201527f000000000000000000000000f3a43307dcafa93275993862aae628fcb50dc7686001600160a01b031692506370a08231915060240160206040518083038186803b1580156115c857600080fd5b505afa1580156115dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116009190611cc9565b9150611055565b80915060006127106006548461161d9190611c88565b6116279190611ca7565b90506116338184611c2f565b600954604051632e1a7d4d60e01b8152600481018390529194506001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561167a57600080fd5b505af115801561168e573d6000803e3d6000fd5b505050505050919050565b6040516001600160a01b0383166024820152604481018290526116c990849063a9059cbb60e01b9060640161138c565b505050565b6000611723826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118ef9092919063ffffffff16565b8051909150156116c957808060200190518101906117419190611ce2565b6116c95760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016105aa565b6001600160a01b0382166118005760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105aa565b6001600160a01b038216600090815260208190526040902054818110156118745760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105aa565b61187e8282611c2f565b6001600160a01b038416600090815260208190526040812091909155600280548492906118ac908490611c2f565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611173565b60606118fe8484600085611906565b949350505050565b6060824710156119675760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016105aa565b843b6119b55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105aa565b600080866001600160a01b031685876040516119d19190611d04565b60006040518083038185875af1925050503d8060008114611a0e576040519150601f19603f3d011682016040523d82523d6000602084013e611a13565b606091505b5091509150611a23828286611a2e565b979650505050505050565b60608315611a3d5750816106aa565b825115611a4d5782518084602001fd5b8160405162461bcd60e51b81526004016105aa9190611a93565b60005b83811015611a82578181015183820152602001611a6a565b838111156113c35750506000910152565b6020815260008251806020840152611ab2816040850160208701611a67565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611add57600080fd5b919050565b60008060408385031215611af557600080fd5b611afe83611ac6565b946020939093013593505050565b600060208284031215611b1e57600080fd5b5035919050565b600080600060608486031215611b3a57600080fd5b611b4384611ac6565b9250611b5160208501611ac6565b9150604084013590509250925092565b600060208284031215611b7357600080fd5b6106aa82611ac6565b60008060408385031215611b8f57600080fd5b611b9883611ac6565b9150611ba660208401611ac6565b90509250929050565b600181811c90821680611bc357607f821691505b6020821081141561105557634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015611c4157611c41611c19565b500390565b60208082526010908201526f496e76616c696420616464726573732160801b604082015260600190565b60008219821115611c8357611c83611c19565b500190565b6000816000190483118215151615611ca257611ca2611c19565b500290565b600082611cc457634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611cdb57600080fd5b5051919050565b600060208284031215611cf457600080fd5b815180151581146106aa57600080fd5b60008251611d16818460208701611a67565b919091019291505056fea2646970667358221220fe3f1a365d60368152f46addf9162ddf93589161c89e0e902a110550523d2d7864736f6c63430008090033

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

000000000000000000000000f3a43307dcafa93275993862aae628fcb50dc768

-----Decoded View---------------
Arg [0] : _token (address): 0xF3A43307DcAFa93275993862Aae628fCB50dC768

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


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  ]

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.