- Contract name:
 
            - LendingPoolFactory
 
            
            
            - Optimization enabled
 
            - true
 
          
          
            - Compiler version
 
            - v0.8.13+commit.abaa5c0e
 
            
            
              - Optimization runs
 
              - 5000
 
          
          
              - EVM Version
 
              - default
 
              
              
              - Verified at
 
              - 2024-07-20T06:16:39.179439Z
 
          
        
          
        
          
            contracts/Landing/LendingPoolFactory.sol
            
           
          // SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "./LendingPool.sol";
contract LendingPoolFactory {
    /// The address supposed to get the protocol fee
    address public feeTo;
    /// address that can set the address
    address public feeToSetter;
    ///  mapping from Token => Pool address
    mapping(address => address) public getPool;
    address[] public allPools;
    event PoolCreated(address indexed token, address pool, uint256 timeStamp);
    constructor(address _feeToSetter) {
        feeToSetter = _feeToSetter;
    }
    function allPoolsLength() external view returns (uint256) {
        return allPools.length;
    }
    function createPool(address token) external returns (address) {
        require(token != address(0), "ZERO_ADDRESS");
        require(getPool[token] == address(0), "POOL_EXISTS");
        LendingPool _pool = new LendingPool(token);
        getPool[token] = address(_pool);
        allPools.push(address(_pool));
        emit PoolCreated(token, address(_pool), block.timestamp);
        return address(_pool);
    }
    function setFeeTo(address _feeTo) external {
        require(msg.sender == feeToSetter, "FORBIDDEN");
        feeTo = _feeTo;
    }
    function setFeeToSetter(address _feeToSetter) external {
        require(msg.sender == feeToSetter, "FORBIDDEN");
        feeToSetter = _feeToSetter;
    }
}
        
          
            
              
@openzeppelin/contracts/token/ERC20/ERC20.sol
              
            
            // SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
 * @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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead 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, IERC20Metadata {
    mapping(address => uint256) private _balances;
    mapping(address => mapping(address => uint256)) private _allowances;
    uint256 private _totalSupply;
    string private _name;
    string private _symbol;
    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }
    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }
    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override 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 default value returned by this function, unless
     * it's 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 override 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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, 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) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }
        return true;
    }
    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        _beforeTokenTransfer(from, to, amount);
        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }
        emit Transfer(from, to, amount);
        _afterTokenTransfer(from, to, 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:
     *
     * - `account` 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;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);
        _afterTokenTransfer(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");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }
        emit Transfer(account, address(0), amount);
        _afterTokenTransfer(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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - 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 transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}
          
          
            
              
@openzeppelin/contracts/token/ERC20/IERC20.sol
              
            
            // SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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);
}
          
          
            
              
@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
              
            
            // SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);
    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);
    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}
          
          
            
              
@openzeppelin/contracts/utils/Context.sol
              
            
            // SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }
    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}
          
          
            
              
contracts/Landing/LendingPool.sol
              
            
            // SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
// - Create a pool contract that accepts deposit from lenders , who earn interest on lending
// - User  or borrower can borrow some amount of tokens (limited) , and pay back with some interest for some time period.
// - lender can withdraw the amount later with some interest
// import "../Other/interfaces/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
// to maintain the track we need to mint and Burn Tokens
// Provide allowance first by calling approve()
contract LendingPool is ERC20 {
    /// intialize token
    ERC20 immutable token;
    address public immutable tokenAddress;
    uint256 totalPoolSupply;
    /// the rate earned by the lender per second
    uint256 lendRate = 100;
    /// the rate paid by the borrower per second
    uint256 borrowRate = 130;
    uint256 peroidBorrowed;
    ///  struct with amount and date of borrowing or lending
    struct Amount {
        uint256 amount;
        uint256 start;
    }
    // mapping to check if the address has lended any amount
    mapping(address => Amount) public lendAmount;
    // mapping for the interest earned by the lender ;
    mapping(address => uint256) public earnedInterest;
    // arrays to store the info about lender & borrowers
    mapping(address => bool) public lenders;
    mapping(address => bool) public borrowers;
    // mapping to check if the address has borrowed any amount
    mapping(address => Amount) public borrowAmount;
    // mapping for the interest to be paid by the borrower ;
    mapping(address => uint256) public payInterest;
    /// events
    event Deposit(address user, uint256 amount);
    event Withdraw(address user, uint256 amount);
    event Borrow(address user, uint256 amount);
    event Repay(address user, uint256 amount);
    /// making the contract payable and adding the tokens in starting to the pool
    constructor(address _tokenAddress) ERC20("XToken", "XT") {
        token = ERC20(_tokenAddress);
        tokenAddress = _tokenAddress;
    }
    function calculateRepayAmount(address user, uint256 repayAmount)
        public
        view
        returns (uint256 amount)
    {
        /// total amount to be repaid with intrest
        Amount storage amount_ = borrowAmount[user];
        require(
            repayAmount <= amount_.amount,
            "Amount exceeding borrowed amount"
        );
        uint256 interest = (repayAmount *
            ((block.timestamp - amount_.start) * borrowRate * 1e18)) /
            totalPoolSupply;
        amount = (repayAmount + interest);
    }
    function calculateWithdrawAmount(address user, uint256 withdrawAmount)
        public
        view
        returns (uint256 amount)
    {
        Amount storage amount_ = lendAmount[user];
        require(
            withdrawAmount <= amount_.amount,
            "Amount exceeding deposit amount"
        );
        uint256 interest = (withdrawAmount *
            ((block.timestamp - amount_.start) * lendRate * 1e18)) /
            totalPoolSupply;
        amount = (withdrawAmount + interest);
    }
    function updateBorrow(address user)
        public
        returns (uint256 interestAmount)
    {
        Amount storage amount_ = borrowAmount[user];
        interestAmount =
            (amount_.amount *
                ((block.timestamp - amount_.start) * borrowRate * 1e18)) /
            totalPoolSupply;
        payInterest[user] = interestAmount;
    }
    function updateLend(address user) public returns (uint256 interestAmount) {
        Amount storage amount_ = lendAmount[user];
        interestAmount =
            (amount_.amount *
                ((block.timestamp - amount_.start) * lendRate * 1e18)) /
            totalPoolSupply;
        earnedInterest[user] = interestAmount;
    }
    /// @dev - to lend the amount by  , add liquidity
    /// @param _amount - deposited amount
    function deposit(uint256 _amount, address user) external {
        require(_amount != 0, " amount can not be 0");
        /// transferring the tokens to the pool contract
        token.transferFrom(user, address(this), _amount);
        /// adding in lending and lenders array for record
        lendAmount[user].amount = _amount;
        lendAmount[user].start = block.timestamp;
        lenders[user] = true;
        _mint(user, _amount);
        /// updating total supply
        totalPoolSupply += _amount;
        updateLend(user);
        emit Deposit(user, _amount);
    }
    /// @dev - to borrow token
    /// @param _amount - amount to be withdraw
    function borrow(uint256 _amount, address user) external {
        require(_amount != 0, " amount can not be 0");
        /// Amount can not be sent
        require(_amount < totalPoolSupply / 10, "Amount is incorrect");
        /// updating records first
        borrowAmount[user].amount = _amount;
        borrowAmount[user].start = block.timestamp;
        totalPoolSupply -= _amount;
        /// then transfer
        token.transfer(user, _amount);
        /// tokenApproval to deduct under liquidation
        token.approve(address(this), _amount);
        borrowers[user] = true;
        updateBorrow(user);
        emit Borrow(user, _amount);
    }
    /// @dev  - repay the whole loan
    function repay(address user, uint256 amount) external {
        /// check borrower
        require(borrowers[user], "not a borrower");
        uint256 _amount = calculateRepayAmount(user, amount);
        require(_amount != 0, "amount can not be 0");
        /// transferring the tokens
        token.transferFrom(user, address(this), _amount);
        /// updating records and deleting the record of borrowing
        borrowAmount[user].amount -= _amount;
        if (borrowAmount[user].amount == 0) {
            borrowers[user] = false;
        }
        /// update total supply at the end
        totalPoolSupply += _amount;
        updateBorrow(user);
        emit Repay(user, amount);
    }
    /// @dev  - to withdraw the amount for the lender
    function withdraw(address user, uint256 amount) external {
        /// checking if the caller is a lender or not
        require(lenders[user], "you are not a lender");
        // calculating the total amount along with the interest
        uint256 _amount = calculateWithdrawAmount(user, amount);
        require(_amount != 0, " amount can not be 0");
        /// deleting the records and updating the list
        lendAmount[user].amount -= _amount;
        if (lendAmount[user].amount == 0) {
            lenders[user] = false;
        }
        _burn(user, _amount);
        /// updating total supply earlier before transfering token , so as to be safe from attacks
        totalPoolSupply -= _amount;
        /// transferring the tokens in the end
        token.transfer(user, _amount);
        updateLend(user);
        emit Withdraw(user, amount);
    }
    function liquidate(address user, uint256 amount) public {
        require(borrowers[user], "Not a borrower");
        require(amount <= borrowAmount[user].amount, "Amount is incorrect");
        /// already approved
        token.transferFrom(user, address(this), amount);
        uint256 reward = (amount * 3) / 100;
        updateBorrow(user);
        token.transfer(msg.sender, reward);
        borrowAmount[user].amount -= amount + reward;
    }
}
          
          
            
              
Compiler Settings
              
            
            
              {"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata","devdoc","userdoc","storageLayout","evm.gasEstimates"],"":["ast"]}},"optimizer":{"runs":5000,"enabled":true},"metadata":{"useLiteralContent":true},"libraries":{}}
              
             
          
          
            
              
Contract ABI
              
            
            
              [{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_feeToSetter","internalType":"address"}]},{"type":"event","name":"PoolCreated","inputs":[{"type":"address","name":"token","internalType":"address","indexed":true},{"type":"address","name":"pool","internalType":"address","indexed":false},{"type":"uint256","name":"timeStamp","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"allPools","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allPoolsLength","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"createPool","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"feeTo","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"feeToSetter","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getPool","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFeeTo","inputs":[{"type":"address","name":"_feeTo","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFeeToSetter","inputs":[{"type":"address","name":"_feeToSetter","internalType":"address"}]}]
              
             
          
      
              
                Contract Creation Code
                
                  
                
               
              
                0x608060405234801561001057600080fd5b5060405161261938038061261983398101604081905261002f91610054565b600180546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b612586806100936000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063a2e74af61161005b578063a2e74af61461011d578063bbe4f6db14610132578063efde4e6414610168578063f46901ed1461017957600080fd5b8063017e7e581461008d578063094b7415146100d757806341d1de97146100f75780639049f9d21461010a575b600080fd5b6000546100ad9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6001546100ad9073ffffffffffffffffffffffffffffffffffffffff1681565b6100ad61010536600461058c565b61018c565b6100ad6101183660046105a5565b6101c3565b61013061012b3660046105a5565b6103ef565b005b6100ad6101403660046105a5565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6003546040519081526020016100ce565b6101306101873660046105a5565b6104b7565b6003818154811061019c57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b600073ffffffffffffffffffffffffffffffffffffffff8216610247576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f5a45524f5f41444452455353000000000000000000000000000000000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82811660009081526002602052604090205416156102d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f504f4f4c5f455849535453000000000000000000000000000000000000000000604482015260640161023e565b6000826040516102e59061057f565b73ffffffffffffffffffffffffffffffffffffffff9091168152602001604051809103906000f08015801561031e573d6000803e3d6000fd5b5073ffffffffffffffffffffffffffffffffffffffff848116600081815260026020908152604080832080549587167fffffffffffffffffffffffff000000000000000000000000000000000000000096871681179091556003805460018101825594527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b9093018054909516831790945583519182524290820152929350917ff8a0462f666b427ea753848be7e91f9ce413975906f6f39950be296ca9a4d524910160405180910390a292915050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f464f5242494444454e0000000000000000000000000000000000000000000000604482015260640161023e565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60015473ffffffffffffffffffffffffffffffffffffffff163314610538576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f464f5242494444454e0000000000000000000000000000000000000000000000604482015260640161023e565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b611f6e806105e383390190565b60006020828403121561059e57600080fd5b5035919050565b6000602082840312156105b757600080fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146105db57600080fd5b939250505056fe60c0604052606460065560826007553480156200001b57600080fd5b5060405162001f6e38038062001f6e8339810160408190526200003e916200015c565b60408051808201825260068152652c2a37b5b2b760d11b602080830191825283518085019094526002845261161560f21b9084015281519192916200008691600391620000b6565b5080516200009c906004906020840190620000b6565b5050506001600160a01b0316608081905260a052620001ca565b828054620000c4906200018e565b90600052602060002090601f016020900481019282620000e8576000855562000133565b82601f106200010357805160ff191683800117855562000133565b8280016001018555821562000133579182015b828111156200013357825182559160200191906001019062000116565b506200014192915062000145565b5090565b5b8082111562000141576000815560010162000146565b6000602082840312156200016f57600080fd5b81516001600160a01b03811681146200018757600080fd5b9392505050565b600181811c90821680620001a357607f821691505b602082108103620001c457634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051611d546200021a600039600061038301526000818161066501528181610a7a01528181610b1d01528181610c9c0152818161100a015281816110d201526113990152611d546000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c80636e553f65116100f9578063aa1970df11610097578063d007c64411610071578063d007c6441461042c578063d619f5171461044c578063dd62ed3e1461045f578063f3fef3a31461049857600080fd5b8063aa1970df146103e3578063bcbaf487146103f6578063bf5d50c41461040957600080fd5b806395d89b41116100d357806395d89b41146103765780639d76ea581461037e578063a457c2d7146103bd578063a9059cbb146103d057600080fd5b80636e553f651461031357806370a08231146103265780638d113a7f1461034f57600080fd5b806328fd10d711610166578063395093511161014057806339509351146102ba5780634722a531146102cd5780634b3fd148146102e05780635d948c35146102f357600080fd5b806328fd10d7146102755780632ac2382114610298578063313ce567146102ab57600080fd5b80631c78da26116101975780631c78da261461021157806322867d781461024d57806323b872dd1461026257600080fd5b806306fdde03146101be578063095ea7b3146101dc57806318160ddd146101ff575b600080fd5b6101c66104ab565b6040516101d39190611a66565b60405180910390f35b6101ef6101ea366004611af5565b61053d565b60405190151581526020016101d3565b6002545b6040519081526020016101d3565b61023861021f366004611b1f565b6009602052600090815260409020805460019091015482565b604080519283526020830191909152016101d3565b61026061025b366004611af5565b610555565b005b6101ef610270366004611b41565b6107aa565b6101ef610283366004611b1f565b600b6020526000908152604090205460ff1681565b6102036102a6366004611b1f565b6107ce565b604051601281526020016101d3565b6101ef6102c8366004611af5565b610850565b6102036102db366004611af5565b61088f565b6102606102ee366004611b7d565b610955565b610203610301366004611b1f565b600a6020526000908152604090205481565b610260610321366004611b7d565b610c07565b610203610334366004611b1f565b6001600160a01b031660009081526020819052604090205490565b61023861035d366004611b1f565b600d602052600090815260409020805460019091015482565b6101c6610dad565b6103a57f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101d3565b6101ef6103cb366004611af5565b610dbc565b6101ef6103de366004611af5565b610e66565b6102036103f1366004611af5565b610e74565b610260610404366004611af5565b610ef5565b6101ef610417366004611b1f565b600c6020526000908152604090205460ff1681565b61020361043a366004611b1f565b600e6020526000908152604090205481565b61020361045a366004611b1f565b611184565b61020361046d366004611ba9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102606104a6366004611af5565b611206565b6060600380546104ba90611bd3565b80601f01602080910402602001604051908101604052809291908181526020018280546104e690611bd3565b80156105335780601f1061050857610100808354040283529160200191610533565b820191906000526020600020905b81548152906001019060200180831161051657829003601f168201915b5050505050905090565b60003361054b818585611450565b5060019392505050565b6001600160a01b0382166000908152600c602052604090205460ff166105c25760405162461bcd60e51b815260206004820152600e60248201527f6e6f74206120626f72726f77657200000000000000000000000000000000000060448201526064015b60405180910390fd5b60006105ce8383610e74565b9050806000036106205760405162461bcd60e51b815260206004820152601360248201527f616d6f756e742063616e206e6f7420626520300000000000000000000000000060448201526064016105b9565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152306024830152604482018390527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906064016020604051808303816000875af11580156106ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d29190611c26565b506001600160a01b0383166000908152600d6020526040812080548392906106fb908490611c77565b90915550506001600160a01b0383166000908152600d60205260408120549003610740576001600160a01b0383166000908152600c60205260409020805460ff191690555b80600560008282546107529190611c8e565b90915550610761905083611184565b50604080516001600160a01b0385168152602081018490527f5c16de4f8b59bd9caf0f49a545f25819a895ed223294290b408242e72a59423191015b60405180910390a1505050565b6000336107b88582856115a9565b6107c3858585611659565b506001949350505050565b6001600160a01b038116600090815260096020526040812060055460065460018301546107fb9042611c77565b6108059190611ca6565b61081790670de0b6b3a7640000611ca6565b82546108239190611ca6565b61082d9190611ce3565b6001600160a01b039093166000908152600a602052604090208390555090919050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061054b908290869061088a908790611c8e565b611450565b6001600160a01b038216600090815260096020526040812080548311156108f85760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e7420657863656564696e67206465706f73697420616d6f756e740060448201526064016105b9565b60006005546006548360010154426109109190611c77565b61091a9190611ca6565b61092c90670de0b6b3a7640000611ca6565b6109369086611ca6565b6109409190611ce3565b905061094c8185611c8e565b95945050505050565b816000036109a55760405162461bcd60e51b815260206004820152601460248201527f20616d6f756e742063616e206e6f74206265203000000000000000000000000060448201526064016105b9565b600a6005546109b49190611ce3565b8210610a025760405162461bcd60e51b815260206004820152601360248201527f416d6f756e7420697320696e636f72726563740000000000000000000000000060448201526064016105b9565b6001600160a01b0381166000908152600d602052604081208381554260019091015560058054849290610a36908490611c77565b90915550506040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038281166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af1158015610ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae79190611c26565b506040517f095ea7b3000000000000000000000000000000000000000000000000000000008152306004820152602481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063095ea7b3906044016020604051808303816000875af1158015610b6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b929190611c26565b506001600160a01b0381166000908152600c60205260409020805460ff19166001179055610bbf81611184565b50604080516001600160a01b0383168152602081018490527fcbc04eca7e9da35cb1393a6135a199ca52e450d5e9251cbd99f7847d33a3675091015b60405180910390a15050565b81600003610c575760405162461bcd60e51b815260206004820152601460248201527f20616d6f756e742063616e206e6f74206265203000000000000000000000000060448201526064016105b9565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b038281166004830152306024830152604482018490527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906064016020604051808303816000875af1158015610ce5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d099190611c26565b506001600160a01b038116600090815260096020908152604080832085815542600191820155600b909252909120805460ff19169091179055610d4c8183611846565b8160056000828254610d5e9190611c8e565b90915550610d6d9050816107ce565b50604080516001600160a01b0383168152602081018490527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9101610bfb565b6060600480546104ba90611bd3565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610e595760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016105b9565b6107c38286868403611450565b60003361054b818585611659565b6001600160a01b0382166000908152600d602052604081208054831115610edd5760405162461bcd60e51b815260206004820181905260248201527f416d6f756e7420657863656564696e6720626f72726f77656420616d6f756e7460448201526064016105b9565b60006005546007548360010154426109109190611c77565b6001600160a01b0382166000908152600c602052604090205460ff16610f5d5760405162461bcd60e51b815260206004820152600e60248201527f4e6f74206120626f72726f77657200000000000000000000000000000000000060448201526064016105b9565b6001600160a01b0382166000908152600d6020526040902054811115610fc55760405162461bcd60e51b815260206004820152601360248201527f416d6f756e7420697320696e636f72726563740000000000000000000000000060448201526064016105b9565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152306024830152604482018390527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906064016020604051808303816000875af1158015611053573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110779190611c26565b5060006064611087836003611ca6565b6110919190611ce3565b905061109c83611184565b506040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015611123573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111479190611c26565b506111528183611c8e565b6001600160a01b0384166000908152600d60205260408120805490919061117a908490611c77565b9091555050505050565b6001600160a01b0381166000908152600d6020526040812060055460075460018301546111b19042611c77565b6111bb9190611ca6565b6111cd90670de0b6b3a7640000611ca6565b82546111d99190611ca6565b6111e39190611ce3565b6001600160a01b039093166000908152600e602052604090208390555090919050565b6001600160a01b0382166000908152600b602052604090205460ff1661126e5760405162461bcd60e51b815260206004820152601460248201527f796f7520617265206e6f742061206c656e64657200000000000000000000000060448201526064016105b9565b600061127a838361088f565b9050806000036112cc5760405162461bcd60e51b815260206004820152601460248201527f20616d6f756e742063616e206e6f74206265203000000000000000000000000060448201526064016105b9565b6001600160a01b038316600090815260096020526040812080548392906112f4908490611c77565b90915550506001600160a01b0383166000908152600960205260408120549003611339576001600160a01b0383166000908152600b60205260409020805460ff191690555b6113438382611905565b80600560008282546113559190611c77565b90915550506040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af11580156113e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114069190611c26565b50611410836107ce565b50604080516001600160a01b0385168152602081018490527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364910161079d565b6001600160a01b0383166114cb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016105b9565b6001600160a01b0382166115475760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016105b9565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461165357818110156116465760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105b9565b6116538484848403611450565b50505050565b6001600160a01b0383166116d55760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016105b9565b6001600160a01b0382166117515760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016105b9565b6001600160a01b038316600090815260208190526040902054818110156117e05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016105b9565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611653565b6001600160a01b03821661189c5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105b9565b80600260008282546118ae9190611c8e565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166119815760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016105b9565b6001600160a01b03821660009081526020819052604090205481811015611a105760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016105b9565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910161159c565b600060208083528351808285015260005b81811015611a9357858101830151858201604001528201611a77565b81811115611aa5576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b80356001600160a01b0381168114611af057600080fd5b919050565b60008060408385031215611b0857600080fd5b611b1183611ad9565b946020939093013593505050565b600060208284031215611b3157600080fd5b611b3a82611ad9565b9392505050565b600080600060608486031215611b5657600080fd5b611b5f84611ad9565b9250611b6d60208501611ad9565b9150604084013590509250925092565b60008060408385031215611b9057600080fd5b82359150611ba060208401611ad9565b90509250929050565b60008060408385031215611bbc57600080fd5b611bc583611ad9565b9150611ba060208401611ad9565b600181811c90821680611be757607f821691505b602082108103611c20577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b600060208284031215611c3857600080fd5b81518015158114611b3a57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015611c8957611c89611c48565b500390565b60008219821115611ca157611ca1611c48565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611cde57611cde611c48565b500290565b600082611d19577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea2646970667358221220cbbec3d1259aee728626fe25ea9bd87ca8101844b56e421f8283cd0f5e61c4fd64736f6c634300080d0033a2646970667358221220bc432e2e125b45bb6db7e97f75b8f5859255a436c6aba965d8c76666bf6f7e8c64736f6c634300080d00330000000000000000000000008df97eab2651e87a8a4080008ddabf6824c9f672
               
              
                
Deployed ByteCode
                
              
          
            0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063a2e74af61161005b578063a2e74af61461011d578063bbe4f6db14610132578063efde4e6414610168578063f46901ed1461017957600080fd5b8063017e7e581461008d578063094b7415146100d757806341d1de97146100f75780639049f9d21461010a575b600080fd5b6000546100ad9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6001546100ad9073ffffffffffffffffffffffffffffffffffffffff1681565b6100ad61010536600461058c565b61018c565b6100ad6101183660046105a5565b6101c3565b61013061012b3660046105a5565b6103ef565b005b6100ad6101403660046105a5565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6003546040519081526020016100ce565b6101306101873660046105a5565b6104b7565b6003818154811061019c57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b600073ffffffffffffffffffffffffffffffffffffffff8216610247576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f5a45524f5f41444452455353000000000000000000000000000000000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82811660009081526002602052604090205416156102d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f504f4f4c5f455849535453000000000000000000000000000000000000000000604482015260640161023e565b6000826040516102e59061057f565b73ffffffffffffffffffffffffffffffffffffffff9091168152602001604051809103906000f08015801561031e573d6000803e3d6000fd5b5073ffffffffffffffffffffffffffffffffffffffff848116600081815260026020908152604080832080549587167fffffffffffffffffffffffff000000000000000000000000000000000000000096871681179091556003805460018101825594527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b9093018054909516831790945583519182524290820152929350917ff8a0462f666b427ea753848be7e91f9ce413975906f6f39950be296ca9a4d524910160405180910390a292915050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f464f5242494444454e0000000000000000000000000000000000000000000000604482015260640161023e565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60015473ffffffffffffffffffffffffffffffffffffffff163314610538576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f464f5242494444454e0000000000000000000000000000000000000000000000604482015260640161023e565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b611f6e806105e383390190565b60006020828403121561059e57600080fd5b5035919050565b6000602082840312156105b757600080fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146105db57600080fd5b939250505056fe60c0604052606460065560826007553480156200001b57600080fd5b5060405162001f6e38038062001f6e8339810160408190526200003e916200015c565b60408051808201825260068152652c2a37b5b2b760d11b602080830191825283518085019094526002845261161560f21b9084015281519192916200008691600391620000b6565b5080516200009c906004906020840190620000b6565b5050506001600160a01b0316608081905260a052620001ca565b828054620000c4906200018e565b90600052602060002090601f016020900481019282620000e8576000855562000133565b82601f106200010357805160ff191683800117855562000133565b8280016001018555821562000133579182015b828111156200013357825182559160200191906001019062000116565b506200014192915062000145565b5090565b5b8082111562000141576000815560010162000146565b6000602082840312156200016f57600080fd5b81516001600160a01b03811681146200018757600080fd5b9392505050565b600181811c90821680620001a357607f821691505b602082108103620001c457634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051611d546200021a600039600061038301526000818161066501528181610a7a01528181610b1d01528181610c9c0152818161100a015281816110d201526113990152611d546000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c80636e553f65116100f9578063aa1970df11610097578063d007c64411610071578063d007c6441461042c578063d619f5171461044c578063dd62ed3e1461045f578063f3fef3a31461049857600080fd5b8063aa1970df146103e3578063bcbaf487146103f6578063bf5d50c41461040957600080fd5b806395d89b41116100d357806395d89b41146103765780639d76ea581461037e578063a457c2d7146103bd578063a9059cbb146103d057600080fd5b80636e553f651461031357806370a08231146103265780638d113a7f1461034f57600080fd5b806328fd10d711610166578063395093511161014057806339509351146102ba5780634722a531146102cd5780634b3fd148146102e05780635d948c35146102f357600080fd5b806328fd10d7146102755780632ac2382114610298578063313ce567146102ab57600080fd5b80631c78da26116101975780631c78da261461021157806322867d781461024d57806323b872dd1461026257600080fd5b806306fdde03146101be578063095ea7b3146101dc57806318160ddd146101ff575b600080fd5b6101c66104ab565b6040516101d39190611a66565b60405180910390f35b6101ef6101ea366004611af5565b61053d565b60405190151581526020016101d3565b6002545b6040519081526020016101d3565b61023861021f366004611b1f565b6009602052600090815260409020805460019091015482565b604080519283526020830191909152016101d3565b61026061025b366004611af5565b610555565b005b6101ef610270366004611b41565b6107aa565b6101ef610283366004611b1f565b600b6020526000908152604090205460ff1681565b6102036102a6366004611b1f565b6107ce565b604051601281526020016101d3565b6101ef6102c8366004611af5565b610850565b6102036102db366004611af5565b61088f565b6102606102ee366004611b7d565b610955565b610203610301366004611b1f565b600a6020526000908152604090205481565b610260610321366004611b7d565b610c07565b610203610334366004611b1f565b6001600160a01b031660009081526020819052604090205490565b61023861035d366004611b1f565b600d602052600090815260409020805460019091015482565b6101c6610dad565b6103a57f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101d3565b6101ef6103cb366004611af5565b610dbc565b6101ef6103de366004611af5565b610e66565b6102036103f1366004611af5565b610e74565b610260610404366004611af5565b610ef5565b6101ef610417366004611b1f565b600c6020526000908152604090205460ff1681565b61020361043a366004611b1f565b600e6020526000908152604090205481565b61020361045a366004611b1f565b611184565b61020361046d366004611ba9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102606104a6366004611af5565b611206565b6060600380546104ba90611bd3565b80601f01602080910402602001604051908101604052809291908181526020018280546104e690611bd3565b80156105335780601f1061050857610100808354040283529160200191610533565b820191906000526020600020905b81548152906001019060200180831161051657829003601f168201915b5050505050905090565b60003361054b818585611450565b5060019392505050565b6001600160a01b0382166000908152600c602052604090205460ff166105c25760405162461bcd60e51b815260206004820152600e60248201527f6e6f74206120626f72726f77657200000000000000000000000000000000000060448201526064015b60405180910390fd5b60006105ce8383610e74565b9050806000036106205760405162461bcd60e51b815260206004820152601360248201527f616d6f756e742063616e206e6f7420626520300000000000000000000000000060448201526064016105b9565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152306024830152604482018390527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906064016020604051808303816000875af11580156106ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d29190611c26565b506001600160a01b0383166000908152600d6020526040812080548392906106fb908490611c77565b90915550506001600160a01b0383166000908152600d60205260408120549003610740576001600160a01b0383166000908152600c60205260409020805460ff191690555b80600560008282546107529190611c8e565b90915550610761905083611184565b50604080516001600160a01b0385168152602081018490527f5c16de4f8b59bd9caf0f49a545f25819a895ed223294290b408242e72a59423191015b60405180910390a1505050565b6000336107b88582856115a9565b6107c3858585611659565b506001949350505050565b6001600160a01b038116600090815260096020526040812060055460065460018301546107fb9042611c77565b6108059190611ca6565b61081790670de0b6b3a7640000611ca6565b82546108239190611ca6565b61082d9190611ce3565b6001600160a01b039093166000908152600a602052604090208390555090919050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061054b908290869061088a908790611c8e565b611450565b6001600160a01b038216600090815260096020526040812080548311156108f85760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e7420657863656564696e67206465706f73697420616d6f756e740060448201526064016105b9565b60006005546006548360010154426109109190611c77565b61091a9190611ca6565b61092c90670de0b6b3a7640000611ca6565b6109369086611ca6565b6109409190611ce3565b905061094c8185611c8e565b95945050505050565b816000036109a55760405162461bcd60e51b815260206004820152601460248201527f20616d6f756e742063616e206e6f74206265203000000000000000000000000060448201526064016105b9565b600a6005546109b49190611ce3565b8210610a025760405162461bcd60e51b815260206004820152601360248201527f416d6f756e7420697320696e636f72726563740000000000000000000000000060448201526064016105b9565b6001600160a01b0381166000908152600d602052604081208381554260019091015560058054849290610a36908490611c77565b90915550506040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038281166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af1158015610ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae79190611c26565b506040517f095ea7b3000000000000000000000000000000000000000000000000000000008152306004820152602481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063095ea7b3906044016020604051808303816000875af1158015610b6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b929190611c26565b506001600160a01b0381166000908152600c60205260409020805460ff19166001179055610bbf81611184565b50604080516001600160a01b0383168152602081018490527fcbc04eca7e9da35cb1393a6135a199ca52e450d5e9251cbd99f7847d33a3675091015b60405180910390a15050565b81600003610c575760405162461bcd60e51b815260206004820152601460248201527f20616d6f756e742063616e206e6f74206265203000000000000000000000000060448201526064016105b9565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b038281166004830152306024830152604482018490527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906064016020604051808303816000875af1158015610ce5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d099190611c26565b506001600160a01b038116600090815260096020908152604080832085815542600191820155600b909252909120805460ff19169091179055610d4c8183611846565b8160056000828254610d5e9190611c8e565b90915550610d6d9050816107ce565b50604080516001600160a01b0383168152602081018490527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9101610bfb565b6060600480546104ba90611bd3565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610e595760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016105b9565b6107c38286868403611450565b60003361054b818585611659565b6001600160a01b0382166000908152600d602052604081208054831115610edd5760405162461bcd60e51b815260206004820181905260248201527f416d6f756e7420657863656564696e6720626f72726f77656420616d6f756e7460448201526064016105b9565b60006005546007548360010154426109109190611c77565b6001600160a01b0382166000908152600c602052604090205460ff16610f5d5760405162461bcd60e51b815260206004820152600e60248201527f4e6f74206120626f72726f77657200000000000000000000000000000000000060448201526064016105b9565b6001600160a01b0382166000908152600d6020526040902054811115610fc55760405162461bcd60e51b815260206004820152601360248201527f416d6f756e7420697320696e636f72726563740000000000000000000000000060448201526064016105b9565b6040517f23b872dd0000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152306024830152604482018390527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd906064016020604051808303816000875af1158015611053573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110779190611c26565b5060006064611087836003611ca6565b6110919190611ce3565b905061109c83611184565b506040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303816000875af1158015611123573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111479190611c26565b506111528183611c8e565b6001600160a01b0384166000908152600d60205260408120805490919061117a908490611c77565b9091555050505050565b6001600160a01b0381166000908152600d6020526040812060055460075460018301546111b19042611c77565b6111bb9190611ca6565b6111cd90670de0b6b3a7640000611ca6565b82546111d99190611ca6565b6111e39190611ce3565b6001600160a01b039093166000908152600e602052604090208390555090919050565b6001600160a01b0382166000908152600b602052604090205460ff1661126e5760405162461bcd60e51b815260206004820152601460248201527f796f7520617265206e6f742061206c656e64657200000000000000000000000060448201526064016105b9565b600061127a838361088f565b9050806000036112cc5760405162461bcd60e51b815260206004820152601460248201527f20616d6f756e742063616e206e6f74206265203000000000000000000000000060448201526064016105b9565b6001600160a01b038316600090815260096020526040812080548392906112f4908490611c77565b90915550506001600160a01b0383166000908152600960205260408120549003611339576001600160a01b0383166000908152600b60205260409020805460ff191690555b6113438382611905565b80600560008282546113559190611c77565b90915550506040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af11580156113e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114069190611c26565b50611410836107ce565b50604080516001600160a01b0385168152602081018490527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364910161079d565b6001600160a01b0383166114cb5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016105b9565b6001600160a01b0382166115475760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016105b9565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461165357818110156116465760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105b9565b6116538484848403611450565b50505050565b6001600160a01b0383166116d55760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016105b9565b6001600160a01b0382166117515760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016105b9565b6001600160a01b038316600090815260208190526040902054818110156117e05760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016105b9565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611653565b6001600160a01b03821661189c5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105b9565b80600260008282546118ae9190611c8e565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166119815760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016105b9565b6001600160a01b03821660009081526020819052604090205481811015611a105760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016105b9565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910161159c565b600060208083528351808285015260005b81811015611a9357858101830151858201604001528201611a77565b81811115611aa5576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b80356001600160a01b0381168114611af057600080fd5b919050565b60008060408385031215611b0857600080fd5b611b1183611ad9565b946020939093013593505050565b600060208284031215611b3157600080fd5b611b3a82611ad9565b9392505050565b600080600060608486031215611b5657600080fd5b611b5f84611ad9565b9250611b6d60208501611ad9565b9150604084013590509250925092565b60008060408385031215611b9057600080fd5b82359150611ba060208401611ad9565b90509250929050565b60008060408385031215611bbc57600080fd5b611bc583611ad9565b9150611ba060208401611ad9565b600181811c90821680611be757607f821691505b602082108103611c20577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b600060208284031215611c3857600080fd5b81518015158114611b3a57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015611c8957611c89611c48565b500390565b60008219821115611ca157611ca1611c48565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611cde57611cde611c48565b500290565b600082611d19577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea2646970667358221220cbbec3d1259aee728626fe25ea9bd87ca8101844b56e421f8283cd0f5e61c4fd64736f6c634300080d0033a2646970667358221220bc432e2e125b45bb6db7e97f75b8f5859255a436c6aba965d8c76666bf6f7e8c64736f6c634300080d0033