ETH Price: $3,297.10 (-0.08%)

Contract

0xB5495A8D85EE18cfD0d2816993658D88aF08bEF4
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve199097512024-05-20 7:49:11217 days ago1716191351IN
0xB5495A8D...8aF08bEF4
0 ETH0.000124045.11593639
Approve191735882024-02-07 3:17:23320 days ago1707275843IN
0xB5495A8D...8aF08bEF4
0 ETH0.0010012438.14862501
Approve191735862024-02-07 3:16:59320 days ago1707275819IN
0xB5495A8D...8aF08bEF4
0 ETH0.0009185137.88333942
Approve190249302024-01-17 6:51:11341 days ago1705474271IN
0xB5495A8D...8aF08bEF4
0 ETH0.000743630.66923957
Transfer165750432023-02-07 6:13:11685 days ago1675750391IN
0xB5495A8D...8aF08bEF4
0 ETH0.0010972922.30907438
Transfer144929192022-03-31 8:39:52998 days ago1648715992IN
0xB5495A8D...8aF08bEF4
0 ETH0.0016078332.68886348
Transfer144347742022-03-22 7:28:551007 days ago1647934135IN
0xB5495A8D...8aF08bEF4
0 ETH0.000603522.61245314
Transfer144347252022-03-22 7:18:101007 days ago1647933490IN
0xB5495A8D...8aF08bEF4
0 ETH0.0006270223.4936499
Transfer142289312022-02-18 8:17:361039 days ago1645172256IN
0xB5495A8D...8aF08bEF4
0 ETH0.0048509198.62394038
Transfer140685472022-01-24 13:19:011064 days ago1643030341IN
0xB5495A8D...8aF08bEF4
0 ETH0.00736305143.26116748
Transfer140685372022-01-24 13:16:421064 days ago1643030202IN
0xB5495A8D...8aF08bEF4
0 ETH0.00411816154.30194328
Transfer140021542022-01-14 6:54:281074 days ago1642143268IN
0xB5495A8D...8aF08bEF4
0 ETH0.00619998126.05185637
Transfer140021262022-01-14 6:48:521074 days ago1642142932IN
0xB5495A8D...8aF08bEF4
0 ETH0.00524601196.561097
Transfer140021172022-01-14 6:45:421074 days ago1642142742IN
0xB5495A8D...8aF08bEF4
0 ETH0.00376777141.17342658
Transfer138481202021-12-21 10:54:031098 days ago1640084043IN
0xB5495A8D...8aF08bEF4
0 ETH0.0017898636.38964014
Transfer138206282021-12-17 5:01:561102 days ago1639717316IN
0xB5495A8D...8aF08bEF4
0 ETH0.0037473276.18686264
Approve138093802021-12-15 11:12:481104 days ago1639566768IN
0xB5495A8D...8aF08bEF4
0 ETH0.0028915462.49833387
Transfer136805412021-11-25 1:12:471124 days ago1637802767IN
0xB5495A8D...8aF08bEF4
0 ETH0.0044938168.37659383
Transfer136805342021-11-25 1:11:301124 days ago1637802690IN
0xB5495A8D...8aF08bEF4
0 ETH0.00499532187.16799053
Transfer136621812021-11-22 3:44:571127 days ago1637552697IN
0xB5495A8D...8aF08bEF4
0 ETH0.00572051116.30377415
Approve136130642021-11-14 9:05:391135 days ago1636880739IN
0xB5495A8D...8aF08bEF4
0 ETH0.0040963688.53939187
Transfer136081532021-11-13 14:17:181136 days ago1636813038IN
0xB5495A8D...8aF08bEF4
0 ETH0.00656272133.42661976
Transfer136080652021-11-13 13:53:361136 days ago1636811616IN
0xB5495A8D...8aF08bEF4
0 ETH0.0044611886.82052154
Approve135970782021-11-11 20:39:031137 days ago1636663143IN
0xB5495A8D...8aF08bEF4
0 ETH0.01046513226.19501827
Approve135970572021-11-11 20:35:041137 days ago1636662904IN
0xB5495A8D...8aF08bEF4
0 ETH0.01113488240.67104184
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DAO

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-04-15
*/

pragma solidity 0.6.12;


/**
 * @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 Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier
 * available, which can be aplied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 */
contract ReentrancyGuard {
    /// @dev counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;

    constructor () internal {
        // The counter starts at one to prevent changing it from zero to a non-zero
        // value, which is a more expensive operation.
        _guardCounter = 1;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
    }
}

// A funding contract that allows purchase of shares
contract DAO is ERC20("Aladdin DAO Token", "ALDDAO"), ReentrancyGuard {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    /* ========== STATE VARIABLES ========== */

    address public governance;

    IERC20 public want;
    uint public rate; // wants per share. Need to correlate with want decimal place
    uint public shareCap;

    mapping(address => bool) public isWhitelisted;
    address[] public whitelist;

    mapping(address => uint) public shares; // Tracking of shares of funders to avoid going over sharesCap

    mapping(address => bool) public allowTransferFrom;
    mapping(address => bool) public allowTransferTo;

    /* ========== CONSTRUCTOR ========== */

    constructor(
        address _want,
        uint _rate,
        uint _shareCap,
        address[] memory _whitelist
    )
        public
    {
        _setupDecimals(0);
        want = IERC20(_want);
        rate = _rate;
        shareCap = _shareCap;
        whitelist = _whitelist;

        for (uint i=0; i<_whitelist.length; i++) {
            isWhitelisted[_whitelist[i]] = true;
        }

        governance = msg.sender;
    }

    /* ========== MODIFIER ========== */

    modifier onlyGov() {
        require(msg.sender == governance, "!gov");
        _;
    }

    modifier onlyWhitelist() {
        require(isWhitelisted[msg.sender] == true, "!whitelist");
        _;
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    // fund the dao and get shares
    function fund(uint _shares) external nonReentrant onlyWhitelist {
        require(shares[msg.sender].add(_shares) <= shareCap, "!over cap");

        uint w = _shares.mul(rate);
        want.safeTransferFrom(msg.sender, address(this), w);

        _mint(msg.sender, _shares);
        shares[msg.sender] = shares[msg.sender].add(_shares);
    }

    /* ========== VIEW FUNCTIONS ========== */

    function whitelistLength() external view returns (uint256) {
        return whitelist.length;
    }

    function holdings(address _token)
        public
        view
        returns (uint)
    {
        return IERC20(_token).balanceOf(address(this));
    }

    /* ========== INTERNAL FUNCTIONS ========== */

    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {
        // Silence warnings
        amount;

        // allow mint and burn
        if (from == address(0) || to == address(0)) {
            return;
        }

        // either sender or recipient needs to be whitelisted for transfer
        require(allowTransferFrom[from] == true || allowTransferTo[to] == true, "transfer not allowed");
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    /// @notice Creates `_amount` token to `_to`. Must only be called by minter
    function mint(address _to, uint256 _amount) external onlyGov {
        _mint(_to, _amount);
    }

    /// @notice Burn `_amount` token from `_from`. Must only be called by governance
    function burn(address _from, uint256 _amount) external onlyGov {
        _burn(_from, _amount);
    }

    function takeOut(
        address _token,
        address _destination,
        uint _amount
    )
        external
        onlyGov
    {
        require(_amount <= holdings(_token), "!insufficient");
        SafeERC20.safeTransfer(IERC20(_token), _destination, _amount);
    }

    function setGov(address _governance)
        external
        onlyGov
    {
        governance = _governance;
    }

    function setWant(address _want)
        external
        onlyGov
    {
        want = IERC20(_want);
    }

    function setRate(uint _rate)
        external
        onlyGov
    {
        rate = _rate;
    }

    function setShareCap(uint _shareCap)
        external
        onlyGov
    {
        shareCap = _shareCap;
    }

    function setAllowTransferFrom(address _addr, bool _bool)
        external
        onlyGov
    {
        allowTransferFrom[_addr] = _bool;
    }

    function setAllowTransferTo(address _addr, bool _bool)
        external
        onlyGov
    {
        allowTransferTo[_addr] = _bool;
    }

    function addToWhitelist(address _user)
        external
        onlyGov
    {
        require(isWhitelisted[_user] == false, "already in whitelist");
        isWhitelisted[_user] = true;
        whitelist.push(_user);
    }

    function removeFromWhitelist(address _user)
        external
        onlyGov
    {
        require(isWhitelisted[_user] == true, "not in whitelist");
        isWhitelisted[_user] = false;

        // find the index
        uint indexToDelete = 0;
        bool found = false;
        for (uint i = 0; i < whitelist.length; i++) {
            if (whitelist[i] == _user) {
                indexToDelete = i;
                found = true;
                break;
            }
        }

        // remove element
        require(found == true, "user not found in whitelist");
        whitelist[indexToDelete] = whitelist[whitelist.length - 1];
        whitelist.pop();
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_want","type":"address"},{"internalType":"uint256","name":"_rate","type":"uint256"},{"internalType":"uint256","name":"_shareCap","type":"uint256"},{"internalType":"address[]","name":"_whitelist","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":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"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowTransferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowTransferTo","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","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":"_shares","type":"uint256"}],"name":"fund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"holdings","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"_bool","type":"bool"}],"name":"setAllowTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"_bool","type":"bool"}],"name":"setAllowTransferTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shareCap","type":"uint256"}],"name":"setShareCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_want","type":"address"}],"name":"setWant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shareCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_destination","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"takeOut","outputs":[],"stateMutability":"nonpayable","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":[],"name":"want","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50604051620021fd380380620021fd833981810160405260808110156200003757600080fd5b8151602083015160408085015160608601805192519496939591949391820192846401000000008211156200006b57600080fd5b9083019060208201858111156200008157600080fd5b82518660208202830111640100000000821117156200009f57600080fd5b82525081516020918201928201910280838360005b83811015620000ce578181015183820152602001620000b4565b5050505090910160408181018152601182527020b630b23234b7102220a7902a37b5b2b760791b602080840191825282518084019093526006835265414c4444414f60d01b908301528251929650909450620001309350600392509062000231565b5080516200014690600490602084019062000231565b50506005805460ff191660121790555060016006556200016760006200021b565b600880546001600160a01b0319166001600160a01b0386161790556009839055600a8290558051620001a190600c906020840190620002b6565b5060005b8151811015620001fd576001600b6000848481518110620001c257fe5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055600101620001a5565b5050600780546001600160a01b031916331790555062000354915050565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200027457805160ff1916838001178555620002a4565b82800160010185558215620002a4579182015b82811115620002a457825182559160200191906001019062000287565b50620002b29291506200031c565b5090565b8280548282559060005260206000209081019282156200030e579160200282015b828111156200030e57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620002d7565b50620002b292915062000333565b5b80821115620002b257600081556001016200031d565b5b80821115620002b25780546001600160a01b031916815560010162000334565b611e9980620003646000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80637ebd1b301161011a578063c29696b3116100ad578063dd3ced631161007c578063dd3ced6314610642578063dd62ed3e14610668578063dfbdf79914610696578063e43252d7146106c4578063f0eee1f0146106ea57610206565b8063c29696b3146105d1578063ca1d209d146105d9578063ce7c2ac2146105f6578063cfad57a21461061c57610206565b806395d89b41116100e957806395d89b41146105455780639dc29fac1461054d578063a457c2d714610579578063a9059cbb146105a557610206565b80637ebd1b30146104ae57806382c28f00146104cb5780638a74ee43146104f95780638ab1d6811461051f57610206565b806334fcf4371161019d5780635aa6e6751161016c5780635aa6e675146104355780635edca25b1461043d578063651ab8061461046357806370a082311461048057806378bb5164146104a657610206565b806334fcf4371461039a57806339509351146103b75780633af32abf146103e357806340c10f191461040957610206565b80631f1fcd51116101d95780631f1fcd511461031a57806323b872dd1461033e5780632c4e722e14610374578063313ce5671461037c57610206565b806306fdde031461020b578063095ea7b3146102885780630b239b14146102c857806318160ddd14610300575b600080fd5b610213610710565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561024d578181015183820152602001610235565b50505050905090810190601f16801561027a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102b46004803603604081101561029e57600080fd5b506001600160a01b0381351690602001356107a6565b604080519115158252519081900360200190f35b6102fe600480360360608110156102de57600080fd5b506001600160a01b038135811691602081013590911690604001356107c4565b005b610308610869565b60408051918252519081900360200190f35b61032261086f565b604080516001600160a01b039092168252519081900360200190f35b6102b46004803603606081101561035457600080fd5b506001600160a01b0381358116916020810135909116906040013561087e565b610308610905565b61038461090b565b6040805160ff9092168252519081900360200190f35b6102fe600480360360208110156103b057600080fd5b5035610914565b6102b4600480360360408110156103cd57600080fd5b506001600160a01b038135169060200135610961565b6102b4600480360360208110156103f957600080fd5b50356001600160a01b03166109af565b6102fe6004803603604081101561041f57600080fd5b506001600160a01b0381351690602001356109c4565b610322610a1a565b6102fe6004803603602081101561045357600080fd5b50356001600160a01b0316610a29565b6102fe6004803603602081101561047957600080fd5b5035610a93565b6103086004803603602081101561049657600080fd5b50356001600160a01b0316610ae0565b610308610afb565b610322600480360360208110156104c457600080fd5b5035610b01565b6102fe600480360360408110156104e157600080fd5b506001600160a01b0381351690602001351515610b28565b6102b46004803603602081101561050f57600080fd5b50356001600160a01b0316610b9b565b6102fe6004803603602081101561053557600080fd5b50356001600160a01b0316610bb0565b610213610dc0565b6102fe6004803603604081101561056357600080fd5b506001600160a01b038135169060200135610e21565b6102b46004803603604081101561058f57600080fd5b506001600160a01b038135169060200135610e73565b6102b4600480360360408110156105bb57600080fd5b506001600160a01b038135169060200135610edb565b610308610eef565b6102fe600480360360208110156105ef57600080fd5b5035610ef5565b6103086004803603602081101561060c57600080fd5b50356001600160a01b031661106f565b6102fe6004803603602081101561063257600080fd5b50356001600160a01b0316611081565b6103086004803603602081101561065857600080fd5b50356001600160a01b03166110eb565b6103086004803603604081101561067e57600080fd5b506001600160a01b038135811691602001351661116c565b6102fe600480360360408110156106ac57600080fd5b506001600160a01b0381351690602001351515611197565b6102fe600480360360208110156106da57600080fd5b50356001600160a01b031661120a565b6102b46004803603602081101561070057600080fd5b50356001600160a01b031661131d565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561079c5780601f106107715761010080835404028352916020019161079c565b820191906000526020600020905b81548152906001019060200180831161077f57829003601f168201915b5050505050905090565b60006107ba6107b3611332565b8484611336565b5060015b92915050565b6007546001600160a01b0316331461080c576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b610815836110eb565b811115610859576040805162461bcd60e51b815260206004820152600d60248201526c085a5b9cdd59999a58da595b9d609a1b604482015290519081900360640190fd5b610864838383611422565b505050565b60025490565b6008546001600160a01b031681565b600061088b848484611474565b6108fb84610897611332565b6108f685604051806060016040528060288152602001611d83602891396001600160a01b038a166000908152600160205260408120906108d5611332565b6001600160a01b0316815260208101919091526040016000205491906115cf565b611336565b5060019392505050565b60095481565b60055460ff1690565b6007546001600160a01b0316331461095c576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b600955565b60006107ba61096e611332565b846108f6856001600061097f611332565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611666565b600b6020526000908152604090205460ff1681565b6007546001600160a01b03163314610a0c576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b610a1682826116c7565b5050565b6007546001600160a01b031681565b6007546001600160a01b03163314610a71576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b03163314610adb576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b600a55565b6001600160a01b031660009081526020819052604090205490565b600c5490565b600c8181548110610b0e57fe5b6000918252602090912001546001600160a01b0316905081565b6007546001600160a01b03163314610b70576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600f60205260409020805460ff1916911515919091179055565b600e6020526000908152604090205460ff1681565b6007546001600160a01b03163314610bf8576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b6001600160a01b0381166000908152600b602052604090205460ff161515600114610c5d576040805162461bcd60e51b815260206004820152601060248201526f1b9bdd081a5b881dda1a5d195b1a5cdd60821b604482015290519081900360640190fd5b6001600160a01b0381166000908152600b60205260408120805460ff1916905580805b600c54811015610cd057836001600160a01b0316600c8281548110610ca157fe5b6000918252602090912001546001600160a01b03161415610cc85780925060019150610cd0565b600101610c80565b50600181151514610d28576040805162461bcd60e51b815260206004820152601b60248201527f75736572206e6f7420666f756e6420696e2077686974656c6973740000000000604482015290519081900360640190fd5b600c80546000198101908110610d3a57fe5b600091825260209091200154600c80546001600160a01b039092169184908110610d6057fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600c805480610d9957fe5b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561079c5780601f106107715761010080835404028352916020019161079c565b6007546001600160a01b03163314610e69576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b610a1682826117b7565b60006107ba610e80611332565b846108f685604051806060016040528060258152602001611e3f6025913960016000610eaa611332565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906115cf565b60006107ba610ee8611332565b8484611474565b600a5481565b60068054600190810191829055336000908152600b602052604090205460ff16151514610f56576040805162461bcd60e51b815260206004820152600a602482015269085dda1a5d195b1a5cdd60b21b604482015290519081900360640190fd5b600a54336000908152600d6020526040902054610f739084611666565b1115610fb2576040805162461bcd60e51b81526020600482015260096024820152680216f766572206361760bc1b604482015290519081900360640190fd5b6000610fc9600954846118b390919063ffffffff16565b600854909150610fe4906001600160a01b031633308461190c565b610fee33846116c7565b336000908152600d60205260409020546110089084611666565b336000908152600d6020526040902055506006548114610a16576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600d6020526000908152604090205481565b6007546001600160a01b031633146110c9576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561113a57600080fd5b505afa15801561114e573d6000803e3d6000fd5b505050506040513d602081101561116457600080fd5b505192915050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6007546001600160a01b031633146111df576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600e60205260409020805460ff1916911515919091179055565b6007546001600160a01b03163314611252576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b6001600160a01b0381166000908152600b602052604090205460ff16156112b7576040805162461bcd60e51b8152602060048201526014602482015273185b1c9958591e481a5b881dda1a5d195b1a5cdd60621b604482015290519081900360640190fd5b6001600160a01b03166000818152600b60205260408120805460ff19166001908117909155600c805491820181559091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319169091179055565b600f6020526000908152604090205460ff1681565b3390565b6001600160a01b03831661137b5760405162461bcd60e51b8152600401808060200182810382526024815260200180611df16024913960400191505060405180910390fd5b6001600160a01b0382166113c05760405162461bcd60e51b8152600401808060200182810382526022815260200180611d1a6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261086490849061196c565b6001600160a01b0383166114b95760405162461bcd60e51b8152600401808060200182810382526025815260200180611dcc6025913960400191505060405180910390fd5b6001600160a01b0382166114fe5760405162461bcd60e51b8152600401808060200182810382526023815260200180611cd56023913960400191505060405180910390fd5b611509838383611a1d565b61154681604051806060016040528060268152602001611d3c602691396001600160a01b03861660009081526020819052604090205491906115cf565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546115759082611666565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561165e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561162357818101518382015260200161160b565b50505050905090810190601f1680156116505780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156116c0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216611722576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61172e60008383611a1d565b60025461173b9082611666565b6002556001600160a01b0382166000908152602081905260409020546117619082611666565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166117fc5760405162461bcd60e51b8152600401808060200182810382526021815260200180611dab6021913960400191505060405180910390fd5b61180882600083611a1d565b61184581604051806060016040528060228152602001611cf8602291396001600160a01b03851660009081526020819052604090205491906115cf565b6001600160a01b03831660009081526020819052604090205560025461186b9082611ad5565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000826118c2575060006107be565b828202828482816118cf57fe5b04146116c05760405162461bcd60e51b8152600401808060200182810382526021815260200180611d626021913960400191505060405180910390fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261196690859061196c565b50505050565b60606119c1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b179092919063ffffffff16565b805190915015610864578080602001905160208110156119e057600080fd5b50516108645760405162461bcd60e51b815260040180806020018281038252602a815260200180611e15602a913960400191505060405180910390fd5b6001600160a01b0383161580611a3a57506001600160a01b038216155b15611a4457610864565b6001600160a01b0383166000908152600e602052604090205460ff16151560011480611a8d57506001600160a01b0382166000908152600f602052604090205460ff1615156001145b610864576040805162461bcd60e51b81526020600482015260146024820152731d1c985b9cd9995c881b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b60006116c083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506115cf565b6060611b268484600085611b2e565b949350505050565b6060611b3985611c9b565b611b8a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611bc95780518252601f199092019160209182019101611baa565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611c2b576040519150601f19603f3d011682016040523d82523d6000602084013e611c30565b606091505b50915091508115611c44579150611b269050565b805115611c545780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561162357818101518382015260200161160b565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611b2657505015159291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c4a2b0af902a2d36b7c89edebe58eb747b367522c8c7ab6e8ea642e16d62032764736f6c634300060c0033000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000c4b20100000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000009d36e652ab2c8fa3738dcc73b3095197988e55b7

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102065760003560e01c80637ebd1b301161011a578063c29696b3116100ad578063dd3ced631161007c578063dd3ced6314610642578063dd62ed3e14610668578063dfbdf79914610696578063e43252d7146106c4578063f0eee1f0146106ea57610206565b8063c29696b3146105d1578063ca1d209d146105d9578063ce7c2ac2146105f6578063cfad57a21461061c57610206565b806395d89b41116100e957806395d89b41146105455780639dc29fac1461054d578063a457c2d714610579578063a9059cbb146105a557610206565b80637ebd1b30146104ae57806382c28f00146104cb5780638a74ee43146104f95780638ab1d6811461051f57610206565b806334fcf4371161019d5780635aa6e6751161016c5780635aa6e675146104355780635edca25b1461043d578063651ab8061461046357806370a082311461048057806378bb5164146104a657610206565b806334fcf4371461039a57806339509351146103b75780633af32abf146103e357806340c10f191461040957610206565b80631f1fcd51116101d95780631f1fcd511461031a57806323b872dd1461033e5780632c4e722e14610374578063313ce5671461037c57610206565b806306fdde031461020b578063095ea7b3146102885780630b239b14146102c857806318160ddd14610300575b600080fd5b610213610710565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561024d578181015183820152602001610235565b50505050905090810190601f16801561027a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102b46004803603604081101561029e57600080fd5b506001600160a01b0381351690602001356107a6565b604080519115158252519081900360200190f35b6102fe600480360360608110156102de57600080fd5b506001600160a01b038135811691602081013590911690604001356107c4565b005b610308610869565b60408051918252519081900360200190f35b61032261086f565b604080516001600160a01b039092168252519081900360200190f35b6102b46004803603606081101561035457600080fd5b506001600160a01b0381358116916020810135909116906040013561087e565b610308610905565b61038461090b565b6040805160ff9092168252519081900360200190f35b6102fe600480360360208110156103b057600080fd5b5035610914565b6102b4600480360360408110156103cd57600080fd5b506001600160a01b038135169060200135610961565b6102b4600480360360208110156103f957600080fd5b50356001600160a01b03166109af565b6102fe6004803603604081101561041f57600080fd5b506001600160a01b0381351690602001356109c4565b610322610a1a565b6102fe6004803603602081101561045357600080fd5b50356001600160a01b0316610a29565b6102fe6004803603602081101561047957600080fd5b5035610a93565b6103086004803603602081101561049657600080fd5b50356001600160a01b0316610ae0565b610308610afb565b610322600480360360208110156104c457600080fd5b5035610b01565b6102fe600480360360408110156104e157600080fd5b506001600160a01b0381351690602001351515610b28565b6102b46004803603602081101561050f57600080fd5b50356001600160a01b0316610b9b565b6102fe6004803603602081101561053557600080fd5b50356001600160a01b0316610bb0565b610213610dc0565b6102fe6004803603604081101561056357600080fd5b506001600160a01b038135169060200135610e21565b6102b46004803603604081101561058f57600080fd5b506001600160a01b038135169060200135610e73565b6102b4600480360360408110156105bb57600080fd5b506001600160a01b038135169060200135610edb565b610308610eef565b6102fe600480360360208110156105ef57600080fd5b5035610ef5565b6103086004803603602081101561060c57600080fd5b50356001600160a01b031661106f565b6102fe6004803603602081101561063257600080fd5b50356001600160a01b0316611081565b6103086004803603602081101561065857600080fd5b50356001600160a01b03166110eb565b6103086004803603604081101561067e57600080fd5b506001600160a01b038135811691602001351661116c565b6102fe600480360360408110156106ac57600080fd5b506001600160a01b0381351690602001351515611197565b6102fe600480360360208110156106da57600080fd5b50356001600160a01b031661120a565b6102b46004803603602081101561070057600080fd5b50356001600160a01b031661131d565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561079c5780601f106107715761010080835404028352916020019161079c565b820191906000526020600020905b81548152906001019060200180831161077f57829003601f168201915b5050505050905090565b60006107ba6107b3611332565b8484611336565b5060015b92915050565b6007546001600160a01b0316331461080c576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b610815836110eb565b811115610859576040805162461bcd60e51b815260206004820152600d60248201526c085a5b9cdd59999a58da595b9d609a1b604482015290519081900360640190fd5b610864838383611422565b505050565b60025490565b6008546001600160a01b031681565b600061088b848484611474565b6108fb84610897611332565b6108f685604051806060016040528060288152602001611d83602891396001600160a01b038a166000908152600160205260408120906108d5611332565b6001600160a01b0316815260208101919091526040016000205491906115cf565b611336565b5060019392505050565b60095481565b60055460ff1690565b6007546001600160a01b0316331461095c576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b600955565b60006107ba61096e611332565b846108f6856001600061097f611332565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611666565b600b6020526000908152604090205460ff1681565b6007546001600160a01b03163314610a0c576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b610a1682826116c7565b5050565b6007546001600160a01b031681565b6007546001600160a01b03163314610a71576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b03163314610adb576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b600a55565b6001600160a01b031660009081526020819052604090205490565b600c5490565b600c8181548110610b0e57fe5b6000918252602090912001546001600160a01b0316905081565b6007546001600160a01b03163314610b70576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600f60205260409020805460ff1916911515919091179055565b600e6020526000908152604090205460ff1681565b6007546001600160a01b03163314610bf8576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b6001600160a01b0381166000908152600b602052604090205460ff161515600114610c5d576040805162461bcd60e51b815260206004820152601060248201526f1b9bdd081a5b881dda1a5d195b1a5cdd60821b604482015290519081900360640190fd5b6001600160a01b0381166000908152600b60205260408120805460ff1916905580805b600c54811015610cd057836001600160a01b0316600c8281548110610ca157fe5b6000918252602090912001546001600160a01b03161415610cc85780925060019150610cd0565b600101610c80565b50600181151514610d28576040805162461bcd60e51b815260206004820152601b60248201527f75736572206e6f7420666f756e6420696e2077686974656c6973740000000000604482015290519081900360640190fd5b600c80546000198101908110610d3a57fe5b600091825260209091200154600c80546001600160a01b039092169184908110610d6057fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600c805480610d9957fe5b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561079c5780601f106107715761010080835404028352916020019161079c565b6007546001600160a01b03163314610e69576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b610a1682826117b7565b60006107ba610e80611332565b846108f685604051806060016040528060258152602001611e3f6025913960016000610eaa611332565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906115cf565b60006107ba610ee8611332565b8484611474565b600a5481565b60068054600190810191829055336000908152600b602052604090205460ff16151514610f56576040805162461bcd60e51b815260206004820152600a602482015269085dda1a5d195b1a5cdd60b21b604482015290519081900360640190fd5b600a54336000908152600d6020526040902054610f739084611666565b1115610fb2576040805162461bcd60e51b81526020600482015260096024820152680216f766572206361760bc1b604482015290519081900360640190fd5b6000610fc9600954846118b390919063ffffffff16565b600854909150610fe4906001600160a01b031633308461190c565b610fee33846116c7565b336000908152600d60205260409020546110089084611666565b336000908152600d6020526040902055506006548114610a16576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600d6020526000908152604090205481565b6007546001600160a01b031633146110c9576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561113a57600080fd5b505afa15801561114e573d6000803e3d6000fd5b505050506040513d602081101561116457600080fd5b505192915050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6007546001600160a01b031633146111df576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600e60205260409020805460ff1916911515919091179055565b6007546001600160a01b03163314611252576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b6001600160a01b0381166000908152600b602052604090205460ff16156112b7576040805162461bcd60e51b8152602060048201526014602482015273185b1c9958591e481a5b881dda1a5d195b1a5cdd60621b604482015290519081900360640190fd5b6001600160a01b03166000818152600b60205260408120805460ff19166001908117909155600c805491820181559091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319169091179055565b600f6020526000908152604090205460ff1681565b3390565b6001600160a01b03831661137b5760405162461bcd60e51b8152600401808060200182810382526024815260200180611df16024913960400191505060405180910390fd5b6001600160a01b0382166113c05760405162461bcd60e51b8152600401808060200182810382526022815260200180611d1a6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261086490849061196c565b6001600160a01b0383166114b95760405162461bcd60e51b8152600401808060200182810382526025815260200180611dcc6025913960400191505060405180910390fd5b6001600160a01b0382166114fe5760405162461bcd60e51b8152600401808060200182810382526023815260200180611cd56023913960400191505060405180910390fd5b611509838383611a1d565b61154681604051806060016040528060268152602001611d3c602691396001600160a01b03861660009081526020819052604090205491906115cf565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546115759082611666565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561165e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561162357818101518382015260200161160b565b50505050905090810190601f1680156116505780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156116c0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216611722576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61172e60008383611a1d565b60025461173b9082611666565b6002556001600160a01b0382166000908152602081905260409020546117619082611666565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166117fc5760405162461bcd60e51b8152600401808060200182810382526021815260200180611dab6021913960400191505060405180910390fd5b61180882600083611a1d565b61184581604051806060016040528060228152602001611cf8602291396001600160a01b03851660009081526020819052604090205491906115cf565b6001600160a01b03831660009081526020819052604090205560025461186b9082611ad5565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000826118c2575060006107be565b828202828482816118cf57fe5b04146116c05760405162461bcd60e51b8152600401808060200182810382526021815260200180611d626021913960400191505060405180910390fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261196690859061196c565b50505050565b60606119c1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b179092919063ffffffff16565b805190915015610864578080602001905160208110156119e057600080fd5b50516108645760405162461bcd60e51b815260040180806020018281038252602a815260200180611e15602a913960400191505060405180910390fd5b6001600160a01b0383161580611a3a57506001600160a01b038216155b15611a4457610864565b6001600160a01b0383166000908152600e602052604090205460ff16151560011480611a8d57506001600160a01b0382166000908152600f602052604090205460ff1615156001145b610864576040805162461bcd60e51b81526020600482015260146024820152731d1c985b9cd9995c881b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b60006116c083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506115cf565b6060611b268484600085611b2e565b949350505050565b6060611b3985611c9b565b611b8a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611bc95780518252601f199092019160209182019101611baa565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611c2b576040519150601f19603f3d011682016040523d82523d6000602084013e611c30565b606091505b50915091508115611c44579150611b269050565b805115611c545780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561162357818101518382015260200161160b565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611b2657505015159291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c4a2b0af902a2d36b7c89edebe58eb747b367522c8c7ab6e8ea642e16d62032764736f6c634300060c0033

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

000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000c4b20100000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000009d36e652ab2c8fa3738dcc73b3095197988e55b7

-----Decoded View---------------
Arg [0] : _want (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [1] : _rate (uint256): 3300000000
Arg [2] : _shareCap (uint256): 10
Arg [3] : _whitelist (address[]): 0x9d36e652Ab2C8Fa3738dCC73b3095197988E55B7

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [1] : 00000000000000000000000000000000000000000000000000000000c4b20100
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 0000000000000000000000009d36e652ab2c8fa3738dcc73b3095197988e55b7


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.