xDAI Price: $1.00 (-0.01%)
Gas: 3.1 GWei

Contract

0x696593B4FFE8EC8233F6d092bAd0EE9Fb3d5f2eC
Transaction Hash
Method
Block
From
To
Buy374038122024-12-07 12:14:302 mins ago1733573670IN
0x696593B4...Fb3d5f2eC
0 xDAI0.00061251.5
Buy374038022024-12-07 12:13:402 mins ago1733573620IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000214071.5
Buy374037742024-12-07 12:11:155 mins ago1733573475IN
0x696593B4...Fb3d5f2eC
0 xDAI0.00019041.5
Buy374037662024-12-07 12:10:355 mins ago1733573435IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000208161.5
Buy374037592024-12-07 12:10:006 mins ago1733573400IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000186461.5
Buy374036792024-12-07 12:03:2013 mins ago1733573000IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000340311.5
Buy374036772024-12-07 12:03:1013 mins ago1733572990IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000208161.5
Buy374036742024-12-07 12:02:5513 mins ago1733572975IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000198241.5
Buy374036722024-12-07 12:02:4513 mins ago1733572965IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000186461.5
Buy374036702024-12-07 12:02:3513 mins ago1733572955IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000208161.5
Buy374036682024-12-07 12:02:2514 mins ago1733572945IN
0x696593B4...Fb3d5f2eC
0 xDAI0.00019041.5
Buy374036662024-12-07 12:02:1514 mins ago1733572935IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000208161.5
Buy374036642024-12-07 12:02:0514 mins ago1733572925IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000208161.5
Buy374036622024-12-07 12:01:5514 mins ago1733572915IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000186461.5
Buy374036602024-12-07 12:01:4514 mins ago1733572905IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000208161.5
Buy374036582024-12-07 12:01:3514 mins ago1733572895IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000186461.5
Buy374036562024-12-07 12:01:2515 mins ago1733572885IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000208161.5
Buy374036542024-12-07 12:01:1515 mins ago1733572875IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000186461.5
Buy374036522024-12-07 12:01:0515 mins ago1733572865IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000198291.5
Buy374036502024-12-07 12:00:5515 mins ago1733572855IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000208131.5
Buy374036482024-12-07 12:00:4515 mins ago1733572845IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000186441.5
Buy374036462024-12-07 12:00:3515 mins ago1733572835IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000208161.5
Buy374036442024-12-07 12:00:2516 mins ago1733572825IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000208161.5
Buy374036422024-12-07 12:00:1516 mins ago1733572815IN
0x696593B4...Fb3d5f2eC
0 xDAI0.00019041.5
Buy374036402024-12-07 12:00:0516 mins ago1733572805IN
0x696593B4...Fb3d5f2eC
0 xDAI0.000208161.5
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
374018062024-12-07 9:23:202 hrs ago1733563400
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
374018042024-12-07 9:23:102 hrs ago1733563390
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373969372024-12-07 2:28:309 hrs ago1733538510
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373967012024-12-07 2:08:1010 hrs ago1733537290
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373961002024-12-07 1:17:1510 hrs ago1733534235
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373960982024-12-07 1:17:0510 hrs ago1733534225
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373960962024-12-07 1:16:5510 hrs ago1733534215
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373960932024-12-07 1:16:4010 hrs ago1733534200
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373960912024-12-07 1:16:3011 hrs ago1733534190
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373960892024-12-07 1:16:2011 hrs ago1733534180
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373960872024-12-07 1:16:1011 hrs ago1733534170
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373956262024-12-07 0:36:5011 hrs ago1733531810
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373951922024-12-07 0:00:1012 hrs ago1733529610
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373939432024-12-06 22:14:2014 hrs ago1733523260
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373939412024-12-06 22:14:1014 hrs ago1733523250
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373939392024-12-06 22:14:0014 hrs ago1733523240
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373939372024-12-06 22:13:5014 hrs ago1733523230
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373939352024-12-06 22:13:4014 hrs ago1733523220
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373938142024-12-06 22:03:1514 hrs ago1733522595
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373937182024-12-06 21:54:5514 hrs ago1733522095
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373935302024-12-06 21:39:1014 hrs ago1733521150
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373935282024-12-06 21:39:0014 hrs ago1733521140
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373934132024-12-06 21:29:2014 hrs ago1733520560
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373933222024-12-06 21:21:4514 hrs ago1733520105
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
373933202024-12-06 21:21:3514 hrs ago1733520095
0x696593B4...Fb3d5f2eC
 Contract Creation0 xDAI
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
JudicialAssetFactory

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : JudicialAssetFactory.sol
// SPDX-License-Identifier: No License
pragma solidity ^0.8.0;

import "./IAssetToken.sol";
import "./IFixedIncome.sol";
import "../contracts/JudicialAssetToken.sol";
import "@openzeppelin/contracts/proxy/Clones.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract JudicialAssetFactory is Ownable {
  string public version = "0.0.2";

  address public judicialAssetToken;
  address public fixedIncomeTemplate;
  address[] public deployedJudicials;
  address[] public fixedIncomeManagers;

  mapping(address => bool) private _fixedIncomeManager;

  event createProductEvent(string name, address productAddress);
  event createFixedIncomeManagerEvent(address productAddress, uint256 maxSupply);
  event addHashEvent(string docId, address productAddress);
  event buyEvent(
    address productAddress,
    address investorAddress,
    uint256 amount
  );

  event individualPartialBurnEvent(
    address productAddress,
    address investorAddress,
    uint256 amount
  );
  event burnPartialTokensEvent(address productAddress, uint256 percent);

  event individualTotalBurnEvent(
    address productAddress,
    address investorAddress
  );
  event transferOperationEvent(
    address productAddress,
    address from,
    address to,
    uint256 amount
  );
  event changeDataUrlEvent(address productAddress, string assetDataUrl);
  event changeFixedIncomeMaxSupplyEvent(uint256 oldValue, uint256 newValue);
  event distributeTokensEvent(address investorAddress, uint256 amount);

  constructor(
    address _judicialAssetToken,
    address _fixedIncome
  ) Ownable() {
    judicialAssetToken = _judicialAssetToken;
    fixedIncomeTemplate = _fixedIncome;
  }

  /**
   * @dev Function to create any asset
   * @param _name - Asset name
   * @param _symbol - ERC20 Symbol
   * @param _totalTokenSupply - Total token supply
   * @param _assetDataUrl - Product IPFS json link
   * @notice Important to allow the contract to burn and transfer users tokens
   * @return New token adress if success
   */

  function createProduct(
    string memory _name,
    string memory _symbol,
    uint256 _totalTokenSupply,
    string memory _assetDataUrl
  ) public onlyOwner returns (address) {
    address tk = Clones.clone(judicialAssetToken);
    IAssetToken(tk).initialize(
      _name,
      _symbol,
      _totalTokenSupply,
      _assetDataUrl
    );
    deployedJudicials.push(tk);
    emit createProductEvent(_name, address(tk));

    return address(tk);
  }

  /**
   * @dev Function to create any fixed income asset
   * @param _name - Asset name
   * @param _symbol - ERC20 Symbol
   * @param _totalTokenSupply - Total token supply
   * @param _assetDataUrl - Product IPFS json link
   * @param _managerAddress - Address of fixed income manager
   * @return New token adress if success
   */

  function createFixedIncomeProduct(
    string memory _name,
    string memory _symbol,
    uint256 _totalTokenSupply,
    string memory _assetDataUrl,
    address _managerAddress
  ) public onlyOwner returns (address) {
    address token = IFixedIncome(_managerAddress).createFixedIncome(
      _name,
      _symbol,
      _totalTokenSupply,
      _assetDataUrl
    );
    deployedJudicials.push(token);
    emit createProductEvent(_name, address(token));

    return address(token);
  }

  /**
   * @dev Function to create fixed income manager
   * @param _fixedIncomeToken - fixed income token template
   * @param _fixedIncomeMax - fixed income max supply
   * @return True if success
   */

  function createFixedIncomeManager(
    address _fixedIncomeToken,
    uint256 _fixedIncomeMax
  ) public onlyOwner returns (address) {
    address token = Clones.clone(fixedIncomeTemplate);
    IFixedIncome(token).initialize(_fixedIncomeToken, _fixedIncomeMax);
    fixedIncomeManagers.push(token);
    _fixedIncomeManager[token] = true;
    emit createFixedIncomeManagerEvent(address(token), _fixedIncomeMax);

    return address(token);
  }

  /**
   * @dev Adds a document hash to a tokenized asset.
   * @param _assetToken The address of the tokenized asset.
   * @param docId The ID of the document to be added.
   * @return A boolean indicating whether the function call was successful.
   */

  function addHash(
    address _assetToken,
    string memory docId
  ) public onlyOwner returns (bool) {
    require(
      IAssetToken(_assetToken)._addHash(docId),
      "Error: Function call didn't return true"
    );
    emit addHashEvent(docId, address(_assetToken));
    return true;
  }


  /**
   * @dev Distributes tokens to a tokenized asset.
   * @param _amount - The amount of tokens to be distributed per token held.
   * @param _investor - The investor address to receive the tokens.
   * @return A boolean indicating whether the function call was successful.
   */
  function distributeTokens(
    address _investor,
    uint256 _amount,
    address _managerAddress
  ) public onlyOwner returns (bool) {
    require(IFixedIncome(_managerAddress).distributeTokens(_investor, _amount), "Function distributeTokens fail");
    emit distributeTokensEvent(_investor, _amount);
    return true;
  }

  /**
   * @dev Change IPFS url of a tokenized asset.
   * @param _assetToken The address of the tokenized asset.
   * @param _assetDataUrl Product IPFS json link.
   * @return A boolean indicating whether the function call was successful.
   */

  function changeDataUrl(
    address _assetToken,
    string memory _assetDataUrl
  ) public onlyOwner returns (bool) {
    require(IAssetToken(_assetToken)._changeDataUrl(_assetDataUrl),"Function call didn't return true");
    emit changeDataUrlEvent(address(_assetToken), _assetDataUrl);
    return true;
  }

  function changeDataUrlFixedIncome(
    address _assetToken,
    string memory _assetDataUrl,
    address _managerAddress
  ) public onlyOwner returns (bool) {
    require(IFixedIncome(_managerAddress).changeDataUrl(_assetToken, _assetDataUrl), "Function call didn't return true");
    emit changeDataUrlEvent(address(_assetToken), _assetDataUrl);
    return true;
  }

  /**
   * @dev Buys tokens of a tokenized asset for a specified investor.
   * @param _assetToken The address of the tokenized asset.
   * @param _investor The address of the investor buying the tokens.
   * @param amount The amount of tokens to buy.
   * @return A boolean indicating whether the function call was successful.
   */

  function buy(
    address _assetToken,
    address _investor,
    uint256 amount
  ) public onlyOwner returns (bool) {
    require(IAssetToken(_assetToken)._buy(_investor, amount),"Function call didn't return true");
    emit buyEvent(address(_assetToken), address(_investor), amount);
    return true;
  }

  function buyFixedIncome(
    address _assetToken,
    address _investor,
    uint256 amount,
    address _managerAddress
  ) public onlyOwner returns (bool) {
    require(
      IFixedIncome(_managerAddress).buy(_assetToken, _investor, amount),
      "Function call didn't return true"
    );
    emit buyEvent(address(_assetToken), address(_investor), amount);
    return true;
  }

  /**
   * @dev Burns tokens of a tokenized asset for a specified investor.
   * @param _assetToken The address of the tokenized asset.
   * @param _investor The address of the investor burning the tokens.
   * @param amount The amount of tokens to burn.
   * @return A boolean indicating whether the function call was successful.
   */

  function individualPartialBurn(
    address _assetToken,
    address _investor,
    uint256 amount
  ) public onlyOwner returns (bool) {
    require(IAssetToken(_assetToken)._individualPartialBurn(_investor, amount),"Error: Function call didn't return true");
    emit individualPartialBurnEvent(
      address(_assetToken),
      address(_investor),
      amount
    );
    return true;
  }

  function individualPartialBurnFixedIncome(
    address _assetToken,
    address _investor,
    uint256 amount,
    address _managerAddress
  ) public onlyOwner returns (bool) {
    require(
      IFixedIncome(_managerAddress).individualPartialBurn(_assetToken, _investor, amount),
      "Function call didn't return true"
    );
    return true;
  }

  /**
   * @dev Burns a percentage of tokens of a tokenized asset.
   * @param _assetToken The address of the tokenized asset.
   * @param _percent The percentage of tokens to burn.
   * @return A boolean indicating whether the function call was successful.
   */

  function burnPartialTokens(
    address _assetToken,
    uint256 _percent
  ) public onlyOwner returns (bool) {
    require(IAssetToken(_assetToken)._burnPartialTokens(_percent),"Function call didn't return true");
    emit burnPartialTokensEvent(address(_assetToken), _percent);
    return true;
  }

  function burnPartialTokensFixedIncome(
    address _assetToken,
    uint256 _percent,
    address _managerAddress
  ) public onlyOwner returns (bool) {
    require(
      IFixedIncome(_managerAddress).burnPartialTokens(_assetToken, _percent),
      "Function call didn't return true"
    );
    return true;
  }

  /**
   * @dev Burns all tokens from an specific investor and asset.
   * @param _assetToken The address of the tokenized asset.
   * @param _investor Investor address.
   * @return A boolean indicating whether the function call was successful.
   */

  function individualTotalBurn(
    address _assetToken,
    address _investor
  ) public onlyOwner returns (bool) {
    require(IAssetToken(_assetToken)._individualTotalBurn(_investor),"Function call didn't return true");
    emit individualTotalBurnEvent(address(_assetToken), address(_investor));
    return true;
  }

  function individualTotalBurnFixedIncome(
    address _assetToken,
    address _investor,
    address _managerAddress
  ) public onlyOwner returns (bool) {
    require(IFixedIncome(_managerAddress).individualTotalBurn(_assetToken, _investor), "Function call didn't return true");
    emit individualTotalBurnEvent(address(_assetToken), address(_investor));
    return true;
  }

  /**
   * @dev Transfers tokens of a tokenized asset from one address to another.
   * @param _assetToken The address of the tokenized asset.
   * @param _from The address from which to transfer the tokens.
   * @param _to The address to which to transfer the tokens.
   * @param _amount The amount of tokens to transfer.
   * @return A boolean indicating whether the transfer was successful.
   */

  function transferOperation(
    address _assetToken,
    address _from,
    address _to,
    uint256 _amount
  ) public onlyOwner returns (bool) {
    require(IAssetToken(_assetToken)._transferOperation(_from, _to, _amount),"Error: Transfer failed.");
    emit transferOperationEvent(
      address(_assetToken),
      address(_from),
      address(_to),
      _amount
    );
    return true;
  }

  function transferOperationFixedIncome(
    address _assetToken,
    address _from,
    address _to,
    uint256 _amount,
    address _managerAddress
  ) public onlyOwner returns (bool) {
    IFixedIncome(_managerAddress).transferOperation(_assetToken, _from, _to, _amount);
    emit transferOperationEvent(
      address(_assetToken),
      address(_from),
      address(_to),
      _amount
    );
    return true;
  }

  function deployedJudicialsLength () public view returns (uint256) {
    return deployedJudicials.length;
  }

  function fixedIncomeManagersLength () public view returns (uint256) {
    return fixedIncomeManagers.length;
  }
}

File 2 of 18 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

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

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

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

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

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

        _revokeRole(role, account);
    }

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

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

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 18 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

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

File 4 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 5 of 18 : Clones.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/Clones.sol)

pragma solidity ^0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for
 * deploying minimal proxy contracts, also known as "clones".
 *
 * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies
 * > a minimal bytecode implementation that delegates all calls to a known, fixed address.
 *
 * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`
 * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the
 * deterministic method.
 *
 * _Available since v3.4._
 */
library Clones {
    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create opcode, which should never revert.
     */
    function clone(address implementation) internal returns (address instance) {
        /// @solidity memory-safe-assembly
        assembly {
            // Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes
            // of the `implementation` address with the bytecode before the address.
            mstore(0x00, or(shr(0xe8, shl(0x60, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000))
            // Packs the remaining 17 bytes of `implementation` with the bytecode after the address.
            mstore(0x20, or(shl(0x78, implementation), 0x5af43d82803e903d91602b57fd5bf3))
            instance := create(0, 0x09, 0x37)
        }
        require(instance != address(0), "ERC1167: create failed");
    }

    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create2 opcode and a `salt` to deterministically deploy
     * the clone. Using the same `implementation` and `salt` multiple time will revert, since
     * the clones cannot be deployed twice at the same address.
     */
    function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {
        /// @solidity memory-safe-assembly
        assembly {
            // Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes
            // of the `implementation` address with the bytecode before the address.
            mstore(0x00, or(shr(0xe8, shl(0x60, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000))
            // Packs the remaining 17 bytes of `implementation` with the bytecode after the address.
            mstore(0x20, or(shl(0x78, implementation), 0x5af43d82803e903d91602b57fd5bf3))
            instance := create2(0, 0x09, 0x37, salt)
        }
        require(instance != address(0), "ERC1167: create2 failed");
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(
        address implementation,
        bytes32 salt,
        address deployer
    ) internal pure returns (address predicted) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(add(ptr, 0x38), deployer)
            mstore(add(ptr, 0x24), 0x5af43d82803e903d91602b57fd5bf3ff)
            mstore(add(ptr, 0x14), implementation)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73)
            mstore(add(ptr, 0x58), salt)
            mstore(add(ptr, 0x78), keccak256(add(ptr, 0x0c), 0x37))
            predicted := keccak256(add(ptr, 0x43), 0x55)
        }
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(
        address implementation,
        bytes32 salt
    ) internal view returns (address predicted) {
        return predictDeterministicAddress(implementation, salt, address(this));
    }
}

File 6 of 18 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/Address.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
     * constructor.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!Address.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: setting the version to 255 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized != type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint8) {
        return _initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _initializing;
    }
}

File 7 of 18 : 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);
}

File 8 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 9 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// 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 10 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 11 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 12 of 18 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 13 of 18 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 14 of 18 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 15 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 16 of 18 : IAssetToken.sol
// SPDX-License-Identifier: No License
pragma solidity ^0.8.0;

interface IAssetToken {
  function balanceOf(address) external returns (uint);

  function name() external returns (string memory);

  function symbol() external returns (string memory);

  function decimals() external returns (uint);

  function totalSupply() external returns (uint);

  function owners() external returns (uint256);

  function documentsIds(uint) external returns (string memory);

  function tokenOwners(uint) external view returns (address);

  function initialize(
    string memory,
    string memory,
    uint256,
    string memory
  ) external;

  function assetDataUrl() external view returns (string memory);

  function _addHash(string memory) external returns (bool);

  function _changeDataUrl(string memory) external returns (bool);

  function _buy(address, uint256) external returns (bool);
  
  function _distributeYield(address, uint256) external returns (bool);

  function _transfer(address, address, uint256) external returns (bool);

  function _mint(address, uint256) external returns (bool);

  function _individualPartialBurn(address, uint256) external returns (bool);

  function _approveContract(address, uint256) external returns (bool);

  function _transferOperation(
    address,
    address,
    uint256
  ) external returns (bool);

  function _individualTotalBurn(address) external returns (bool);

  function _burnPartialTokens(uint256) external returns (bool);
}

File 17 of 18 : IFixedIncome.sol
// SPDX-License-Identifier: No License
pragma solidity ^0.8.0;

interface IFixedIncome {
    function buy(address, address, uint256) external returns (bool);
    function initialize(address, uint256) external;
    function createFixedIncome(string memory, string memory, uint256, string memory) external returns (address);
    function getFixedIncomeMaxSupply() external view returns (uint256);
    function setFixedIncomeMaxSupply(uint256) external;
    function distributeTokens(address, uint256) external returns (bool);
    function changeDataUrl(address, string memory) external returns (bool);
    function individualPartialBurn(address, address, uint256) external returns (bool);
    function burnPartialTokens(address, uint256) external returns (bool);
    function individualTotalBurn(address, address) external returns (bool);
    function transferOperation(address, address, address, uint256) external returns (bool);
}

File 18 of 18 : JudicialAssetToken.sol
// SPDX-License-Identifier: No license
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/proxy/utils/Initializable.sol";

contract JudicialAssetToken is IERC20, AccessControl, Initializable {
    using SafeMath for uint256;

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 immutable private _decimals = 18;

    string public assetDataUrl;
    string[] public documentsIds;
    address[] public tokenOwners;

    /**
     * @dev Initialize function (similar to constructor)
     * @param name_ - Asset name
     * @param symbol_ - Asset symbol
     * @param _totalTokenSupply - Total tokens to be minted
     * @param _assetDataUrl - Product IPFS json link
     * @notice It sets all variables, creates all tokens and sets the factory as admin
     */

    function initialize(
        string memory name_,
        string memory symbol_,
        uint256 _totalTokenSupply,
        string memory _assetDataUrl
    ) external initializer {
        _name = name_;
        _symbol = symbol_;
        assetDataUrl = _assetDataUrl;

        _mint(address(this), _totalTokenSupply);
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    /**
     * @dev Add docHash to array documentsIds
     * @notice If we need to add any document to this asset, we will call this function
     * @return True if success
     */

    function _addHash(
        string memory _docId
    ) public onlyRole(DEFAULT_ADMIN_ROLE) returns (bool) {
        documentsIds.push(_docId);
        return true;
    }

    /**
     * @dev Function to change IPFS Data Url
     * @notice If we need to change IPFS Data Url, we can call the following function
     * @return True if success
     */

    function _changeDataUrl(
        string memory _assetDataUrl
    ) public onlyRole(DEFAULT_ADMIN_ROLE) returns (bool) {
        assetDataUrl = _assetDataUrl;
        return true;
    }

    /**
     * @dev Function for any investment
     * @param _investor - Address of the investor
     * @param amount - Amount of token Investor is buying
     * @notice Token transfer from this smart contract to investor address
     * @notice It calls approveContract (to help selling functions)
     * @notice It adds the investor to tokenOwners if he isn't there yet
     * @return True if success
     */

    function _buy(
        address _investor,
        uint256 amount
    ) public onlyRole(DEFAULT_ADMIN_ROLE) returns (bool) {
        address owner = address(this);
        _approveContract(_investor);
        _transfer(owner, _investor, amount);

        bool alreadyInList = false;
        for (uint i = 0; i < tokenOwners.length; i++) {
            if (tokenOwners[i] == _investor) {
                alreadyInList = true;
                break;
            }
        }

        if (!alreadyInList) {
            addToTokenOwners(_investor);
        }

        return true;
    }

    /**
     * @dev Function to sell any investor tokens
     * @param _investor - Address of the investor
     * @param amount - Amount of token Investor is buying
     * @notice It burns some tokens from an address
     * @notice It removes the investor from tokenOwners if he has no more tokens
     * @return True if success
     */

    function _individualPartialBurn(
        address _investor,
        uint256 amount
    ) public onlyRole(DEFAULT_ADMIN_ROLE) returns (bool) {
        _burn(_investor, amount);

        if (balanceOf(_investor) == 0) {
            removeFromTokenOwners(_investor);
        }

        return true;
    }

    /**
     * @dev Function to token transfer in marketplace
     * @param from - Address who is selling tokens - he will send tokens
     * @param to - Address who is buying tokens - who will receive tokens
     * @param amount - Amount of token
     * @notice It removes and/or adds to tokenOwners each address
     * @return True if success
     */

    function _transferOperation(
        address from,
        address to,
        uint256 amount
    ) public onlyRole(DEFAULT_ADMIN_ROLE) returns (bool) {
        _approveContract(to);
        _transfer(from, to, amount);

        if (balanceOf(from) == 0) {
            removeFromTokenOwners(from);
        }

        bool alreadyInList = false;
        for (uint i = 0; i < tokenOwners.length; i++) {
            if (tokenOwners[i] == to) {
                alreadyInList = true;
                break;
            }
        }

        if (!alreadyInList) {
            addToTokenOwners(to);
        }

        return true;
    }

    /**
     * @dev Function to burn all tokens from an specific investor
     * @param _investor - investor public wallet
     * @notice It burns all tokens from this specific investor
     * @return True if success
     */

    function _individualTotalBurn(
        address _investor
    ) public onlyRole(DEFAULT_ADMIN_ROLE) returns (bool) {
        _burn(_investor, balanceOf(_investor));

        removeFromTokenOwners(_investor);

        return true;
    }

    /**
     * @dev Function to burn percent of tokens from all token holders
     * @param _percent - percent of tokens must be burned. Note that 1% -> _percent = 100
     * @notice It removes all address from tokenOwners
     * @return True if success
     */

    function _burnPartialTokens(
        uint256 _percent
    ) public onlyRole(DEFAULT_ADMIN_ROLE) returns (bool) {
        for (uint256 i = 0; i < tokenOwners.length; i++) {
            address investor = tokenOwners[i];
            if (investor != address(0)) {
                _burn(investor, (balanceOf(investor) * _percent) / 10000);

                if (_percent == 10000) {
                    removeFromTokenOwners(investor);
                }
            }
        }

        _burn(address(this), (balanceOf(address(this)) * _percent) / 10000);

        return true;
    }

    /**
     * @dev It adds the specified investor to the list of token owners.
     * @notice Only owner function
     * @param _investor The address of the investor to add to the list of token owners.
     */
    function addToTokenOwners(
        address _investor
    ) public onlyRole(DEFAULT_ADMIN_ROLE) {
        tokenOwners.push(_investor);
    }

    /**
     * @dev It removes the specified investor to the list of token owners.
     * @notice Only owner function
     * @param _investor The address of the investor to add to the list of token owners.
     */
    function removeFromTokenOwners(
        address _investor
    ) public onlyRole(DEFAULT_ADMIN_ROLE) {
        uint256 indexToRemove = tokenOwners.length;
        for (uint256 i = 0; i < tokenOwners.length; i++) {
            if (tokenOwners[i] == _investor) {
                indexToRemove = i;
                break;
            }
        }
        if (indexToRemove < tokenOwners.length) {
            delete tokenOwners[indexToRemove];
        }
    }

    /**
     * @dev Investor approving owner to be spender (Called in function buy)
     * @param _investor - Address of the investor
     * @notice Important to allow the contract to burn and transfer users tokens
     * @return True if success
     */

    function _approveContract(
        address _investor
    ) public onlyRole(DEFAULT_ADMIN_ROLE) returns (bool) {
        _approve(_investor, address(this), _totalSupply);
        return true;
    }

        /**
     * @dev The following functions are ERC-20 standard. Please check the OpenZeppelin docs.
     */

    function name() public view virtual returns (string memory) {
        return _name;
    }

    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    function decimals() public view virtual returns (uint8) {
        return _decimals;
    }

    function totalSupply()
        public
        view
        virtual
        override(IERC20)
        returns (uint256)
    {
        return _totalSupply;
    }

    function balanceOf(
        address account
    ) public view virtual override(IERC20) returns (uint256) {
        return _balances[account];
    }

    function transfer(
        address recipient,
        uint256 amount
    ) public virtual override(IERC20) returns (bool) {
        _transfer(msg.sender, recipient, amount);
        return true;
    }

    function allowance(
        address owner,
        address spender
    ) public view virtual override(IERC20) returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(
        address spender,
        uint256 amount
    ) public virtual override(IERC20) returns (bool) {
        _approve(msg.sender, spender, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override(IERC20) returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            msg.sender,
            _allowances[sender][msg.sender].sub(
                amount,
                "ERC20: transfer amount exceeds allowance"
            )
        );
        return true;
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(
            amount,
            "ERC20: transfer amount exceeds balance"
        );
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

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

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

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

        _balances[account] = _balances[account].sub(
            amount,
            "ERC20: burn amount exceeds balance"
        );
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    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);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal {}
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_judicialAssetToken","type":"address"},{"internalType":"address","name":"_fixedIncome","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"docId","type":"string"},{"indexed":false,"internalType":"address","name":"productAddress","type":"address"}],"name":"addHashEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"productAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"percent","type":"uint256"}],"name":"burnPartialTokensEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"productAddress","type":"address"},{"indexed":false,"internalType":"address","name":"investorAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"productAddress","type":"address"},{"indexed":false,"internalType":"string","name":"assetDataUrl","type":"string"}],"name":"changeDataUrlEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"changeFixedIncomeMaxSupplyEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"productAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"createFixedIncomeManagerEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"address","name":"productAddress","type":"address"}],"name":"createProductEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"investorAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"distributeTokensEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"productAddress","type":"address"},{"indexed":false,"internalType":"address","name":"investorAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"individualPartialBurnEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"productAddress","type":"address"},{"indexed":false,"internalType":"address","name":"investorAddress","type":"address"}],"name":"individualTotalBurnEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"productAddress","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferOperationEvent","type":"event"},{"inputs":[{"internalType":"address","name":"_assetToken","type":"address"},{"internalType":"string","name":"docId","type":"string"}],"name":"addHash","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_assetToken","type":"address"},{"internalType":"uint256","name":"_percent","type":"uint256"}],"name":"burnPartialTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_assetToken","type":"address"},{"internalType":"uint256","name":"_percent","type":"uint256"},{"internalType":"address","name":"_managerAddress","type":"address"}],"name":"burnPartialTokensFixedIncome","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_assetToken","type":"address"},{"internalType":"address","name":"_investor","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_assetToken","type":"address"},{"internalType":"address","name":"_investor","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"_managerAddress","type":"address"}],"name":"buyFixedIncome","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_assetToken","type":"address"},{"internalType":"string","name":"_assetDataUrl","type":"string"}],"name":"changeDataUrl","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_assetToken","type":"address"},{"internalType":"string","name":"_assetDataUrl","type":"string"},{"internalType":"address","name":"_managerAddress","type":"address"}],"name":"changeDataUrlFixedIncome","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fixedIncomeToken","type":"address"},{"internalType":"uint256","name":"_fixedIncomeMax","type":"uint256"}],"name":"createFixedIncomeManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_totalTokenSupply","type":"uint256"},{"internalType":"string","name":"_assetDataUrl","type":"string"},{"internalType":"address","name":"_managerAddress","type":"address"}],"name":"createFixedIncomeProduct","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_totalTokenSupply","type":"uint256"},{"internalType":"string","name":"_assetDataUrl","type":"string"}],"name":"createProduct","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"deployedJudicials","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deployedJudicialsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_investor","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_managerAddress","type":"address"}],"name":"distributeTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"fixedIncomeManagers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fixedIncomeManagersLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fixedIncomeTemplate","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_assetToken","type":"address"},{"internalType":"address","name":"_investor","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"individualPartialBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_assetToken","type":"address"},{"internalType":"address","name":"_investor","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"_managerAddress","type":"address"}],"name":"individualPartialBurnFixedIncome","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_assetToken","type":"address"},{"internalType":"address","name":"_investor","type":"address"}],"name":"individualTotalBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_assetToken","type":"address"},{"internalType":"address","name":"_investor","type":"address"},{"internalType":"address","name":"_managerAddress","type":"address"}],"name":"individualTotalBurnFixedIncome","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"judicialAssetToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_assetToken","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferOperation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_assetToken","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_managerAddress","type":"address"}],"name":"transferOperationFixedIncome","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040526040518060400160405280600581526020017f302e302e32000000000000000000000000000000000000000000000000000000815250600190816200004a919062000451565b5034801562000057575f80fd5b5060405162002ff538038062002ff583398181016040528101906200007d91906200059a565b6200009d620000916200012560201b60201c565b6200012c60201b60201c565b8160025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050620005df565b5f33905090565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806200026957607f821691505b6020821081036200027f576200027e62000224565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620002e37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620002a6565b620002ef8683620002a6565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f62000339620003336200032d8462000307565b62000310565b62000307565b9050919050565b5f819050919050565b620003548362000319565b6200036c620003638262000340565b848454620002b2565b825550505050565b5f90565b6200038262000374565b6200038f81848462000349565b505050565b5b81811015620003b657620003aa5f8262000378565b60018101905062000395565b5050565b601f8211156200040557620003cf8162000285565b620003da8462000297565b81016020851015620003ea578190505b62000402620003f98562000297565b83018262000394565b50505b505050565b5f82821c905092915050565b5f620004275f19846008026200040a565b1980831691505092915050565b5f62000441838362000416565b9150826002028217905092915050565b6200045c82620001ed565b67ffffffffffffffff811115620004785762000477620001f7565b5b62000484825462000251565b62000491828285620003ba565b5f60209050601f831160018114620004c7575f8415620004b2578287015190505b620004be858262000434565b8655506200052d565b601f198416620004d78662000285565b5f5b828110156200050057848901518255600182019150602085019450602081019050620004d9565b868310156200052057848901516200051c601f89168262000416565b8355505b6001600288020188555050505b505050505050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620005648262000539565b9050919050565b620005768162000558565b811462000581575f80fd5b50565b5f8151905062000594816200056b565b92915050565b5f8060408385031215620005b357620005b262000535565b5b5f620005c28582860162000584565b9250506020620005d58582860162000584565b9150509250929050565b612a0880620005ed5f395ff3fe608060405234801561000f575f80fd5b50600436106101a7575f3560e01c806372fdef66116100f7578063a87c738511610095578063d1e840551161006f578063d1e8405514610569578063d7935be514610599578063e9d33cfb146105c9578063f2fde38b146105f9576101a7565b8063a87c7385146104d9578063ad9a473d14610509578063cc66f24414610539576101a7565b80637ca9021d116100d15780637ca9021d1461043d5780638da5cb5b1461046d5780639cb1635b1461048b578063a60e2599146104bb576101a7565b806372fdef66146103bf5780637465451c146103ef5780637c62d8001461040d576101a7565b8063398fdaba1161016457806354fd4d501161013e57806354fd4d501461034957806357225d40146103675780636069e06514610397578063715018a6146103b5576101a7565b8063398fdaba146102cb57806344a08bd0146102fb5780634691aa741461032b576101a7565b806304bda442146101ab5780630bafea08146101db57806312c891961461020b578063153e66e61461023b5780631eb6b5a71461026b578063331f916d1461029b575b5f80fd5b6101c560048036038101906101c09190611ca0565b610615565b6040516101d29190611d1e565b60405180910390f35b6101f560048036038101906101f09190611d37565b610721565b6040516102029190611d71565b60405180910390f35b61022560048036038101906102209190611ec6565b61075c565b6040516102329190611d71565b60405180910390f35b61025560048036038101906102509190611f7e565b6108a3565b6040516102629190611d1e565b60405180910390f35b61028560048036038101906102809190611fce565b6109ac565b6040516102929190611d1e565b60405180910390f35b6102b560048036038101906102b0919061201e565b610ab3565b6040516102c29190611d1e565b60405180910390f35b6102e560048036038101906102e0919061201e565b610bb7565b6040516102f29190611d1e565b60405180910390f35b61031560048036038101906103109190612078565b610cbb565b6040516103229190611d1e565b60405180910390f35b610333610dbf565b6040516103409190611d71565b60405180910390f35b610351610de4565b60405161035e9190612130565b60405180910390f35b610381600480360381019061037c9190612150565b610e70565b60405161038e9190611d1e565b60405180910390f35b61039f610f77565b6040516103ac9190611d71565b60405180910390f35b6103bd610f9c565b005b6103d960048036038101906103d491906121bc565b610faf565b6040516103e69190611d1e565b60405180910390f35b6103f7611082565b6040516104049190612242565b60405180910390f35b6104276004803603810190610422919061225b565b61108e565b6040516104349190611d71565b60405180910390f35b61045760048036038101906104529190612326565b6111bf565b6040516104649190611d1e565b60405180910390f35b61047561128d565b6040516104829190611d71565b60405180910390f35b6104a560048036038101906104a09190612326565b6112b4565b6040516104b29190611d1e565b60405180910390f35b6104c36113bb565b6040516104d09190612242565b60405180910390f35b6104f360048036038101906104ee9190611ca0565b6113c7565b6040516105009190611d1e565b60405180910390f35b610523600480360381019061051e9190611f7e565b611498565b6040516105309190611d1e565b60405180910390f35b610553600480360381019061054e9190612376565b6115a1565b6040516105609190611d71565b60405180910390f35b610583600480360381019061057e91906123b4565b611737565b6040516105909190611d1e565b60405180910390f35b6105b360048036038101906105ae9190612376565b611845565b6040516105c09190611d1e565b60405180910390f35b6105e360048036038101906105de9190611d37565b611949565b6040516105f09190611d71565b60405180910390f35b610613600480360381019061060e9190612418565b611984565b005b5f61061e611a06565b8173ffffffffffffffffffffffffffffffffffffffff1663153e66e68686866040518463ffffffff1660e01b815260040161065b93929190612443565b6020604051808303815f875af1158015610677573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061069b91906124a2565b6106da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d190612517565b60405180910390fd5b7fdc5e8d30783b6abd495b9565cd582570e874840d57b15bb5cddb8fc83fb6e8d785858560405161070d93929190612443565b60405180910390a160019050949350505050565b60058181548110610730575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f610765611a06565b5f61079060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611a84565b90508073ffffffffffffffffffffffffffffffffffffffff16634a29c482878787876040518563ffffffff1660e01b81526004016107d19493929190612535565b5f604051808303815f87803b1580156107e8575f80fd5b505af11580156107fa573d5f803e3d5ffd5b50505050600481908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f35cdfa5882f4895809b2d92411000e3a00ca40c9aa4b8d73d29b1584410bb683868260405161088f92919061258d565b60405180910390a180915050949350505050565b5f6108ac611a06565b8373ffffffffffffffffffffffffffffffffffffffff166302fc2a8a84846040518363ffffffff1660e01b81526004016108e79291906125bb565b6020604051808303815f875af1158015610903573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061092791906124a2565b610966576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095d90612517565b60405180910390fd5b7fdc5e8d30783b6abd495b9565cd582570e874840d57b15bb5cddb8fc83fb6e8d784848460405161099993929190612443565b60405180910390a1600190509392505050565b5f6109b5611a06565b8173ffffffffffffffffffffffffffffffffffffffff166344a08bd085856040518363ffffffff1660e01b81526004016109f09291906125e2565b6020604051808303815f875af1158015610a0c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3091906124a2565b610a6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6690612517565b60405180910390fd5b7fc10591ea122480d5a02d4691cc16a2dd7aac5756dfb1edb740ab803fb07a58f38484604051610aa09291906125e2565b60405180910390a1600190509392505050565b5f610abc611a06565b8273ffffffffffffffffffffffffffffffffffffffff16639db5f266836040518263ffffffff1660e01b8152600401610af59190612130565b6020604051808303815f875af1158015610b11573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b3591906124a2565b610b74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6b90612679565b60405180910390fd5b7f7e00f8de3ad6d4dfabd911c4bb1e04bedea99a0dd18888940dbf755265de08cb8284604051610ba592919061258d565b60405180910390a16001905092915050565b5f610bc0611a06565b8273ffffffffffffffffffffffffffffffffffffffff1663b45f92ef836040518263ffffffff1660e01b8152600401610bf99190612130565b6020604051808303815f875af1158015610c15573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c3991906124a2565b610c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6f90612517565b60405180910390fd5b7f4a02d264ce8fd3d012669331d56113207ecb579756e5b661104889b60c08620a8383604051610ca9929190612697565b60405180910390a16001905092915050565b5f610cc4611a06565b8273ffffffffffffffffffffffffffffffffffffffff16631355fd16836040518263ffffffff1660e01b8152600401610cfd9190611d71565b6020604051808303815f875af1158015610d19573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d3d91906124a2565b610d7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7390612517565b60405180910390fd5b7fc10591ea122480d5a02d4691cc16a2dd7aac5756dfb1edb740ab803fb07a58f38383604051610dad9291906125e2565b60405180910390a16001905092915050565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60018054610df1906126f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610e1d906126f2565b8015610e685780601f10610e3f57610100808354040283529160200191610e68565b820191905f5260205f20905b815481529060010190602001808311610e4b57829003601f168201915b505050505081565b5f610e79611a06565b8173ffffffffffffffffffffffffffffffffffffffff1663398fdaba85856040518363ffffffff1660e01b8152600401610eb4929190612697565b6020604051808303815f875af1158015610ed0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ef491906124a2565b610f33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2a90612517565b60405180910390fd5b7f4a02d264ce8fd3d012669331d56113207ecb579756e5b661104889b60c08620a8484604051610f64929190612697565b60405180910390a1600190509392505050565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610fa4611a06565b610fad5f611b3a565b565b5f610fb8611a06565b8173ffffffffffffffffffffffffffffffffffffffff1663d1e84055878787876040518563ffffffff1660e01b8152600401610ff79493929190612722565b6020604051808303815f875af1158015611013573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061103791906124a2565b507f1f1509cc844be34c7794db345077cb2c77a17840663195713afafd0329fa2eb78686868660405161106d9493929190612722565b60405180910390a16001905095945050505050565b5f600580549050905090565b5f611097611a06565b5f8273ffffffffffffffffffffffffffffffffffffffff16637b25f65f888888886040518563ffffffff1660e01b81526004016110d79493929190612535565b6020604051808303815f875af11580156110f3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111179190612779565b9050600481908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f35cdfa5882f4895809b2d92411000e3a00ca40c9aa4b8d73d29b1584410bb68387826040516111aa92919061258d565b60405180910390a18091505095945050505050565b5f6111c8611a06565b8173ffffffffffffffffffffffffffffffffffffffff1663d7935be585856040518363ffffffff1660e01b81526004016112039291906125bb565b6020604051808303815f875af115801561121f573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061124391906124a2565b611282576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127990612517565b60405180910390fd5b600190509392505050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f6112bd611a06565b8173ffffffffffffffffffffffffffffffffffffffff1663158a498885856040518363ffffffff1660e01b81526004016112f89291906125bb565b6020604051808303815f875af1158015611314573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061133891906124a2565b611377576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136e906127ee565b60405180910390fd5b7f06fa3e7979edb1d1586ce0f05a947a16b3b03f8e5e5d39ad8cdc1499b5baef8d84846040516113a89291906125bb565b60405180910390a1600190509392505050565b5f600480549050905090565b5f6113d0611a06565b8173ffffffffffffffffffffffffffffffffffffffff1663ad9a473d8686866040518463ffffffff1660e01b815260040161140d93929190612443565b6020604051808303815f875af1158015611429573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061144d91906124a2565b61148c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148390612517565b60405180910390fd5b60019050949350505050565b5f6114a1611a06565b8373ffffffffffffffffffffffffffffffffffffffff166323563f8484846040518363ffffffff1660e01b81526004016114dc9291906125bb565b6020604051808303815f875af11580156114f8573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061151c91906124a2565b61155b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155290612679565b60405180910390fd5b7f4696427f412e47a0f787a9742d746f38565063acfed2f8f31ead2dd8c0b1c46884848460405161158e93929190612443565b60405180910390a1600190509392505050565b5f6115aa611a06565b5f6115d560035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611a84565b90508073ffffffffffffffffffffffffffffffffffffffff1663cd6dc68785856040518363ffffffff1660e01b81526004016116129291906125bb565b5f604051808303815f87803b158015611629575f80fd5b505af115801561163b573d5f803e3d5ffd5b50505050600581908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507fc600253ec9ced54c45f662e263387e09af4c45429e9f636864f256597099c0c381846040516117259291906125bb565b60405180910390a18091505092915050565b5f611740611a06565b8473ffffffffffffffffffffffffffffffffffffffff1663ee50ffcb8585856040518463ffffffff1660e01b815260040161177d93929190612443565b6020604051808303815f875af1158015611799573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117bd91906124a2565b6117fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f390612856565b60405180910390fd5b7f1f1509cc844be34c7794db345077cb2c77a17840663195713afafd0329fa2eb7858585856040516118319493929190612722565b60405180910390a160019050949350505050565b5f61184e611a06565b8273ffffffffffffffffffffffffffffffffffffffff16637799b765836040518263ffffffff1660e01b81526004016118879190612242565b6020604051808303815f875af11580156118a3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118c791906124a2565b611906576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fd90612517565b60405180910390fd5b7f79edf8ab7b186d32fd201fa0d48adcd1702dd4dde3627e2b01bbef54a214a9ed83836040516119379291906125bb565b60405180910390a16001905092915050565b60048181548110611958575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61198c611a06565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f1906128e4565b60405180910390fd5b611a0381611b3a565b50565b611a0e611bfb565b73ffffffffffffffffffffffffffffffffffffffff16611a2c61128d565b73ffffffffffffffffffffffffffffffffffffffff1614611a82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a799061294c565b60405180910390fd5b565b5f763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c175f526e5af43d82803e903d91602b57fd5bf38260781b17602052603760095ff090505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2c906129b4565b60405180910390fd5b919050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611c3c82611c13565b9050919050565b611c4c81611c32565b8114611c56575f80fd5b50565b5f81359050611c6781611c43565b92915050565b5f819050919050565b611c7f81611c6d565b8114611c89575f80fd5b50565b5f81359050611c9a81611c76565b92915050565b5f805f8060808587031215611cb857611cb7611c0b565b5b5f611cc587828801611c59565b9450506020611cd687828801611c59565b9350506040611ce787828801611c8c565b9250506060611cf887828801611c59565b91505092959194509250565b5f8115159050919050565b611d1881611d04565b82525050565b5f602082019050611d315f830184611d0f565b92915050565b5f60208284031215611d4c57611d4b611c0b565b5b5f611d5984828501611c8c565b91505092915050565b611d6b81611c32565b82525050565b5f602082019050611d845f830184611d62565b92915050565b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611dd882611d92565b810181811067ffffffffffffffff82111715611df757611df6611da2565b5b80604052505050565b5f611e09611c02565b9050611e158282611dcf565b919050565b5f67ffffffffffffffff821115611e3457611e33611da2565b5b611e3d82611d92565b9050602081019050919050565b828183375f83830152505050565b5f611e6a611e6584611e1a565b611e00565b905082815260208101848484011115611e8657611e85611d8e565b5b611e91848285611e4a565b509392505050565b5f82601f830112611ead57611eac611d8a565b5b8135611ebd848260208601611e58565b91505092915050565b5f805f8060808587031215611ede57611edd611c0b565b5b5f85013567ffffffffffffffff811115611efb57611efa611c0f565b5b611f0787828801611e99565b945050602085013567ffffffffffffffff811115611f2857611f27611c0f565b5b611f3487828801611e99565b9350506040611f4587828801611c8c565b925050606085013567ffffffffffffffff811115611f6657611f65611c0f565b5b611f7287828801611e99565b91505092959194509250565b5f805f60608486031215611f9557611f94611c0b565b5b5f611fa286828701611c59565b9350506020611fb386828701611c59565b9250506040611fc486828701611c8c565b9150509250925092565b5f805f60608486031215611fe557611fe4611c0b565b5b5f611ff286828701611c59565b935050602061200386828701611c59565b925050604061201486828701611c59565b9150509250925092565b5f806040838503121561203457612033611c0b565b5b5f61204185828601611c59565b925050602083013567ffffffffffffffff81111561206257612061611c0f565b5b61206e85828601611e99565b9150509250929050565b5f806040838503121561208e5761208d611c0b565b5b5f61209b85828601611c59565b92505060206120ac85828601611c59565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156120ed5780820151818401526020810190506120d2565b5f8484015250505050565b5f612102826120b6565b61210c81856120c0565b935061211c8185602086016120d0565b61212581611d92565b840191505092915050565b5f6020820190508181035f83015261214881846120f8565b905092915050565b5f805f6060848603121561216757612166611c0b565b5b5f61217486828701611c59565b935050602084013567ffffffffffffffff81111561219557612194611c0f565b5b6121a186828701611e99565b92505060406121b286828701611c59565b9150509250925092565b5f805f805f60a086880312156121d5576121d4611c0b565b5b5f6121e288828901611c59565b95505060206121f388828901611c59565b945050604061220488828901611c59565b935050606061221588828901611c8c565b925050608061222688828901611c59565b9150509295509295909350565b61223c81611c6d565b82525050565b5f6020820190506122555f830184612233565b92915050565b5f805f805f60a0868803121561227457612273611c0b565b5b5f86013567ffffffffffffffff81111561229157612290611c0f565b5b61229d88828901611e99565b955050602086013567ffffffffffffffff8111156122be576122bd611c0f565b5b6122ca88828901611e99565b94505060406122db88828901611c8c565b935050606086013567ffffffffffffffff8111156122fc576122fb611c0f565b5b61230888828901611e99565b925050608061231988828901611c59565b9150509295509295909350565b5f805f6060848603121561233d5761233c611c0b565b5b5f61234a86828701611c59565b935050602061235b86828701611c8c565b925050604061236c86828701611c59565b9150509250925092565b5f806040838503121561238c5761238b611c0b565b5b5f61239985828601611c59565b92505060206123aa85828601611c8c565b9150509250929050565b5f805f80608085870312156123cc576123cb611c0b565b5b5f6123d987828801611c59565b94505060206123ea87828801611c59565b93505060406123fb87828801611c59565b925050606061240c87828801611c8c565b91505092959194509250565b5f6020828403121561242d5761242c611c0b565b5b5f61243a84828501611c59565b91505092915050565b5f6060820190506124565f830186611d62565b6124636020830185611d62565b6124706040830184612233565b949350505050565b61248181611d04565b811461248b575f80fd5b50565b5f8151905061249c81612478565b92915050565b5f602082840312156124b7576124b6611c0b565b5b5f6124c48482850161248e565b91505092915050565b7f46756e6374696f6e2063616c6c206469646e27742072657475726e20747275655f82015250565b5f6125016020836120c0565b915061250c826124cd565b602082019050919050565b5f6020820190508181035f83015261252e816124f5565b9050919050565b5f6080820190508181035f83015261254d81876120f8565b9050818103602083015261256181866120f8565b90506125706040830185612233565b818103606083015261258281846120f8565b905095945050505050565b5f6040820190508181035f8301526125a581856120f8565b90506125b46020830184611d62565b9392505050565b5f6040820190506125ce5f830185611d62565b6125db6020830184612233565b9392505050565b5f6040820190506125f55f830185611d62565b6126026020830184611d62565b9392505050565b7f4572726f723a2046756e6374696f6e2063616c6c206469646e277420726574755f8201527f726e207472756500000000000000000000000000000000000000000000000000602082015250565b5f6126636027836120c0565b915061266e82612609565b604082019050919050565b5f6020820190508181035f83015261269081612657565b9050919050565b5f6040820190506126aa5f830185611d62565b81810360208301526126bc81846120f8565b90509392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061270957607f821691505b60208210810361271c5761271b6126c5565b5b50919050565b5f6080820190506127355f830187611d62565b6127426020830186611d62565b61274f6040830185611d62565b61275c6060830184612233565b95945050505050565b5f8151905061277381611c43565b92915050565b5f6020828403121561278e5761278d611c0b565b5b5f61279b84828501612765565b91505092915050565b7f46756e6374696f6e2064697374726962757465546f6b656e73206661696c00005f82015250565b5f6127d8601e836120c0565b91506127e3826127a4565b602082019050919050565b5f6020820190508181035f830152612805816127cc565b9050919050565b7f4572726f723a205472616e73666572206661696c65642e0000000000000000005f82015250565b5f6128406017836120c0565b915061284b8261280c565b602082019050919050565b5f6020820190508181035f83015261286d81612834565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6128ce6026836120c0565b91506128d982612874565b604082019050919050565b5f6020820190508181035f8301526128fb816128c2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6129366020836120c0565b915061294182612902565b602082019050919050565b5f6020820190508181035f8301526129638161292a565b9050919050565b7f455243313136373a20637265617465206661696c6564000000000000000000005f82015250565b5f61299e6016836120c0565b91506129a98261296a565b602082019050919050565b5f6020820190508181035f8301526129cb81612992565b905091905056fea26469706673582212207d635a15d53808d12175e06865defcaa2ca58580cf3ee1ac27442f10f820c3a764736f6c6343000814003300000000000000000000000098c2b0affcc892d808b4b5b7430e3b6a53102f6f000000000000000000000000f50e17390b06b6012d0be30263684830ee90ed6c

Deployed Bytecode

0x608060405234801561000f575f80fd5b50600436106101a7575f3560e01c806372fdef66116100f7578063a87c738511610095578063d1e840551161006f578063d1e8405514610569578063d7935be514610599578063e9d33cfb146105c9578063f2fde38b146105f9576101a7565b8063a87c7385146104d9578063ad9a473d14610509578063cc66f24414610539576101a7565b80637ca9021d116100d15780637ca9021d1461043d5780638da5cb5b1461046d5780639cb1635b1461048b578063a60e2599146104bb576101a7565b806372fdef66146103bf5780637465451c146103ef5780637c62d8001461040d576101a7565b8063398fdaba1161016457806354fd4d501161013e57806354fd4d501461034957806357225d40146103675780636069e06514610397578063715018a6146103b5576101a7565b8063398fdaba146102cb57806344a08bd0146102fb5780634691aa741461032b576101a7565b806304bda442146101ab5780630bafea08146101db57806312c891961461020b578063153e66e61461023b5780631eb6b5a71461026b578063331f916d1461029b575b5f80fd5b6101c560048036038101906101c09190611ca0565b610615565b6040516101d29190611d1e565b60405180910390f35b6101f560048036038101906101f09190611d37565b610721565b6040516102029190611d71565b60405180910390f35b61022560048036038101906102209190611ec6565b61075c565b6040516102329190611d71565b60405180910390f35b61025560048036038101906102509190611f7e565b6108a3565b6040516102629190611d1e565b60405180910390f35b61028560048036038101906102809190611fce565b6109ac565b6040516102929190611d1e565b60405180910390f35b6102b560048036038101906102b0919061201e565b610ab3565b6040516102c29190611d1e565b60405180910390f35b6102e560048036038101906102e0919061201e565b610bb7565b6040516102f29190611d1e565b60405180910390f35b61031560048036038101906103109190612078565b610cbb565b6040516103229190611d1e565b60405180910390f35b610333610dbf565b6040516103409190611d71565b60405180910390f35b610351610de4565b60405161035e9190612130565b60405180910390f35b610381600480360381019061037c9190612150565b610e70565b60405161038e9190611d1e565b60405180910390f35b61039f610f77565b6040516103ac9190611d71565b60405180910390f35b6103bd610f9c565b005b6103d960048036038101906103d491906121bc565b610faf565b6040516103e69190611d1e565b60405180910390f35b6103f7611082565b6040516104049190612242565b60405180910390f35b6104276004803603810190610422919061225b565b61108e565b6040516104349190611d71565b60405180910390f35b61045760048036038101906104529190612326565b6111bf565b6040516104649190611d1e565b60405180910390f35b61047561128d565b6040516104829190611d71565b60405180910390f35b6104a560048036038101906104a09190612326565b6112b4565b6040516104b29190611d1e565b60405180910390f35b6104c36113bb565b6040516104d09190612242565b60405180910390f35b6104f360048036038101906104ee9190611ca0565b6113c7565b6040516105009190611d1e565b60405180910390f35b610523600480360381019061051e9190611f7e565b611498565b6040516105309190611d1e565b60405180910390f35b610553600480360381019061054e9190612376565b6115a1565b6040516105609190611d71565b60405180910390f35b610583600480360381019061057e91906123b4565b611737565b6040516105909190611d1e565b60405180910390f35b6105b360048036038101906105ae9190612376565b611845565b6040516105c09190611d1e565b60405180910390f35b6105e360048036038101906105de9190611d37565b611949565b6040516105f09190611d71565b60405180910390f35b610613600480360381019061060e9190612418565b611984565b005b5f61061e611a06565b8173ffffffffffffffffffffffffffffffffffffffff1663153e66e68686866040518463ffffffff1660e01b815260040161065b93929190612443565b6020604051808303815f875af1158015610677573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061069b91906124a2565b6106da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d190612517565b60405180910390fd5b7fdc5e8d30783b6abd495b9565cd582570e874840d57b15bb5cddb8fc83fb6e8d785858560405161070d93929190612443565b60405180910390a160019050949350505050565b60058181548110610730575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f610765611a06565b5f61079060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611a84565b90508073ffffffffffffffffffffffffffffffffffffffff16634a29c482878787876040518563ffffffff1660e01b81526004016107d19493929190612535565b5f604051808303815f87803b1580156107e8575f80fd5b505af11580156107fa573d5f803e3d5ffd5b50505050600481908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f35cdfa5882f4895809b2d92411000e3a00ca40c9aa4b8d73d29b1584410bb683868260405161088f92919061258d565b60405180910390a180915050949350505050565b5f6108ac611a06565b8373ffffffffffffffffffffffffffffffffffffffff166302fc2a8a84846040518363ffffffff1660e01b81526004016108e79291906125bb565b6020604051808303815f875af1158015610903573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061092791906124a2565b610966576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095d90612517565b60405180910390fd5b7fdc5e8d30783b6abd495b9565cd582570e874840d57b15bb5cddb8fc83fb6e8d784848460405161099993929190612443565b60405180910390a1600190509392505050565b5f6109b5611a06565b8173ffffffffffffffffffffffffffffffffffffffff166344a08bd085856040518363ffffffff1660e01b81526004016109f09291906125e2565b6020604051808303815f875af1158015610a0c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3091906124a2565b610a6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6690612517565b60405180910390fd5b7fc10591ea122480d5a02d4691cc16a2dd7aac5756dfb1edb740ab803fb07a58f38484604051610aa09291906125e2565b60405180910390a1600190509392505050565b5f610abc611a06565b8273ffffffffffffffffffffffffffffffffffffffff16639db5f266836040518263ffffffff1660e01b8152600401610af59190612130565b6020604051808303815f875af1158015610b11573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b3591906124a2565b610b74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6b90612679565b60405180910390fd5b7f7e00f8de3ad6d4dfabd911c4bb1e04bedea99a0dd18888940dbf755265de08cb8284604051610ba592919061258d565b60405180910390a16001905092915050565b5f610bc0611a06565b8273ffffffffffffffffffffffffffffffffffffffff1663b45f92ef836040518263ffffffff1660e01b8152600401610bf99190612130565b6020604051808303815f875af1158015610c15573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c3991906124a2565b610c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6f90612517565b60405180910390fd5b7f4a02d264ce8fd3d012669331d56113207ecb579756e5b661104889b60c08620a8383604051610ca9929190612697565b60405180910390a16001905092915050565b5f610cc4611a06565b8273ffffffffffffffffffffffffffffffffffffffff16631355fd16836040518263ffffffff1660e01b8152600401610cfd9190611d71565b6020604051808303815f875af1158015610d19573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d3d91906124a2565b610d7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7390612517565b60405180910390fd5b7fc10591ea122480d5a02d4691cc16a2dd7aac5756dfb1edb740ab803fb07a58f38383604051610dad9291906125e2565b60405180910390a16001905092915050565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60018054610df1906126f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610e1d906126f2565b8015610e685780601f10610e3f57610100808354040283529160200191610e68565b820191905f5260205f20905b815481529060010190602001808311610e4b57829003601f168201915b505050505081565b5f610e79611a06565b8173ffffffffffffffffffffffffffffffffffffffff1663398fdaba85856040518363ffffffff1660e01b8152600401610eb4929190612697565b6020604051808303815f875af1158015610ed0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ef491906124a2565b610f33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2a90612517565b60405180910390fd5b7f4a02d264ce8fd3d012669331d56113207ecb579756e5b661104889b60c08620a8484604051610f64929190612697565b60405180910390a1600190509392505050565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610fa4611a06565b610fad5f611b3a565b565b5f610fb8611a06565b8173ffffffffffffffffffffffffffffffffffffffff1663d1e84055878787876040518563ffffffff1660e01b8152600401610ff79493929190612722565b6020604051808303815f875af1158015611013573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061103791906124a2565b507f1f1509cc844be34c7794db345077cb2c77a17840663195713afafd0329fa2eb78686868660405161106d9493929190612722565b60405180910390a16001905095945050505050565b5f600580549050905090565b5f611097611a06565b5f8273ffffffffffffffffffffffffffffffffffffffff16637b25f65f888888886040518563ffffffff1660e01b81526004016110d79493929190612535565b6020604051808303815f875af11580156110f3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111179190612779565b9050600481908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f35cdfa5882f4895809b2d92411000e3a00ca40c9aa4b8d73d29b1584410bb68387826040516111aa92919061258d565b60405180910390a18091505095945050505050565b5f6111c8611a06565b8173ffffffffffffffffffffffffffffffffffffffff1663d7935be585856040518363ffffffff1660e01b81526004016112039291906125bb565b6020604051808303815f875af115801561121f573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061124391906124a2565b611282576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127990612517565b60405180910390fd5b600190509392505050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f6112bd611a06565b8173ffffffffffffffffffffffffffffffffffffffff1663158a498885856040518363ffffffff1660e01b81526004016112f89291906125bb565b6020604051808303815f875af1158015611314573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061133891906124a2565b611377576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136e906127ee565b60405180910390fd5b7f06fa3e7979edb1d1586ce0f05a947a16b3b03f8e5e5d39ad8cdc1499b5baef8d84846040516113a89291906125bb565b60405180910390a1600190509392505050565b5f600480549050905090565b5f6113d0611a06565b8173ffffffffffffffffffffffffffffffffffffffff1663ad9a473d8686866040518463ffffffff1660e01b815260040161140d93929190612443565b6020604051808303815f875af1158015611429573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061144d91906124a2565b61148c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148390612517565b60405180910390fd5b60019050949350505050565b5f6114a1611a06565b8373ffffffffffffffffffffffffffffffffffffffff166323563f8484846040518363ffffffff1660e01b81526004016114dc9291906125bb565b6020604051808303815f875af11580156114f8573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061151c91906124a2565b61155b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155290612679565b60405180910390fd5b7f4696427f412e47a0f787a9742d746f38565063acfed2f8f31ead2dd8c0b1c46884848460405161158e93929190612443565b60405180910390a1600190509392505050565b5f6115aa611a06565b5f6115d560035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611a84565b90508073ffffffffffffffffffffffffffffffffffffffff1663cd6dc68785856040518363ffffffff1660e01b81526004016116129291906125bb565b5f604051808303815f87803b158015611629575f80fd5b505af115801561163b573d5f803e3d5ffd5b50505050600581908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507fc600253ec9ced54c45f662e263387e09af4c45429e9f636864f256597099c0c381846040516117259291906125bb565b60405180910390a18091505092915050565b5f611740611a06565b8473ffffffffffffffffffffffffffffffffffffffff1663ee50ffcb8585856040518463ffffffff1660e01b815260040161177d93929190612443565b6020604051808303815f875af1158015611799573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117bd91906124a2565b6117fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f390612856565b60405180910390fd5b7f1f1509cc844be34c7794db345077cb2c77a17840663195713afafd0329fa2eb7858585856040516118319493929190612722565b60405180910390a160019050949350505050565b5f61184e611a06565b8273ffffffffffffffffffffffffffffffffffffffff16637799b765836040518263ffffffff1660e01b81526004016118879190612242565b6020604051808303815f875af11580156118a3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118c791906124a2565b611906576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fd90612517565b60405180910390fd5b7f79edf8ab7b186d32fd201fa0d48adcd1702dd4dde3627e2b01bbef54a214a9ed83836040516119379291906125bb565b60405180910390a16001905092915050565b60048181548110611958575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61198c611a06565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f1906128e4565b60405180910390fd5b611a0381611b3a565b50565b611a0e611bfb565b73ffffffffffffffffffffffffffffffffffffffff16611a2c61128d565b73ffffffffffffffffffffffffffffffffffffffff1614611a82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a799061294c565b60405180910390fd5b565b5f763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c175f526e5af43d82803e903d91602b57fd5bf38260781b17602052603760095ff090505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2c906129b4565b60405180910390fd5b919050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611c3c82611c13565b9050919050565b611c4c81611c32565b8114611c56575f80fd5b50565b5f81359050611c6781611c43565b92915050565b5f819050919050565b611c7f81611c6d565b8114611c89575f80fd5b50565b5f81359050611c9a81611c76565b92915050565b5f805f8060808587031215611cb857611cb7611c0b565b5b5f611cc587828801611c59565b9450506020611cd687828801611c59565b9350506040611ce787828801611c8c565b9250506060611cf887828801611c59565b91505092959194509250565b5f8115159050919050565b611d1881611d04565b82525050565b5f602082019050611d315f830184611d0f565b92915050565b5f60208284031215611d4c57611d4b611c0b565b5b5f611d5984828501611c8c565b91505092915050565b611d6b81611c32565b82525050565b5f602082019050611d845f830184611d62565b92915050565b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611dd882611d92565b810181811067ffffffffffffffff82111715611df757611df6611da2565b5b80604052505050565b5f611e09611c02565b9050611e158282611dcf565b919050565b5f67ffffffffffffffff821115611e3457611e33611da2565b5b611e3d82611d92565b9050602081019050919050565b828183375f83830152505050565b5f611e6a611e6584611e1a565b611e00565b905082815260208101848484011115611e8657611e85611d8e565b5b611e91848285611e4a565b509392505050565b5f82601f830112611ead57611eac611d8a565b5b8135611ebd848260208601611e58565b91505092915050565b5f805f8060808587031215611ede57611edd611c0b565b5b5f85013567ffffffffffffffff811115611efb57611efa611c0f565b5b611f0787828801611e99565b945050602085013567ffffffffffffffff811115611f2857611f27611c0f565b5b611f3487828801611e99565b9350506040611f4587828801611c8c565b925050606085013567ffffffffffffffff811115611f6657611f65611c0f565b5b611f7287828801611e99565b91505092959194509250565b5f805f60608486031215611f9557611f94611c0b565b5b5f611fa286828701611c59565b9350506020611fb386828701611c59565b9250506040611fc486828701611c8c565b9150509250925092565b5f805f60608486031215611fe557611fe4611c0b565b5b5f611ff286828701611c59565b935050602061200386828701611c59565b925050604061201486828701611c59565b9150509250925092565b5f806040838503121561203457612033611c0b565b5b5f61204185828601611c59565b925050602083013567ffffffffffffffff81111561206257612061611c0f565b5b61206e85828601611e99565b9150509250929050565b5f806040838503121561208e5761208d611c0b565b5b5f61209b85828601611c59565b92505060206120ac85828601611c59565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156120ed5780820151818401526020810190506120d2565b5f8484015250505050565b5f612102826120b6565b61210c81856120c0565b935061211c8185602086016120d0565b61212581611d92565b840191505092915050565b5f6020820190508181035f83015261214881846120f8565b905092915050565b5f805f6060848603121561216757612166611c0b565b5b5f61217486828701611c59565b935050602084013567ffffffffffffffff81111561219557612194611c0f565b5b6121a186828701611e99565b92505060406121b286828701611c59565b9150509250925092565b5f805f805f60a086880312156121d5576121d4611c0b565b5b5f6121e288828901611c59565b95505060206121f388828901611c59565b945050604061220488828901611c59565b935050606061221588828901611c8c565b925050608061222688828901611c59565b9150509295509295909350565b61223c81611c6d565b82525050565b5f6020820190506122555f830184612233565b92915050565b5f805f805f60a0868803121561227457612273611c0b565b5b5f86013567ffffffffffffffff81111561229157612290611c0f565b5b61229d88828901611e99565b955050602086013567ffffffffffffffff8111156122be576122bd611c0f565b5b6122ca88828901611e99565b94505060406122db88828901611c8c565b935050606086013567ffffffffffffffff8111156122fc576122fb611c0f565b5b61230888828901611e99565b925050608061231988828901611c59565b9150509295509295909350565b5f805f6060848603121561233d5761233c611c0b565b5b5f61234a86828701611c59565b935050602061235b86828701611c8c565b925050604061236c86828701611c59565b9150509250925092565b5f806040838503121561238c5761238b611c0b565b5b5f61239985828601611c59565b92505060206123aa85828601611c8c565b9150509250929050565b5f805f80608085870312156123cc576123cb611c0b565b5b5f6123d987828801611c59565b94505060206123ea87828801611c59565b93505060406123fb87828801611c59565b925050606061240c87828801611c8c565b91505092959194509250565b5f6020828403121561242d5761242c611c0b565b5b5f61243a84828501611c59565b91505092915050565b5f6060820190506124565f830186611d62565b6124636020830185611d62565b6124706040830184612233565b949350505050565b61248181611d04565b811461248b575f80fd5b50565b5f8151905061249c81612478565b92915050565b5f602082840312156124b7576124b6611c0b565b5b5f6124c48482850161248e565b91505092915050565b7f46756e6374696f6e2063616c6c206469646e27742072657475726e20747275655f82015250565b5f6125016020836120c0565b915061250c826124cd565b602082019050919050565b5f6020820190508181035f83015261252e816124f5565b9050919050565b5f6080820190508181035f83015261254d81876120f8565b9050818103602083015261256181866120f8565b90506125706040830185612233565b818103606083015261258281846120f8565b905095945050505050565b5f6040820190508181035f8301526125a581856120f8565b90506125b46020830184611d62565b9392505050565b5f6040820190506125ce5f830185611d62565b6125db6020830184612233565b9392505050565b5f6040820190506125f55f830185611d62565b6126026020830184611d62565b9392505050565b7f4572726f723a2046756e6374696f6e2063616c6c206469646e277420726574755f8201527f726e207472756500000000000000000000000000000000000000000000000000602082015250565b5f6126636027836120c0565b915061266e82612609565b604082019050919050565b5f6020820190508181035f83015261269081612657565b9050919050565b5f6040820190506126aa5f830185611d62565b81810360208301526126bc81846120f8565b90509392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061270957607f821691505b60208210810361271c5761271b6126c5565b5b50919050565b5f6080820190506127355f830187611d62565b6127426020830186611d62565b61274f6040830185611d62565b61275c6060830184612233565b95945050505050565b5f8151905061277381611c43565b92915050565b5f6020828403121561278e5761278d611c0b565b5b5f61279b84828501612765565b91505092915050565b7f46756e6374696f6e2064697374726962757465546f6b656e73206661696c00005f82015250565b5f6127d8601e836120c0565b91506127e3826127a4565b602082019050919050565b5f6020820190508181035f830152612805816127cc565b9050919050565b7f4572726f723a205472616e73666572206661696c65642e0000000000000000005f82015250565b5f6128406017836120c0565b915061284b8261280c565b602082019050919050565b5f6020820190508181035f83015261286d81612834565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6128ce6026836120c0565b91506128d982612874565b604082019050919050565b5f6020820190508181035f8301526128fb816128c2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6129366020836120c0565b915061294182612902565b602082019050919050565b5f6020820190508181035f8301526129638161292a565b9050919050565b7f455243313136373a20637265617465206661696c6564000000000000000000005f82015250565b5f61299e6016836120c0565b91506129a98261296a565b602082019050919050565b5f6020820190508181035f8301526129cb81612992565b905091905056fea26469706673582212207d635a15d53808d12175e06865defcaa2ca58580cf3ee1ac27442f10f820c3a764736f6c63430008140033

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

00000000000000000000000098c2b0affcc892d808b4b5b7430e3b6a53102f6f000000000000000000000000f50e17390b06b6012d0be30263684830ee90ed6c

-----Decoded View---------------
Arg [0] : _judicialAssetToken (address): 0x98C2b0aFFCc892d808B4B5b7430e3B6A53102f6F
Arg [1] : _fixedIncome (address): 0xF50E17390B06b6012D0BE30263684830Ee90eD6c

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000098c2b0affcc892d808b4b5b7430e3b6a53102f6f
Arg [1] : 000000000000000000000000f50e17390b06b6012d0be30263684830ee90ed6c


Block Transaction Gas Used Reward
view all blocks validated

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

Validator Index Block Amount
View All Withdrawals

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

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