Token STON

 

Overview [ERC-20]

Price
$0.02 @ 0.000011 Eth (-12.19%)
Fully Diluted Market Cap
Max Total Supply:
370,000,000 STON

Holders:
8,748 ( 0.011%)

Transfers:
-

 
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

OVERVIEW

STON is a decentralized, open, public, transparent, neutral, censorship-resistant, borderless cryptocurrency with a permanently fixed and limited supply that powers Mainston's leading blockchain solutions and global ecosystems.

Private Sale Information

Private Sale Token Price : $0.149
Private Sale Allocation : 56451612.90 STON
Private Sale Vesting Period : None
Seed Sale Token Price : $0.149
Seed Sale Allocation : 56451612.90 STON
Seed Sale Vesting Period : None

# Exchange Pair Price  24H Volume % Volume
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StonToken

Compiler Version
v0.6.10+commit.00c0fcaf

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-08-24
*/

// Sources flattened with buidler v1.3.8 https://buidler.dev

// File @openzeppelin/contracts/token/ERC20/[email protected]

// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}


// File contracts/6/engine/IERC20Mintable.sol

/**
 * @title Interface for mintable ERC20
 * @author Validity Labs AG <[email protected]>
 */


pragma solidity ^0.6.0;


interface IERC20Mintable is IERC20 {
    /**
     * @dev Create `amount` tokens for `to`, increasing the total supply.
     *
     * Emits a {Transfer} event.
     */
    function mint(address to, uint256 amount) external;
}


// File @openzeppelin/contracts/GSN/[email protected]



pragma solidity ^0.6.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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;
    }
}


// File @openzeppelin/contracts/access/[email protected]



pragma solidity ^0.6.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


// File @openzeppelin/contracts/math/[email protected]



pragma solidity ^0.6.0;

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


// File @openzeppelin/contracts/utils/[email protected]



pragma solidity ^0.6.2;

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


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity ^0.6.0;




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


// File contracts/6/property/Reclaimable.sol

/**
 * @title Reclaimable
 * @dev This contract gives owner right to recover any ERC20 tokens accidentally sent to
 * the token contract. The recovered token will be sent to the owner of token.
 * @author Validity Labs AG <[email protected]>
 */


pragma solidity ^0.6.0;





contract Reclaimable is Ownable {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    mapping (address => uint256) private _allowedBalances;

    /**
     * @dev Emitted when the allowance of a `token` to be held by this contract.
     */
    event AllowedTokenBalance(address indexed token, uint256 value);

    /**
     * @notice Let the owner to retrieve other tokens accidentally sent to this contract.
     * @dev This function is suitable when no token of any kind shall be stored under
     * the address of the inherited contract.
     * @param tokenToBeRecovered address of the token to be recovered.
     */
    function reclaimToken(IERC20 tokenToBeRecovered) public onlyOwner {
        uint256 balance = tokenToBeRecovered.balanceOf(address(this)).sub(_allowedBalances[address(tokenToBeRecovered)]);
        tokenToBeRecovered.safeTransfer(owner(), balance);
    }

    /**
     * @dev Get the allowance of the `tokenToBeRecovered` token of this contract.
     * @param tokenToBeRecovered address of the token to be recovered.
     */
    function getAllowedBalance(address tokenToBeRecovered) public view returns (uint256) {
        return _allowedBalances[tokenToBeRecovered];
    }

    /**
     * @notice Atomically increases the allowance of token balance granted to `tokenToBeRecovered` by the caller.
     * @dev Emits an {AllowedTokenBalance} event indicating the updated allowance.
     * @param tokenToBeRecovered address of the token to be recovered.
     * @param addedValue increase in the allowance.
     */
    function increaseAllowedBalance(address tokenToBeRecovered, uint256 addedValue) internal virtual returns (bool) {
        _setAllowedBalance(tokenToBeRecovered, _allowedBalances[tokenToBeRecovered].add(addedValue));
        return true;
    }

    // /**
    //  * @notice Atomically decreases the allowance of token balance granted to `tokenToBeRecovered` by the caller.
    //  * @dev Emits an {AllowedTokenBalance} event indicating the updated allowance.
    //  * @param tokenToBeRecovered address of the token to be recovered.
    //  * @param subtractedValue decrease in the allowance.
    //  */
    // function decreaseAllowedBalance(address tokenToBeRecovered, uint256 subtractedValue) internal virtual returns (bool) {
    //     _setAllowedBalance(tokenToBeRecovered, _allowedBalances[tokenToBeRecovered].sub(subtractedValue));
    //     return true;
    // }

    /**
     * @notice Sets `amount` as the allowance of this contract over the `tokenToBeRecovered` tokens.
     * @param tokenToBeRecovered address of the token to be recovered.
     * @param amount allowance.
     */
    function _setAllowedBalance(address tokenToBeRecovered, uint256 amount) internal virtual {
        _allowedBalances[tokenToBeRecovered] = amount;
        emit AllowedTokenBalance(tokenToBeRecovered, amount);
    }
}


// File contracts/6/engine/SwapEngine.sol

/**
 * @title Token upgrade swap engine
 * @author Validity Labs AG <[email protected]>
 */


pragma solidity ^0.6.0;








contract SwapEngine is Context, Ownable, Reclaimable {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    IERC20 public oldToken;
    IERC20Mintable public newToken;
    uint256 public constant conversionRate = 10000000000; // 1 to 1 from 8 decimals to 18 decimals.
    uint256 public totalConverted;
    mapping(address=>uint256) public convertedBalanceOf;

    /**
     * @dev Emitted when old tokens are swaapped for new ones.
     */
    event TokenSwapped(address indexed holder, address indexed caller, uint256 oldTokenAmount);

    /**
     * @dev Create a token swap engine providing an ERC20 token and a new one.
     * @notice The difference in decimal between the old one and the new one is 10.
     * @param _newOwner address of the swap engine contract owner
     * @param _oldToken address of the old token contract
     * @param _newToken address of the new token contract
     */
    constructor(address _newOwner, address _oldToken, address _newToken) public {
        transferOwnership(_newOwner);
        oldToken = IERC20(_oldToken);
        newToken = IERC20Mintable(_newToken);
    }

    /**
     * @dev Swap all the tokens of the given token holders in a batch.
     * @notice This function is restricted for the engine owner. If a non=token holder
     * It does not revert when balance is zero, so that the rest can proceed.
     * @param tokenHolders array of wallet addresses of token holders
    */
    function swapAllTokenInBatch(address[] calldata tokenHolders) public onlyOwner {
        for (uint256 i = 0; i < tokenHolders.length; i++) {
            uint256 balance = oldToken.balanceOf(tokenHolders[i]);
            _swap(tokenHolders[i], balance);
        }
    }

    /**
     * @dev Swap all the tokens of a given token holder.
     * @notice This function is restricted for the engine owner or by tokenholders for themselves.
     * It reverts when balance is zero. No need to proceed with the swap.
     * @param tokenHolder wallet addresse of the token holder
    */
    function swapAllToken(address tokenHolder) public {
        require(owner() == _msgSender() || tokenHolder == _msgSender(), "Either the owner or a tokenholder can swapAllToken");
        uint256 balance = oldToken.balanceOf(tokenHolder);
        require(balance > 0, "No token to swap");
        _swap(tokenHolder, balance);
    }

    /**
     * @dev Swap some tokens of the caller
     * @notice This function can be called by any account, even account without old token.
     * It reverts when balance is zero. No need to proceed with the swap.
     * @param amount amount of old token to be swapped into new ones.
    */
    function swapToken(uint256 amount) public {
        uint256 balance = oldToken.balanceOf(_msgSender());
        require(balance > 0, "No token to swap");
        require(amount <= balance, "Swap amount is bigger than the balance");
        _swap(_msgSender(), amount);
    }

    /**
     * @dev Swap some old tokens owned by a wallet.
     * @notice core logic for token swap.
     * @param tokenHolder wallet addresse of the token holder
     * @param amount amount of old token to be swapped into new ones.
    */
    function _swap(address tokenHolder, uint256 amount) internal {
        if (amount == 0) {
            return;
        }

        uint256 allowance = oldToken.allowance(tokenHolder, address(this));
        require(amount <= allowance, "Swap amount is bigger than the allowance");
        convertedBalanceOf[tokenHolder] = convertedBalanceOf[tokenHolder].add(amount);
        totalConverted = totalConverted.add(amount);
        increaseAllowedBalance(address(oldToken), amount);
        uint256 newTokenToMint = amount.mul(conversionRate);
        // transfer old token to the contract.
        oldToken.safeTransferFrom(tokenHolder, address(this), amount);
        // mint new token to the holder
        newToken.mint(tokenHolder, newTokenToMint);
        emit TokenSwapped(tokenHolder, _msgSender(), amount);
    }

    /**
     * @dev OVERRIDE method to forbid the possibility of renouncing ownership
     */
    function renounceOwnership() public override(Ownable) {
        revert("There must be an owner");
    }
}


// File @openzeppelin/contracts/utils/[email protected]



pragma solidity ^0.6.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}


// File @openzeppelin/contracts/access/[email protected]



pragma solidity ^0.6.0;




/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity ^0.6.0;





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


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity ^0.6.0;



/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]



pragma solidity ^0.6.0;


/**
 * @dev Extension of {ERC20} that adds a cap to the supply of tokens.
 */
abstract contract ERC20Capped is ERC20 {
    uint256 private _cap;

    /**
     * @dev Sets the value of the `cap`. This value is immutable, it can only be
     * set once during construction.
     */
    constructor (uint256 cap) public {
        require(cap > 0, "ERC20Capped: cap is 0");
        _cap = cap;
    }

    /**
     * @dev Returns the cap on the token's total supply.
     */
    function cap() public view returns (uint256) {
        return _cap;
    }

    /**
     * @dev See {ERC20-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - minted tokens must not cause the total supply to go over the cap.
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        if (from == address(0)) { // When minting tokens
            require(totalSupply().add(amount) <= _cap, "ERC20Capped: cap exceeded");
        }
    }
}


// File contracts/6/v2/StonToken.sol

/**
 * @title New STON token
 * @author Validity Labs AG <[email protected]>
 */


pragma solidity ^0.6.0;






contract StonToken is
    Ownable,
    Reclaimable,
    AccessControl,
    ERC20Burnable,
    ERC20Capped
{
    bytes32 public constant WHITELIST_MANAGER_ROLE = keccak256(
        "WHITELIST_MANAGER_ROLE"
    );
    bytes32 public constant WHITELISTED_ROLE = keccak256("WHITELISTED_ROLE");
    address public upgradeEngine;
    bool public upgradeStarted;

    /**
     * @dev Emitted when the upgrade token swap engine is conected or disconnected to the token contract.
     * @param engineConnected the status of the upgrade engine when the connection status changes
     * @param upgradeEngine address of the engine contract.
     */
    event SwapEngineConnected(bool indexed engineConnected, address indexed upgradeEngine);

    /**
     * @dev Set a new owner and let it become the default admin and whiteliste manager.
     * @notice Capped at 370 million tokens. Set the role relation between WHITELISTED and WHITELIST_MANAGER
     * @param newOwner address of the token contract owner
     */
    constructor(address newOwner)
        public
        ERC20("STON", "STON")
        ERC20Capped(370000000 ether)
    {
        _setRoleAdmin(WHITELISTED_ROLE, WHITELIST_MANAGER_ROLE);

        transferOwnership(newOwner);
        emit SwapEngineConnected(false, upgradeEngine);
    }

    /**
     * @dev Connect the upgrade token swap engine so that this new Ston token can be minted for old Ston token holders.
     * @notice Only owner can set the engineAddress. This action is one-time only.
     * @param engineAddress address of the token upgrade token swap engine contract.
     */
    function connectUpgradeEngine(address engineAddress) public onlyOwner {
        require(
            !upgradeStarted,
            "Upgrade has started. Cannot set the engine address again!"
        );
        upgradeEngine = engineAddress;
        upgradeStarted = true;
        emit SwapEngineConnected(upgradeStarted, upgradeEngine);
    }

    /**
     * @dev Disconnect the upgrade token swap engine and mint the remaining Ston tokens to the liquidity pool.
     * @notice Only owner can disconnect the engine. This action is one-time only.
     * @param poolAddress address to receive the remaining token.
     */
    function removeUpgradeEngine(address poolAddress) public onlyOwner {
        require(
            upgradeStarted,
            "Upgrade has not started yet. Cannot reset the engine address!"
        );
        require(
            upgradeEngine != address(0),
            "Upgrade has already been reset!"
        );
        // mint the remaining tokens to the pool
        _mint(poolAddress, cap().sub(totalSupply()));
        // leave the minter to address zero.
        upgradeEngine = address(0);
        emit SwapEngineConnected(false, upgradeEngine);
    }

    /**
     * @dev Add a list of accounts to the whitelist
     * @notice This whitelist is not used to control token transfer. It is reserved for tracking the eligibility of voting.
     * @param accounts An array of accounts to tbe whitelisted
     */
    function addAccountsToWhitelist(address[] calldata accounts) public {
        require(hasRole(getRoleAdmin(WHITELISTED_ROLE), _msgSender()), "AccessControl: sender must be an admin to grant");

        for (uint256 i = 0; i < accounts.length; i++) {
            _setupRole(WHITELISTED_ROLE, accounts[i]);
        }
    }

    /**
     * @dev OVERRIDE Mint tokens, with a defined cap of 370 million tokens.
     * @notice It should only be done by the upgrade token swap engine or upon disconnecting of the said engine.
     * @param to recipient address.
     * @param amount amount of token to be transferred.
     */
    function mint(address to, uint256 amount) public {
        require(
            upgradeStarted && upgradeEngine == _msgSender(),
            "STON can only be minted by the upgrade swap engine."
        );
        _mint(to, amount);
    }

    /**
     * @dev OVERRIDE Burn tokens. It can only be called by the token owner.
     * @param amount amount of token to be burnt.
     */
    function burn(uint256 amount) public override(ERC20Burnable) onlyOwner {
        super.burn(amount);
    }

    /**
     * @dev OVERRIDE Burn tokens from an account. It can only be called by the token owner.
     * @notice A suffient allowance is needed.
     * @param account address of the token holder.
     * @param amount amount of token to be burnt.
     */
    function burnFrom(address account, uint256 amount)
        public
        override(ERC20Burnable)
        onlyOwner
    {
        super.burnFrom(account, amount);
    }

    /**
     * @dev OVERRIDE method to forbid the possibility of renouncing ownership
     */
    function renounceOwnership() public override(Ownable) {
        revert("There must be an owner");
    }

    /**
     * @dev OVERRIDE transfer the ownership of this token
     * @notice whitelist manager role and default admin (manages whitelist managers) are transfered at the same time.
     * @param newOwner address of the new owner.
     */
    function transferOwnership(address newOwner) public override(Ownable) {
        super.renounceRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(DEFAULT_ADMIN_ROLE, newOwner);
        _setupRole(WHITELIST_MANAGER_ROLE, newOwner);
        //if (newOwner != _msgSender()) {
            
        //}
        super.transferOwnership(newOwner);
    }

    /**
     * @dev OVERRIDE renounce a role
     * @notice The default admin (manages whitelist managers) cannot be renounced.
     * @param role role to be renounced.
     * @param account address that is about to renounce its role.
     */
    function renounceRole(bytes32 role, address account) public override(AccessControl) {
        require(role != DEFAULT_ADMIN_ROLE, "Cannot renounce the admin role");
        super.renounceRole(role, account);
    }

    /**
     * @dev OVERRIDE checker before token transfer
     * @notice Inherit ERC20Capped
     * @param from token sender address
     * @param to token recipient address
     * @param amount amount of tokens to be transferred.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override(ERC20, ERC20Capped) {
        super._beforeTokenTransfer(from, to, amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"AllowedTokenBalance","type":"event"},{"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"engineConnected","type":"bool"},{"indexed":true,"internalType":"address","name":"upgradeEngine","type":"address"}],"name":"SwapEngineConnected","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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELISTED_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"addAccountsToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"engineAddress","type":"address"}],"name":"connectUpgradeEngine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenToBeRecovered","type":"address"}],"name":"getAllowedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenToBeRecovered","type":"address"}],"name":"reclaimToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"poolAddress","type":"address"}],"name":"removeUpgradeEngine","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"upgradeEngine","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"upgradeStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50604051620044d9380380620044d9833981810160405260208110156200003757600080fd5b81019080805190602001909291905050506b01320e8c30e42f72b20000006040518060400160405280600481526020017f53544f4e000000000000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f53544f4e000000000000000000000000000000000000000000000000000000008152506000620000d36200033d60201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35081600690805190602001906200018992919062000a62565b508060079080519060200190620001a292919062000a62565b506012600860006101000a81548160ff021916908360ff16021790555050506000811162000238576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f45524332304361707065643a206361702069732030000000000000000000000081525060200191505060405180910390fd5b8060098190555050620002bc60405180807f57484954454c49535445445f524f4c45000000000000000000000000000000008152506010019050604051809103902060405180807f57484954454c4953545f4d414e414745525f524f4c4500000000000000000000815250601601905060405180910390206200034560201b60201c565b620002cd81620003a960201b60201c565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600015157f387a9ed45878b6f7d79a3ac5c023a1284be92e83fa24919d4975913f57c7ce0460405160405180910390a35062000b11565b600033905090565b806002600084815260200190815260200160002060020154837fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff60405160405180910390a48060026000848152602001908152602001600020600201819055505050565b620003d26000801b620003c16200033d60201b60201c565b6200044760201b6200201b1760201c565b620003e76000801b82620004f260201b60201c565b6200042e60405180807f57484954454c4953545f4d414e414745525f524f4c45000000000000000000008152506016019050604051809103902082620004f260201b60201c565b62000444816200050860201b620020b41760201c565b50565b620004576200033d60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614620004dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180620044aa602f913960400191505060405180910390fd5b620004ee82826200072060201b60201c565b5050565b620005048282620007c460201b60201c565b5050565b620005186200033d60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614620005da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000662576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180620044846026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6200074f81600260008581526020019081526020016000206000016200086860201b620022c11790919060201c565b15620007c057620007656200033d60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b620007f38160026000858152602001908152602001600020600001620008a060201b620022f11790919060201c565b156200086457620008096200033d60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600062000898836000018373ffffffffffffffffffffffffffffffffffffffff1660001b620008d860201b60201c565b905092915050565b6000620008d0836000018373ffffffffffffffffffffffffffffffffffffffff1660001b620009c560201b60201c565b905092915050565b60008083600101600084815260200190815260200160002054905060008114620009b957600060018203905060006001866000018054905003905060008660000182815481106200092557fe5b90600052602060002001549050808760000184815481106200094357fe5b90600052602060002001819055506001830187600101600083815260200190815260200160002081905550866000018054806200097c57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050620009bf565b60009150505b92915050565b6000620009d9838362000a3f60201b60201c565b62000a3457826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905062000a39565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1062000aa557805160ff191683800117855562000ad6565b8280016001018555821562000ad6579182015b8281111562000ad557825182559160200191906001019062000ab8565b5b50905062000ae5919062000ae9565b5090565b62000b0e91905b8082111562000b0a57600081600090555060010162000af0565b5090565b90565b6139638062000b216000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c8063715018a611610125578063a457c2d7116100ad578063ba82dc521161007c578063ba82dc5214610ad7578063ca15c87314610b2f578063d547741f14610b71578063dd62ed3e14610bbf578063f2fde38b14610c3757610211565b8063a457c2d7146109a5578063a9059cbb14610a0b578063b3fa6aba14610a71578063b5ba7adb14610a9357610211565b80638da5cb5b116100f45780638da5cb5b146107dc5780639010d07c1461082657806391d148541461089e57806395d89b4114610904578063a217fddf1461098757610211565b8063715018a6146107485780637295ed931461075257806379cc6790146107705780637a3226ec146107be57610211565b80632f2ff15d116101a8578063395093511161017757806339509351146105c457806340c10f191461062a57806342966c681461067857806357fffd4a146106a657806370a08231146106f057610211565b80632f2ff15d146104e6578063313ce56714610534578063355274ea1461055857806336568abe1461057657610211565b80631c8b9d07116101e45780631c8b9d071461036157806323b872dd146103a5578063248a9ca31461042b57806328d0c5f21461046d57610211565b806306fdde0314610216578063095ea7b31461029957806317ffc320146102ff57806318160ddd14610343575b600080fd5b61021e610c7b565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561025e578082015181840152602081019050610243565b50505050905090810190601f16801561028b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102e5600480360360408110156102af57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d1d565b604051808215151515815260200191505060405180910390f35b6103416004803603602081101561031557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d3b565b005b61034b610f47565b6040518082815260200191505060405180910390f35b6103a36004803603602081101561037757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f51565b005b610411600480360360608110156103bb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611156565b604051808215151515815260200191505060405180910390f35b6104576004803603602081101561044157600080fd5b810190808035906020019092919050505061122f565b6040518082815260200191505060405180910390f35b6104e46004803603602081101561048357600080fd5b81019080803590602001906401000000008111156104a057600080fd5b8201836020820111156104b257600080fd5b803590602001918460208302840111640100000000831117156104d457600080fd5b909192939192939050505061124f565b005b610532600480360360408110156104fc57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061137c565b005b61053c611406565b604051808260ff1660ff16815260200191505060405180910390f35b61056061141d565b6040518082815260200191505060405180910390f35b6105c26004803603604081101561058c57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611427565b005b610610600480360360408110156105da57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506114ae565b604051808215151515815260200191505060405180910390f35b6106766004803603604081101561064057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611561565b005b6106a46004803603602081101561068e57600080fd5b8101908080359060200190929190505050611634565b005b6106ae611709565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6107326004803603602081101561070657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061172f565b6040518082815260200191505060405180910390f35b610750611778565b005b61075a6117e6565b6040518082815260200191505060405180910390f35b6107bc6004803603604081101561078657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061181f565b005b6107c66118f6565b6040518082815260200191505060405180910390f35b6107e461192f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61085c6004803603604081101561083c57600080fd5b810190808035906020019092919080359060200190929190505050611958565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6108ea600480360360408110156108b457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061198a565b604051808215151515815260200191505060405180910390f35b61090c6119bc565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561094c578082015181840152602081019050610931565b50505050905090810190601f1680156109795780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61098f611a5e565b6040518082815260200191505060405180910390f35b6109f1600480360360408110156109bb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611a65565b604051808215151515815260200191505060405180910390f35b610a5760048036036040811015610a2157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611b32565b604051808215151515815260200191505060405180910390f35b610a79611b50565b604051808215151515815260200191505060405180910390f35b610ad560048036036020811015610aa957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611b63565b005b610b1960048036036020811015610aed57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611e2e565b6040518082815260200191505060405180910390f35b610b5b60048036036020811015610b4557600080fd5b8101908080359060200190929190505050611e77565b6040518082815260200191505060405180910390f35b610bbd60048036036040811015610b8757600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611e9e565b005b610c2160048036036040811015610bd557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f28565b6040518082815260200191505060405180910390f35b610c7960048036036020811015610c4d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611faf565b005b606060068054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d135780601f10610ce857610100808354040283529160200191610d13565b820191906000526020600020905b815481529060010190602001808311610cf657829003601f168201915b5050505050905090565b6000610d31610d2a612321565b8484612329565b6001905092915050565b610d43612321565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000610f0f600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610ec657600080fd5b505afa158015610eda573d6000803e3d6000fd5b505050506040513d6020811015610ef057600080fd5b810190808051906020019092919050505061252090919063ffffffff16565b9050610f43610f1c61192f565b828473ffffffffffffffffffffffffffffffffffffffff1661256a9092919063ffffffff16565b5050565b6000600554905090565b610f59612321565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461101a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600a60149054906101000a900460ff1615611080576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260398152602001806138a16039913960400191505060405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600a60146101000a81548160ff021916908315150217905550600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600a60149054906101000a900460ff1615157f387a9ed45878b6f7d79a3ac5c023a1284be92e83fa24919d4975913f57c7ce0460405160405180910390a350565b6000611163848484612622565b6112248461116f612321565b61121f8560405180606001604052806028815260200161378460289139600460008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006111d5612321565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546128e79092919063ffffffff16565b612329565b600190509392505050565b600060026000838152602001908152602001600020600201549050919050565b61129d61129060405180807f57484954454c49535445445f524f4c45000000000000000000000000000000008152506010019050604051809103902061122f565b611298612321565b61198a565b6112f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180613662602f913960400191505060405180910390fd5b60008090505b828290508110156113775761136a60405180807f57484954454c49535445445f524f4c45000000000000000000000000000000008152506010019050604051809103902084848481811061134857fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff166129a7565b80806001019150506112f8565b505050565b6113a3600260008481526020019081526020016000206002015461139e612321565b61198a565b6113f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180613662602f913960400191505060405180910390fd5b61140282826129b5565b5050565b6000600860009054906101000a900460ff16905090565b6000600954905090565b6000801b8214156114a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f43616e6e6f742072656e6f756e6365207468652061646d696e20726f6c65000081525060200191505060405180910390fd5b6114aa828261201b565b5050565b60006115576114bb612321565b8461155285600460006114cc612321565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a4990919063ffffffff16565b612329565b6001905092915050565b600a60149054906101000a900460ff1680156115d15750611580612321565b73ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b611626576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260338152602001806137516033913960400191505060405180910390fd5b6116308282612ad1565b5050565b61163c612321565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61170681612c9a565b50565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f5468657265206d75737420626520616e206f776e65720000000000000000000081525060200191505060405180910390fd5b60405180807f57484954454c4953545f4d414e414745525f524f4c45000000000000000000008152506016019050604051809103902081565b611827612321565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146118e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6118f28282612cae565b5050565b60405180807f57484954454c49535445445f524f4c45000000000000000000000000000000008152506010019050604051809103902081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006119828260026000868152602001908152602001600020600001612d1090919063ffffffff16565b905092915050565b60006119b48260026000868152602001908152602001600020600001612d2a90919063ffffffff16565b905092915050565b606060078054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611a545780601f10611a2957610100808354040283529160200191611a54565b820191906000526020600020905b815481529060010190602001808311611a3757829003601f168201915b5050505050905090565b6000801b81565b6000611b28611a72612321565b84611b23856040518060600160405280602581526020016138da6025913960046000611a9c612321565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546128e79092919063ffffffff16565b612329565b6001905092915050565b6000611b46611b3f612321565b8484612622565b6001905092915050565b600a60149054906101000a900460ff1681565b611b6b612321565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c2c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600a60149054906101000a900460ff16611c91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603d8152602001806137d0603d913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611d56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f557067726164652068617320616c7265616479206265656e207265736574210081525060200191505060405180910390fd5b611d8081611d7b611d65610f47565b611d6d61141d565b61252090919063ffffffff16565b612ad1565b6000600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600015157f387a9ed45878b6f7d79a3ac5c023a1284be92e83fa24919d4975913f57c7ce0460405160405180910390a350565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000611e9760026000848152602001908152602001600020600001612d5a565b9050919050565b611ec56002600084815260200190815260200160002060020154611ec0612321565b61198a565b611f1a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806137216030913960400191505060405180910390fd5b611f248282612d6f565b5050565b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611fc36000801b611fbe612321565b61201b565b611fd06000801b826129a7565b61200f60405180807f57484954454c4953545f4d414e414745525f524f4c450000000000000000000081525060160190506040518091039020826129a7565b612018816120b4565b50565b612023612321565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146120a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806138ff602f913960400191505060405180910390fd5b6120b08282612d6f565b5050565b6120bc612321565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461217d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612203576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806136b36026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006122e9836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612e03565b905092915050565b6000612319836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612eeb565b905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806138536024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612435576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806136d96022913960400191505060405180910390fd5b80600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600061256283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506128e7565b905092915050565b61261d8363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612f5b565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156126a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061382e6025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561272e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061363f6023913960400191505060405180910390fd5b61273983838361304a565b6127a5816040518060600160405280602681526020016136fb60269139600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546128e79092919063ffffffff16565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061283a81600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a4990919063ffffffff16565b600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290612994576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561295957808201518184015260208101905061293e565b50505050905090810190601f1680156129865780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6129b182826129b5565b5050565b6129dd81600260008581526020019081526020016000206000016122f190919063ffffffff16565b15612a45576129ea612321565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080828401905083811015612ac7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b74576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b612b806000838361304a565b612b9581600554612a4990919063ffffffff16565b600581905550612bed81600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a4990919063ffffffff16565b600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b612cab612ca5612321565b8261305a565b50565b6000612ced826040518060600160405280602481526020016137ac60249139612cde86612cd9612321565b611f28565b6128e79092919063ffffffff16565b9050612d0183612cfb612321565b83612329565b612d0b838361305a565b505050565b6000612d1f8360000183613220565b60001c905092915050565b6000612d52836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6132a3565b905092915050565b6000612d68826000016132c6565b9050919050565b612d9781600260008581526020019081526020016000206000016122c190919063ffffffff16565b15612dff57612da4612321565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60008083600101600084815260200190815260200160002054905060008114612edf5760006001820390506000600186600001805490500390506000866000018281548110612e4e57fe5b9060005260206000200154905080876000018481548110612e6b57fe5b9060005260206000200181905550600183018760010160008381526020019081526020016000208190555086600001805480612ea357fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050612ee5565b60009150505b92915050565b6000612ef783836132a3565b612f50578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612f55565b600090505b92915050565b6060612fbd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166132d79092919063ffffffff16565b905060008151111561304557808060200190516020811015612fde57600080fd5b8101908080519060200190929190505050613044576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613877602a913960400191505060405180910390fd5b5b505050565b6130558383836132ef565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156130e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061380d6021913960400191505060405180910390fd5b6130ec8260008361304a565b6131588160405180606001604052806022815260200161369160229139600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546128e79092919063ffffffff16565b600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506131b08160055461252090919063ffffffff16565b600581905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600081836000018054905011613281576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061361d6022913960400191505060405180910390fd5b82600001828154811061329057fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b60606132e684846000856133c6565b90509392505050565b6132fa8383836135cc565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156133c15760095461334c8261333e610f47565b612a4990919063ffffffff16565b11156133c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f45524332304361707065643a206361702065786365656465640000000000000081525060200191505060405180910390fd5b5b505050565b60606133d1856135d1565b613443576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106134935780518252602082019150602081019050602083039250613470565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146134f5576040519150601f19603f3d011682016040523d82523d6000602084013e6134fa565b606091505b5091509150811561350f5780925050506135c4565b6000815111156135225780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561358957808201518184015260208101905061356e565b50505050905090810190601f1680156135b65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b949350505050565b505050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f915080821415801561361357506000801b8214155b9250505091905056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6553544f4e2063616e206f6e6c79206265206d696e746564206279207468652075706772616465207377617020656e67696e652e45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e63655570677261646520686173206e6f742073746172746564207965742e2043616e6e6f742072657365742074686520656e67696e6520616464726573732145524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564557067726164652068617320737461727465642e2043616e6e6f74207365742074686520656e67696e65206164647265737320616761696e2145524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212202de792290c2f971a80bd7228209d1802abffbffe307f07fc884e004821a9ad3964736f6c634300060a00334f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c660000000000000000000000003cfdddf82eef46f6436c214e849942460eb13c08

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

0000000000000000000000003cfdddf82eef46f6436c214e849942460eb13c08

-----Decoded View---------------
Arg [0] : newOwner (address): 0x3cfdddf82eef46f6436c214e849942460eb13c08

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003cfdddf82eef46f6436c214e849942460eb13c08


Deployed ByteCode Sourcemap

58972:6479:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47599:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49705:169;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23004:257;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;48674:100;;;:::i;:::-;;;;;;;;;;;;;;;;;;;60612:349;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;50348:321;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;42178:114;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;62093:326;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;42554:227;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;48526:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;58213:75;;;:::i;:::-;;;;;;;;;;;;;;;;;;;64762:216;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;51078:218;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;62730:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;63128:108;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;59277:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;48837:119;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;63785:105;;;:::i;:::-;;59091:100;;;:::i;:::-;;;;;;;;;;;;;;;;;;;63506:174;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;59198:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;5423:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;41851:138;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;40812:139;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;47801:87;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39557:49;;;:::i;:::-;;;;;;;;;;;;;;;;;;;51799:269;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;49169:175;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;59312:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;61250:575;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;23442:147;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;41125:127;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;43026:230;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;49407:151;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;64144:361;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;47599:83;47636:13;47669:5;47662:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47599:83;:::o;49705:169::-;49788:4;49805:39;49814:12;:10;:12::i;:::-;49828:7;49837:6;49805:8;:39::i;:::-;49862:4;49855:11;;49705:169;;;;:::o;23004:257::-;5645:12;:10;:12::i;:::-;5635:22;;:6;;;;;;;;;;;:22;;;5627:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23081:15:::1;23099:94;23147:16;:45;23172:18;23147:45;;;;;;;;;;;;;;;;23099:18;:28;;;23136:4;23099:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;:47;;:94;;;;:::i;:::-;23081:112;;23204:49;23236:7;:5;:7::i;:::-;23245;23204:18;:31;;;;:49;;;;;:::i;:::-;5705:1;23004:257:::0;:::o;48674:100::-;48727:7;48754:12;;48747:19;;48674:100;:::o;60612:349::-;5645:12;:10;:12::i;:::-;5635:22;;:6;;;;;;;;;;;:22;;;5627:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60716:14:::1;;;;;;;;;;;60715:15;60693:122;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60842:13;60826;;:29;;;;;;;;;;;;;;;;;;60883:4;60866:14;;:21;;;;;;;;;;;;;;;;;;60939:13;;;;;;;;;;;60903:50;;60923:14;;;;;;;;;;;60903:50;;;;;;;;;;;;60612:349:::0;:::o;50348:321::-;50454:4;50471:36;50481:6;50489:9;50500:6;50471:9;:36::i;:::-;50518:121;50527:6;50535:12;:10;:12::i;:::-;50549:89;50587:6;50549:89;;;;;;;;;;;;;;;;;:11;:19;50561:6;50549:19;;;;;;;;;;;;;;;:33;50569:12;:10;:12::i;:::-;50549:33;;;;;;;;;;;;;;;;:37;;:89;;;;;:::i;:::-;50518:8;:121::i;:::-;50657:4;50650:11;;50348:321;;;;;:::o;42178:114::-;42235:7;42262:6;:12;42269:4;42262:12;;;;;;;;;;;:22;;;42255:29;;42178:114;;;:::o;62093:326::-;62180:53;62188:30;59241:29;;;;;;;;;;;;;;;;;;;62188:12;:30::i;:::-;62220:12;:10;:12::i;:::-;62180:7;:53::i;:::-;62172:113;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62303:9;62315:1;62303:13;;62298:114;62322:8;;:15;;62318:1;:19;62298:114;;;62359:41;59241:29;;;;;;;;;;;;;;;;;;;62388:8;;62397:1;62388:11;;;;;;;;;;;;;;;62359:10;:41::i;:::-;62339:3;;;;;;;62298:114;;;;62093:326;;:::o;42554:227::-;42638:45;42646:6;:12;42653:4;42646:12;;;;;;;;;;;:22;;;42670:12;:10;:12::i;:::-;42638:7;:45::i;:::-;42630:105;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42748:25;42759:4;42765:7;42748:10;:25::i;:::-;42554:227;;:::o;48526:83::-;48567:5;48592:9;;;;;;;;;;;48585:16;;48526:83;:::o;58213:75::-;58249:7;58276:4;;58269:11;;58213:75;:::o;64762:216::-;39602:4;64873:18;;64865:4;:26;;64857:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64937:33;64956:4;64962:7;64937:18;:33::i;:::-;64762:216;;:::o;51078:218::-;51166:4;51183:83;51192:12;:10;:12::i;:::-;51206:7;51215:50;51254:10;51215:11;:25;51227:12;:10;:12::i;:::-;51215:25;;;;;;;;;;;;;;;:34;51241:7;51215:34;;;;;;;;;;;;;;;;:38;;:50;;;;:::i;:::-;51183:8;:83::i;:::-;51284:4;51277:11;;51078:218;;;;:::o;62730:244::-;62812:14;;;;;;;;;;;:47;;;;;62847:12;:10;:12::i;:::-;62830:29;;:13;;;;;;;;;;;:29;;;62812:47;62790:148;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62949:17;62955:2;62959:6;62949:5;:17::i;:::-;62730:244;;:::o;63128:108::-;5645:12;:10;:12::i;:::-;5635:22;;:6;;;;;;;;;;;:22;;;5627:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63210:18:::1;63221:6;63210:10;:18::i;:::-;63128:108:::0;:::o;59277:28::-;;;;;;;;;;;;;:::o;48837:119::-;48903:7;48930:9;:18;48940:7;48930:18;;;;;;;;;;;;;;;;48923:25;;48837:119;;;:::o;63785:105::-;63850:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59091:100;59140:51;;;;;;;;;;;;;;;;;;;59091:100;:::o;63506:174::-;5645:12;:10;:12::i;:::-;5635:22;;:6;;;;;;;;;;;:22;;;5627:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63641:31:::1;63656:7;63665:6;63641:14;:31::i;:::-;63506:174:::0;;:::o;59198:72::-;59241:29;;;;;;;;;;;;;;;;;;;59198:72;:::o;5423:79::-;5461:7;5488:6;;;;;;;;;;;5481:13;;5423:79;:::o;41851:138::-;41924:7;41951:30;41975:5;41951:6;:12;41958:4;41951:12;;;;;;;;;;;:20;;:23;;:30;;;;:::i;:::-;41944:37;;41851:138;;;;:::o;40812:139::-;40881:4;40905:38;40935:7;40905:6;:12;40912:4;40905:12;;;;;;;;;;;:20;;:29;;:38;;;;:::i;:::-;40898:45;;40812:139;;;;:::o;47801:87::-;47840:13;47873:7;47866:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47801:87;:::o;39557:49::-;39602:4;39557:49;;;:::o;51799:269::-;51892:4;51909:129;51918:12;:10;:12::i;:::-;51932:7;51941:96;51980:15;51941:96;;;;;;;;;;;;;;;;;:11;:25;51953:12;:10;:12::i;:::-;51941:25;;;;;;;;;;;;;;;:34;51967:7;51941:34;;;;;;;;;;;;;;;;:38;;:96;;;;;:::i;:::-;51909:8;:129::i;:::-;52056:4;52049:11;;51799:269;;;;:::o;49169:175::-;49255:4;49272:42;49282:12;:10;:12::i;:::-;49296:9;49307:6;49272:9;:42::i;:::-;49332:4;49325:11;;49169:175;;;;:::o;59312:26::-;;;;;;;;;;;;;:::o;61250:575::-;5645:12;:10;:12::i;:::-;5635:22;;:6;;;;;;;;;;;:22;;;5627:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61350:14:::1;;;;;;;;;;;61328:125;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61511:1;61486:27;;:13;;;;;;;;;;;:27;;;;61464:108;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;61633:44;61639:11;61652:24;61662:13;:11;:13::i;:::-;61652:5;:3;:5::i;:::-;:9;;:24;;;;:::i;:::-;61633:5;:44::i;:::-;61758:1;61734:13;;:26;;;;;;;;;;;;;;;;;;61803:13;;;;;;;;;;;61776:41;;61796:5;61776:41;;;;;;;;;;;;61250:575:::0;:::o;23442:147::-;23518:7;23545:16;:36;23562:18;23545:36;;;;;;;;;;;;;;;;23538:43;;23442:147;;;:::o;41125:127::-;41188:7;41215:29;:6;:12;41222:4;41215:12;;;;;;;;;;;:20;;:27;:29::i;:::-;41208:36;;41125:127;;;:::o;43026:230::-;43111:45;43119:6;:12;43126:4;43119:12;;;;;;;;;;;:22;;;43143:12;:10;:12::i;:::-;43111:7;:45::i;:::-;43103:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43222:26;43234:4;43240:7;43222:11;:26::i;:::-;43026:230;;:::o;49407:151::-;49496:7;49523:11;:18;49535:5;49523:18;;;;;;;;;;;;;;;:27;49542:7;49523:27;;;;;;;;;;;;;;;;49516:34;;49407:151;;;;:::o;64144:361::-;64225:52;39602:4;64244:18;;64264:12;:10;:12::i;:::-;64225:18;:52::i;:::-;64288:40;39602:4;64299:18;;64319:8;64288:10;:40::i;:::-;64339:44;59140:51;;;;;;;;;;;;;;;;;;;64374:8;64339:10;:44::i;:::-;64464:33;64488:8;64464:23;:33::i;:::-;64144:361;:::o;43763:209::-;43861:12;:10;:12::i;:::-;43850:23;;:7;:23;;;43842:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43938:26;43950:4;43956:7;43938:11;:26::i;:::-;43763:209;;:::o;6368:244::-;5645:12;:10;:12::i;:::-;5635:22;;:6;;;;;;;;;;;:22;;;5627:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6477:1:::1;6457:22;;:8;:22;;;;6449:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6567:8;6538:38;;6559:6;::::0;::::1;;;;;;;;;6538:38;;;;;;;;;;;;6596:8;6587:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;6368:244:::0;:::o;35141:149::-;35214:4;35238:44;35246:3;:10;;35274:5;35266:14;;35258:23;;35238:7;:44::i;:::-;35231:51;;35141:149;;;;:::o;34822:143::-;34892:4;34916:41;34921:3;:10;;34949:5;34941:14;;34933:23;;34916:4;:41::i;:::-;34909:48;;34822:143;;;;:::o;3967:106::-;4020:15;4055:10;4048:17;;3967:106;:::o;54946:346::-;55065:1;55048:19;;:5;:19;;;;55040:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55146:1;55127:21;;:7;:21;;;;55119:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55230:6;55200:11;:18;55212:5;55200:18;;;;;;;;;;;;;;;:27;55219:7;55200:27;;;;;;;;;;;;;;;:36;;;;55268:7;55252:32;;55261:5;55252:32;;;55277:6;55252:32;;;;;;;;;;;;;;;;;;54946:346;;;:::o;8016:136::-;8074:7;8101:43;8105:1;8108;8101:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;8094:50;;8016:136;;;;:::o;18930:177::-;19013:86;19033:5;19063:23;;;19088:2;19092:5;19040:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19013:19;:86::i;:::-;18930:177;;;:::o;52558:539::-;52682:1;52664:20;;:6;:20;;;;52656:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52766:1;52745:23;;:9;:23;;;;52737:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52821:47;52842:6;52850:9;52861:6;52821:20;:47::i;:::-;52901:71;52923:6;52901:71;;;;;;;;;;;;;;;;;:9;:17;52911:6;52901:17;;;;;;;;;;;;;;;;:21;;:71;;;;;:::i;:::-;52881:9;:17;52891:6;52881:17;;;;;;;;;;;;;;;:91;;;;53006:32;53031:6;53006:9;:20;53016:9;53006:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;52983:9;:20;52993:9;52983:20;;;;;;;;;;;;;;;:55;;;;53071:9;53054:35;;53063:6;53054:35;;;53082:6;53054:35;;;;;;;;;;;;;;;;;;52558:539;;;:::o;8455:192::-;8541:7;8574:1;8569;:6;;8577:12;8561:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8601:9;8617:1;8613;:5;8601:17;;8638:1;8631:8;;;8455:192;;;;;:::o;44555:112::-;44634:25;44645:4;44651:7;44634:10;:25::i;:::-;44555:112;;:::o;45006:188::-;45080:33;45105:7;45080:6;:12;45087:4;45080:12;;;;;;;;;;;:20;;:24;;:33;;;;:::i;:::-;45076:111;;;45162:12;:10;:12::i;:::-;45135:40;;45153:7;45135:40;;45147:4;45135:40;;;;;;;;;;45076:111;45006:188;;:::o;7552:181::-;7610:7;7630:9;7646:1;7642;:5;7630:17;;7671:1;7666;:6;;7658:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7724:1;7717:8;;;7552:181;;;;:::o;53378:378::-;53481:1;53462:21;;:7;:21;;;;53454:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53532:49;53561:1;53565:7;53574:6;53532:20;:49::i;:::-;53609:24;53626:6;53609:12;;:16;;:24;;;;:::i;:::-;53594:12;:39;;;;53665:30;53688:6;53665:9;:18;53675:7;53665:18;;;;;;;;;;;;;;;;:22;;:30;;;;:::i;:::-;53644:9;:18;53654:7;53644:18;;;;;;;;;;;;;;;:51;;;;53732:7;53711:37;;53728:1;53711:37;;;53741:6;53711:37;;;;;;;;;;;;;;;;;;53378:378;;:::o;56904:91::-;56960:27;56966:12;:10;:12::i;:::-;56980:6;56960:5;:27::i;:::-;56904:91;:::o;57314:295::-;57391:26;57420:84;57457:6;57420:84;;;;;;;;;;;;;;;;;:32;57430:7;57439:12;:10;:12::i;:::-;57420:9;:32::i;:::-;:36;;:84;;;;;:::i;:::-;57391:113;;57517:51;57526:7;57535:12;:10;:12::i;:::-;57549:18;57517:8;:51::i;:::-;57579:22;57585:7;57594:6;57579:5;:22::i;:::-;57314:295;;;:::o;36081:149::-;36155:7;36198:22;36202:3;:10;;36214:5;36198:3;:22::i;:::-;36190:31;;36175:47;;36081:149;;;;:::o;35376:158::-;35456:4;35480:46;35490:3;:10;;35518:5;35510:14;;35502:23;;35480:9;:46::i;:::-;35473:53;;35376:158;;;;:::o;35620:117::-;35683:7;35710:19;35718:3;:10;;35710:7;:19::i;:::-;35703:26;;35620:117;;;:::o;45202:192::-;45277:36;45305:7;45277:6;:12;45284:4;45277:12;;;;;;;;;;;:20;;:27;;:36;;;;:::i;:::-;45273:114;;;45362:12;:10;:12::i;:::-;45335:40;;45353:7;45335:40;;45347:4;45335:40;;;;;;;;;;45273:114;45202:192;;:::o;32066:1544::-;32132:4;32250:18;32271:3;:12;;:19;32284:5;32271:19;;;;;;;;;;;;32250:40;;32321:1;32307:10;:15;32303:1300;;32669:21;32706:1;32693:10;:14;32669:38;;32722:17;32763:1;32742:3;:11;;:18;;;;:22;32722:42;;33009:17;33029:3;:11;;33041:9;33029:22;;;;;;;;;;;;;;;;33009:42;;33175:9;33146:3;:11;;33158:13;33146:26;;;;;;;;;;;;;;;:38;;;;33294:1;33278:13;:17;33252:3;:12;;:23;33265:9;33252:23;;;;;;;;;;;:43;;;;33404:3;:11;;:17;;;;;;;;;;;;;;;;;;;;;;;;33499:3;:12;;:19;33512:5;33499:19;;;;;;;;;;;33492:26;;;33542:4;33535:11;;;;;;;;32303:1300;33586:5;33579:12;;;32066:1544;;;;;:::o;31476:414::-;31539:4;31561:21;31571:3;31576:5;31561:9;:21::i;:::-;31556:327;;31599:3;:11;;31616:5;31599:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31782:3;:11;;:18;;;;31760:3;:12;;:19;31773:5;31760:19;;;;;;;;;;;:40;;;;31822:4;31815:11;;;;31556:327;31866:5;31859:12;;31476:414;;;;;:::o;21235:761::-;21659:23;21685:69;21713:4;21685:69;;;;;;;;;;;;;;;;;21693:5;21685:27;;;;:69;;;;;:::i;:::-;21659:95;;21789:1;21769:10;:17;:21;21765:224;;;21911:10;21900:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21892:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21765:224;21235:761;;;:::o;65233:215::-;65396:44;65423:4;65429:2;65433:6;65396:26;:44::i;:::-;65233:215;;;:::o;54088:418::-;54191:1;54172:21;;:7;:21;;;;54164:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54244:49;54265:7;54282:1;54286:6;54244:20;:49::i;:::-;54327:68;54350:6;54327:68;;;;;;;;;;;;;;;;;:9;:18;54337:7;54327:18;;;;;;;;;;;;;;;;:22;;:68;;;;;:::i;:::-;54306:9;:18;54316:7;54306:18;;;;;;;;;;;;;;;:89;;;;54421:24;54438:6;54421:12;;:16;;:24;;;;:::i;:::-;54406:12;:39;;;;54487:1;54461:37;;54470:7;54461:37;;;54491:6;54461:37;;;;;;;;;;;;;;;;;;54088:418;;:::o;34364:204::-;34431:7;34480:5;34459:3;:11;;:18;;;;:26;34451:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34542:3;:11;;34554:5;34542:18;;;;;;;;;;;;;;;;34535:25;;34364:204;;;;:::o;33696:129::-;33769:4;33816:1;33793:3;:12;;:19;33806:5;33793:19;;;;;;;;;;;;:24;;33786:31;;33696:129;;;;:::o;33911:109::-;33967:7;33994:3;:11;;:18;;;;33987:25;;33911:109;;;:::o;15901:196::-;16004:12;16036:53;16059:6;16067:4;16073:1;16076:12;16036:22;:53::i;:::-;16029:60;;15901:196;;;;;:::o;58475:318::-;58584:44;58611:4;58617:2;58621:6;58584:26;:44::i;:::-;58661:1;58645:18;;:4;:18;;;58641:145;;;58740:4;;58711:25;58729:6;58711:13;:11;:13::i;:::-;:17;;:25;;;;:::i;:::-;:33;;58703:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58641:145;58475:318;;;:::o;17278:979::-;17408:12;17441:18;17452:6;17441:10;:18::i;:::-;17433:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17567:12;17581:23;17608:6;:11;;17628:8;17639:4;17608:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17566:78;;;;17659:7;17655:595;;;17690:10;17683:17;;;;;;17655:595;17824:1;17804:10;:17;:21;17800:439;;;18067:10;18061:17;18128:15;18115:10;18111:2;18107:19;18100:44;18015:148;18210:12;18203:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17278:979;;;;;;;:::o;56317:92::-;;;;:::o;12786:619::-;12846:4;13108:16;13135:19;13157:66;13135:88;;;;13326:7;13314:20;13302:32;;13366:11;13354:8;:23;;:42;;;;;13393:3;13381:15;;:8;:15;;13354:42;13346:51;;;;12786:619;;;:::o

Swarm Source

ipfs://2de792290c2f971a80bd7228209d1802abffbffe307f07fc884e004821a9ad39

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.