ETH Price: $3,455.30 (-0.92%)
Gas: 2 Gwei

Token

Unionized Convex CRV (ucvxCRV)
 

Overview

Max Total Supply

111,356.477543166042780289 ucvxCRV

Holders

265

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0.000000000000010752 ucvxCRV

Value
$0.00
0x70ed0e7db53c021e46732d18e620d763ceef888f
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
stkCvxCrvVault

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 10 : stkCvxCrvVault.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import "GenericVault.sol";

interface stkCvxCrvStrategy {
    function harvest(
        address _caller,
        uint256 _minAmountOut,
        bool _forceLock
    ) external returns (uint256 harvested);

    function setRewardWeight(uint256 _weight) external;
}

contract stkCvxCrvVault is GenericUnionVault {
    bool public isHarvestPermissioned = false;
    uint256 public weight;
    mapping(address => bool) public authorizedHarvesters;
    uint256 public constant WEIGHT_PRECISION = 10000;

    constructor(address _token) GenericUnionVault(_token) {}

    /// @notice Sets whether only whitelisted addresses can harvest
    /// @param _status Whether or not harvests are permissioned
    function setHarvestPermissions(bool _status) external onlyOwner {
        isHarvestPermissioned = _status;
    }

    /// @notice Adds or remove an address from the harvesters' whitelist
    /// @param _harvester address of the authorized harvester
    /// @param _authorized Whether to add or remove harvester
    function updateAuthorizedHarvesters(address _harvester, bool _authorized)
        external
        onlyOwner
    {
        authorizedHarvesters[_harvester] = _authorized;
    }

    /// @notice set the strategy's reward weight
    /// @dev Always only available to owner or authorized harvesters
    /// @param _weight the desired weight: 0 = full group 0, 10k = full group 1
    function setRewardWeight(uint256 _weight) public {
        require(_weight <= WEIGHT_PRECISION, "invalid weight");
        require(
            authorizedHarvesters[msg.sender] || msg.sender == owner(),
            "authorized only"
        );
        stkCvxCrvStrategy(strategy).setRewardWeight(_weight);
    }

    /// @notice Updates the strategy's reward weight before harvesting
    /// @dev Always only available to owner or authorized harvesters
    /// @param _minAmountOut - min amount of cvxCrv to receive for harvest
    /// @param _lock - whether to lock or swap lp tokens for cvxCrv
    /// @param _weight the desired weight: 0 = full group 0, 10k = full group 1
    function harvestAndSetRewardWeight(
        uint256 _minAmountOut,
        bool _lock,
        uint256 _weight
    ) public {
        setRewardWeight(_weight);
        harvest(_minAmountOut, _lock);
    }

    /// @notice Claim rewards and swaps them to cvxCrv for restaking
    /// @param _minAmountOut - min amount of cvxCrv to receive for harvest
    /// @param _forceLock - force locking even if there's a discount for swapping
    /// @dev Can be called by whitelisted account or anyone against an ETH incentive
    /// @dev Harvest logic in the strategy contract
    /// @dev Harvest can be called even if permissioned when last staker is
    ///      withdrawing from the vault.
    function harvest(uint256 _minAmountOut, bool _forceLock) public {
        require(
            !isHarvestPermissioned ||
                authorizedHarvesters[msg.sender] ||
                totalSupply() == 0,
            "permissioned harvest"
        );
        uint256 _harvested = stkCvxCrvStrategy(strategy).harvest(
            msg.sender,
            _minAmountOut,
            _forceLock
        );
        emit Harvest(msg.sender, _harvested);
    }

    /// @notice Claim rewards and swaps them to cvxCRV for restaking
    /// @param _minAmountOut - min amount of cvxCRV to receive for harvest
    /// @dev swapping for cvxCRV by default
    function harvest(uint256 _minAmountOut) public {
        harvest(_minAmountOut, false);
    }

    /// @notice Claim rewards and swaps them to cvxCRV for restaking
    /// @dev No slippage protection, swapping for cvxCRV
    function harvest() public override {
        harvest(0);
    }
}

File 2 of 10 : GenericVault.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import "Ownable.sol";
import "SafeERC20.sol";
import "ERC20.sol";
import "IStrategy.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 virtual {
        uint256 _harvested = IStrategy(strategy).harvest(msg.sender);
        emit Harvest(msg.sender, _harvested);
    }

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

File 3 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        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;
    }
}

File 4 of 10 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 5 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC20.sol";
import "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'
        // 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");
        }
    }
}

File 6 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 7 of 10 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 8 of 10 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC20.sol";
import "IERC20Metadata.sol";
import "Context.sol";

/**
 * @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 9 of 10 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC20.sol";

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

File 10 of 10 : IStrategy.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

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

    function harvest(address _caller, uint256 _minAmountOut)
        external
        returns (uint256 harvested);

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

    function stake(uint256 _amount) external;

    function withdraw(uint256 _amount) external;

    function setApprovals() external;
}

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

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":[],"name":"WEIGHT_PRECISION","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":"","type":"address"}],"name":"authorizedHarvesters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"_minAmountOut","type":"uint256"},{"internalType":"bool","name":"_forceLock","type":"bool"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minAmountOut","type":"uint256"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minAmountOut","type":"uint256"},{"internalType":"bool","name":"_lock","type":"bool"},{"internalType":"uint256","name":"_weight","type":"uint256"}],"name":"harvestAndSetRewardWeight","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":"isHarvestPermissioned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"bool","name":"_status","type":"bool"}],"name":"setHarvestPermissions","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":"uint256","name":"_weight","type":"uint256"}],"name":"setRewardWeight","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":"_harvester","type":"address"},{"internalType":"bool","name":"_authorized","type":"bool"}],"name":"updateAuthorizedHarvesters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"}]

60a060405260646006556101f46007819055600855600a805460ff60a01b191690553480156200002e57600080fd5b5060405162002664380380620026648339810160408190526200005191620002d2565b80806001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b1580156200008c57600080fd5b505afa158015620000a1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620000cb91908101906200034d565b604051602001620000dd919062000405565b604051602081830303815290604052816001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156200012657600080fd5b505afa1580156200013b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200016591908101906200034d565b60405160200162000177919062000439565b60408051601f1981840301815291905281516200019c9060039060208501906200022c565b508051620001b29060049060208401906200022c565b5050506000620001c76200022860201b60201c565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b031660805250620004a1565b3390565b8280546200023a9062000464565b90600052602060002090601f0160209004810192826200025e5760008555620002a9565b82601f106200027957805160ff1916838001178555620002a9565b82800160010185558215620002a9579182015b82811115620002a95782518255916020019190600101906200028c565b50620002b7929150620002bb565b5090565b5b80821115620002b75760008155600101620002bc565b600060208284031215620002e557600080fd5b81516001600160a01b0381168114620002fd57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620003375781810151838201526020016200031d565b8381111562000347576000848401525b50505050565b6000602082840312156200036057600080fd5b81516001600160401b03808211156200037857600080fd5b818401915084601f8301126200038d57600080fd5b815181811115620003a257620003a262000304565b604051601f8201601f19908116603f01168101908382118183101715620003cd57620003cd62000304565b81604052828152876020848701011115620003e757600080fd5b620003fa8360208301602088016200031a565b979650505050505050565b6902ab734b7b734bd32b2160b51b8152600082516200042c81600a8501602087016200031a565b91909101600a0192915050565b607560f81b815260008251620004578160018501602087016200031a565b9190910160010192915050565b600181811c908216806200047957607f821691505b602082108114156200049b57634e487b7160e01b600052602260045260246000fd5b50919050565b60805161218b620004d96000396000818161040401528181610ba201528181610eaf0152818161131f01526118fc015261218b6000f3fe608060405234801561001057600080fd5b506004361061028a5760003560e01c80637faaa6c11161015c578063c15f5f8d116100ce578063ddc6326211610087578063ddc6326214610580578063e7c1b77114610593578063f2fde38b1461059c578063f3fef3a3146105af578063f7ff67a0146105c2578063fa09e630146105e557600080fd5b8063c15f5f8d14610510578063c70920bc14610523578063cb22356b1461052b578063cc7554eb14610534578063d73792a914610426578063dd62ed3e1461054757600080fd5b8063a056e3bf11610120578063a056e3bf146104b2578063a1aab33f146104c5578063a2468c19146104ce578063a457c2d7146104d7578063a8c62e76146104ea578063a9059cbb146104fd57600080fd5b80637faaa6c114610460578063809c95cc146104735780638da5cb5b1461048657806395d89b41146104975780639f0d5f271461049f57600080fd5b806339509351116102005780634bde38c8116101b95780634bde38c8146103c15780636945c5ea146103ec5780636f307dc3146103ff5780637001f4bb1461042657806370a082311461042f578063715018a61461045857600080fd5b806339509351146103645780633998a681146103775780633af9e669146103805780633dc31d19146103935780634641257d146103a657806347e7ef24146103ae57600080fd5b80632060176b116102525780632060176b1461030a57806323b872dd14610312578063252c37fa1461032557806326232a2e14610339578063313ce5671461034257806333a100ca1461035157600080fd5b806306fdde031461028f578063095ea7b3146102ad57806312e8e2c3146102d0578063178d300e146102e557806318160ddd146102f8575b600080fd5b6102976105f8565b6040516102a49190611e0e565b60405180910390f35b6102c06102bb366004611e5d565b61068a565b60405190151581526020016102a4565b6102e36102de366004611e87565b6106a0565b005b6102e36102f3366004611eae565b61071e565b6002545b6040519081526020016102a4565b6102fc609681565b6102c0610320366004611ede565b61085e565b600a546102c090600160a01b900460ff1681565b6102fc60075481565b604051601281526020016102a4565b6102e361035f366004611f1a565b610911565b6102c0610372366004611e5d565b6109fd565b6102fc6107d081565b6102fc61038e366004611f1a565b610a34565b6102e36103a1366004611f35565b610ab6565b6102e3610b0b565b6102fc6103bc366004611e5d565b610b17565b600a546103d4906001600160a01b031681565b6040516001600160a01b0390911681526020016102a4565b6102e36103fa366004611f1a565b610cb5565b6103d47f000000000000000000000000000000000000000000000000000000000000000081565b6102fc61271081565b6102fc61043d366004611f1a565b6001600160a01b031660009081526020819052604090205490565b6102e3610d51565b6102e361046e366004611e87565b610dc5565b6102e3610481366004611f61565b610e32565b6005546001600160a01b03166103d4565b610297610e7a565b6102fc6104ad366004611f1a565b610e89565b6102e36104c0366004611f7e565b610f29565b6102fc600b5481565b6102fc60065481565b6102c06104e5366004611e5d565b610f41565b6009546103d4906001600160a01b031681565b6102c061050b366004611e5d565b610fdc565b6102e361051e366004611e87565b610fe9565b6102fc6110f3565b6102fc60085481565b6102e3610542366004611e87565b611175565b6102fc610555366004611fb6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102e361058e366004611e87565b6111e3565b6102fc6101f481565b6102e36105aa366004611f1a565b6111f1565b6102fc6105bd366004611e5d565b6112dc565b6102c06105d0366004611f1a565b600c6020526000908152604090205460ff1681565b6102fc6105f3366004611f1a565b61138e565b60606003805461060790611fe9565b80601f016020809104026020016040519081016040528092919081815260200182805461063390611fe9565b80156106805780601f1061065557610100808354040283529160200191610680565b820191906000526020600020905b81548152906001019060200180831161066357829003601f168201915b5050505050905090565b60006106973384846113db565b50600192915050565b6005546001600160a01b031633146106d35760405162461bcd60e51b81526004016106ca9061201e565b60405180910390fd5b6107d08111156106e257600080fd5b60078190556040518181527f45610d581145924dd7090a5017e5f2b1d6f42213bb2e95707ff86846bbfcb1ca906020015b60405180910390a150565b600a54600160a01b900460ff1615806107465750336000908152600c602052604090205460ff165b806107515750600254155b6107945760405162461bcd60e51b81526020600482015260146024820152731c195c9b5a5cdcda5bdb9959081a185c9d995cdd60621b60448201526064016106ca565b60095460405163bab7028f60e01b81523360048201526024810184905282151560448201526000916001600160a01b03169063bab7028f90606401602060405180830381600087803b1580156107e957600080fd5b505af11580156107fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108219190612053565b60405181815290915033907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a2505050565b600061086b848484611500565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156108f05760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016106ca565b61090485336108ff8685612082565b6113db565b60019150505b9392505050565b6005546001600160a01b0316331461093b5760405162461bcd60e51b81526004016106ca9061201e565b806001600160a01b0381166109625760405162461bcd60e51b81526004016106ca90612099565b6009546001600160a01b0316156109b25760405162461bcd60e51b815260206004820152601460248201527314dd1c985d1959de48185b1c9958591e481cd95d60621b60448201526064016106ca565b600980546001600160a01b0319166001600160a01b0384169081179091556040517fe70d79dad95c835bdd87e9cf4665651c9e5abb3b756e4fd2bf45f29c95c3aa4090600090a25050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916106979185906108ff9086906120c3565b600080610a4060025490565b11610a785760405162461bcd60e51b81526020600482015260086024820152674e6f20757365727360c01b60448201526064016106ca565b600254610a836110f3565b6001600160a01b038416600090815260208190526040902054610aa691906120db565b610ab091906120fa565b92915050565b6005546001600160a01b03163314610ae05760405162461bcd60e51b81526004016106ca9061201e565b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b610b1560006111e3565b565b6000826001600160a01b038116610b405760405162461bcd60e51b81526004016106ca90612099565b60008311610b845760405162461bcd60e51b815260206004820152601160248201527011195c1bdcda5d081d1bdbc81cdb585b1b607a1b60448201526064016106ca565b6000610b8e6110f3565b600954909150610bcd906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691339116876116d8565b60095460405163534a7e1d60e11b8152600481018690526001600160a01b039091169063a694fc3a90602401600060405180830381600087803b158015610c1357600080fd5b505af1158015610c27573d6000803e3d6000fd5b505050506000610c3660025490565b610c41575083610c62565b81610c4b60025490565b610c5590876120db565b610c5f91906120fa565b90505b610c6c8682611749565b6040518581526001600160a01b0387169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a395945050505050565b6005546001600160a01b03163314610cdf5760405162461bcd60e51b81526004016106ca9061201e565b806001600160a01b038116610d065760405162461bcd60e51b81526004016106ca90612099565b600a80546001600160a01b0319166001600160a01b0384169081179091556040517f38703bc9e5fbfe6a4ab89353328531fd2a9b9b0a4953c587bd38e559da9c29cf90600090a25050565b6005546001600160a01b03163314610d7b5760405162461bcd60e51b81526004016106ca9061201e565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b03163314610def5760405162461bcd60e51b81526004016106ca9061201e565b6096811115610dfd57600080fd5b60068190556040518181527f9d5ddc6fdb90a6647fe4981fdf08b45a5f9ef6d8ea960de27bef48fb4813259290602001610713565b6005546001600160a01b03163314610e5c5760405162461bcd60e51b81526004016106ca9061201e565b600a8054911515600160a01b0260ff60a01b19909216919091179055565b60606004805461060790611fe9565b6040516370a0823160e01b8152336004820152600090610ab09083906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b158015610ef157600080fd5b505afa158015610f05573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103bc9190612053565b610f3281610fe9565b610f3c838361071e565b505050565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610fc35760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106ca565b610fd233856108ff8685612082565b5060019392505050565b6000610697338484611500565b61271081111561102c5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a59081dd95a59da1d60921b60448201526064016106ca565b336000908152600c602052604090205460ff168061105457506005546001600160a01b031633145b6110925760405162461bcd60e51b815260206004820152600f60248201526e617574686f72697a6564206f6e6c7960881b60448201526064016106ca565b60095460405163c15f5f8d60e01b8152600481018390526001600160a01b039091169063c15f5f8d90602401600060405180830381600087803b1580156110d857600080fd5b505af11580156110ec573d6000803e3d6000fd5b5050505050565b600954604080516331c2482f60e21b815290516000926001600160a01b03169163c70920bc916004808301926020929190829003018186803b15801561113857600080fd5b505afa15801561114c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111709190612053565b905090565b6005546001600160a01b0316331461119f5760405162461bcd60e51b81526004016106ca9061201e565b6101f48111156111ae57600080fd5b60088190556040518181527fff2ad85db78b9bc0b02422fae65198371bd6bc7141d80682b7c048c83ee37a4290602001610713565b6111ee81600061071e565b50565b6005546001600160a01b0316331461121b5760405162461bcd60e51b81526004016106ca9061201e565b6001600160a01b0381166112805760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106ca565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b0381166113055760405162461bcd60e51b81526004016106ca90612099565b600061131084611828565b90506113466001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168683611a19565b6040518181526001600160a01b0386169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a3949350505050565b6000816001600160a01b0381166113b75760405162461bcd60e51b81526004016106ca90612099565b336000908152602081905260409020546113d29084906112dc565b91505b50919050565b6001600160a01b03831661143d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106ca565b6001600160a01b03821661149e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106ca565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166115645760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106ca565b6001600160a01b0382166115c65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106ca565b6001600160a01b0383166000908152602081905260409020548181101561163e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106ca565b6116488282612082565b6001600160a01b03808616600090815260208190526040808220939093559085168152908120805484929061167e9084906120c3565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516116ca91815260200190565b60405180910390a350505050565b6040516001600160a01b03808516602483015283166044820152606481018290526117439085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611a49565b50505050565b6001600160a01b03821661179f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106ca565b80600260008282546117b191906120c3565b90915550506001600160a01b038216600090815260208190526040812080548392906117de9084906120c3565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60008061183460025490565b1161183e57600080fd5b600061184960025490565b6118516110f3565b61185b90856120db565b61186591906120fa565b90506118713384611b1b565b60025461198757611880610b0b565b6009546001600160a01b0316632e1a7d4d6118996110f3565b6040518263ffffffff1660e01b81526004016118b791815260200190565b600060405180830381600087803b1580156118d157600080fd5b505af11580156118e5573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506370a08231915060240160206040518083038186803b15801561194857600080fd5b505afa15801561195c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119809190612053565b91506113d5565b80915060006127106006548461199d91906120db565b6119a791906120fa565b90506119b38184612082565b600954604051632e1a7d4d60e01b8152600481018390529194506001600160a01b031690632e1a7d4d90602401600060405180830381600087803b1580156119fa57600080fd5b505af1158015611a0e573d6000803e3d6000fd5b505050505050919050565b6040516001600160a01b038316602482015260448101829052610f3c90849063a9059cbb60e01b9060640161170c565b6000611a9e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c6a9092919063ffffffff16565b805190915015610f3c5780806020019051810190611abc919061211c565b610f3c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106ca565b6001600160a01b038216611b7b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106ca565b6001600160a01b03821660009081526020819052604090205481811015611bef5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106ca565b611bf98282612082565b6001600160a01b03841660009081526020819052604081209190915560028054849290611c27908490612082565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016114f3565b6060611c798484600085611c81565b949350505050565b606082471015611ce25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016106ca565b843b611d305760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ca565b600080866001600160a01b03168587604051611d4c9190612139565b60006040518083038185875af1925050503d8060008114611d89576040519150601f19603f3d011682016040523d82523d6000602084013e611d8e565b606091505b5091509150611d9e828286611da9565b979650505050505050565b60608315611db857508161090a565b825115611dc85782518084602001fd5b8160405162461bcd60e51b81526004016106ca9190611e0e565b60005b83811015611dfd578181015183820152602001611de5565b838111156117435750506000910152565b6020815260008251806020840152611e2d816040850160208701611de2565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611e5857600080fd5b919050565b60008060408385031215611e7057600080fd5b611e7983611e41565b946020939093013593505050565b600060208284031215611e9957600080fd5b5035919050565b80151581146111ee57600080fd5b60008060408385031215611ec157600080fd5b823591506020830135611ed381611ea0565b809150509250929050565b600080600060608486031215611ef357600080fd5b611efc84611e41565b9250611f0a60208501611e41565b9150604084013590509250925092565b600060208284031215611f2c57600080fd5b61090a82611e41565b60008060408385031215611f4857600080fd5b611f5183611e41565b91506020830135611ed381611ea0565b600060208284031215611f7357600080fd5b813561090a81611ea0565b600080600060608486031215611f9357600080fd5b833592506020840135611fa581611ea0565b929592945050506040919091013590565b60008060408385031215611fc957600080fd5b611fd283611e41565b9150611fe060208401611e41565b90509250929050565b600181811c90821680611ffd57607f821691505b602082108114156113d557634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561206557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156120945761209461206c565b500390565b60208082526010908201526f496e76616c696420616464726573732160801b604082015260600190565b600082198211156120d6576120d661206c565b500190565b60008160001904831182151516156120f5576120f561206c565b500290565b60008261211757634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561212e57600080fd5b815161090a81611ea0565b6000825161214b818460208701611de2565b919091019291505056fea2646970667358221220df4a9dcb8c3d3d855633cd669a2184e4704d2ead59ffd4047cd51d197779584664736f6c6343000809003300000000000000000000000062b9c7356a2dc64a1969e19c23e4f579f9810aa7

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061028a5760003560e01c80637faaa6c11161015c578063c15f5f8d116100ce578063ddc6326211610087578063ddc6326214610580578063e7c1b77114610593578063f2fde38b1461059c578063f3fef3a3146105af578063f7ff67a0146105c2578063fa09e630146105e557600080fd5b8063c15f5f8d14610510578063c70920bc14610523578063cb22356b1461052b578063cc7554eb14610534578063d73792a914610426578063dd62ed3e1461054757600080fd5b8063a056e3bf11610120578063a056e3bf146104b2578063a1aab33f146104c5578063a2468c19146104ce578063a457c2d7146104d7578063a8c62e76146104ea578063a9059cbb146104fd57600080fd5b80637faaa6c114610460578063809c95cc146104735780638da5cb5b1461048657806395d89b41146104975780639f0d5f271461049f57600080fd5b806339509351116102005780634bde38c8116101b95780634bde38c8146103c15780636945c5ea146103ec5780636f307dc3146103ff5780637001f4bb1461042657806370a082311461042f578063715018a61461045857600080fd5b806339509351146103645780633998a681146103775780633af9e669146103805780633dc31d19146103935780634641257d146103a657806347e7ef24146103ae57600080fd5b80632060176b116102525780632060176b1461030a57806323b872dd14610312578063252c37fa1461032557806326232a2e14610339578063313ce5671461034257806333a100ca1461035157600080fd5b806306fdde031461028f578063095ea7b3146102ad57806312e8e2c3146102d0578063178d300e146102e557806318160ddd146102f8575b600080fd5b6102976105f8565b6040516102a49190611e0e565b60405180910390f35b6102c06102bb366004611e5d565b61068a565b60405190151581526020016102a4565b6102e36102de366004611e87565b6106a0565b005b6102e36102f3366004611eae565b61071e565b6002545b6040519081526020016102a4565b6102fc609681565b6102c0610320366004611ede565b61085e565b600a546102c090600160a01b900460ff1681565b6102fc60075481565b604051601281526020016102a4565b6102e361035f366004611f1a565b610911565b6102c0610372366004611e5d565b6109fd565b6102fc6107d081565b6102fc61038e366004611f1a565b610a34565b6102e36103a1366004611f35565b610ab6565b6102e3610b0b565b6102fc6103bc366004611e5d565b610b17565b600a546103d4906001600160a01b031681565b6040516001600160a01b0390911681526020016102a4565b6102e36103fa366004611f1a565b610cb5565b6103d47f00000000000000000000000062b9c7356a2dc64a1969e19c23e4f579f9810aa781565b6102fc61271081565b6102fc61043d366004611f1a565b6001600160a01b031660009081526020819052604090205490565b6102e3610d51565b6102e361046e366004611e87565b610dc5565b6102e3610481366004611f61565b610e32565b6005546001600160a01b03166103d4565b610297610e7a565b6102fc6104ad366004611f1a565b610e89565b6102e36104c0366004611f7e565b610f29565b6102fc600b5481565b6102fc60065481565b6102c06104e5366004611e5d565b610f41565b6009546103d4906001600160a01b031681565b6102c061050b366004611e5d565b610fdc565b6102e361051e366004611e87565b610fe9565b6102fc6110f3565b6102fc60085481565b6102e3610542366004611e87565b611175565b6102fc610555366004611fb6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102e361058e366004611e87565b6111e3565b6102fc6101f481565b6102e36105aa366004611f1a565b6111f1565b6102fc6105bd366004611e5d565b6112dc565b6102c06105d0366004611f1a565b600c6020526000908152604090205460ff1681565b6102fc6105f3366004611f1a565b61138e565b60606003805461060790611fe9565b80601f016020809104026020016040519081016040528092919081815260200182805461063390611fe9565b80156106805780601f1061065557610100808354040283529160200191610680565b820191906000526020600020905b81548152906001019060200180831161066357829003601f168201915b5050505050905090565b60006106973384846113db565b50600192915050565b6005546001600160a01b031633146106d35760405162461bcd60e51b81526004016106ca9061201e565b60405180910390fd5b6107d08111156106e257600080fd5b60078190556040518181527f45610d581145924dd7090a5017e5f2b1d6f42213bb2e95707ff86846bbfcb1ca906020015b60405180910390a150565b600a54600160a01b900460ff1615806107465750336000908152600c602052604090205460ff165b806107515750600254155b6107945760405162461bcd60e51b81526020600482015260146024820152731c195c9b5a5cdcda5bdb9959081a185c9d995cdd60621b60448201526064016106ca565b60095460405163bab7028f60e01b81523360048201526024810184905282151560448201526000916001600160a01b03169063bab7028f90606401602060405180830381600087803b1580156107e957600080fd5b505af11580156107fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108219190612053565b60405181815290915033907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a2505050565b600061086b848484611500565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156108f05760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016106ca565b61090485336108ff8685612082565b6113db565b60019150505b9392505050565b6005546001600160a01b0316331461093b5760405162461bcd60e51b81526004016106ca9061201e565b806001600160a01b0381166109625760405162461bcd60e51b81526004016106ca90612099565b6009546001600160a01b0316156109b25760405162461bcd60e51b815260206004820152601460248201527314dd1c985d1959de48185b1c9958591e481cd95d60621b60448201526064016106ca565b600980546001600160a01b0319166001600160a01b0384169081179091556040517fe70d79dad95c835bdd87e9cf4665651c9e5abb3b756e4fd2bf45f29c95c3aa4090600090a25050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916106979185906108ff9086906120c3565b600080610a4060025490565b11610a785760405162461bcd60e51b81526020600482015260086024820152674e6f20757365727360c01b60448201526064016106ca565b600254610a836110f3565b6001600160a01b038416600090815260208190526040902054610aa691906120db565b610ab091906120fa565b92915050565b6005546001600160a01b03163314610ae05760405162461bcd60e51b81526004016106ca9061201e565b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b610b1560006111e3565b565b6000826001600160a01b038116610b405760405162461bcd60e51b81526004016106ca90612099565b60008311610b845760405162461bcd60e51b815260206004820152601160248201527011195c1bdcda5d081d1bdbc81cdb585b1b607a1b60448201526064016106ca565b6000610b8e6110f3565b600954909150610bcd906001600160a01b037f00000000000000000000000062b9c7356a2dc64a1969e19c23e4f579f9810aa7811691339116876116d8565b60095460405163534a7e1d60e11b8152600481018690526001600160a01b039091169063a694fc3a90602401600060405180830381600087803b158015610c1357600080fd5b505af1158015610c27573d6000803e3d6000fd5b505050506000610c3660025490565b610c41575083610c62565b81610c4b60025490565b610c5590876120db565b610c5f91906120fa565b90505b610c6c8682611749565b6040518581526001600160a01b0387169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a395945050505050565b6005546001600160a01b03163314610cdf5760405162461bcd60e51b81526004016106ca9061201e565b806001600160a01b038116610d065760405162461bcd60e51b81526004016106ca90612099565b600a80546001600160a01b0319166001600160a01b0384169081179091556040517f38703bc9e5fbfe6a4ab89353328531fd2a9b9b0a4953c587bd38e559da9c29cf90600090a25050565b6005546001600160a01b03163314610d7b5760405162461bcd60e51b81526004016106ca9061201e565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b03163314610def5760405162461bcd60e51b81526004016106ca9061201e565b6096811115610dfd57600080fd5b60068190556040518181527f9d5ddc6fdb90a6647fe4981fdf08b45a5f9ef6d8ea960de27bef48fb4813259290602001610713565b6005546001600160a01b03163314610e5c5760405162461bcd60e51b81526004016106ca9061201e565b600a8054911515600160a01b0260ff60a01b19909216919091179055565b60606004805461060790611fe9565b6040516370a0823160e01b8152336004820152600090610ab09083906001600160a01b037f00000000000000000000000062b9c7356a2dc64a1969e19c23e4f579f9810aa716906370a082319060240160206040518083038186803b158015610ef157600080fd5b505afa158015610f05573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103bc9190612053565b610f3281610fe9565b610f3c838361071e565b505050565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610fc35760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106ca565b610fd233856108ff8685612082565b5060019392505050565b6000610697338484611500565b61271081111561102c5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a59081dd95a59da1d60921b60448201526064016106ca565b336000908152600c602052604090205460ff168061105457506005546001600160a01b031633145b6110925760405162461bcd60e51b815260206004820152600f60248201526e617574686f72697a6564206f6e6c7960881b60448201526064016106ca565b60095460405163c15f5f8d60e01b8152600481018390526001600160a01b039091169063c15f5f8d90602401600060405180830381600087803b1580156110d857600080fd5b505af11580156110ec573d6000803e3d6000fd5b5050505050565b600954604080516331c2482f60e21b815290516000926001600160a01b03169163c70920bc916004808301926020929190829003018186803b15801561113857600080fd5b505afa15801561114c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111709190612053565b905090565b6005546001600160a01b0316331461119f5760405162461bcd60e51b81526004016106ca9061201e565b6101f48111156111ae57600080fd5b60088190556040518181527fff2ad85db78b9bc0b02422fae65198371bd6bc7141d80682b7c048c83ee37a4290602001610713565b6111ee81600061071e565b50565b6005546001600160a01b0316331461121b5760405162461bcd60e51b81526004016106ca9061201e565b6001600160a01b0381166112805760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106ca565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b0381166113055760405162461bcd60e51b81526004016106ca90612099565b600061131084611828565b90506113466001600160a01b037f00000000000000000000000062b9c7356a2dc64a1969e19c23e4f579f9810aa7168683611a19565b6040518181526001600160a01b0386169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a3949350505050565b6000816001600160a01b0381166113b75760405162461bcd60e51b81526004016106ca90612099565b336000908152602081905260409020546113d29084906112dc565b91505b50919050565b6001600160a01b03831661143d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106ca565b6001600160a01b03821661149e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106ca565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166115645760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106ca565b6001600160a01b0382166115c65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106ca565b6001600160a01b0383166000908152602081905260409020548181101561163e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106ca565b6116488282612082565b6001600160a01b03808616600090815260208190526040808220939093559085168152908120805484929061167e9084906120c3565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516116ca91815260200190565b60405180910390a350505050565b6040516001600160a01b03808516602483015283166044820152606481018290526117439085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611a49565b50505050565b6001600160a01b03821661179f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106ca565b80600260008282546117b191906120c3565b90915550506001600160a01b038216600090815260208190526040812080548392906117de9084906120c3565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60008061183460025490565b1161183e57600080fd5b600061184960025490565b6118516110f3565b61185b90856120db565b61186591906120fa565b90506118713384611b1b565b60025461198757611880610b0b565b6009546001600160a01b0316632e1a7d4d6118996110f3565b6040518263ffffffff1660e01b81526004016118b791815260200190565b600060405180830381600087803b1580156118d157600080fd5b505af11580156118e5573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201527f00000000000000000000000062b9c7356a2dc64a1969e19c23e4f579f9810aa76001600160a01b031692506370a08231915060240160206040518083038186803b15801561194857600080fd5b505afa15801561195c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119809190612053565b91506113d5565b80915060006127106006548461199d91906120db565b6119a791906120fa565b90506119b38184612082565b600954604051632e1a7d4d60e01b8152600481018390529194506001600160a01b031690632e1a7d4d90602401600060405180830381600087803b1580156119fa57600080fd5b505af1158015611a0e573d6000803e3d6000fd5b505050505050919050565b6040516001600160a01b038316602482015260448101829052610f3c90849063a9059cbb60e01b9060640161170c565b6000611a9e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c6a9092919063ffffffff16565b805190915015610f3c5780806020019051810190611abc919061211c565b610f3c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106ca565b6001600160a01b038216611b7b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106ca565b6001600160a01b03821660009081526020819052604090205481811015611bef5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106ca565b611bf98282612082565b6001600160a01b03841660009081526020819052604081209190915560028054849290611c27908490612082565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016114f3565b6060611c798484600085611c81565b949350505050565b606082471015611ce25760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016106ca565b843b611d305760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ca565b600080866001600160a01b03168587604051611d4c9190612139565b60006040518083038185875af1925050503d8060008114611d89576040519150601f19603f3d011682016040523d82523d6000602084013e611d8e565b606091505b5091509150611d9e828286611da9565b979650505050505050565b60608315611db857508161090a565b825115611dc85782518084602001fd5b8160405162461bcd60e51b81526004016106ca9190611e0e565b60005b83811015611dfd578181015183820152602001611de5565b838111156117435750506000910152565b6020815260008251806020840152611e2d816040850160208701611de2565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611e5857600080fd5b919050565b60008060408385031215611e7057600080fd5b611e7983611e41565b946020939093013593505050565b600060208284031215611e9957600080fd5b5035919050565b80151581146111ee57600080fd5b60008060408385031215611ec157600080fd5b823591506020830135611ed381611ea0565b809150509250929050565b600080600060608486031215611ef357600080fd5b611efc84611e41565b9250611f0a60208501611e41565b9150604084013590509250925092565b600060208284031215611f2c57600080fd5b61090a82611e41565b60008060408385031215611f4857600080fd5b611f5183611e41565b91506020830135611ed381611ea0565b600060208284031215611f7357600080fd5b813561090a81611ea0565b600080600060608486031215611f9357600080fd5b833592506020840135611fa581611ea0565b929592945050506040919091013590565b60008060408385031215611fc957600080fd5b611fd283611e41565b9150611fe060208401611e41565b90509250929050565b600181811c90821680611ffd57607f821691505b602082108114156113d557634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561206557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156120945761209461206c565b500390565b60208082526010908201526f496e76616c696420616464726573732160801b604082015260600190565b600082198211156120d6576120d661206c565b500190565b60008160001904831182151516156120f5576120f561206c565b500290565b60008261211757634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561212e57600080fd5b815161090a81611ea0565b6000825161214b818460208701611de2565b919091019291505056fea2646970667358221220df4a9dcb8c3d3d855633cd669a2184e4704d2ead59ffd4047cd51d197779584664736f6c63430008090033

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

00000000000000000000000062b9c7356a2dc64a1969e19c23e4f579f9810aa7

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

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000062b9c7356a2dc64a1969e19c23e4f579f9810aa7


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.