ETH Price: $2,380.46 (+7.20%)

Token

ERC20 ***
 

Overview

Max Total Supply

4,253.104596451382950414 ERC20 ***

Holders

24

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
532.223575229537135979 ERC20 ***

Value
$0.00
0x778E6362b2EDcEFC06a768CA0A438CAE0cB568b1
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
kPoolDAI

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 50000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

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

pragma solidity 0.6.12;


// SPDX-License-Identifier: MIT
/**
 * @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 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 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 { }
}

interface IController {
    function vaults(address) external view returns (address);
    function rewards() external view returns (address);
    function want(address) external view returns (address); // NOTE: Only StrategyControllerV2 implements this
    function balanceOf(address) external view returns (uint);
    function withdraw(address, uint) external;
    function earn(address, uint) external;
}

interface OneSplitAudit {
    function swap(
        address fromToken,
        address destToken,
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata distribution,
        uint256 flags
    )
        external
        payable
        returns(uint256 returnAmount);

    function getExpectedReturn(
        address fromToken,
        address destToken,
        uint256 amount,
        uint256 parts,
        uint256 flags // See constants in IOneSplit.sol
    )
        external
        view
        returns(
            uint256 returnAmount,
            uint256[] memory distribution
        );
}

contract kPoolDAI is ERC20 {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    IERC20 public token = IERC20(0x6B175474E89094C44Da98b954EedeAC495271d0F); // DAI
    IERC20 public KORE = IERC20(0xA866F0198208Eb07c83081d5136BE7f775c2399e);
    address public onesplit = address(0x50FDA034C0Ce7a8f7EFDAebDA7Aa7cA21CC1267e);
    uint public onesplitParts = 1;

    uint public onesplitSlippageMin = 500; // 5% default
    uint public constant onesplitSlippageMax = 10000;

    uint public min = 9500;
    uint public constant max = 10000;

    uint public KOREMin = 50; // 0.5% default
    uint public constant KOREMax = 10000;

    bool public enableKOREYield = true;

    address public governance;
    address public controller;

    constructor (address _controller)
        public ERC20(
          string(abi.encodePacked("KORE ", ERC20(address(token)).name())),
          string(abi.encodePacked("k", ERC20(address(token)).symbol()))
        )
    {
        _setupDecimals(ERC20(address(token)).decimals());
        governance = msg.sender;
        controller = _controller;
    }

    // Total balance of token in both vault and corresponding strategy
    function balance() public view returns (uint) {
        return token.balanceOf(address(this))
                .add(IController(controller).balanceOf(address(token)));
    }

    function setMin(uint _min) external {
        require(msg.sender == governance, "!governance");
        min = _min;
    }

    function setKOREBuyMin(uint _KOREMin) external {
        require(msg.sender == governance, "!governance");
        KOREMin = _KOREMin;
    }

    function setOneSplitSlippageMin(uint _onesplitSlippageMin) external {
        require(msg.sender == governance, "!governance");
        onesplitSlippageMin = _onesplitSlippageMin;
    }

    function setOneSplit(address _onesplit) public {
        require(msg.sender == governance, "!governance");
        onesplit = _onesplit;
    }

    function setOneSplitParts(uint _onesplitParts) public {
        require(msg.sender == governance, "!governance");
        onesplitParts = _onesplitParts;
    }

    function setEnableKOREYield(bool _status) public {
        require(msg.sender == governance, "!governance");
        enableKOREYield = _status;
    }

    function setGovernance(address _governance) public {
        require(msg.sender == governance, "!governance");
        governance = _governance;
    }

    function setController(address _controller) public {
        require(msg.sender == governance, "!governance");
        controller = _controller;
    }

    // Custom logic in here for how much the vault allows to be borrowed
    // Sets minimum required on-hand to keep small withdrawals cheap
    function available() public view returns (uint) {
        return token.balanceOf(address(this)).mul(min).div(max);
    }

    // Called by Keeper to put deposited token into strategy
    function earn() public {
        uint _bal = available();
        token.safeTransfer(controller, _bal);
        IController(controller).earn(address(token), _bal);
    }

    function depositAll() external {
        deposit(token.balanceOf(msg.sender));
    }

    function deposit(uint _amount) public {
        uint _pool = balance();
        uint _before = token.balanceOf(address(this));
        token.safeTransferFrom(msg.sender, address(this), _amount);
        uint _after = token.balanceOf(address(this));
        _amount = _after.sub(_before); // Additional check for deflationary tokens
        uint shares = 0;
        if (totalSupply() == 0) {
            shares = _amount;
        } else {
            shares = (_amount.mul(totalSupply())).div(_pool);
        }
        _mint(msg.sender, shares);
    }

    function withdrawAll() external {
        withdraw(balanceOf(msg.sender));
    }

    // Used to swap any borrowed reserve over the debt limit to liquidate to 'token'
    function harvest(address reserve, uint amount) external {
        require(msg.sender == controller, "!controller");
        require(reserve != address(token), "token");
        IERC20(reserve).safeTransfer(controller, amount);
    }

    // No rebalance implementation for lower fees and faster swaps
    function withdraw(uint _shares) public {
        uint r = (balance().mul(_shares)).div(totalSupply());
        _burn(msg.sender, _shares);

        // Check balance
        uint b = token.balanceOf(address(this));
        if (b < r) {
            uint _withdraw = r.sub(b);
            IController(controller).withdraw(address(token), _withdraw);
            uint _after = token.balanceOf(address(this));
            uint _diff = _after.sub(b);
            if (_diff < _withdraw) {
                r = b.add(_diff);
            }
        }

        if (!enableKOREYield) {
          token.safeTransfer(msg.sender, r);
        } else {
          uint tokenToBuyKORE = r.mul(KOREMin).div(KOREMax);
          r = r.sub(tokenToBuyKORE);
          token.safeTransfer(msg.sender, r);

          if (tokenToBuyKORE > 0) {
              uint _before = IERC20(KORE).balanceOf(address(this));
              token.safeApprove(onesplit, 0);
              token.safeApprove(onesplit, tokenToBuyKORE);
              uint[] memory _distribution;
              uint _expected;
              (_expected, _distribution) = OneSplitAudit(onesplit).getExpectedReturn(address(token), address(KORE), tokenToBuyKORE, onesplitParts, 0);
              uint _expectedAfterSlippage = _expected.sub(_expected.mul(onesplitSlippageMin).div(onesplitSlippageMax));
              OneSplitAudit(onesplit).swap(address(token), address(KORE), tokenToBuyKORE, _expectedAfterSlippage, _distribution, 0);
              uint _after = IERC20(KORE).balanceOf(address(this));
              if (_after > _before) {
                  uint _diff = _after.sub(_before);
                  KORE.safeTransfer(msg.sender, _diff);
              }
          }
        }
    }

    // Shouldn't have any dangling KORE balance in the pool
    function withdrawKOREInCaseStuck() public {
        require(msg.sender == governance, "!governance");
        uint _amount = KORE.balanceOf(address(this));
        KORE.safeTransfer(msg.sender, _amount);
    }

    function getPricePerFullShare() public view returns (uint) {
        return balance().mul(1e18).div(totalSupply());
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_controller","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":[],"name":"KORE","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"KOREMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"KOREMin","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":"available","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"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":[],"name":"enableKOREYield","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[{"internalType":"address","name":"reserve","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"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":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"min","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onesplit","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onesplitParts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onesplitSlippageMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onesplitSlippageMin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"setController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setEnableKOREYield","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_KOREMin","type":"uint256"}],"name":"setKOREBuyMin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_min","type":"uint256"}],"name":"setMin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_onesplit","type":"address"}],"name":"setOneSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_onesplitParts","type":"uint256"}],"name":"setOneSplitParts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_onesplitSlippageMin","type":"uint256"}],"name":"setOneSplitSlippageMin","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawKOREInCaseStuck","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260058054746b175474e89094c44da98b954eedeac495271d0f00610100600160a81b0319909116179055600680546001600160a01b031990811673a866f0198208eb07c83081d5136be7f775c2399e17909155600780549091167350fda034c0ce7a8f7efdaebda7aa7ca21cc1267e179055600160088190556101f460095561251c600a556032600b55600c805460ff19169091179055348015620000a857600080fd5b50604051620036e1380380620036e183398181016040526020811015620000ce57600080fd5b5051600554604080516306fdde0360e01b815290516101009092046001600160a01b0316916306fdde0391600480820192600092909190829003018186803b1580156200011a57600080fd5b505afa1580156200012f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156200015957600080fd5b81019080805160405193929190846401000000008211156200017a57600080fd5b9083019060208201858111156200019057600080fd5b8251640100000000811182820188101715620001ab57600080fd5b82525081516020918201929091019080838360005b83811015620001da578181015183820152602001620001c0565b50505050905090810190601f168015620002085780820380516001836020036101000a031916815260200191505b50604052505050604051602001808064025a7a922960dd1b81525060050182805190602001908083835b60208310620002535780518252601f19909201916020918201910162000232565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052600560019054906101000a90046001600160a01b03166001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b158015620002d657600080fd5b505afa158015620002eb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156200031557600080fd5b81019080805160405193929190846401000000008211156200033657600080fd5b9083019060208201858111156200034c57600080fd5b82516401000000008111828201881017156200036757600080fd5b82525081516020918201929091019080838360005b83811015620003965781810151838201526020016200037c565b50505050905090810190601f168015620003c45780820380516001836020036101000a031916815260200191505b506040525050506040516020018080606b60f81b81525060010182805190602001908083835b602083106200040b5780518252601f199092019160209182019101620003ea565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405160208183030381529060405281600390805190602001906200045792919062000554565b5080516200046d90600490602084019062000554565b505060058054601260ff1990911617908190556040805163313ce56760e01b815290516200050193506101009092046001600160a01b03169163313ce56791600480820192602092909190829003018186803b158015620004cd57600080fd5b505afa158015620004e2573d6000803e3d6000fd5b505050506040513d6020811015620004f957600080fd5b50516200053e565b600c8054610100600160a81b0319163361010002179055600d80546001600160a01b0319166001600160a01b0392909216919091179055620005f0565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200059757805160ff1916838001178555620005c7565b82800160010185558215620005c7579182015b82811115620005c7578251825591602001919060010190620005aa565b50620005d5929150620005d9565b5090565b5b80821115620005d55760008155600101620005da565b6130e180620006006000396000f3fe608060405234801561001057600080fd5b50600436106102de5760003560e01c80638e5ae61011610186578063b6b55f25116100e3578063de5f626811610097578063f77c479111610071578063f77c47911461078b578063f889794514610793578063fc0c546a1461079b576102de565b8063de5f626814610773578063e182a1701461077b578063f712adbb14610783576102de565b8063d389800f116100c8578063d389800f14610711578063dc3779a414610719578063dd62ed3e14610738576102de565b8063b6b55f25146106d7578063cae67510146106f4576102de565b806395d89b411161013a578063a9059cbb1161011f578063a9059cbb14610663578063ab033ea91461069c578063b69ef8a8146106cf576102de565b806395d89b4114610622578063a457c2d71461062a576102de565b806392eefe9b1161016b57806392eefe9b146105e75780639452fca41461061a57806394a13ae4146103e8576102de565b80638e5ae610146105ad57806392aa06bc146105ca576102de565b806348a0d7541161023f57806372fd4fc5116101f3578063832e3ec2116101cd578063832e3ec21461056a578063853828b6146105725780638da1df4d1461057a576102de565b806372fd4fc51461055257806377c7b8fc1461055a57806382f0440114610562576102de565b8063662f8bce11610224578063662f8bce146105175780636ac5db19146103e857806370a082311461051f576102de565b806348a0d754146104de5780635aa6e675146104e6576102de565b806323b872dd11610296578063313ce5671161027b578063313ce5671461046a578063395093511461048857806345dc3dd8146104c1576102de565b806323b872dd1461040a5780632e1a7d4d1461044d576102de565b8063095ea7b3116102c7578063095ea7b31461039b5780630acd468e146103e857806318160ddd14610402576102de565b8063018ee9b7146102e357806306fdde031461031e575b600080fd5b61031c600480360360408110156102f957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356107a3565b005b6103266108e3565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610360578181015183820152602001610348565b50505050905090810190601f16801561038d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103d4600480360360408110156103b157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610997565b604080519115158252519081900360200190f35b6103f06109b5565b60408051918252519081900360200190f35b6103f06109bb565b6103d46004803603606081101561042057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356109c1565b61031c6004803603602081101561046357600080fd5b5035610a62565b610472611210565b6040805160ff9092168252519081900360200190f35b6103d46004803603604081101561049e57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611219565b61031c600480360360208110156104d757600080fd5b5035611274565b6103f0611304565b6104ee6113d2565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6103d46113f3565b6103f06004803603602081101561053557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113fc565b61031c611424565b6103f0611576565b6104ee611597565b6103f06115b3565b61031c6115b9565b61031c6004803603602081101561059057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166115cc565b61031c600480360360208110156105c357600080fd5b503561169e565b61031c600480360360208110156105e057600080fd5b503561172e565b61031c600480360360208110156105fd57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166117be565b6103f0611890565b610326611896565b6103d46004803603604081101561064057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611915565b6103d46004803603604081101561067957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561198a565b61031c600480360360208110156106b257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661199e565b6103f0611a75565b61031c600480360360208110156106ed57600080fd5b5035611bc7565b61031c6004803603602081101561070a57600080fd5b5035611da6565b61031c611e36565b61031c6004803603602081101561072f57600080fd5b50351515611f09565b6103f06004803603604081101561074e57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611fc5565b61031c611ffd565b6103f06120a5565b6104ee6120ab565b6104ee6120c7565b6103f06120e3565b6104ee6120e9565b600d5473ffffffffffffffffffffffffffffffffffffffff16331461082957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21636f6e74726f6c6c6572000000000000000000000000000000000000000000604482015290519081900360640190fd5b60055473ffffffffffffffffffffffffffffffffffffffff8381166101009092041614156108b857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f746f6b656e000000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600d546108df9073ffffffffffffffffffffffffffffffffffffffff84811691168361210a565b5050565b60038054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561098d5780601f106109625761010080835404028352916020019161098d565b820191906000526020600020905b81548152906001019060200180831161097057829003601f168201915b5050505050905090565b60006109ab6109a4612197565b848461219b565b5060015b92915050565b61271081565b60025490565b60006109ce8484846122e2565b610a58846109da612197565b610a5385604051806060016040528060288152602001612f956028913973ffffffffffffffffffffffffffffffffffffffff8a16600090815260016020526040812090610a25612197565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205491906124b2565b61219b565b5060019392505050565b6000610a87610a6f6109bb565b610a8184610a7b611a75565b90612563565b906125dd565b9050610a93338361261f565b600554604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600092610100900473ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015610b0957600080fd5b505afa158015610b1d573d6000803e3d6000fd5b505050506040513d6020811015610b3357600080fd5b5051905081811015610cb4576000610b4b8383612769565b600d54600554604080517ff3fef3a300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff6101009093048316600482015260248101859052905193945091169163f3fef3a39160448082019260009290919082900301818387803b158015610bd057600080fd5b505af1158015610be4573d6000803e3d6000fd5b5050600554604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516000945061010090920473ffffffffffffffffffffffffffffffffffffffff1692506370a08231916024808301926020929190829003018186803b158015610c5f57600080fd5b505afa158015610c73573d6000803e3d6000fd5b505050506040513d6020811015610c8957600080fd5b505190506000610c998285612769565b905082811015610cb057610cad84826127ab565b94505b5050505b600c5460ff16610cec57600554610ce790610100900473ffffffffffffffffffffffffffffffffffffffff16338461210a565b61120b565b6000610d09612710610a81600b548661256390919063ffffffff16565b9050610d158382612769565b600554909350610d4190610100900473ffffffffffffffffffffffffffffffffffffffff16338561210a565b801561120957600654604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015610db857600080fd5b505afa158015610dcc573d6000803e3d6000fd5b505050506040513d6020811015610de257600080fd5b5051600754600554919250610e1791610100900473ffffffffffffffffffffffffffffffffffffffff9081169116600061281f565b600754600554610e469173ffffffffffffffffffffffffffffffffffffffff610100909204821691168461281f565b600754600554600654600854604080517f085e2c5b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff610100909504851660048201529284166024840152604483018790526064830191909152600060848301819052905160609491939091169163085e2c5b9160a48083019286929190829003018186803b158015610eea57600080fd5b505afa158015610efe573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040908152811015610f4557600080fd5b815160208301805160405192949293830192919084640100000000821115610f6c57600080fd5b908301906020820185811115610f8157600080fd5b8251866020820283011164010000000082111715610f9e57600080fd5b82525081516020918201928201910280838360005b83811015610fcb578181015183820152602001610fb3565b5050505090500160405250505080935081925050506000611007611000612710610a816009548661256390919063ffffffff16565b8390612769565b6007546005546006546040517fe2a7515e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff61010090930483166004820181815292841660248301819052604483018c905260648301879052600060a4840181905260c0608485019081528b5160c48601528b51989950959096169663e2a7515e96929591948d948a948d949093909160e4019060208681019102808383885b838110156110d15781810151838201526020016110b9565b50505050905001975050505050505050602060405180830381600087803b1580156110fb57600080fd5b505af115801561110f573d6000803e3d6000fd5b505050506040513d602081101561112557600080fd5b5050600654604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561119857600080fd5b505afa1580156111ac573d6000803e3d6000fd5b505050506040513d60208110156111c257600080fd5b50519050848111156112035760006111da8287612769565b6006549091506112019073ffffffffffffffffffffffffffffffffffffffff16338361210a565b505b50505050505b505b505050565b60055460ff1690565b60006109ab611226612197565b84610a538560016000611237612197565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918c1681529252902054906127ab565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff1633146112ff57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600a55565b60006113cd612710610a81600a54600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561139b57600080fd5b505afa1580156113af573d6000803e3d6000fd5b505050506040513d60208110156113c557600080fd5b505190612563565b905090565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff1681565b600c5460ff1681565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff1633146114af57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600654604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561152057600080fd5b505afa158015611534573d6000803e3d6000fd5b505050506040513d602081101561154a57600080fd5b50516006549091506115739073ffffffffffffffffffffffffffffffffffffffff16338361210a565b50565b60006113cd6115836109bb565b610a81670de0b6b3a7640000610a7b611a75565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60095481565b6115ca6115c5336113fc565b610a62565b565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff16331461165757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff16331461172957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600b55565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff1633146117b957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600855565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff16331461184957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600d80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60085481565b60048054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561098d5780601f106109625761010080835404028352916020019161098d565b60006109ab611922612197565b84610a5385604051806060016040528060258152602001613087602591396001600061194c612197565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918d168152925290205491906124b2565b60006109ab611997612197565b84846122e2565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff163314611a2957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600c805473ffffffffffffffffffffffffffffffffffffffff909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b600d54600554604080517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff6101009093048316600482015290516000936113cd9316916370a08231916024808301926020929190829003018186803b158015611af457600080fd5b505afa158015611b08573d6000803e3d6000fd5b505050506040513d6020811015611b1e57600080fd5b5051600554604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905161010090920473ffffffffffffffffffffffffffffffffffffffff16916370a0823191602480820192602092909190829003018186803b158015611b9557600080fd5b505afa158015611ba9573d6000803e3d6000fd5b505050506040513d6020811015611bbf57600080fd5b5051906127ab565b6000611bd1611a75565b90506000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611c5e57600080fd5b505afa158015611c72573d6000803e3d6000fd5b505050506040513d6020811015611c8857600080fd5b5051600554909150611cb790610100900473ffffffffffffffffffffffffffffffffffffffff163330866129ad565b600554604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600092610100900473ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015611d2d57600080fd5b505afa158015611d41573d6000803e3d6000fd5b505050506040513d6020811015611d5757600080fd5b50519050611d658183612769565b93506000611d716109bb565b611d7c575083611d95565b611d9284610a81611d8b6109bb565b8890612563565b90505b611d9f3382612a42565b5050505050565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff163314611e3157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600955565b6000611e40611304565b600d54600554919250611e7291610100900473ffffffffffffffffffffffffffffffffffffffff90811691168361210a565b600d54600554604080517fb02bf4b900000000000000000000000000000000000000000000000000000000815261010090920473ffffffffffffffffffffffffffffffffffffffff908116600484015260248301859052905192169163b02bf4b99160448082019260009290919082900301818387803b158015611ef557600080fd5b505af1158015611d9f573d6000803e3d6000fd5b600c54610100900473ffffffffffffffffffffffffffffffffffffffff163314611f9457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b600554604080517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015290516115ca92610100900473ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561207457600080fd5b505afa158015612088573d6000803e3d6000fd5b505050506040513d602081101561209e57600080fd5b5051611bc7565b600b5481565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b600d5473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b600554610100900473ffffffffffffffffffffffffffffffffffffffff1681565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261120b908490612b73565b3390565b73ffffffffffffffffffffffffffffffffffffffff8316612207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806130036024913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216612273576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612f2c6022913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff831661234e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612fde6025913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82166123ba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180612ee76023913960400191505060405180910390fd5b6123c583838361120b565b61240f81604051806060016040528060268152602001612f4e6026913973ffffffffffffffffffffffffffffffffffffffff861660009081526020819052604090205491906124b2565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220939093559084168152205461244b90826127ab565b73ffffffffffffffffffffffffffffffffffffffff8084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561255b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612520578181015183820152602001612508565b50505050905090810190601f16801561254d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082612572575060006109af565b8282028284828161257f57fe5b04146125d6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612f746021913960400191505060405180910390fd5b9392505050565b60006125d683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612c4b565b73ffffffffffffffffffffffffffffffffffffffff821661268b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612fbd6021913960400191505060405180910390fd5b6126978260008361120b565b6126e181604051806060016040528060228152602001612f0a6022913973ffffffffffffffffffffffffffffffffffffffff851660009081526020819052604090205491906124b2565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260409020556002546127149082612769565b60025560408051828152905160009173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60006125d683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506124b2565b6000828201838110156125d657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b8015806128cb5750604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561289d57600080fd5b505afa1580156128b1573d6000803e3d6000fd5b505050506040513d60208110156128c757600080fd5b5051155b612920576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260368152602001806130516036913960400191505060405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b30000000000000000000000000000000000000000000000000000000017905261120b908490612b73565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052611209908590612b73565b73ffffffffffffffffffffffffffffffffffffffff8216612ac457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b612ad06000838361120b565b600254612add90826127ab565b60025573ffffffffffffffffffffffffffffffffffffffff8216600090815260208190526040902054612b1090826127ab565b73ffffffffffffffffffffffffffffffffffffffff83166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6060612bd5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612cca9092919063ffffffff16565b80519091501561120b57808060200190516020811015612bf457600080fd5b505161120b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613027602a913960400191505060405180910390fd5b60008183612cb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315612520578181015183820152602001612508565b506000838581612cc057fe5b0495945050505050565b6060612cd98484600085612ce1565b949350505050565b6060612cec85612ead565b612d5757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310612dc157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612d84565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612e23576040519150601f19603f3d011682016040523d82523d6000602084013e612e28565b606091505b50915091508115612e3c579150612cd99050565b805115612e4c5780518082602001fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152865160248401528651879391928392604401919085019080838360008315612520578181015183820152602001612508565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612cd957505015159291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212204dd7e6db0814ed8dfbd407d5dcbf3bf718723d0feb55b6c22e2659e3b925469a64736f6c634300060c0033000000000000000000000000befd067df95cc4e689595a22b390619d88040463

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102de5760003560e01c80638e5ae61011610186578063b6b55f25116100e3578063de5f626811610097578063f77c479111610071578063f77c47911461078b578063f889794514610793578063fc0c546a1461079b576102de565b8063de5f626814610773578063e182a1701461077b578063f712adbb14610783576102de565b8063d389800f116100c8578063d389800f14610711578063dc3779a414610719578063dd62ed3e14610738576102de565b8063b6b55f25146106d7578063cae67510146106f4576102de565b806395d89b411161013a578063a9059cbb1161011f578063a9059cbb14610663578063ab033ea91461069c578063b69ef8a8146106cf576102de565b806395d89b4114610622578063a457c2d71461062a576102de565b806392eefe9b1161016b57806392eefe9b146105e75780639452fca41461061a57806394a13ae4146103e8576102de565b80638e5ae610146105ad57806392aa06bc146105ca576102de565b806348a0d7541161023f57806372fd4fc5116101f3578063832e3ec2116101cd578063832e3ec21461056a578063853828b6146105725780638da1df4d1461057a576102de565b806372fd4fc51461055257806377c7b8fc1461055a57806382f0440114610562576102de565b8063662f8bce11610224578063662f8bce146105175780636ac5db19146103e857806370a082311461051f576102de565b806348a0d754146104de5780635aa6e675146104e6576102de565b806323b872dd11610296578063313ce5671161027b578063313ce5671461046a578063395093511461048857806345dc3dd8146104c1576102de565b806323b872dd1461040a5780632e1a7d4d1461044d576102de565b8063095ea7b3116102c7578063095ea7b31461039b5780630acd468e146103e857806318160ddd14610402576102de565b8063018ee9b7146102e357806306fdde031461031e575b600080fd5b61031c600480360360408110156102f957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356107a3565b005b6103266108e3565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610360578181015183820152602001610348565b50505050905090810190601f16801561038d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103d4600480360360408110156103b157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610997565b604080519115158252519081900360200190f35b6103f06109b5565b60408051918252519081900360200190f35b6103f06109bb565b6103d46004803603606081101561042057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356109c1565b61031c6004803603602081101561046357600080fd5b5035610a62565b610472611210565b6040805160ff9092168252519081900360200190f35b6103d46004803603604081101561049e57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611219565b61031c600480360360208110156104d757600080fd5b5035611274565b6103f0611304565b6104ee6113d2565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6103d46113f3565b6103f06004803603602081101561053557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113fc565b61031c611424565b6103f0611576565b6104ee611597565b6103f06115b3565b61031c6115b9565b61031c6004803603602081101561059057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166115cc565b61031c600480360360208110156105c357600080fd5b503561169e565b61031c600480360360208110156105e057600080fd5b503561172e565b61031c600480360360208110156105fd57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166117be565b6103f0611890565b610326611896565b6103d46004803603604081101561064057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611915565b6103d46004803603604081101561067957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561198a565b61031c600480360360208110156106b257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661199e565b6103f0611a75565b61031c600480360360208110156106ed57600080fd5b5035611bc7565b61031c6004803603602081101561070a57600080fd5b5035611da6565b61031c611e36565b61031c6004803603602081101561072f57600080fd5b50351515611f09565b6103f06004803603604081101561074e57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611fc5565b61031c611ffd565b6103f06120a5565b6104ee6120ab565b6104ee6120c7565b6103f06120e3565b6104ee6120e9565b600d5473ffffffffffffffffffffffffffffffffffffffff16331461082957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21636f6e74726f6c6c6572000000000000000000000000000000000000000000604482015290519081900360640190fd5b60055473ffffffffffffffffffffffffffffffffffffffff8381166101009092041614156108b857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f746f6b656e000000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600d546108df9073ffffffffffffffffffffffffffffffffffffffff84811691168361210a565b5050565b60038054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561098d5780601f106109625761010080835404028352916020019161098d565b820191906000526020600020905b81548152906001019060200180831161097057829003601f168201915b5050505050905090565b60006109ab6109a4612197565b848461219b565b5060015b92915050565b61271081565b60025490565b60006109ce8484846122e2565b610a58846109da612197565b610a5385604051806060016040528060288152602001612f956028913973ffffffffffffffffffffffffffffffffffffffff8a16600090815260016020526040812090610a25612197565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205491906124b2565b61219b565b5060019392505050565b6000610a87610a6f6109bb565b610a8184610a7b611a75565b90612563565b906125dd565b9050610a93338361261f565b600554604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600092610100900473ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015610b0957600080fd5b505afa158015610b1d573d6000803e3d6000fd5b505050506040513d6020811015610b3357600080fd5b5051905081811015610cb4576000610b4b8383612769565b600d54600554604080517ff3fef3a300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff6101009093048316600482015260248101859052905193945091169163f3fef3a39160448082019260009290919082900301818387803b158015610bd057600080fd5b505af1158015610be4573d6000803e3d6000fd5b5050600554604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516000945061010090920473ffffffffffffffffffffffffffffffffffffffff1692506370a08231916024808301926020929190829003018186803b158015610c5f57600080fd5b505afa158015610c73573d6000803e3d6000fd5b505050506040513d6020811015610c8957600080fd5b505190506000610c998285612769565b905082811015610cb057610cad84826127ab565b94505b5050505b600c5460ff16610cec57600554610ce790610100900473ffffffffffffffffffffffffffffffffffffffff16338461210a565b61120b565b6000610d09612710610a81600b548661256390919063ffffffff16565b9050610d158382612769565b600554909350610d4190610100900473ffffffffffffffffffffffffffffffffffffffff16338561210a565b801561120957600654604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015610db857600080fd5b505afa158015610dcc573d6000803e3d6000fd5b505050506040513d6020811015610de257600080fd5b5051600754600554919250610e1791610100900473ffffffffffffffffffffffffffffffffffffffff9081169116600061281f565b600754600554610e469173ffffffffffffffffffffffffffffffffffffffff610100909204821691168461281f565b600754600554600654600854604080517f085e2c5b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff610100909504851660048201529284166024840152604483018790526064830191909152600060848301819052905160609491939091169163085e2c5b9160a48083019286929190829003018186803b158015610eea57600080fd5b505afa158015610efe573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040908152811015610f4557600080fd5b815160208301805160405192949293830192919084640100000000821115610f6c57600080fd5b908301906020820185811115610f8157600080fd5b8251866020820283011164010000000082111715610f9e57600080fd5b82525081516020918201928201910280838360005b83811015610fcb578181015183820152602001610fb3565b5050505090500160405250505080935081925050506000611007611000612710610a816009548661256390919063ffffffff16565b8390612769565b6007546005546006546040517fe2a7515e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff61010090930483166004820181815292841660248301819052604483018c905260648301879052600060a4840181905260c0608485019081528b5160c48601528b51989950959096169663e2a7515e96929591948d948a948d949093909160e4019060208681019102808383885b838110156110d15781810151838201526020016110b9565b50505050905001975050505050505050602060405180830381600087803b1580156110fb57600080fd5b505af115801561110f573d6000803e3d6000fd5b505050506040513d602081101561112557600080fd5b5050600654604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561119857600080fd5b505afa1580156111ac573d6000803e3d6000fd5b505050506040513d60208110156111c257600080fd5b50519050848111156112035760006111da8287612769565b6006549091506112019073ffffffffffffffffffffffffffffffffffffffff16338361210a565b505b50505050505b505b505050565b60055460ff1690565b60006109ab611226612197565b84610a538560016000611237612197565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918c1681529252902054906127ab565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff1633146112ff57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600a55565b60006113cd612710610a81600a54600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561139b57600080fd5b505afa1580156113af573d6000803e3d6000fd5b505050506040513d60208110156113c557600080fd5b505190612563565b905090565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff1681565b600c5460ff1681565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff1633146114af57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600654604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561152057600080fd5b505afa158015611534573d6000803e3d6000fd5b505050506040513d602081101561154a57600080fd5b50516006549091506115739073ffffffffffffffffffffffffffffffffffffffff16338361210a565b50565b60006113cd6115836109bb565b610a81670de0b6b3a7640000610a7b611a75565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60095481565b6115ca6115c5336113fc565b610a62565b565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff16331461165757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff16331461172957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600b55565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff1633146117b957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600855565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff16331461184957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600d80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60085481565b60048054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561098d5780601f106109625761010080835404028352916020019161098d565b60006109ab611922612197565b84610a5385604051806060016040528060258152602001613087602591396001600061194c612197565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918d168152925290205491906124b2565b60006109ab611997612197565b84846122e2565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff163314611a2957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600c805473ffffffffffffffffffffffffffffffffffffffff909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b600d54600554604080517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff6101009093048316600482015290516000936113cd9316916370a08231916024808301926020929190829003018186803b158015611af457600080fd5b505afa158015611b08573d6000803e3d6000fd5b505050506040513d6020811015611b1e57600080fd5b5051600554604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905161010090920473ffffffffffffffffffffffffffffffffffffffff16916370a0823191602480820192602092909190829003018186803b158015611b9557600080fd5b505afa158015611ba9573d6000803e3d6000fd5b505050506040513d6020811015611bbf57600080fd5b5051906127ab565b6000611bd1611a75565b90506000600560019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611c5e57600080fd5b505afa158015611c72573d6000803e3d6000fd5b505050506040513d6020811015611c8857600080fd5b5051600554909150611cb790610100900473ffffffffffffffffffffffffffffffffffffffff163330866129ad565b600554604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600092610100900473ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015611d2d57600080fd5b505afa158015611d41573d6000803e3d6000fd5b505050506040513d6020811015611d5757600080fd5b50519050611d658183612769565b93506000611d716109bb565b611d7c575083611d95565b611d9284610a81611d8b6109bb565b8890612563565b90505b611d9f3382612a42565b5050505050565b600c54610100900473ffffffffffffffffffffffffffffffffffffffff163314611e3157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600955565b6000611e40611304565b600d54600554919250611e7291610100900473ffffffffffffffffffffffffffffffffffffffff90811691168361210a565b600d54600554604080517fb02bf4b900000000000000000000000000000000000000000000000000000000815261010090920473ffffffffffffffffffffffffffffffffffffffff908116600484015260248301859052905192169163b02bf4b99160448082019260009290919082900301818387803b158015611ef557600080fd5b505af1158015611d9f573d6000803e3d6000fd5b600c54610100900473ffffffffffffffffffffffffffffffffffffffff163314611f9457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f21676f7665726e616e6365000000000000000000000000000000000000000000604482015290519081900360640190fd5b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b600554604080517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015290516115ca92610100900473ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561207457600080fd5b505afa158015612088573d6000803e3d6000fd5b505050506040513d602081101561209e57600080fd5b5051611bc7565b600b5481565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b600d5473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b600554610100900473ffffffffffffffffffffffffffffffffffffffff1681565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261120b908490612b73565b3390565b73ffffffffffffffffffffffffffffffffffffffff8316612207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806130036024913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216612273576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180612f2c6022913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff831661234e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612fde6025913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82166123ba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180612ee76023913960400191505060405180910390fd5b6123c583838361120b565b61240f81604051806060016040528060268152602001612f4e6026913973ffffffffffffffffffffffffffffffffffffffff861660009081526020819052604090205491906124b2565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220939093559084168152205461244b90826127ab565b73ffffffffffffffffffffffffffffffffffffffff8084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561255b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612520578181015183820152602001612508565b50505050905090810190601f16801561254d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082612572575060006109af565b8282028284828161257f57fe5b04146125d6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612f746021913960400191505060405180910390fd5b9392505050565b60006125d683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612c4b565b73ffffffffffffffffffffffffffffffffffffffff821661268b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612fbd6021913960400191505060405180910390fd5b6126978260008361120b565b6126e181604051806060016040528060228152602001612f0a6022913973ffffffffffffffffffffffffffffffffffffffff851660009081526020819052604090205491906124b2565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260409020556002546127149082612769565b60025560408051828152905160009173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60006125d683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506124b2565b6000828201838110156125d657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b8015806128cb5750604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561289d57600080fd5b505afa1580156128b1573d6000803e3d6000fd5b505050506040513d60208110156128c757600080fd5b5051155b612920576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260368152602001806130516036913960400191505060405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b30000000000000000000000000000000000000000000000000000000017905261120b908490612b73565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052611209908590612b73565b73ffffffffffffffffffffffffffffffffffffffff8216612ac457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b612ad06000838361120b565b600254612add90826127ab565b60025573ffffffffffffffffffffffffffffffffffffffff8216600090815260208190526040902054612b1090826127ab565b73ffffffffffffffffffffffffffffffffffffffff83166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6060612bd5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612cca9092919063ffffffff16565b80519091501561120b57808060200190516020811015612bf457600080fd5b505161120b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613027602a913960400191505060405180910390fd5b60008183612cb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315612520578181015183820152602001612508565b506000838581612cc057fe5b0495945050505050565b6060612cd98484600085612ce1565b949350505050565b6060612cec85612ead565b612d5757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310612dc157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612d84565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612e23576040519150601f19603f3d011682016040523d82523d6000602084013e612e28565b606091505b50915091508115612e3c579150612cd99050565b805115612e4c5780518082602001fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152865160248401528651879391928392604401919085019080838360008315612520578181015183820152602001612508565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612cd957505015159291505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212204dd7e6db0814ed8dfbd407d5dcbf3bf718723d0feb55b6c22e2659e3b925469a64736f6c634300060c0033

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

000000000000000000000000befd067df95cc4e689595a22b390619d88040463

-----Decoded View---------------
Arg [0] : _controller (address): 0xbefD067DF95cC4E689595A22B390619d88040463

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


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.