false
false

Contract Address Details

0x4e124938178f448579ea6ecf68e393c6b1cfa114

Contract Name
GLBond
Creator
0xfe4809–772268 at 0x654d16–397e28
Balance
0 ETH ( )
Tokens
Fetching tokens...
Transactions
32 Transactions
Transfers
24 Transfers
Gas Used
5,675,081
Last Balance Update
70312670
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
GLBond




Optimization enabled
false
Compiler version
v0.8.7+commit.e28d00a7




EVM Version
default




Verified at
2023-08-24T23:26:33.523000Z

Constructor Arguments

000000000000000000000000722e8bdd2ce80a4422e880164f2079488e115365000000000000000000000000de4490b673bb6e508029178936e2df402fec942f

Arg [0] (address) : 0x722e8bdd2ce80a4422e880164f2079488e115365
Arg [1] (address) : 0xde4490b673bb6e508029178936e2df402fec942f

              

Contract source code

// File: guesslist/contracts/lib/Math.sol



pragma solidity ^0.8.3;

library Math {
    /**
     * @dev returns the largest integer smaller than or equal to the square root of a positive integer
     *
     * @param _num a positive integer
     *
     * @return the largest integer smaller than or equal to the square root of the positive integer
     */
    function floorSqrt(uint256 _num) internal pure returns (uint256) {
        uint256 x = _num / 2 + 1;
        uint256 y = (x + _num / x) / 2;
        while (x > y) {
            x = y;
            y = (x + _num / x) / 2;
        }
        return x;
    }
}
// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.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.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev 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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// File: guesslist/contracts/lib/ERC20Initializable.sol



pragma solidity ^0.8.3;



/**
 * @notice A slightly modified version of ERC20.sol (from Openzeppelin 4.1.0) for initialization pattern
 */

abstract contract ERC20Initializable is Context, IERC20 {
    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string internal _name;
    string internal _symbol;

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - amount);

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}
// File: guesslist/contracts/GLToken.sol



pragma solidity ^0.8.3;


/**
* @title Guesslist token implementation
*/
contract GLToken is ERC20Initializable {
    bool private _initialized; // false by default
    address private _owner; // Ownable is implemented manually to make it compatible with `initializable`

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

    function init(string memory name_, string memory symbol_) external {
        require(_initialized == false, "CONTRACT_ALREADY_INITIALIZED");

        _name = name_;
        _symbol = symbol_;
        _owner = _msgSender();

        _initialized = true;

        emit OwnershipTransferred(address(0), _owner);
    }

    function owner() public view returns (address) {
        return _owner;
    }

    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    function mint(address to, uint256 amount) public onlyOwner {
        _mint(to, amount);
    }

    // NOTE:
    // Disable direct burn function call to not alter totalSupply of bonding curve
    // Users can directly burn their tokens by sending them to token contract address
    function burnFrom(address account, uint256 amount) public onlyOwner {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        _approve(account, _msgSender(), currentAllowance - amount);
        _burn(account, amount);
    }
}
// File: guesslist/contracts/GLFactory.sol



pragma solidity ^0.8.3;



/**
* @title Guesslist token factory
*
* Create an ERC20 token using proxy pattern to save gas
*/
abstract contract GLFactory is Ownable {
    /**
     *  ERC20 Token implementation contract
     *  We use "EIP-1167: Minimal Proxy Contract" in order to save gas cost for each token deployment
     *  REF: https://github.com/optionality/clone-factory
     */
    address public tokenImplementation;

    // Array of all created tokens
    address[] public tokens;

    event TokenCreated(address tokenAddress, string name, string symbol);
    event ImplementationUpdated(address tokenImplementation);

    constructor(address implementation) {
        updateTokenImplementation(implementation);
    }

    // NOTE: This won't change a token implementation that is already created
    function updateTokenImplementation(address implementation) public onlyOwner {
        require(implementation != address(0), 'IMPLEMENTATION_CANNOT_BE_NULL');

        tokenImplementation = implementation;
        emit ImplementationUpdated(tokenImplementation);
    }

    // REF: https://github.com/optionality/clone-factory
    function _createClone(address target) private returns (address result) {
        bytes20 targetBytes = bytes20(target);
        assembly {
            let clone := mload(0x40)
            mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(clone, 0x14), targetBytes)
            mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            result := create(0, clone, 0x37)
        }
    }

    function createToken(string memory name, string memory symbol) public returns (address) {

        address tokenAddress = _createClone(tokenImplementation);
        GLToken newToken = GLToken(tokenAddress);
        newToken.init(name, symbol);

        tokens.push(tokenAddress);

        emit TokenCreated(tokenAddress, name, symbol);

        return tokenAddress;
    }

    function tokenCount() external view returns (uint256) {
        return tokens.length;
    }
}
// File: guesslist/contracts/GLBond.sol



pragma solidity ^0.8.3;





/**
* @title Guesslist token bonding curve
*
* Providing liquidity to Guesslist tokens using a token bonding curve
*/
contract GLBond is GLFactory {

    // Token => Reserve Balance
    mapping (address => uint256) public reserveBalance;

    GLToken private RESERVE_TOKEN; // Any IERC20

    event Buy(address tokenAddress, address buyer, uint256 amountMinted, uint256 reserveAmount);
    event Sell(address tokenAddress, address seller, uint256 amountBurned, uint256 refundAmount);

    constructor(address baseToken, address implementation) GLFactory(implementation) {
        RESERVE_TOKEN = GLToken(baseToken);
    }

    // Utility functions for external calls below

    function reserveTokenAddress() external view returns (address) {
        return address(RESERVE_TOKEN);
    }

    function currentPrice(address tokenAddress) external view returns (uint256) {
        return GLToken(tokenAddress).totalSupply();
    }

    // Use the simplest bonding curve (y = x)
     
    function getMintReward(address tokenAddress, uint256 reserveAmount) public view returns (uint256) {
        uint256 newSupply = Math.floorSqrt(2 * 1e18 * (reserveAmount + reserveBalance[tokenAddress]));
        uint256 toMint = newSupply - GLToken(tokenAddress).totalSupply();

        return toMint;
    }

    function getBurnRefund(address tokenAddress) public view returns (uint256) {
        uint256 newTokenSupply = GLToken(tokenAddress).totalSupply() - GLToken(tokenAddress).balanceOf(msg.sender);

        // Should be the same as: (1/2 * (totalSupply**2 - newTokenSupply**2);
        uint256 reserveAmount = reserveBalance[tokenAddress] - (newTokenSupply**2 / (2 * 1e18));

        return reserveAmount;
    }

    function buy(address tokenAddress, uint256 reserveAmount) public {
        (uint256 rewardTokens) = getMintReward(tokenAddress, reserveAmount);

        // Transfer reserve tokens
        require(RESERVE_TOKEN.transferFrom(_msgSender(), address(this), reserveAmount), "RESERVE_TOKEN_TRANSFER_FAILED");
        reserveBalance[tokenAddress] += reserveAmount;

        // Mint reward tokens to the buyer
        GLToken(tokenAddress).mint(_msgSender(), rewardTokens);

        emit Buy(tokenAddress, _msgSender(), rewardTokens, reserveAmount);
    }

    function sell(address tokenAddress) public {
        (uint256 refundAmount) = getBurnRefund(tokenAddress);

        // Burn token first
        GLToken(tokenAddress).burnFrom(_msgSender(), GLToken(tokenAddress).balanceOf(msg.sender));

        // Refund reserve tokens to the seller
        reserveBalance[tokenAddress] -= refundAmount;
        require(RESERVE_TOKEN.transfer(_msgSender(), refundAmount), "RESERVE_TOKEN_TRANSFER_FAILED");

        emit Sell(tokenAddress, _msgSender(), GLToken(tokenAddress).balanceOf(msg.sender), refundAmount);
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"baseToken","internalType":"address"},{"type":"address","name":"implementation","internalType":"address"}]},{"type":"event","name":"Buy","inputs":[{"type":"address","name":"tokenAddress","internalType":"address","indexed":false},{"type":"address","name":"buyer","internalType":"address","indexed":false},{"type":"uint256","name":"amountMinted","internalType":"uint256","indexed":false},{"type":"uint256","name":"reserveAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ImplementationUpdated","inputs":[{"type":"address","name":"tokenImplementation","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Sell","inputs":[{"type":"address","name":"tokenAddress","internalType":"address","indexed":false},{"type":"address","name":"seller","internalType":"address","indexed":false},{"type":"uint256","name":"amountBurned","internalType":"uint256","indexed":false},{"type":"uint256","name":"refundAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"TokenCreated","inputs":[{"type":"address","name":"tokenAddress","internalType":"address","indexed":false},{"type":"string","name":"name","internalType":"string","indexed":false},{"type":"string","name":"symbol","internalType":"string","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"buy","inputs":[{"type":"address","name":"tokenAddress","internalType":"address"},{"type":"uint256","name":"reserveAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"createToken","inputs":[{"type":"string","name":"name","internalType":"string"},{"type":"string","name":"symbol","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"currentPrice","inputs":[{"type":"address","name":"tokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getBurnRefund","inputs":[{"type":"address","name":"tokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMintReward","inputs":[{"type":"address","name":"tokenAddress","internalType":"address"},{"type":"uint256","name":"reserveAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"reserveBalance","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"reserveTokenAddress","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"sell","inputs":[{"type":"address","name":"tokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenCount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"tokenImplementation","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"tokens","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateTokenImplementation","inputs":[{"type":"address","name":"implementation","internalType":"address"}]}]
              

Contract Creation Code

0x60806040523480156200001157600080fd5b506040516200215b3803806200215b833981810160405281019062000037919062000372565b80620000586200004c620000b360201b60201c565b620000bb60201b60201c565b62000069816200017f60201b60201c565b5081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506200052f565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200018f620002a160201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000202576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001f99062000435565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f310ba5f1d2ed074b51e2eccd052a47ae9ab7c6b800d1fca3db3999d6a592ca03600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405162000296919062000418565b60405180910390a150565b620002b1620000b360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002d76200033260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000330576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003279062000457565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000815190506200036c8162000515565b92915050565b600080604083850312156200038c576200038b620004be565b5b60006200039c858286016200035b565b9250506020620003af858286016200035b565b9150509250929050565b620003c4816200048a565b82525050565b6000620003d9601d8362000479565b9150620003e682620004c3565b602082019050919050565b60006200040060208362000479565b91506200040d82620004ec565b602082019050919050565b60006020820190506200042f6000830184620003b9565b92915050565b600060208201905081810360008301526200045081620003ca565b9050919050565b600060208201905081810360008301526200047281620003f1565b9050919050565b600082825260208201905092915050565b600062000497826200049e565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b7f494d504c454d454e544154494f4e5f43414e4e4f545f42455f4e554c4c000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b62000520816200048a565b81146200052c57600080fd5b50565b611c1c806200053f6000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80639f181b5e11610097578063e9833c2f11610066578063e9833c2f14610272578063eb0cf64d146102a2578063ee1ea4ff146102d2578063f2fde38b146102f0576100f5565b80639f181b5e146101ec578063cce7ec131461020a578063d20dd34914610226578063dc8de37914610242576100f5565b8063680d456c116100d3578063680d456c14610178578063715018a6146101a85780638da5cb5b146101b257806394b6f9d4146101d0576100f5565b80632f2f2d56146100fa5780632f3a3d5d1461012a5780634f64b2be14610148575b600080fd5b610114600480360381019061010f91906112cc565b61030c565b6040516101219190611481565b60405180910390f35b610132610457565b60405161013f9190611481565b60405180910390f35b610162600480360381019061015d9190611344565b61047d565b60405161016f9190611481565b60405180910390f35b610192600480360381019061018d9190611232565b6104bc565b60405161019f919061163d565b60405180910390f35b6101b061064a565b005b6101ba61065e565b6040516101c79190611481565b60405180910390f35b6101ea60048036038101906101e59190611232565b610687565b005b6101f46109ab565b604051610201919061163d565b60405180910390f35b610224600480360381019061021f919061125f565b6109b8565b005b610240600480360381019061023b9190611232565b610bd0565b005b61025c60048036038101906102579190611232565b610ce5565b604051610269919061163d565b60405180910390f35b61028c60048036038101906102879190611232565b610cfd565b604051610299919061163d565b60405180910390f35b6102bc60048036038101906102b7919061125f565b610d84565b6040516102c9919061163d565b60405180910390f35b6102da610e87565b6040516102e79190611481565b60405180910390f35b61030a60048036038101906103059190611232565b610eb1565b005b60008061033a600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610f35565b905060008190508073ffffffffffffffffffffffffffffffffffffffff16637029144c86866040518363ffffffff1660e01b815260040161037c929190611586565b600060405180830381600087803b15801561039657600080fd5b505af11580156103aa573d6000803e3d6000fd5b505050506002829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fffc04f682c7b287e4b552dacd4b833d7c33dc0549cd6da84388408e4830c056282868660405161044493929190611518565b60405180910390a1819250505092915050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002818154811061048d57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000808273ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016104f89190611481565b60206040518083038186803b15801561051057600080fd5b505afa158015610524573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105489190611371565b8373ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561058e57600080fd5b505afa1580156105a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c69190611371565b6105d0919061191c565b90506000671bc16d674ec800006002836105ea91906117a4565b6105f49190611720565b600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461063e919061191c565b90508092505050919050565b610652610f9f565b61065c600061101d565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000610692826104bc565b90508173ffffffffffffffffffffffffffffffffffffffff166379cc67906106b86110e1565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016106f19190611481565b60206040518083038186803b15801561070957600080fd5b505afa15801561071d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107419190611371565b6040518363ffffffff1660e01b815260040161075e92919061155d565b600060405180830381600087803b15801561077857600080fd5b505af115801561078c573d6000803e3d6000fd5b5050505080600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546107df919061191c565b92505081905550600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61082c6110e1565b836040518363ffffffff1660e01b815260040161084a92919061155d565b602060405180830381600087803b15801561086457600080fd5b505af1158015610878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089c919061129f565b6108db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d29061161d565b60405180910390fd5b7fa082022e93cfcd9f1da5f9236718053910f7e840da080c789c7845698dc032ff826109056110e1565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161093e9190611481565b60206040518083038186803b15801561095657600080fd5b505afa15801561096a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098e9190611371565b8460405161099f94939291906114d3565b60405180910390a15050565b6000600280549050905090565b60006109c48383610d84565b9050600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd610a0c6110e1565b30856040518463ffffffff1660e01b8152600401610a2c9392919061149c565b602060405180830381600087803b158015610a4657600080fd5b505af1158015610a5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7e919061129f565b610abd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab49061161d565b60405180910390fd5b81600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610b0c91906116ca565b925050819055508273ffffffffffffffffffffffffffffffffffffffff166340c10f19610b376110e1565b836040518363ffffffff1660e01b8152600401610b5592919061155d565b600060405180830381600087803b158015610b6f57600080fd5b505af1158015610b83573d6000803e3d6000fd5b505050507f89f5adc174562e07c9c9b1cae7109bbecb21cf9d1b2847e550042b8653c54a0e83610bb16110e1565b8385604051610bc394939291906114d3565b60405180910390a1505050565b610bd8610f9f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3f906115dd565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f310ba5f1d2ed074b51e2eccd052a47ae9ab7c6b800d1fca3db3999d6a592ca03600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610cda9190611481565b60405180910390a150565b60036020528060005260406000206000915090505481565b60008173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d4557600080fd5b505afa158015610d59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7d9190611371565b9050919050565b600080610ded600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205484610dd591906116ca565b671bc16d674ec80000610de891906118c2565b6110e9565b905060008473ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610e3757600080fd5b505afa158015610e4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6f9190611371565b82610e7a919061191c565b9050809250505092915050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610eb9610f9f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f20906115bd565b60405180910390fd5b610f328161101d565b50565b6000808260601b90506040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528160148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f092505050919050565b610fa76110e1565b73ffffffffffffffffffffffffffffffffffffffff16610fc561065e565b73ffffffffffffffffffffffffffffffffffffffff161461101b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611012906115fd565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b60008060016002846110fb9190611720565b61110591906116ca565b90506000600282856111179190611720565b8361112291906116ca565b61112c9190611720565b90505b8082111561116457809150600282856111489190611720565b8361115391906116ca565b61115d9190611720565b905061112f565b8192505050919050565b600061118161117c8461167d565b611658565b90508281526020810184848401111561119d5761119c611aaa565b5b6111a88482856119a5565b509392505050565b6000813590506111bf81611ba1565b92915050565b6000815190506111d481611bb8565b92915050565b600082601f8301126111ef576111ee611aa5565b5b81356111ff84826020860161116e565b91505092915050565b60008135905061121781611bcf565b92915050565b60008151905061122c81611bcf565b92915050565b60006020828403121561124857611247611ab4565b5b6000611256848285016111b0565b91505092915050565b6000806040838503121561127657611275611ab4565b5b6000611284858286016111b0565b925050602061129585828601611208565b9150509250929050565b6000602082840312156112b5576112b4611ab4565b5b60006112c3848285016111c5565b91505092915050565b600080604083850312156112e3576112e2611ab4565b5b600083013567ffffffffffffffff81111561130157611300611aaf565b5b61130d858286016111da565b925050602083013567ffffffffffffffff81111561132e5761132d611aaf565b5b61133a858286016111da565b9150509250929050565b60006020828403121561135a57611359611ab4565b5b600061136884828501611208565b91505092915050565b60006020828403121561138757611386611ab4565b5b60006113958482850161121d565b91505092915050565b6113a781611950565b82525050565b60006113b8826116ae565b6113c281856116b9565b93506113d28185602086016119b4565b6113db81611ab9565b840191505092915050565b60006113f36026836116b9565b91506113fe82611ad7565b604082019050919050565b6000611416601d836116b9565b915061142182611b26565b602082019050919050565b60006114396020836116b9565b915061144482611b4f565b602082019050919050565b600061145c601d836116b9565b915061146782611b78565b602082019050919050565b61147b8161198e565b82525050565b6000602082019050611496600083018461139e565b92915050565b60006060820190506114b1600083018661139e565b6114be602083018561139e565b6114cb6040830184611472565b949350505050565b60006080820190506114e8600083018761139e565b6114f5602083018661139e565b6115026040830185611472565b61150f6060830184611472565b95945050505050565b600060608201905061152d600083018661139e565b818103602083015261153f81856113ad565b9050818103604083015261155381846113ad565b9050949350505050565b6000604082019050611572600083018561139e565b61157f6020830184611472565b9392505050565b600060408201905081810360008301526115a081856113ad565b905081810360208301526115b481846113ad565b90509392505050565b600060208201905081810360008301526115d6816113e6565b9050919050565b600060208201905081810360008301526115f681611409565b9050919050565b600060208201905081810360008301526116168161142c565b9050919050565b600060208201905081810360008301526116368161144f565b9050919050565b60006020820190506116526000830184611472565b92915050565b6000611662611673565b905061166e82826119e7565b919050565b6000604051905090565b600067ffffffffffffffff82111561169857611697611a76565b5b6116a182611ab9565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b60006116d58261198e565b91506116e08361198e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561171557611714611a18565b5b828201905092915050565b600061172b8261198e565b91506117368361198e565b92508261174657611745611a47565b5b828204905092915050565b6000808291508390505b600185111561179b5780860481111561177757611776611a18565b5b60018516156117865780820291505b808102905061179485611aca565b945061175b565b94509492505050565b60006117af8261198e565b91506117ba83611998565b92506117e77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846117ef565b905092915050565b6000826117ff57600190506118bb565b8161180d57600090506118bb565b8160018114611823576002811461182d5761185c565b60019150506118bb565b60ff84111561183f5761183e611a18565b5b8360020a91508482111561185657611855611a18565b5b506118bb565b5060208310610133831016604e8410600b84101617156118915782820a90508381111561188c5761188b611a18565b5b6118bb565b61189e8484846001611751565b925090508184048111156118b5576118b4611a18565b5b81810290505b9392505050565b60006118cd8261198e565b91506118d88361198e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561191157611910611a18565b5b828202905092915050565b60006119278261198e565b91506119328361198e565b92508282101561194557611944611a18565b5b828203905092915050565b600061195b8261196e565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156119d25780820151818401526020810190506119b7565b838111156119e1576000848401525b50505050565b6119f082611ab9565b810181811067ffffffffffffffff82111715611a0f57611a0e611a76565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160011c9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f494d504c454d454e544154494f4e5f43414e4e4f545f42455f4e554c4c000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f524553455256455f544f4b454e5f5452414e534645525f4641494c4544000000600082015250565b611baa81611950565b8114611bb557600080fd5b50565b611bc181611962565b8114611bcc57600080fd5b50565b611bd88161198e565b8114611be357600080fd5b5056fea2646970667358221220c6d999868a062275143e1f142afb82fa40cc510df15191648f5e1cd8dc86801364736f6c63430008070033000000000000000000000000722e8bdd2ce80a4422e880164f2079488e115365000000000000000000000000de4490b673bb6e508029178936e2df402fec942f

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80639f181b5e11610097578063e9833c2f11610066578063e9833c2f14610272578063eb0cf64d146102a2578063ee1ea4ff146102d2578063f2fde38b146102f0576100f5565b80639f181b5e146101ec578063cce7ec131461020a578063d20dd34914610226578063dc8de37914610242576100f5565b8063680d456c116100d3578063680d456c14610178578063715018a6146101a85780638da5cb5b146101b257806394b6f9d4146101d0576100f5565b80632f2f2d56146100fa5780632f3a3d5d1461012a5780634f64b2be14610148575b600080fd5b610114600480360381019061010f91906112cc565b61030c565b6040516101219190611481565b60405180910390f35b610132610457565b60405161013f9190611481565b60405180910390f35b610162600480360381019061015d9190611344565b61047d565b60405161016f9190611481565b60405180910390f35b610192600480360381019061018d9190611232565b6104bc565b60405161019f919061163d565b60405180910390f35b6101b061064a565b005b6101ba61065e565b6040516101c79190611481565b60405180910390f35b6101ea60048036038101906101e59190611232565b610687565b005b6101f46109ab565b604051610201919061163d565b60405180910390f35b610224600480360381019061021f919061125f565b6109b8565b005b610240600480360381019061023b9190611232565b610bd0565b005b61025c60048036038101906102579190611232565b610ce5565b604051610269919061163d565b60405180910390f35b61028c60048036038101906102879190611232565b610cfd565b604051610299919061163d565b60405180910390f35b6102bc60048036038101906102b7919061125f565b610d84565b6040516102c9919061163d565b60405180910390f35b6102da610e87565b6040516102e79190611481565b60405180910390f35b61030a60048036038101906103059190611232565b610eb1565b005b60008061033a600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610f35565b905060008190508073ffffffffffffffffffffffffffffffffffffffff16637029144c86866040518363ffffffff1660e01b815260040161037c929190611586565b600060405180830381600087803b15801561039657600080fd5b505af11580156103aa573d6000803e3d6000fd5b505050506002829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fffc04f682c7b287e4b552dacd4b833d7c33dc0549cd6da84388408e4830c056282868660405161044493929190611518565b60405180910390a1819250505092915050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002818154811061048d57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000808273ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016104f89190611481565b60206040518083038186803b15801561051057600080fd5b505afa158015610524573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105489190611371565b8373ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561058e57600080fd5b505afa1580156105a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c69190611371565b6105d0919061191c565b90506000671bc16d674ec800006002836105ea91906117a4565b6105f49190611720565b600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461063e919061191c565b90508092505050919050565b610652610f9f565b61065c600061101d565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000610692826104bc565b90508173ffffffffffffffffffffffffffffffffffffffff166379cc67906106b86110e1565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016106f19190611481565b60206040518083038186803b15801561070957600080fd5b505afa15801561071d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107419190611371565b6040518363ffffffff1660e01b815260040161075e92919061155d565b600060405180830381600087803b15801561077857600080fd5b505af115801561078c573d6000803e3d6000fd5b5050505080600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546107df919061191c565b92505081905550600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61082c6110e1565b836040518363ffffffff1660e01b815260040161084a92919061155d565b602060405180830381600087803b15801561086457600080fd5b505af1158015610878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089c919061129f565b6108db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d29061161d565b60405180910390fd5b7fa082022e93cfcd9f1da5f9236718053910f7e840da080c789c7845698dc032ff826109056110e1565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161093e9190611481565b60206040518083038186803b15801561095657600080fd5b505afa15801561096a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098e9190611371565b8460405161099f94939291906114d3565b60405180910390a15050565b6000600280549050905090565b60006109c48383610d84565b9050600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd610a0c6110e1565b30856040518463ffffffff1660e01b8152600401610a2c9392919061149c565b602060405180830381600087803b158015610a4657600080fd5b505af1158015610a5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7e919061129f565b610abd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab49061161d565b60405180910390fd5b81600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610b0c91906116ca565b925050819055508273ffffffffffffffffffffffffffffffffffffffff166340c10f19610b376110e1565b836040518363ffffffff1660e01b8152600401610b5592919061155d565b600060405180830381600087803b158015610b6f57600080fd5b505af1158015610b83573d6000803e3d6000fd5b505050507f89f5adc174562e07c9c9b1cae7109bbecb21cf9d1b2847e550042b8653c54a0e83610bb16110e1565b8385604051610bc394939291906114d3565b60405180910390a1505050565b610bd8610f9f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3f906115dd565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f310ba5f1d2ed074b51e2eccd052a47ae9ab7c6b800d1fca3db3999d6a592ca03600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610cda9190611481565b60405180910390a150565b60036020528060005260406000206000915090505481565b60008173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d4557600080fd5b505afa158015610d59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7d9190611371565b9050919050565b600080610ded600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205484610dd591906116ca565b671bc16d674ec80000610de891906118c2565b6110e9565b905060008473ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610e3757600080fd5b505afa158015610e4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6f9190611371565b82610e7a919061191c565b9050809250505092915050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610eb9610f9f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f20906115bd565b60405180910390fd5b610f328161101d565b50565b6000808260601b90506040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528160148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f092505050919050565b610fa76110e1565b73ffffffffffffffffffffffffffffffffffffffff16610fc561065e565b73ffffffffffffffffffffffffffffffffffffffff161461101b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611012906115fd565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b60008060016002846110fb9190611720565b61110591906116ca565b90506000600282856111179190611720565b8361112291906116ca565b61112c9190611720565b90505b8082111561116457809150600282856111489190611720565b8361115391906116ca565b61115d9190611720565b905061112f565b8192505050919050565b600061118161117c8461167d565b611658565b90508281526020810184848401111561119d5761119c611aaa565b5b6111a88482856119a5565b509392505050565b6000813590506111bf81611ba1565b92915050565b6000815190506111d481611bb8565b92915050565b600082601f8301126111ef576111ee611aa5565b5b81356111ff84826020860161116e565b91505092915050565b60008135905061121781611bcf565b92915050565b60008151905061122c81611bcf565b92915050565b60006020828403121561124857611247611ab4565b5b6000611256848285016111b0565b91505092915050565b6000806040838503121561127657611275611ab4565b5b6000611284858286016111b0565b925050602061129585828601611208565b9150509250929050565b6000602082840312156112b5576112b4611ab4565b5b60006112c3848285016111c5565b91505092915050565b600080604083850312156112e3576112e2611ab4565b5b600083013567ffffffffffffffff81111561130157611300611aaf565b5b61130d858286016111da565b925050602083013567ffffffffffffffff81111561132e5761132d611aaf565b5b61133a858286016111da565b9150509250929050565b60006020828403121561135a57611359611ab4565b5b600061136884828501611208565b91505092915050565b60006020828403121561138757611386611ab4565b5b60006113958482850161121d565b91505092915050565b6113a781611950565b82525050565b60006113b8826116ae565b6113c281856116b9565b93506113d28185602086016119b4565b6113db81611ab9565b840191505092915050565b60006113f36026836116b9565b91506113fe82611ad7565b604082019050919050565b6000611416601d836116b9565b915061142182611b26565b602082019050919050565b60006114396020836116b9565b915061144482611b4f565b602082019050919050565b600061145c601d836116b9565b915061146782611b78565b602082019050919050565b61147b8161198e565b82525050565b6000602082019050611496600083018461139e565b92915050565b60006060820190506114b1600083018661139e565b6114be602083018561139e565b6114cb6040830184611472565b949350505050565b60006080820190506114e8600083018761139e565b6114f5602083018661139e565b6115026040830185611472565b61150f6060830184611472565b95945050505050565b600060608201905061152d600083018661139e565b818103602083015261153f81856113ad565b9050818103604083015261155381846113ad565b9050949350505050565b6000604082019050611572600083018561139e565b61157f6020830184611472565b9392505050565b600060408201905081810360008301526115a081856113ad565b905081810360208301526115b481846113ad565b90509392505050565b600060208201905081810360008301526115d6816113e6565b9050919050565b600060208201905081810360008301526115f681611409565b9050919050565b600060208201905081810360008301526116168161142c565b9050919050565b600060208201905081810360008301526116368161144f565b9050919050565b60006020820190506116526000830184611472565b92915050565b6000611662611673565b905061166e82826119e7565b919050565b6000604051905090565b600067ffffffffffffffff82111561169857611697611a76565b5b6116a182611ab9565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b60006116d58261198e565b91506116e08361198e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561171557611714611a18565b5b828201905092915050565b600061172b8261198e565b91506117368361198e565b92508261174657611745611a47565b5b828204905092915050565b6000808291508390505b600185111561179b5780860481111561177757611776611a18565b5b60018516156117865780820291505b808102905061179485611aca565b945061175b565b94509492505050565b60006117af8261198e565b91506117ba83611998565b92506117e77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846117ef565b905092915050565b6000826117ff57600190506118bb565b8161180d57600090506118bb565b8160018114611823576002811461182d5761185c565b60019150506118bb565b60ff84111561183f5761183e611a18565b5b8360020a91508482111561185657611855611a18565b5b506118bb565b5060208310610133831016604e8410600b84101617156118915782820a90508381111561188c5761188b611a18565b5b6118bb565b61189e8484846001611751565b925090508184048111156118b5576118b4611a18565b5b81810290505b9392505050565b60006118cd8261198e565b91506118d88361198e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561191157611910611a18565b5b828202905092915050565b60006119278261198e565b91506119328361198e565b92508282101561194557611944611a18565b5b828203905092915050565b600061195b8261196e565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156119d25780820151818401526020810190506119b7565b838111156119e1576000848401525b50505050565b6119f082611ab9565b810181811067ffffffffffffffff82111715611a0f57611a0e611a76565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160011c9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f494d504c454d454e544154494f4e5f43414e4e4f545f42455f4e554c4c000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f524553455256455f544f4b454e5f5452414e534645525f4641494c4544000000600082015250565b611baa81611950565b8114611bb557600080fd5b50565b611bc181611962565b8114611bcc57600080fd5b50565b611bd88161198e565b8114611be357600080fd5b5056fea2646970667358221220c6d999868a062275143e1f142afb82fa40cc510df15191648f5e1cd8dc86801364736f6c63430008070033