ETH Price: $2,763.55 (+4.70%)

Token

Uniswap V2 ETH-AC Vault (UNI-ETH-AC-v)
 

Overview

Max Total Supply

578.649579053580792393 UNI-ETH-AC-v

Holders

16

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x1eB47C01...0a34e0d45
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
ACoconutVault

Compiler Version
v0.6.8+commit.0bbfe453

Optimization Enabled:
Yes with 250 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-10-01
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.6.8;


// 
/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

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

        return c;
    }

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

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

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

// 
/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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);
            }
        }
    }
}

// 
/**
 * @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 SafeMath for uint256;
    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).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _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");
        }
    }
}

// 
/*
 * @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 GSN 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 payable) {
        return msg.sender;
    }

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

// 
/**
 * @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 {
    using SafeMath for uint256;
    using Address for address;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view 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 {_setupDecimals} is
     * called.
     *
     * 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 returns (uint8) {
        return _decimals;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view 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);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        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].add(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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        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);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(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 = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(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);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is 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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

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

// 
/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

// 
/**
 * @notice Interface for controller.
 */
interface IController {
    
    function rewardToken() external returns (address);
}

// 
/**
 * @notice Interface for Strategies.
 */
interface IStrategy {

    /**
     * @dev Returns the token address that the strategy expects.
     */
    function want() external view returns (address);

    /**
     * @dev Returns the total amount of tokens deposited in this strategy.
     */
    function balanceOf() external view returns (uint256);

    /**
     * @dev Deposits the token to start earning.
     */
    function deposit() external;

    /**
     * @dev Withdraws partial funds from the strategy.
     */
    function withdraw(uint256 _amount) external;

    /**
     * @dev Withdraws all funds from the strategy.
     */
    function withdrawAll() external returns (uint256);
    
    /**
     * @dev Claims yield and convert it back to want token.
     */
    function harvest() external;
}

// 
/**
 * @notice YEarn's style vault which earns yield for a specific token.
 */
contract Vault is ERC20 {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    IERC20 public token;
    address public governance;
    address public strategist;
    address public strategy;

    event Deposited(address indexed user, address indexed token, uint256 amount, uint256 shareAmount);
    event Withdrawn(address indexed user, address indexed token, uint256 amount, uint256 shareAmount);

    constructor(string memory _name, string memory _symbol, address _token) public ERC20(_name, _symbol) {
        token = IERC20(_token);
        governance = msg.sender;
        strategist = msg.sender;
    }

    /**
     * @dev Returns the total balance in both vault and strategy.
     */
    function balance() public view returns (uint256) {
        return strategy == address(0x0) ? token.balanceOf(address(this)) :
            token.balanceOf(address(this)).add(IStrategy(strategy).balanceOf());
    }

    /**
     * @dev Updates the govenance address.
     */
    function setGovernance(address _governance) public {
        require(msg.sender == governance, "not governance");
        governance = _governance;
    }

    /**
     * @dev Upadtes the strategist address.
     */
    function setStrategist(address _strategist) public {
        require(msg.sender == governance, "not governance");
        strategist = _strategist;
    }

    /**
     * @dev Updates the active strategy of the vault.
     */
    function setStrategy(address _strategy) public {
        require(msg.sender == governance, "not governance");
        // This also ensures that _strategy must be a valid strategy contract.
        require(address(token) == IStrategy(_strategy).want(), "different token");

        // If the vault has an existing strategy, withdraw all funds from it.
        if (strategy != address(0x0)) {
            IStrategy(strategy).withdrawAll();
        }

        strategy = _strategy;
        // Starts earning once a new strategy is set.
        earn();
    }

    /**
     * @dev Starts earning and deposits all current balance into strategy.
     * Anyone can call this function to start earning.
     */
    function earn() public {
        if (strategy != address(0x0)) {
            uint256 _bal = token.balanceOf(address(this));
            token.safeTransfer(strategy, _bal);
            IStrategy(strategy).deposit();
        }
    }

    /**
     * @dev Harvest yield from the strategy if set. Only strategist or governance can
     * harvest from the strategy.
     */
    function harvest() public {
        require(msg.sender == strategist || msg.sender == governance, "not authorized");
        require(strategy != address(0x0), "no strategy");
        IStrategy(strategy).harvest();
    }

    /**
     * @dev Deposits all balance to the vault.
     */
    function depositAll() public virtual {
        deposit(token.balanceOf(msg.sender));
    }

    /**
     * @dev Deposit some balance to the vault.
     */
    function deposit(uint256 _amount) public virtual {
        require(_amount > 0, "zero amount");
        uint256 _pool = balance();
        uint256 _before = token.balanceOf(address(this));
        token.safeTransferFrom(msg.sender, address(this), _amount);
        uint256 _after = token.balanceOf(address(this));
        _amount = _after.sub(_before); // Additional check for deflationary tokens
        uint256 shares = 0;
        if (totalSupply() == 0) {
            shares = _amount;
        } else {
            shares = (_amount.mul(totalSupply())).div(_pool);
        }
        _mint(msg.sender, shares);

        emit Deposited(msg.sender, address(token), _amount, shares);
    }

    /**
     * @dev Withdraws all balance out of the vault.
     */
    function withdrawAll() public virtual {
        withdraw(balanceOf(msg.sender));
    }

    /**
     * @dev Withdraws some balance out of the vault.
     */
    function withdraw(uint256 _shares) public virtual {
        require(_shares > 0, "zero amount");
        uint256 r = (balance().mul(_shares)).div(totalSupply());
        _burn(msg.sender, _shares);

        // Check balance
        uint256 b = token.balanceOf(address(this));
        if (b < r) {
            uint256 _withdraw = r.sub(b);
            // Ideally this should not happen. Put here for extra safety.
            require(strategy != address(0x0), "no strategy");
            IStrategy(strategy).withdraw(_withdraw);
            uint256 _after = token.balanceOf(address(this));
            uint256 _diff = _after.sub(b);
            if (_diff < _withdraw) {
                r = b.add(_diff);
            }
        }

        token.safeTransfer(msg.sender, r);
        emit Withdrawn(msg.sender, address(token), r, _shares);
    }

    /**
     * @dev Used to salvage any token deposited into the vault by mistake.
     * @param _tokenAddress Token address to salvage.
     * @param _amount Amount of token to salvage.
     */
    function salvage(address _tokenAddress, uint256 _amount) public {
        require(msg.sender == strategist || msg.sender == governance, "not authorized");
        require(_tokenAddress != address(token), "cannot salvage");
        require(_amount > 0, "zero amount");
        IERC20(_tokenAddress).safeTransfer(governance, _amount);
    }

    /**
     * @dev Returns the number of vault token per share is worth.
     */
    function getPricePerFullShare() public view returns (uint256) {
        if (totalSupply() == 0) return 0;
        return balance().mul(1e18).div(totalSupply());
    }
}

// 
/**
 * @notice A vault with rewards.
 */
contract RewardedVault is Vault {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    address public controller;
    uint256 public constant DURATION = 7 days;      // Rewards are vested for a fixed duration of 7 days.
    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;
    mapping(address => uint256) public claims;

    event RewardAdded(address indexed rewardToken, uint256 rewardAmount);
    event RewardPaid(address indexed rewardToken, address indexed user, uint256 rewardAmount);

    constructor(string memory _name, string memory _symbol, address _controller, address _vaultToken) public Vault(_name, _symbol, _vaultToken) {
        require(_controller != address(0x0), "controller not set");

        controller = _controller;
    }

    /**
     * @dev Updates the controller address. Controller is responsible for reward distribution.
     */
    function setController(address _controller) public {
        require(msg.sender == governance, "not governance");
        require(_controller != address(0x0), "controller not set");

        controller = _controller;
    }

    modifier updateReward(address _account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (_account != address(0)) {
            rewards[_account] = earned(_account);
            userRewardPerTokenPaid[_account] = rewardPerTokenStored;
        }
        _;
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    function rewardPerToken() public view returns (uint256) {
        if (totalSupply() == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored.add(
                lastTimeRewardApplicable()
                    .sub(lastUpdateTime)
                    .mul(rewardRate)
                    .mul(1e18)
                    .div(totalSupply())
            );
    }

    function earned(address _account) public view returns (uint256) {
        return
            balanceOf(_account)
                .mul(rewardPerToken().sub(userRewardPerTokenPaid[_account]))
                .div(1e18)
                .add(rewards[_account]);
    }

    function deposit(uint256 _amount) public virtual override updateReward(msg.sender) {
        super.deposit(_amount);
    }

    function depositAll() public virtual override updateReward(msg.sender) {
        super.depositAll();
    }

    function withdraw(uint256 _shares) public virtual override updateReward(msg.sender) {
        super.withdraw(_shares);
    }

    function withdrawAll() public virtual override updateReward(msg.sender) {
        super.withdrawAll();
    }

    /**
     * @dev Withdraws all balance and all rewards from the vault.
     */
    function exit() external {
        withdrawAll();
        claimReward();
    }

    /**
     * @dev Claims all rewards from the vault.
     */
    function claimReward() public updateReward(msg.sender) returns (uint256) {
        uint256 reward = earned(msg.sender);
        if (reward > 0) {
            claims[msg.sender] = claims[msg.sender].add(reward);
            rewards[msg.sender] = 0;
            address rewardToken = IController(controller).rewardToken();
            IERC20(rewardToken).safeTransfer(msg.sender, reward);
            emit RewardPaid(rewardToken, msg.sender, reward);
        }

        return reward;
    }

    /**
     * @dev Notifies the vault that new reward is added. All rewards will be distributed linearly in 7 days.
     * @param _reward Amount of reward token to add.
     */
    function notifyRewardAmount(uint256 _reward) public updateReward(address(0)) {
        require(msg.sender == controller, "not controller");

        if (block.timestamp >= periodFinish) {
            rewardRate = _reward.div(DURATION);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = _reward.add(leftover).div(DURATION);
        }
        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(DURATION);

        emit RewardAdded(IController(controller).rewardToken(), _reward);
    }
}

// 
/**
 * @notice Interface for the migrator.
 */
interface IMigrator {

    /**
     * @dev What token is migrated from.
     */
    function want() external view returns (address);

    /**
     * @dev What token is migrated to.
     */
    function get() external view returns (address);

    /**
     * @dev Performs the token migration.
     */
    function migrate() external;
}

// 
/**
 * @notice A rewarded vault that could perform token migration.
 */
contract ACoconutVault is RewardedVault {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    // When the vault can be migrated.
    uint256 public migrationDue;
    // Whether the vault is migrated.
    bool public migrated;
    // The contract that performs the migration.
    address public migrator;

    constructor(string memory _name, string memory _symbol, address _controller, address _vaultToken, uint256 _migrationDue)
        public RewardedVault(_name, _symbol, _controller, _vaultToken) {
        migrationDue = _migrationDue;
    }

    /**
     * @dev Updates the migrator address.
     */
    function setMigrator(address _migrator) public {
        require(msg.sender == governance, "not governance");
        require(_migrator != address(0x0), "migrator not set");
        require(!migrated, "migrated");
        require(IMigrator(_migrator).want() == address(token), "different token");
        migrator = _migrator;
    }

    /**
     * @dev Updates the timestamp when the vault can be migrated. Cannot be updated after migration.
     */
    function setMigrationDue(uint256 _migrationDue) public {
        require(msg.sender == governance, "not governance");
        require(!migrated, "migrated");

        migrationDue = _migrationDue;
    }

    /**
     * @dev Performs the migration.
     */
    function migrate() public {
        require(msg.sender == governance, "not governance");
        require(block.timestamp >= migrationDue, "not due");
        require(!migrated, "migrated");
        require(migrator != address(0x0), "migrator not set");

        if (strategy != address(0x0)) {
            // Final harvest
            IStrategy(strategy).harvest();
            // Withdraws all tokens and sends them to migrator
            IStrategy(strategy).withdrawAll();
        }
        IERC20(token).safeTransfer(migrator, IERC20(token).balanceOf(address(this)));

        // Triggers the migration.
        IMigrator(migrator).migrate();
        migrated = true;

        // Important: Updates the token and clears the strategy!
        token = IERC20(IMigrator(migrator).get());
        // Clears the strategy as token is different.
        strategy = address(0x0);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_controller","type":"address"},{"internalType":"address","name":"_vaultToken","type":"address"},{"internalType":"uint256","name":"_migrationDue","type":"uint256"}],"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":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shareAmount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"name":"RewardPaid","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":"user","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shareAmount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"DURATION","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":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claims","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPricePerFullShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrationDue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"salvage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"setController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_migrationDue","type":"uint256"}],"name":"setMigrationDue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_migrator","type":"address"}],"name":"setMigrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"setStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","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":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600a556000600b553480156200001b57600080fd5b506040516200349b3803806200349b833981810160405260a08110156200004157600080fd5b81019080805160405193929190846401000000008211156200006257600080fd5b9083019060208201858111156200007857600080fd5b82516401000000008111828201881017156200009357600080fd5b82525081516020918201929091019080838360005b83811015620000c2578181015183820152602001620000a8565b50505050905090810190601f168015620000f05780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011457600080fd5b9083019060208201858111156200012a57600080fd5b82516401000000008111828201881017156200014557600080fd5b82525081516020918201929091019080838360005b83811015620001745781810151838201526020016200015a565b50505050905090810190601f168015620001a25780820380516001836020036101000a031916815260200191505b506040908152602082810151918301516060909301518751929550929350869186918691869185918591849184918491620001e49160039190850190620002c9565b508051620001fa906004906020840190620002c9565b505060058054601260ff1990911617610100600160a81b0319166101006001600160a01b03948516021790555060068054336001600160a01b03199182168117909255600780549091169091179055841615159150620002989050576040805162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9bdb1b195c881b9bdd081cd95d60721b604482015290519081900360640190fd5b50600980546001600160a01b0319166001600160a01b03929092169190911790555050601155506200036e92505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200030c57805160ff19168380011785556200033c565b828001600101855582156200033c579182015b828111156200033c5782518255916020019190600101906200031f565b506200034a9291506200034e565b5090565b6200036b91905b808211156200034a576000815560010162000355565b90565b61311d806200037e6000396000f3fe608060405234801561001057600080fd5b50600436106102ba5760003560e01c8063853828b611610182578063b88a802f116100e9578063dd62ed3e116100a2578063e9fad8ee1161007c578063e9fad8ee1461077e578063ebe2b12b14610786578063f77c47911461078e578063fc0c546a14610796576102ba565b8063dd62ed3e14610740578063de5f62681461076e578063df136d6514610776576102ba565b8063b88a802f146106d4578063c6788bdd146106dc578063c7b9d53014610702578063c8f33c9114610728578063cd3daf9d14610730578063d389800f14610738576102ba565b8063a8c62e761161013b578063a8c62e761461064d578063a9059cbb14610655578063ab033ea914610681578063b2a128d5146106a7578063b69ef8a8146106af578063b6b55f25146106b7576102ba565b8063853828b6146105bd5780638b876347146105c55780638fd3ab80146105eb57806392eefe9b146105f357806395d89b4114610619578063a457c2d714610621576102ba565b8063313ce567116102265780635aa6e675116101df5780635aa6e6751461056f57806370a082311461057757806377c7b8fc1461059d5780637b0a47ee146105a55780637cd07e47146105ad57806380faa57d146105b5576102ba565b8063313ce567146104ae57806333a100ca146104cc57806339509351146104f25780633c6b16ab1461051e5780633e3309cc1461053b5780634641257d14610567576102ba565b80631fe4a686116102785780631fe4a686146103ea57806323b872dd1461040e57806323cf3118146104445780632c678c641461046c5780632e1a7d4d146104745780632f78f18314610491576102ba565b80628cc262146102bf57806306fdde03146102f75780630700037d14610374578063095ea7b31461039a57806318160ddd146103da5780631be05289146103e2575b600080fd5b6102e5600480360360208110156102d557600080fd5b50356001600160a01b031661079e565b60408051918252519081900360200190f35b6102ff610824565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610339578181015183820152602001610321565b50505050905090810190601f1680156103665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102e56004803603602081101561038a57600080fd5b50356001600160a01b03166108bb565b6103c6600480360360408110156103b057600080fd5b506001600160a01b0381351690602001356108cd565b604080519115158252519081900360200190f35b6102e56108ea565b6102e56108f0565b6103f26108f7565b604080516001600160a01b039092168252519081900360200190f35b6103c66004803603606081101561042457600080fd5b506001600160a01b03813581169160208101359091169060400135610906565b61046a6004803603602081101561045a57600080fd5b50356001600160a01b0316610993565b005b6103c6610b6d565b61046a6004803603602081101561048a57600080fd5b5035610b76565b61046a600480360360208110156104a757600080fd5b5035610bde565b6104b6610c76565b6040805160ff9092168252519081900360200190f35b61046a600480360360208110156104e257600080fd5b50356001600160a01b0316610c7f565b6103c66004803603604081101561050857600080fd5b506001600160a01b038135169060200135610e41565b61046a6004803603602081101561053457600080fd5b5035610e95565b61046a6004803603604081101561055157600080fd5b506001600160a01b038135169060200135611085565b61046a6111a6565b6103f26112c0565b6102e56004803603602081101561058d57600080fd5b50356001600160a01b03166112cf565b6102e56112ea565b6102e5611324565b6103f261132a565b6102e561133e565b61046a61134c565b6102e5600480360360208110156105db57600080fd5b50356001600160a01b03166113af565b61046a6113c1565b61046a6004803603602081101561060957600080fd5b50356001600160a01b03166117a4565b6102ff611866565b6103c66004803603604081101561063757600080fd5b506001600160a01b0381351690602001356118c7565b6103f2611935565b6103c66004803603604081101561066b57600080fd5b506001600160a01b038135169060200135611944565b61046a6004803603602081101561069757600080fd5b50356001600160a01b0316611958565b6102e56119ca565b6102e56119d0565b61046a600480360360208110156106cd57600080fd5b5035611b62565b6102e5611bc6565b6102e5600480360360208110156106f257600080fd5b50356001600160a01b0316611d49565b61046a6004803603602081101561071857600080fd5b50356001600160a01b0316611d5b565b6102e5611dcd565b6102e5611dd3565b61046a611e27565b6102e56004803603604081101561075657600080fd5b506001600160a01b0381358116916020013516611f4b565b61046a611f76565b6102e5611fd9565b61046a611fdf565b6102e5611fef565b6103f2611ff5565b6103f2612004565b6001600160a01b0381166000908152600f6020908152604080832054600e90925282205461081e919061081290670de0b6b3a764000090610806906107f1906107e5611dd3565b9063ffffffff61201816565b6107fa886112cf565b9063ffffffff61206116565b9063ffffffff6120ba16565b9063ffffffff6120fc16565b92915050565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108b05780601f10610885576101008083540402835291602001916108b0565b820191906000526020600020905b81548152906001019060200180831161089357829003601f168201915b505050505090505b90565b600f6020526000908152604090205481565b60006108e16108da612156565b848461215a565b50600192915050565b60025490565b62093a8081565b6007546001600160a01b031681565b6000610913848484612246565b6109898461091f612156565b61098485604051806060016040528060288152602001613007602891396001600160a01b038a1660009081526001602052604081209061095d612156565b6001600160a01b03168152602081019190915260400160002054919063ffffffff6123ad16565b61215a565b5060019392505050565b6006546001600160a01b031633146109e3576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b038116610a31576040805162461bcd60e51b815260206004820152601060248201526f1b5a59dc985d1bdc881b9bdd081cd95d60821b604482015290519081900360640190fd5b60125460ff1615610a74576040805162461bcd60e51b81526020600482015260086024820152671b5a59dc985d195960c21b604482015290519081900360640190fd5b600560019054906101000a90046001600160a01b03166001600160a01b0316816001600160a01b0316631f1fcd516040518163ffffffff1660e01b815260040160206040518083038186803b158015610acc57600080fd5b505afa158015610ae0573d6000803e3d6000fd5b505050506040513d6020811015610af657600080fd5b50516001600160a01b031614610b45576040805162461bcd60e51b815260206004820152600f60248201526e3234b33332b932b73a103a37b5b2b760891b604482015290519081900360640190fd5b601280546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60125460ff1681565b33610b7f611dd3565b600d55610b8a61133e565b600c556001600160a01b03811615610bd157610ba58161079e565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b610bda82612444565b5050565b6006546001600160a01b03163314610c2e576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b60125460ff1615610c71576040805162461bcd60e51b81526020600482015260086024820152671b5a59dc985d195960c21b604482015290519081900360640190fd5b601155565b60055460ff1690565b6006546001600160a01b03163314610ccf576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b806001600160a01b0316631f1fcd516040518163ffffffff1660e01b815260040160206040518083038186803b158015610d0857600080fd5b505afa158015610d1c573d6000803e3d6000fd5b505050506040513d6020811015610d3257600080fd5b505160055461010090046001600160a01b03908116911614610d8d576040805162461bcd60e51b815260206004820152600f60248201526e3234b33332b932b73a103a37b5b2b760891b604482015290519081900360640190fd5b6008546001600160a01b031615610e1b57600860009054906101000a90046001600160a01b03166001600160a01b031663853828b66040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610dee57600080fd5b505af1158015610e02573d6000803e3d6000fd5b505050506040513d6020811015610e1857600080fd5b50505b600880546001600160a01b0319166001600160a01b038316179055610e3e611e27565b50565b60006108e1610e4e612156565b846109848560016000610e5f612156565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6120fc16565b6000610e9f611dd3565b600d55610eaa61133e565b600c556001600160a01b03811615610ef157610ec58161079e565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b6009546001600160a01b03163314610f41576040805162461bcd60e51b815260206004820152600e60248201526d3737ba1031b7b73a3937b63632b960911b604482015290519081900360640190fd5b600a544210610f6557610f5d8262093a8063ffffffff6120ba16565b600b55610fb3565b600a54600090610f7b904263ffffffff61201816565b90506000610f94600b548361206190919063ffffffff16565b9050610fad62093a80610806868463ffffffff6120fc16565b600b5550505b42600c819055610fcc9062093a8063ffffffff6120fc16565b600a556009546040805163f7c618c160e01b815290516001600160a01b039092169163f7c618c1916004808201926020929091908290030181600087803b15801561101657600080fd5b505af115801561102a573d6000803e3d6000fd5b505050506040513d602081101561104057600080fd5b50516040805184815290516001600160a01b03909216917fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e299181900360200190a25050565b6007546001600160a01b03163314806110a857506006546001600160a01b031633145b6110ea576040805162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6005546001600160a01b03838116610100909204161415611143576040805162461bcd60e51b815260206004820152600e60248201526d63616e6e6f742073616c7661676560901b604482015290519081900360640190fd5b60008111611186576040805162461bcd60e51b815260206004820152600b60248201526a1e995c9bc8185b5bdd5b9d60aa1b604482015290519081900360640190fd5b600654610bda906001600160a01b0384811691168363ffffffff61271716565b6007546001600160a01b03163314806111c957506006546001600160a01b031633145b61120b576040805162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6008546001600160a01b0316611256576040805162461bcd60e51b815260206004820152600b60248201526a6e6f20737472617465677960a81b604482015290519081900360640190fd5b600860009054906101000a90046001600160a01b03166001600160a01b0316634641257d6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156112a657600080fd5b505af11580156112ba573d6000803e3d6000fd5b50505050565b6006546001600160a01b031681565b6001600160a01b031660009081526020819052604090205490565b60006112f46108ea565b611300575060006108b8565b61131f61130b6108ea565b610806670de0b6b3a76400006107fa6119d0565b905090565b600b5481565b60125461010090046001600160a01b031681565b600061131f42600a5461276e565b33611355611dd3565b600d5561136061133e565b600c556001600160a01b038116156113a75761137b8161079e565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b610e3e612784565b600e6020526000908152604090205481565b6006546001600160a01b03163314611411576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b601154421015611452576040805162461bcd60e51b81526020600482015260076024820152666e6f742064756560c81b604482015290519081900360640190fd5b60125460ff1615611495576040805162461bcd60e51b81526020600482015260086024820152671b5a59dc985d195960c21b604482015290519081900360640190fd5b60125461010090046001600160a01b03166114ea576040805162461bcd60e51b815260206004820152601060248201526f1b5a59dc985d1bdc881b9bdd081cd95d60821b604482015290519081900360640190fd5b6008546001600160a01b0316156115e057600860009054906101000a90046001600160a01b03166001600160a01b0316634641257d6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561154b57600080fd5b505af115801561155f573d6000803e3d6000fd5b50505050600860009054906101000a90046001600160a01b03166001600160a01b031663853828b66040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156115b357600080fd5b505af11580156115c7573d6000803e3d6000fd5b505050506040513d60208110156115dd57600080fd5b50505b601254600554604080516370a0823160e01b81523060048201529051611681936001600160a01b03610100918290048116949190910416916370a08231916024808301926020929190829003018186803b15801561163d57600080fd5b505afa158015611651573d6000803e3d6000fd5b505050506040513d602081101561166757600080fd5b505160055461010090046001600160a01b03169190612717565b601260019054906101000a90046001600160a01b03166001600160a01b0316638fd3ab806040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156116d157600080fd5b505af11580156116e5573d6000803e3d6000fd5b505060128054600160ff19909116179081905560408051631b53398f60e21b815290516101009092046001600160a01b03169350636d4ce63c9250600480820192602092909190829003018186803b15801561174057600080fd5b505afa158015611754573d6000803e3d6000fd5b505050506040513d602081101561176a57600080fd5b5051600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055600880546001600160a01b0319169055565b6006546001600160a01b031633146117f4576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b038116611844576040805162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9bdb1b195c881b9bdd081cd95d60721b604482015290519081900360640190fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108b05780601f10610885576101008083540402835291602001916108b0565b60006108e16118d4612156565b84610984856040518060600160405280602581526020016130c360259139600160006118fe612156565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6123ad16565b6008546001600160a01b031681565b60006108e1611951612156565b8484612246565b6006546001600160a01b031633146119a8576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60115481565b6008546000906001600160a01b031615611ae2576008546040805163722713f760e01b81529051611add926001600160a01b03169163722713f7916004808301926020929190829003018186803b158015611a2a57600080fd5b505afa158015611a3e573d6000803e3d6000fd5b505050506040513d6020811015611a5457600080fd5b5051600554604080516370a0823160e01b815230600482015290516101009092046001600160a01b0316916370a0823191602480820192602092909190829003018186803b158015611aa557600080fd5b505afa158015611ab9573d6000803e3d6000fd5b505050506040513d6020811015611acf57600080fd5b50519063ffffffff6120fc16565b61131f565b600554604080516370a0823160e01b815230600482015290516101009092046001600160a01b0316916370a0823191602480820192602092909190829003018186803b158015611b3157600080fd5b505afa158015611b45573d6000803e3d6000fd5b505050506040513d6020811015611b5b57600080fd5b5051905090565b33611b6b611dd3565b600d55611b7661133e565b600c556001600160a01b03811615611bbd57611b918161079e565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b610bda82612795565b600033611bd1611dd3565b600d55611bdc61133e565b600c556001600160a01b03811615611c2357611bf78161079e565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b6000611c2e3361079e565b90508015611d435733600090815260106020526040902054611c56908263ffffffff6120fc16565b33600090815260106020908152604080832093909355600f8152828220829055600954835163f7c618c160e01b8152935192936001600160a01b039091169263f7c618c19260048084019391929182900301818787803b158015611cb957600080fd5b505af1158015611ccd573d6000803e3d6000fd5b505050506040513d6020811015611ce357600080fd5b50519050611d016001600160a01b038216338463ffffffff61271716565b60408051838152905133916001600160a01b038416917f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e9181900360200190a3505b91505090565b60106020526000908152604090205481565b6006546001600160a01b03163314611dab576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b600c5481565b6000611ddd6108ea565b611dea5750600d546108b8565b61131f611e18611df86108ea565b610806670de0b6b3a76400006107fa600b546107fa600c546107e561133e565b600d549063ffffffff6120fc16565b6008546001600160a01b031615611f4957600554604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611e8857600080fd5b505afa158015611e9c573d6000803e3d6000fd5b505050506040513d6020811015611eb257600080fd5b5051600854600554919250611edf9161010090046001600160a01b0390811691168363ffffffff61271716565b600860009054906101000a90046001600160a01b03166001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611f2f57600080fd5b505af1158015611f43573d6000803e3d6000fd5b50505050505b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b33611f7f611dd3565b600d55611f8a61133e565b600c556001600160a01b03811615611fd157611fa58161079e565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b610e3e6129a5565b600d5481565b611fe761134c565b610e3e611bc6565b600a5481565b6009546001600160a01b031681565b60055461010090046001600160a01b031681565b600061205a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506123ad565b9392505050565b6000826120705750600061081e565b8282028284828161207d57fe5b041461205a5760405162461bcd60e51b8152600401808060200182810382526021815260200180612fe66021913960400191505060405180910390fd5b600061205a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612a27565b60008282018381101561205a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b6001600160a01b03831661219f5760405162461bcd60e51b81526004018080602001828103825260248152602001806130756024913960400191505060405180910390fd5b6001600160a01b0382166121e45760405162461bcd60e51b8152600401808060200182810382526022815260200180612f9e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661228b5760405162461bcd60e51b81526004018080602001828103825260258152602001806130506025913960400191505060405180910390fd5b6001600160a01b0382166122d05760405162461bcd60e51b8152600401808060200182810382526023815260200180612f596023913960400191505060405180910390fd5b6122db838383612769565b61231e81604051806060016040528060268152602001612fc0602691396001600160a01b038616600090815260208190526040902054919063ffffffff6123ad16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054612353908263ffffffff6120fc16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561243c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156124015781810151838201526020016123e9565b50505050905090810190601f16801561242e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008111612487576040805162461bcd60e51b815260206004820152600b60248201526a1e995c9bc8185b5bdd5b9d60aa1b604482015290519081900360640190fd5b60006124a06124946108ea565b610806846107fa6119d0565b90506124ac3383612a8c565b600554604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156124fc57600080fd5b505afa158015612510573d6000803e3d6000fd5b505050506040513d602081101561252657600080fd5b50519050818110156126a9576000612544838363ffffffff61201816565b6008549091506001600160a01b0316612592576040805162461bcd60e51b815260206004820152600b60248201526a6e6f20737472617465677960a81b604482015290519081900360640190fd5b60085460408051632e1a7d4d60e01b81526004810184905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b1580156125df57600080fd5b505af11580156125f3573d6000803e3d6000fd5b5050600554604080516370a0823160e01b81523060048201529051600094506101009092046001600160a01b031692506370a08231916024808301926020929190829003018186803b15801561264857600080fd5b505afa15801561265c573d6000803e3d6000fd5b505050506040513d602081101561267257600080fd5b505190506000612688828563ffffffff61201816565b9050828110156126a5576126a2848263ffffffff6120fc16565b94505b5050505b6005546126c59061010090046001600160a01b03163384612717565b600554604080518481526020810186905281516101009093046001600160a01b03169233927f91fb9d98b786c57d74c099ccd2beca1739e9f6a81fb49001ca465c4b7591bbe2928290030190a3505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612769908490612b94565b505050565b600081831061277d578161205a565b5090919050565b611f49612790336112cf565b610b76565b600081116127d8576040805162461bcd60e51b815260206004820152600b60248201526a1e995c9bc8185b5bdd5b9d60aa1b604482015290519081900360640190fd5b60006127e26119d0565b600554604080516370a0823160e01b815230600482015290519293506000926101009092046001600160a01b0316916370a0823191602480820192602092909190829003018186803b15801561283757600080fd5b505afa15801561284b573d6000803e3d6000fd5b505050506040513d602081101561286157600080fd5b50516005549091506128839061010090046001600160a01b0316333086612c45565b600554604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156128d357600080fd5b505afa1580156128e7573d6000803e3d6000fd5b505050506040513d60208110156128fd57600080fd5b50519050612911818363ffffffff61201816565b9350600061291d6108ea565b612928575083612947565b612944846108066129376108ea565b889063ffffffff61206116565b90505b6129513382612c9f565b600554604080518781526020810184905281516101009093046001600160a01b03169233927ff5681f9d0db1b911ac18ee83d515a1cf1051853a9eae418316a2fdf7dea427c5928290030190a35050505050565b600554604080516370a0823160e01b81523360048201529051611f499261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156129f657600080fd5b505afa158015612a0a573d6000803e3d6000fd5b505050506040513d6020811015612a2057600080fd5b5051611b62565b60008183612a765760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156124015781810151838201526020016123e9565b506000838581612a8257fe5b0495945050505050565b6001600160a01b038216612ad15760405162461bcd60e51b815260040180806020018281038252602181526020018061302f6021913960400191505060405180910390fd5b612add82600083612769565b612b2081604051806060016040528060228152602001612f7c602291396001600160a01b038516600090815260208190526040902054919063ffffffff6123ad16565b6001600160a01b038316600090815260208190526040902055600254612b4c908263ffffffff61201816565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6060612be9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612d9b9092919063ffffffff16565b80519091501561276957808060200190516020811015612c0857600080fd5b50516127695760405162461bcd60e51b815260040180806020018281038252602a815260200180613099602a913960400191505060405180910390fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526112ba908590612b94565b6001600160a01b038216612cfa576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b612d0660008383612769565b600254612d19908263ffffffff6120fc16565b6002556001600160a01b038216600090815260208190526040902054612d45908263ffffffff6120fc16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6060612daa8484600085612db2565b949350505050565b6060612dbd85612f1f565b612e0e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612e4d5780518252601f199092019160209182019101612e2e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612eaf576040519150601f19603f3d011682016040523d82523d6000602084013e612eb4565b606091505b50915091508115612ec8579150612daa9050565b805115612ed85780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156124015781810151838201526020016123e9565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612daa57505015159291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212202e62b015e68b523d66f5534cff4a5dabdc32a93311ac9fd8dad02dfc796c13b464736f6c6343000608003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000fa25316494560fbec71f147adcd6be34c7ab7ae500000000000000000000000049849c98ae39fff122806c06791fa73784fb3675000000000000000000000000000000000000000000000000000000005f88e997000000000000000000000000000000000000000000000000000000000000001841436f636f6e757420425443205661756c7420546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000066163425443760000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102ba5760003560e01c8063853828b611610182578063b88a802f116100e9578063dd62ed3e116100a2578063e9fad8ee1161007c578063e9fad8ee1461077e578063ebe2b12b14610786578063f77c47911461078e578063fc0c546a14610796576102ba565b8063dd62ed3e14610740578063de5f62681461076e578063df136d6514610776576102ba565b8063b88a802f146106d4578063c6788bdd146106dc578063c7b9d53014610702578063c8f33c9114610728578063cd3daf9d14610730578063d389800f14610738576102ba565b8063a8c62e761161013b578063a8c62e761461064d578063a9059cbb14610655578063ab033ea914610681578063b2a128d5146106a7578063b69ef8a8146106af578063b6b55f25146106b7576102ba565b8063853828b6146105bd5780638b876347146105c55780638fd3ab80146105eb57806392eefe9b146105f357806395d89b4114610619578063a457c2d714610621576102ba565b8063313ce567116102265780635aa6e675116101df5780635aa6e6751461056f57806370a082311461057757806377c7b8fc1461059d5780637b0a47ee146105a55780637cd07e47146105ad57806380faa57d146105b5576102ba565b8063313ce567146104ae57806333a100ca146104cc57806339509351146104f25780633c6b16ab1461051e5780633e3309cc1461053b5780634641257d14610567576102ba565b80631fe4a686116102785780631fe4a686146103ea57806323b872dd1461040e57806323cf3118146104445780632c678c641461046c5780632e1a7d4d146104745780632f78f18314610491576102ba565b80628cc262146102bf57806306fdde03146102f75780630700037d14610374578063095ea7b31461039a57806318160ddd146103da5780631be05289146103e2575b600080fd5b6102e5600480360360208110156102d557600080fd5b50356001600160a01b031661079e565b60408051918252519081900360200190f35b6102ff610824565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610339578181015183820152602001610321565b50505050905090810190601f1680156103665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102e56004803603602081101561038a57600080fd5b50356001600160a01b03166108bb565b6103c6600480360360408110156103b057600080fd5b506001600160a01b0381351690602001356108cd565b604080519115158252519081900360200190f35b6102e56108ea565b6102e56108f0565b6103f26108f7565b604080516001600160a01b039092168252519081900360200190f35b6103c66004803603606081101561042457600080fd5b506001600160a01b03813581169160208101359091169060400135610906565b61046a6004803603602081101561045a57600080fd5b50356001600160a01b0316610993565b005b6103c6610b6d565b61046a6004803603602081101561048a57600080fd5b5035610b76565b61046a600480360360208110156104a757600080fd5b5035610bde565b6104b6610c76565b6040805160ff9092168252519081900360200190f35b61046a600480360360208110156104e257600080fd5b50356001600160a01b0316610c7f565b6103c66004803603604081101561050857600080fd5b506001600160a01b038135169060200135610e41565b61046a6004803603602081101561053457600080fd5b5035610e95565b61046a6004803603604081101561055157600080fd5b506001600160a01b038135169060200135611085565b61046a6111a6565b6103f26112c0565b6102e56004803603602081101561058d57600080fd5b50356001600160a01b03166112cf565b6102e56112ea565b6102e5611324565b6103f261132a565b6102e561133e565b61046a61134c565b6102e5600480360360208110156105db57600080fd5b50356001600160a01b03166113af565b61046a6113c1565b61046a6004803603602081101561060957600080fd5b50356001600160a01b03166117a4565b6102ff611866565b6103c66004803603604081101561063757600080fd5b506001600160a01b0381351690602001356118c7565b6103f2611935565b6103c66004803603604081101561066b57600080fd5b506001600160a01b038135169060200135611944565b61046a6004803603602081101561069757600080fd5b50356001600160a01b0316611958565b6102e56119ca565b6102e56119d0565b61046a600480360360208110156106cd57600080fd5b5035611b62565b6102e5611bc6565b6102e5600480360360208110156106f257600080fd5b50356001600160a01b0316611d49565b61046a6004803603602081101561071857600080fd5b50356001600160a01b0316611d5b565b6102e5611dcd565b6102e5611dd3565b61046a611e27565b6102e56004803603604081101561075657600080fd5b506001600160a01b0381358116916020013516611f4b565b61046a611f76565b6102e5611fd9565b61046a611fdf565b6102e5611fef565b6103f2611ff5565b6103f2612004565b6001600160a01b0381166000908152600f6020908152604080832054600e90925282205461081e919061081290670de0b6b3a764000090610806906107f1906107e5611dd3565b9063ffffffff61201816565b6107fa886112cf565b9063ffffffff61206116565b9063ffffffff6120ba16565b9063ffffffff6120fc16565b92915050565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108b05780601f10610885576101008083540402835291602001916108b0565b820191906000526020600020905b81548152906001019060200180831161089357829003601f168201915b505050505090505b90565b600f6020526000908152604090205481565b60006108e16108da612156565b848461215a565b50600192915050565b60025490565b62093a8081565b6007546001600160a01b031681565b6000610913848484612246565b6109898461091f612156565b61098485604051806060016040528060288152602001613007602891396001600160a01b038a1660009081526001602052604081209061095d612156565b6001600160a01b03168152602081019190915260400160002054919063ffffffff6123ad16565b61215a565b5060019392505050565b6006546001600160a01b031633146109e3576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b038116610a31576040805162461bcd60e51b815260206004820152601060248201526f1b5a59dc985d1bdc881b9bdd081cd95d60821b604482015290519081900360640190fd5b60125460ff1615610a74576040805162461bcd60e51b81526020600482015260086024820152671b5a59dc985d195960c21b604482015290519081900360640190fd5b600560019054906101000a90046001600160a01b03166001600160a01b0316816001600160a01b0316631f1fcd516040518163ffffffff1660e01b815260040160206040518083038186803b158015610acc57600080fd5b505afa158015610ae0573d6000803e3d6000fd5b505050506040513d6020811015610af657600080fd5b50516001600160a01b031614610b45576040805162461bcd60e51b815260206004820152600f60248201526e3234b33332b932b73a103a37b5b2b760891b604482015290519081900360640190fd5b601280546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60125460ff1681565b33610b7f611dd3565b600d55610b8a61133e565b600c556001600160a01b03811615610bd157610ba58161079e565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b610bda82612444565b5050565b6006546001600160a01b03163314610c2e576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b60125460ff1615610c71576040805162461bcd60e51b81526020600482015260086024820152671b5a59dc985d195960c21b604482015290519081900360640190fd5b601155565b60055460ff1690565b6006546001600160a01b03163314610ccf576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b806001600160a01b0316631f1fcd516040518163ffffffff1660e01b815260040160206040518083038186803b158015610d0857600080fd5b505afa158015610d1c573d6000803e3d6000fd5b505050506040513d6020811015610d3257600080fd5b505160055461010090046001600160a01b03908116911614610d8d576040805162461bcd60e51b815260206004820152600f60248201526e3234b33332b932b73a103a37b5b2b760891b604482015290519081900360640190fd5b6008546001600160a01b031615610e1b57600860009054906101000a90046001600160a01b03166001600160a01b031663853828b66040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610dee57600080fd5b505af1158015610e02573d6000803e3d6000fd5b505050506040513d6020811015610e1857600080fd5b50505b600880546001600160a01b0319166001600160a01b038316179055610e3e611e27565b50565b60006108e1610e4e612156565b846109848560016000610e5f612156565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6120fc16565b6000610e9f611dd3565b600d55610eaa61133e565b600c556001600160a01b03811615610ef157610ec58161079e565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b6009546001600160a01b03163314610f41576040805162461bcd60e51b815260206004820152600e60248201526d3737ba1031b7b73a3937b63632b960911b604482015290519081900360640190fd5b600a544210610f6557610f5d8262093a8063ffffffff6120ba16565b600b55610fb3565b600a54600090610f7b904263ffffffff61201816565b90506000610f94600b548361206190919063ffffffff16565b9050610fad62093a80610806868463ffffffff6120fc16565b600b5550505b42600c819055610fcc9062093a8063ffffffff6120fc16565b600a556009546040805163f7c618c160e01b815290516001600160a01b039092169163f7c618c1916004808201926020929091908290030181600087803b15801561101657600080fd5b505af115801561102a573d6000803e3d6000fd5b505050506040513d602081101561104057600080fd5b50516040805184815290516001600160a01b03909216917fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e299181900360200190a25050565b6007546001600160a01b03163314806110a857506006546001600160a01b031633145b6110ea576040805162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6005546001600160a01b03838116610100909204161415611143576040805162461bcd60e51b815260206004820152600e60248201526d63616e6e6f742073616c7661676560901b604482015290519081900360640190fd5b60008111611186576040805162461bcd60e51b815260206004820152600b60248201526a1e995c9bc8185b5bdd5b9d60aa1b604482015290519081900360640190fd5b600654610bda906001600160a01b0384811691168363ffffffff61271716565b6007546001600160a01b03163314806111c957506006546001600160a01b031633145b61120b576040805162461bcd60e51b815260206004820152600e60248201526d1b9bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6008546001600160a01b0316611256576040805162461bcd60e51b815260206004820152600b60248201526a6e6f20737472617465677960a81b604482015290519081900360640190fd5b600860009054906101000a90046001600160a01b03166001600160a01b0316634641257d6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156112a657600080fd5b505af11580156112ba573d6000803e3d6000fd5b50505050565b6006546001600160a01b031681565b6001600160a01b031660009081526020819052604090205490565b60006112f46108ea565b611300575060006108b8565b61131f61130b6108ea565b610806670de0b6b3a76400006107fa6119d0565b905090565b600b5481565b60125461010090046001600160a01b031681565b600061131f42600a5461276e565b33611355611dd3565b600d5561136061133e565b600c556001600160a01b038116156113a75761137b8161079e565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b610e3e612784565b600e6020526000908152604090205481565b6006546001600160a01b03163314611411576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b601154421015611452576040805162461bcd60e51b81526020600482015260076024820152666e6f742064756560c81b604482015290519081900360640190fd5b60125460ff1615611495576040805162461bcd60e51b81526020600482015260086024820152671b5a59dc985d195960c21b604482015290519081900360640190fd5b60125461010090046001600160a01b03166114ea576040805162461bcd60e51b815260206004820152601060248201526f1b5a59dc985d1bdc881b9bdd081cd95d60821b604482015290519081900360640190fd5b6008546001600160a01b0316156115e057600860009054906101000a90046001600160a01b03166001600160a01b0316634641257d6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561154b57600080fd5b505af115801561155f573d6000803e3d6000fd5b50505050600860009054906101000a90046001600160a01b03166001600160a01b031663853828b66040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156115b357600080fd5b505af11580156115c7573d6000803e3d6000fd5b505050506040513d60208110156115dd57600080fd5b50505b601254600554604080516370a0823160e01b81523060048201529051611681936001600160a01b03610100918290048116949190910416916370a08231916024808301926020929190829003018186803b15801561163d57600080fd5b505afa158015611651573d6000803e3d6000fd5b505050506040513d602081101561166757600080fd5b505160055461010090046001600160a01b03169190612717565b601260019054906101000a90046001600160a01b03166001600160a01b0316638fd3ab806040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156116d157600080fd5b505af11580156116e5573d6000803e3d6000fd5b505060128054600160ff19909116179081905560408051631b53398f60e21b815290516101009092046001600160a01b03169350636d4ce63c9250600480820192602092909190829003018186803b15801561174057600080fd5b505afa158015611754573d6000803e3d6000fd5b505050506040513d602081101561176a57600080fd5b5051600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055600880546001600160a01b0319169055565b6006546001600160a01b031633146117f4576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b038116611844576040805162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9bdb1b195c881b9bdd081cd95d60721b604482015290519081900360640190fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108b05780601f10610885576101008083540402835291602001916108b0565b60006108e16118d4612156565b84610984856040518060600160405280602581526020016130c360259139600160006118fe612156565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6123ad16565b6008546001600160a01b031681565b60006108e1611951612156565b8484612246565b6006546001600160a01b031633146119a8576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60115481565b6008546000906001600160a01b031615611ae2576008546040805163722713f760e01b81529051611add926001600160a01b03169163722713f7916004808301926020929190829003018186803b158015611a2a57600080fd5b505afa158015611a3e573d6000803e3d6000fd5b505050506040513d6020811015611a5457600080fd5b5051600554604080516370a0823160e01b815230600482015290516101009092046001600160a01b0316916370a0823191602480820192602092909190829003018186803b158015611aa557600080fd5b505afa158015611ab9573d6000803e3d6000fd5b505050506040513d6020811015611acf57600080fd5b50519063ffffffff6120fc16565b61131f565b600554604080516370a0823160e01b815230600482015290516101009092046001600160a01b0316916370a0823191602480820192602092909190829003018186803b158015611b3157600080fd5b505afa158015611b45573d6000803e3d6000fd5b505050506040513d6020811015611b5b57600080fd5b5051905090565b33611b6b611dd3565b600d55611b7661133e565b600c556001600160a01b03811615611bbd57611b918161079e565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b610bda82612795565b600033611bd1611dd3565b600d55611bdc61133e565b600c556001600160a01b03811615611c2357611bf78161079e565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b6000611c2e3361079e565b90508015611d435733600090815260106020526040902054611c56908263ffffffff6120fc16565b33600090815260106020908152604080832093909355600f8152828220829055600954835163f7c618c160e01b8152935192936001600160a01b039091169263f7c618c19260048084019391929182900301818787803b158015611cb957600080fd5b505af1158015611ccd573d6000803e3d6000fd5b505050506040513d6020811015611ce357600080fd5b50519050611d016001600160a01b038216338463ffffffff61271716565b60408051838152905133916001600160a01b038416917f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e9181900360200190a3505b91505090565b60106020526000908152604090205481565b6006546001600160a01b03163314611dab576040805162461bcd60e51b815260206004820152600e60248201526d6e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b600c5481565b6000611ddd6108ea565b611dea5750600d546108b8565b61131f611e18611df86108ea565b610806670de0b6b3a76400006107fa600b546107fa600c546107e561133e565b600d549063ffffffff6120fc16565b6008546001600160a01b031615611f4957600554604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611e8857600080fd5b505afa158015611e9c573d6000803e3d6000fd5b505050506040513d6020811015611eb257600080fd5b5051600854600554919250611edf9161010090046001600160a01b0390811691168363ffffffff61271716565b600860009054906101000a90046001600160a01b03166001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611f2f57600080fd5b505af1158015611f43573d6000803e3d6000fd5b50505050505b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b33611f7f611dd3565b600d55611f8a61133e565b600c556001600160a01b03811615611fd157611fa58161079e565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b610e3e6129a5565b600d5481565b611fe761134c565b610e3e611bc6565b600a5481565b6009546001600160a01b031681565b60055461010090046001600160a01b031681565b600061205a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506123ad565b9392505050565b6000826120705750600061081e565b8282028284828161207d57fe5b041461205a5760405162461bcd60e51b8152600401808060200182810382526021815260200180612fe66021913960400191505060405180910390fd5b600061205a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612a27565b60008282018381101561205a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b6001600160a01b03831661219f5760405162461bcd60e51b81526004018080602001828103825260248152602001806130756024913960400191505060405180910390fd5b6001600160a01b0382166121e45760405162461bcd60e51b8152600401808060200182810382526022815260200180612f9e6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b03831661228b5760405162461bcd60e51b81526004018080602001828103825260258152602001806130506025913960400191505060405180910390fd5b6001600160a01b0382166122d05760405162461bcd60e51b8152600401808060200182810382526023815260200180612f596023913960400191505060405180910390fd5b6122db838383612769565b61231e81604051806060016040528060268152602001612fc0602691396001600160a01b038616600090815260208190526040902054919063ffffffff6123ad16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054612353908263ffffffff6120fc16565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561243c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156124015781810151838201526020016123e9565b50505050905090810190601f16801561242e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008111612487576040805162461bcd60e51b815260206004820152600b60248201526a1e995c9bc8185b5bdd5b9d60aa1b604482015290519081900360640190fd5b60006124a06124946108ea565b610806846107fa6119d0565b90506124ac3383612a8c565b600554604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156124fc57600080fd5b505afa158015612510573d6000803e3d6000fd5b505050506040513d602081101561252657600080fd5b50519050818110156126a9576000612544838363ffffffff61201816565b6008549091506001600160a01b0316612592576040805162461bcd60e51b815260206004820152600b60248201526a6e6f20737472617465677960a81b604482015290519081900360640190fd5b60085460408051632e1a7d4d60e01b81526004810184905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b1580156125df57600080fd5b505af11580156125f3573d6000803e3d6000fd5b5050600554604080516370a0823160e01b81523060048201529051600094506101009092046001600160a01b031692506370a08231916024808301926020929190829003018186803b15801561264857600080fd5b505afa15801561265c573d6000803e3d6000fd5b505050506040513d602081101561267257600080fd5b505190506000612688828563ffffffff61201816565b9050828110156126a5576126a2848263ffffffff6120fc16565b94505b5050505b6005546126c59061010090046001600160a01b03163384612717565b600554604080518481526020810186905281516101009093046001600160a01b03169233927f91fb9d98b786c57d74c099ccd2beca1739e9f6a81fb49001ca465c4b7591bbe2928290030190a3505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612769908490612b94565b505050565b600081831061277d578161205a565b5090919050565b611f49612790336112cf565b610b76565b600081116127d8576040805162461bcd60e51b815260206004820152600b60248201526a1e995c9bc8185b5bdd5b9d60aa1b604482015290519081900360640190fd5b60006127e26119d0565b600554604080516370a0823160e01b815230600482015290519293506000926101009092046001600160a01b0316916370a0823191602480820192602092909190829003018186803b15801561283757600080fd5b505afa15801561284b573d6000803e3d6000fd5b505050506040513d602081101561286157600080fd5b50516005549091506128839061010090046001600160a01b0316333086612c45565b600554604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156128d357600080fd5b505afa1580156128e7573d6000803e3d6000fd5b505050506040513d60208110156128fd57600080fd5b50519050612911818363ffffffff61201816565b9350600061291d6108ea565b612928575083612947565b612944846108066129376108ea565b889063ffffffff61206116565b90505b6129513382612c9f565b600554604080518781526020810184905281516101009093046001600160a01b03169233927ff5681f9d0db1b911ac18ee83d515a1cf1051853a9eae418316a2fdf7dea427c5928290030190a35050505050565b600554604080516370a0823160e01b81523360048201529051611f499261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156129f657600080fd5b505afa158015612a0a573d6000803e3d6000fd5b505050506040513d6020811015612a2057600080fd5b5051611b62565b60008183612a765760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156124015781810151838201526020016123e9565b506000838581612a8257fe5b0495945050505050565b6001600160a01b038216612ad15760405162461bcd60e51b815260040180806020018281038252602181526020018061302f6021913960400191505060405180910390fd5b612add82600083612769565b612b2081604051806060016040528060228152602001612f7c602291396001600160a01b038516600090815260208190526040902054919063ffffffff6123ad16565b6001600160a01b038316600090815260208190526040902055600254612b4c908263ffffffff61201816565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6060612be9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612d9b9092919063ffffffff16565b80519091501561276957808060200190516020811015612c0857600080fd5b50516127695760405162461bcd60e51b815260040180806020018281038252602a815260200180613099602a913960400191505060405180910390fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526112ba908590612b94565b6001600160a01b038216612cfa576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b612d0660008383612769565b600254612d19908263ffffffff6120fc16565b6002556001600160a01b038216600090815260208190526040902054612d45908263ffffffff6120fc16565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6060612daa8484600085612db2565b949350505050565b6060612dbd85612f1f565b612e0e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612e4d5780518252601f199092019160209182019101612e2e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612eaf576040519150601f19603f3d011682016040523d82523d6000602084013e612eb4565b606091505b50915091508115612ec8579150612daa9050565b805115612ed85780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156124015781810151838201526020016123e9565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612daa57505015159291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212202e62b015e68b523d66f5534cff4a5dabdc32a93311ac9fd8dad02dfc796c13b464736f6c63430006080033

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.