ETH Price: $3,591.60 (-2.79%)

Token

ERC-20: Scales (SCALES)
 

Overview

Max Total Supply

1,135,247.340899430296740723 SCALES

Holders

679

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0 SCALES

Value
$0.00
0x4f37abf4beed9df0d3bfe99a7844f8c4504f025b
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Scales

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : Scales.sol
// SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.11;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

import "./interfaces/IKaijuKingz.sol";
import "./interfaces/IScales.sol";
import "./interfaces/IRWaste.sol";

error Scales_FunctionLocked();
error Scales_IndexOutOfRange();
error Scales_InsufficientFunds();
error Scales_InvalidTokenAmount();
error Scales_NotApprovedForAll();
error Scales_NothingToWithdraw();
error Scales_SenderNotTokenOwner();
error Scales_TokenNotStranded();

/**                                     ..',,;;;;:::;;;,,'..
                                 .';:ccccc:::;;,,,,,;;;:::ccccc:;'.
                            .,:ccc:;'..                      ..';:ccc:,.
                        .':cc:,.                                    .,ccc:'.
                     .,clc,.                                            .,clc,.
                   'clc'                                                    'clc'
                .;ll,.                                                        .;ll;.
              .:ol.                                                              'co:.
             ;oc.                                                                  .co;
           'oo'                                                                      'lo'
         .cd;                                                                          ;dc.
        .ol.                                                                 .,.        .lo.
       ,dc.                                                               'cxKWK;         cd,
      ;d;                                                             .;oONWMMMMXc         ;d;
     ;d;                                                           'cxKWMMMMMMMMMXl.        ;x;
    ,x:            ;dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0NMMMMMMMMMMMMMMNd.        :x,
   .dc           .lXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNd.        cd.
   ld.          .oNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXkl'         .dl
  ,x;          .xWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0d:.             ;x,
  oo.         .kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKxc'.                .oo
 'x:          .kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNOo;.                     :x'
 :x.           .xWMMMMMMMMMMM0occcccccccccccccccccccccccccccccccccccc:'                         .x:
 lo.            .oNMMMMMMMMMX;                                                                  .ol
.ol              .lXMMMMMMMWd.  ,dddddddddddddddo;.   .:dddddddddddddo,                          lo.
.dl                cXMMMMMM0,  'OMMMMMMMMMMMMMMNd.   .xWMMMMMMMMMMMMXo.                          ld.
.dl                 ;KMMMMNl   oWMMMMMMMMMMMMMXc.   ,OWMMMMMMMMMMMMK:                            ld.
 oo                  ,OWMMO.  ,KMMMMMMMMMMMMW0;   .cKMMMMMMMMMMMMWO,                             oo
 cd.                  'kWX:  .xWMMMMMMMMMMMWx.  .dKNMMMMMMMMMMMMNd.                             .dc
 ,x,                   .dd.  ;KMMMMMMMMMMMXo.  'kWMMMMMMMMMMMMMXl.                              ,x;
 .dc                     .   .,:loxOKNWMMK:   ;0WMMMMMMMMMMMMW0;                                cd.
  :d.                      ...      ..,:c'  .lXMMMMMMMMMMMMMWk'                                .d:
  .dl                      :OKOxoc:,..     .xNMMMMMMMMMMMMMNo.                                 cd.
   ;x,                      ;0MMMMWWXKOxoclOWMMMMMMMMMMMMMKc                                  ,x;
    cd.                      ,OWMMMMMMMMMMMMMMMMMMMMMMMMWO,                                  .dc
    .oo.                      .kWMMMMMMMMMMMMMMMMMMMMMMNx.                                  .oo.
     .oo.                      .xWMMMMMMMMMMMMMMMMMMMMXl.                                  .oo.
      .lo.                      .oNMMMMMMMMMMMMMMMMMW0;                                   .ol.
       .cd,                      .lXMMMMMMMMMMMMMMMWk'                                   ,dc.
         ;dc.                      :KMMMMMMMMMMMMNKo.                                  .cd;
          .lo,                      ;0WWWWWWWWWWKc.                                   'ol.
            ,ol.                     .,,,,,,,,,,.                                   .lo,
             .;oc.                                                                .co:.
               .;ol'                                                            'lo;.
                  ,ll:.                                                      .:ll,
                    .:ll;.                                                .;ll:.
                       .:ll:,.                                        .,:ll:.
                          .,:ccc;'.                              .';ccc:,.
                              .';cccc::;'...            ...';:ccccc;'.
                                    .',;::cc::cc::::::::::::;,..
                                              ........
 * @title Scales
 * @author Augminted Labs, LLC
 * @notice Staking contract allowing KAIJU to earn $SCALES
 * @notice For more details see: https://medium.com/@AugmintedLabs/kaijukingz-p2e-ecosystem-dc9577ff8773
 */
contract Scales is IScales, ERC20, ERC721Holder, AccessControl, Pausable, ReentrancyGuard {
    struct AccountInfo {
        uint16 shares;
        uint128 lastUpdate;
        uint256 stash;
    }

    event Stake(
        uint256 indexed tokenId,
        address indexed from
    );

    event Unstake(
        uint256 indexed tokenId,
        address indexed to
    );

    IKaijuKingz public immutable KAIJU;
    IRWaste public immutable RWASTE;
    uint256 public constant MAX_PER_TX = 25;
    uint256 public constant BASE_RATE = 5 ether;
    uint256 public constant GENESIS_BONUS = 2;
    bytes32 public constant SPENDER_ROLE = keccak256("SPENDER_ROLE");
    bytes32 public constant CREDITOR_ROLE = keccak256("CREDITOR_ROLE");
    bytes32 public constant RWASTE_MANAGER = keccak256("RWASTE_MANAGER");
    uint256 internal immutable KAIJU_GENESIS_SUPPLY;
    uint256 internal immutable KAIJU_MAX_SUPPLY;

    mapping(address => AccountInfo) public accountInfo;
    mapping(uint256 => address) public tokenOwners;
    mapping(bytes4 => bool) public functionLocked;

    constructor(
        address kaiju,
        uint256 genesisSupply,
        uint256 maxSupply,
        address rwaste
    )
        ERC20("Scales", "SCALES")
    {
        _grantRole(DEFAULT_ADMIN_ROLE, _msgSender());

        KAIJU = IKaijuKingz(kaiju);
        KAIJU_GENESIS_SUPPLY = genesisSupply;
        KAIJU_MAX_SUPPLY = maxSupply;
        RWASTE = IRWaste(rwaste);

        _pause();
    }

    /**
     * @notice Modifier applied to functions that will be disabled when they're no longer needed
     */
    modifier lockable() {
        if (functionLocked[msg.sig]) revert Scales_FunctionLocked();
        _;
    }

    /**
     * @notice Get the owner of a specified KAIJU
     * @param tokenId KAIJU to return the owner of
     * @return address Owner of the specified KAIJU
     */
    function ownerOf(uint256 tokenId) public view returns (address) {
        return tokenOwners[tokenId];
    }

    /**
     * @notice Get list of KAIJU tokens by account
     * @param account Address of the KAIJU owner
     * @return uint256[] The KAIJU tokens owned by the specified account
     */
    function getAllOwned(address account) public view returns (uint256[] memory) {
        uint256[] memory indexMap = new uint256[](KAIJU_MAX_SUPPLY);

        uint256 index;
        for (uint256 tokenId; tokenId < KAIJU_MAX_SUPPLY; ++tokenId) {
            if (tokenOwners[tokenId] == account) {
                indexMap[index] = tokenId;
                ++index;
            }
        }

        uint256[] memory tokenIds = new uint256[](index);
        for (uint256 i; i < index; ++i) {
            tokenIds[i] = indexMap[i];
        }

        return tokenIds;
    }

    /**
     * @notice Get amount of spendable $SCALES
     * @param account Address to return spendable $SCALES for
     * @return uint256 Amount of spendable $SCALES
     */
    function getSpendable(address account) public view override returns (uint256) {
        return accountInfo[account].stash + _getPending(account);
    }

    /**
     * @notice Get pending $SCALES rewards for a specified account calculated based on their staked KAIJU tokens
     * @param account Address to return the pending $SCALES rewards of
     * @return uint256 Amount of $SCALES a specified account has pending
     */
    function _getPending(address account) internal view returns (uint256) {
        AccountInfo memory _accountInfo = accountInfo[account];

        return _accountInfo.shares
            * BASE_RATE
            * (block.timestamp - _accountInfo.lastUpdate)
            / 1 days;
    }

    /**
     * @notice Get $SCALES stash of a specified account
     * @param account Address of the account to get the $SCALES stash of
     */
    function stash(address account) public view returns (uint256) {
        return accountInfo[account].stash;
    }

    /**
     * @notice Move pending $SCALES rewards to account stash and reset the timer
     * @dev This should be called before any operation that changes values used in _getPending(address)
     * @param account Address to update the rewards of
     */
    function _updateStash(address account) internal {
        accountInfo[_msgSender()].stash += _getPending(account);
        accountInfo[_msgSender()].lastUpdate = uint128(block.timestamp);
    }

    /**
     * @notice Withdraw available $SCALES
     */
    function withdraw() public whenNotPaused nonReentrant {
        uint256 spendable = getSpendable(_msgSender());

        if (spendable == 0) revert Scales_NothingToWithdraw();

        accountInfo[_msgSender()].stash = 0;
        accountInfo[_msgSender()].lastUpdate = uint128(block.timestamp);

        _mint(_msgSender(), spendable);
    }

    /**
     * @notice Withdraw a specified amount of $SCALES
     * @param amount Amount of $SCALES to withdraw
     */
    function withdrawSome(uint256 amount) public whenNotPaused nonReentrant {
        uint256 spendable = getSpendable(_msgSender());

        if (spendable < amount) revert Scales_InsufficientFunds();

        accountInfo[_msgSender()].stash = spendable - amount;
        accountInfo[_msgSender()].lastUpdate = uint128(block.timestamp);

        _mint(_msgSender(), amount);
    }

    /**
     * @notice Deposit $SCALES
     * @param amount Amount of $SCALES to deposit
     */
    function deposit(uint256 amount) public whenNotPaused {
        _burn(_msgSender(), amount);

        accountInfo[_msgSender()].stash += amount;
    }

    /**
     * @notice Stake KAIJU tokens and start earning $SCALES
     * @param tokenIds KAIJU tokens to stake
     */
    function stake(uint256[] memory tokenIds) public whenNotPaused nonReentrant {
        if (tokenIds.length == 0 || tokenIds.length > MAX_PER_TX) revert Scales_InvalidTokenAmount();

        _updateStash(_msgSender());

        uint16 genesisCount;
        for (uint256 i; i < tokenIds.length; ++i) {
            uint256 tokenId = tokenIds[i];

            KAIJU.safeTransferFrom(_msgSender(), address(this), tokenId);
            tokenOwners[tokenId] = _msgSender();

            if (tokenId < KAIJU_GENESIS_SUPPLY) ++genesisCount;

            emit Stake(tokenId, _msgSender());
        }

        accountInfo[_msgSender()].shares += uint16(tokenIds.length + (genesisCount * GENESIS_BONUS));
    }

    /**
     * @notice Unstake KAIJU tokens
     * @param tokenIds KAIJU tokens to unstake
     */
    function unstake(uint256[] calldata tokenIds) public nonReentrant {
        if (tokenIds.length == 0 || tokenIds.length > MAX_PER_TX) revert Scales_InvalidTokenAmount();

        _updateStash(_msgSender());

        uint16 genesisCount;
        for (uint256 i; i < tokenIds.length; ++i) {
            uint256 tokenId = tokenIds[i];

            if (tokenOwners[tokenId] != _msgSender()) revert Scales_SenderNotTokenOwner();

            KAIJU.safeTransferFrom(address(this), _msgSender(), tokenId);
            tokenOwners[tokenId] = address(0);

            if (tokenId < KAIJU_GENESIS_SUPPLY) ++genesisCount;

            emit Unstake(tokenId, _msgSender());
        }

        accountInfo[_msgSender()].shares -= uint16(tokenIds.length + (genesisCount * GENESIS_BONUS));
    }

    /**
     * @notice Spend a specified amount of $SCALES
     * @dev Used only by contracts for extending token utility
     * @param from Account to spend $SCALES from
     * @param amount Amount of $SCALES to spend
     */
    function spend(address from, uint256 amount) public override onlyRole(SPENDER_ROLE) {
        if (amount > getSpendable(from)) revert Scales_InsufficientFunds();

        _updateStash(from);

        accountInfo[from].stash -= amount;
    }

    /**
     * @notice Credit a specified amount of $SCALES
     * @dev Used only by contracts for extending token utility
     * @param to Account to credit $SCALES to
     * @param amount Amount of $SCALES to credit
     */
    function credit(address to, uint256 amount) public override onlyRole(CREDITOR_ROLE) {
        accountInfo[to].stash += amount;
    }

    /**
     * @notice Claim $RWASTE rewards on behalf of the staking contract
     */
    function claimRWaste() public lockable onlyRole(RWASTE_MANAGER) {
        RWASTE.claimReward();
    }

    /**
     * @notice Approve an address or contract to spend $RWASTE earned by the staking contract
     * @param spender Address to authorize for spending $RWASTE
     * @param amount Amount of $RWASTE spender is allowed to spend
     * @return bool If the approval was successful
     */
    function approveRWaste(address spender, uint256 amount)
        public
        lockable
        onlyRole(RWASTE_MANAGER)
        returns (bool)
    {
        return RWASTE.approve(spender, amount);
    }

    /**
     * @notice Recover KAIJU tokens accidentally transferred directly to the contract
     * @dev Only available to owner if internal owner mapping was not updated
     * @param to Account to send the KAIJU to
     * @param tokenId KAIJU to recover
     */
    function recoveryTransfer(address to, uint256 tokenId) external lockable onlyRole(DEFAULT_ADMIN_ROLE) {
        if (tokenOwners[tokenId] != address(0)) revert Scales_TokenNotStranded();

        KAIJU.transferFrom(address(this), to, tokenId);
    }

    /**
     * @notice Flip paused state to temporarily disable minting
     */
    function flipPaused() external lockable onlyRole(DEFAULT_ADMIN_ROLE) {
        paused() ? _unpause() : _pause();
    }

    /**
     * @notice Lock individual functions that are no longer needed
     * @dev Only affects functions with the lockable modifier
     * @param id First 4 bytes of the calldata (i.e. function identifier)
     */
    function lockFunction(bytes4 id) external onlyRole(DEFAULT_ADMIN_ROLE) {
        functionLocked[id] = true;
    }
}

File 2 of 19 : IRWaste.sol
//SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IRWaste is IERC20 {
    function burn(address user, uint256 amount) external;
    function claimReward() external;
}

File 3 of 19 : IScales.sol
// SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.4;

import "./ISpendable.sol";

interface IScales is ISpendable {
    function getAllOwned(address) external view returns (uint256[] memory);
}

File 4 of 19 : IKaijuKingz.sol
//SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

interface IKaijuKingz is IERC721 {
    function maxSupply() external returns (uint256);
    function maxGenCount() external returns (uint256);
    function RWaste() external returns (address);
}

File 5 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 6 of 19 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 7 of 19 : ERC721Holder.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
contract ERC721Holder is IERC721Receiver {
    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

File 8 of 19 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

        _afterTokenTransfer(address(0), account, amount);
    }

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

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

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

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

        _afterTokenTransfer(account, address(0), amount);
    }

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

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

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

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

File 9 of 19 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, 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(uint160(account), 20),
                        " 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.
     */
    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.
     */
    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`.
     */
    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.
     *
     * [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.
     */
    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.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 10 of 19 : ISpendable.sol
//SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface ISpendable is IERC20 {
    function getSpendable(address) external view returns (uint256);
    function spend(address, uint256) external;
    function credit(address, uint256) external;
}

File 11 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 12 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 13 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 14 of 19 : 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 15 of 19 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 16 of 19 : 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 17 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @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] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"kaiju","type":"address"},{"internalType":"uint256","name":"genesisSupply","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"address","name":"rwaste","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Scales_FunctionLocked","type":"error"},{"inputs":[],"name":"Scales_InsufficientFunds","type":"error"},{"inputs":[],"name":"Scales_InvalidTokenAmount","type":"error"},{"inputs":[],"name":"Scales_NothingToWithdraw","type":"error"},{"inputs":[],"name":"Scales_SenderNotTokenOwner","type":"error"},{"inputs":[],"name":"Scales_TokenNotStranded","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Unstake","type":"event"},{"inputs":[],"name":"BASE_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CREDITOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GENESIS_BONUS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"KAIJU","outputs":[{"internalType":"contract IKaijuKingz","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RWASTE","outputs":[{"internalType":"contract IRWaste","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RWASTE_MANAGER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPENDER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountInfo","outputs":[{"internalType":"uint16","name":"shares","type":"uint16"},{"internalType":"uint128","name":"lastUpdate","type":"uint128"},{"internalType":"uint256","name":"stash","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approveRWaste","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRWaste","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"credit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"name":"functionLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAllOwned","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getSpendable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"id","type":"bytes4"}],"name":"lockFunction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"recoveryTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"spend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"stash","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawSome","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101006040523480156200001257600080fd5b506040516200543d3803806200543d83398181016040528101906200003891906200053a565b6040518060400160405280600681526020017f5363616c657300000000000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f5343414c455300000000000000000000000000000000000000000000000000008152508160039080519060200190620000bc929190620003e5565b508060049080519060200190620000d5929190620003e5565b5050506000600660006101000a81548160ff02191690831515021790555060016007819055506200011f6000801b62000113620001b160201b60201c565b620001b960201b60201c565b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508260c081815250508160e081815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1681525050620001a7620002ab60201b60201c565b50505050620006c2565b600033905090565b620001cb82826200036360201b60201c565b620002a75760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200024c620001b160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b620002bb620003ce60201b60201c565b15620002fe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002f5906200060d565b60405180910390fd5b6001600660006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200034a620001b160201b60201c565b60405162000359919062000640565b60405180910390a1565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600660009054906101000a900460ff16905090565b828054620003f3906200068c565b90600052602060002090601f01602090048101928262000417576000855562000463565b82601f106200043257805160ff191683800117855562000463565b8280016001018555821562000463579182015b828111156200046257825182559160200191906001019062000445565b5b50905062000472919062000476565b5090565b5b808211156200049157600081600090555060010162000477565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004c7826200049a565b9050919050565b620004d981620004ba565b8114620004e557600080fd5b50565b600081519050620004f981620004ce565b92915050565b6000819050919050565b6200051481620004ff565b81146200052057600080fd5b50565b600081519050620005348162000509565b92915050565b6000806000806080858703121562000557576200055662000495565b5b60006200056787828801620004e8565b94505060206200057a8782880162000523565b93505060406200058d8782880162000523565b9250506060620005a087828801620004e8565b91505092959194509250565b600082825260208201905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000620005f5601083620005ac565b91506200060282620005bd565b602082019050919050565b600060208201905081810360008301526200062881620005e6565b9050919050565b6200063a81620004ba565b82525050565b60006020820190506200065760008301846200062f565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620006a557607f821691505b60208210811415620006bc57620006bb6200065d565b5b50919050565b60805160a05160c05160e051614d106200072d6000396000818161184301526118b2015260008181610c5c0152612322015260008181610e7a015281816114b50152611b55015260008181610b6d015281816116c701528181611a2f01526122390152614d106000f3fe608060405234801561001057600080fd5b50600436106102955760003560e01c806370a0823111610167578063ae9b051c116100ce578063dd62ed3e11610087578063dd62ed3e1461083c578063e449f3411461086c578063eac43a9e14610888578063ef6506db146108b8578063f43a22dc146108d4578063f8a14f46146108f257610295565b8063ae9b051c1461077e578063af7d6ca31461079a578063b31deaf1146107b6578063b6b55f25146107d4578063bbadfe76146107f0578063d547741f1461082057610295565b806396d20e731161012057806396d20e73146106925780639af6bc97146106b0578063a217fddf146106ce578063a457c2d7146106ec578063a7310b581461071c578063a9059cbb1461074e57610295565b806370a08231146105a857806372c16a24146105d85780637717228a146105f65780637792cf211461062657806391d148541461064457806395d89b411461067457610295565b8063313ce5671161020b578063416d80f7116101c4578063416d80f7146104d257806341910f901461050257806357f576eb146105205780635c975abb1461053c5780636352211e1461055a5780636caa570b1461058a57610295565b8063313ce56714610438578063333171bb14610456578063345318281461046057806336568abe1461047c57806339509351146104985780633ccfd60b146104c857610295565b8063150b7a021161025d578063150b7a021461033e57806318160ddd1461036e5780631d0504a81461038c57806323b872dd146103bc578063248a9ca3146103ec5780632f2ff15d1461041c57610295565b806301ffc9a71461029a57806306fdde03146102ca578063095ea7b3146102e85780630fbf0a931461031857806312bf78b714610334575b600080fd5b6102b460048036038101906102af9190613675565b610922565b6040516102c191906136bd565b60405180910390f35b6102d261099c565b6040516102df9190613771565b60405180910390f35b61030260048036038101906102fd9190613827565b610a2e565b60405161030f91906136bd565b60405180910390f35b610332600480360381019061032d91906139af565b610a51565b005b61033c610d95565b005b61035860048036038101906103539190613aad565b610efb565b6040516103659190613b3f565b60405180910390f35b610376610f0f565b6040516103839190613b69565b60405180910390f35b6103a660048036038101906103a19190613b84565b610f19565b6040516103b39190613b69565b60405180910390f35b6103d660048036038101906103d19190613bb1565b610f65565b6040516103e391906136bd565b60405180910390f35b61040660048036038101906104019190613c3a565b610f94565b6040516104139190613c76565b60405180910390f35b61043660048036038101906104319190613c91565b610fb4565b005b610440610fd5565b60405161044d9190613ced565b60405180910390f35b61045e610fde565b005b61047a60048036038101906104759190613675565b6110c9565b005b61049660048036038101906104919190613c91565b611144565b005b6104b260048036038101906104ad9190613827565b6111c7565b6040516104bf91906136bd565b60405180910390f35b6104d06111fe565b005b6104ec60048036038101906104e79190613827565b6113ce565b6040516104f991906136bd565b60405180910390f35b61050a61155a565b6040516105179190613b69565b60405180910390f35b61053a60048036038101906105359190613827565b611566565b005b610544611759565b60405161055191906136bd565b60405180910390f35b610574600480360381019061056f9190613d08565b611770565b6040516105819190613d44565b60405180910390f35b6105926117ad565b60405161059f9190613c76565b60405180910390f35b6105c260048036038101906105bd9190613b84565b6117d1565b6040516105cf9190613b69565b60405180910390f35b6105e0611819565b6040516105ed9190613c76565b60405180910390f35b610610600480360381019061060b9190613b84565b61183d565b60405161061d9190613e1d565b60405180910390f35b61062e611a2d565b60405161063b9190613e9e565b60405180910390f35b61065e60048036038101906106599190613c91565b611a51565b60405161066b91906136bd565b60405180910390f35b61067c611abc565b6040516106899190613771565b60405180910390f35b61069a611b4e565b6040516106a79190613b69565b60405180910390f35b6106b8611b53565b6040516106c59190613eda565b60405180910390f35b6106d6611b77565b6040516106e39190613c76565b60405180910390f35b61070660048036038101906107019190613827565b611b7e565b60405161071391906136bd565b60405180910390f35b61073660048036038101906107319190613b84565b611bf5565b60405161074593929190613f3d565b60405180910390f35b61076860048036038101906107639190613827565b611c49565b60405161077591906136bd565b60405180910390f35b61079860048036038101906107939190613d08565b611c6c565b005b6107b460048036038101906107af9190613827565b611e46565b005b6107be611f19565b6040516107cb9190613c76565b60405180910390f35b6107ee60048036038101906107e99190613d08565b611f3d565b005b61080a60048036038101906108059190613675565b611ff9565b60405161081791906136bd565b60405180910390f35b61083a60048036038101906108359190613c91565b612019565b005b61085660048036038101906108519190613f74565b61203a565b6040516108639190613b69565b60405180910390f35b6108866004803603810190610881919061400f565b6120c1565b005b6108a2600480360381019061089d9190613b84565b61245e565b6040516108af9190613b69565b60405180910390f35b6108d260048036038101906108cd9190613827565b6124bd565b005b6108dc612545565b6040516108e99190613b69565b60405180910390f35b61090c60048036038101906109079190613d08565b61254a565b6040516109199190613d44565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099557506109948261257d565b5b9050919050565b6060600380546109ab9061408b565b80601f01602080910402602001604051908101604052809291908181526020018280546109d79061408b565b8015610a245780601f106109f957610100808354040283529160200191610a24565b820191906000526020600020905b815481529060010190602001808311610a0757829003601f168201915b5050505050905090565b600080610a396125e7565b9050610a468185856125ef565b600191505092915050565b610a59611759565b15610a99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9090614109565b60405180910390fd5b60026007541415610adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad690614175565b60405180910390fd5b6002600781905550600081511480610af8575060198151115b15610b2f576040517f0aa4573000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b3f610b3a6125e7565b6127ba565b6000805b8251811015610cec576000838281518110610b6157610b60614195565b5b602002602001015190507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166342842e0e610baf6125e7565b30846040518463ffffffff1660e01b8152600401610bcf939291906141c4565b600060405180830381600087803b158015610be957600080fd5b505af1158015610bfd573d6000803e3d6000fd5b50505050610c096125e7565b6009600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f0000000000000000000000000000000000000000000000000000000000000000811015610c8f5782610c8c9061422a565b92505b610c976125e7565b73ffffffffffffffffffffffffffffffffffffffff16817f2bccdce62e5aec7ee273161a374088a6da4311d0e688784bde3c1cec8a3c003a60405160405180910390a35080610ce590614255565b9050610b43565b5060028161ffff16610cfe919061429e565b8251610d0a91906142f8565b60086000610d166125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900461ffff16610d6f919061434e565b92506101000a81548161ffff021916908361ffff16021790555050600160078190555050565b600a600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615610e4e576040517f55fcafa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7feed08a88c6e2e5624208e41eedf02a5f5cd8c1fbb42c8ffaa93f7769d9dd1050610e78816128a5565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b88a802f6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610ee057600080fd5b505af1158015610ef4573d6000803e3d6000fd5b5050505050565b600063150b7a0260e01b9050949350505050565b6000600254905090565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050919050565b600080610f706125e7565b9050610f7d8582856128b9565b610f88858585612945565b60019150509392505050565b600060056000838152602001908152602001600020600101549050919050565b610fbd82610f94565b610fc6816128a5565b610fd08383612bc6565b505050565b60006012905090565b600a600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615611097576040517f55fcafa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b6110a4816128a5565b6110ac611759565b6110bd576110b8612ca7565b6110c6565b6110c5612d4a565b5b50565b6000801b6110d6816128a5565b6001600a6000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b61114c6125e7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b0906143f8565b60405180910390fd5b6111c38282612dec565b5050565b6000806111d26125e7565b90506111f38185856111e4858961203a565b6111ee91906142f8565b6125ef565b600191505092915050565b611206611759565b15611246576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123d90614109565b60405180910390fd5b6002600754141561128c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128390614175565b60405180910390fd5b600260078190555060006112a66112a16125e7565b61245e565b905060008114156112e3576040517f338aeff900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600860006112f16125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010181905550426008600061133f6125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160026101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506113c36113bd6125e7565b82612ece565b506001600781905550565b6000600a600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615611489576040517f55fcafa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7feed08a88c6e2e5624208e41eedf02a5f5cd8c1fbb42c8ffaa93f7769d9dd10506114b3816128a5565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b385856040518363ffffffff1660e01b815260040161150e929190614418565b6020604051808303816000875af115801561152d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611551919061446d565b91505092915050565b674563918244f4000081565b600a600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff161561161f576040517f55fcafa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b61162c816128a5565b600073ffffffffffffffffffffffffffffffffffffffff166009600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116c5576040517fc6d74a0100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3085856040518463ffffffff1660e01b8152600401611722939291906141c4565b600060405180830381600087803b15801561173c57600080fd5b505af1158015611750573d6000803e3d6000fd5b50505050505050565b6000600660009054906101000a900460ff16905090565b60006009600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b7feed08a88c6e2e5624208e41eedf02a5f5cd8c1fbb42c8ffaa93f7769d9dd105081565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f7434c6f201a551bfd17336985361933e0c4935b520dac8a49d937b325f7d5c0a81565b606060007f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff81111561187b5761187a61386c565b5b6040519080825280602002602001820160405280156118a95781602001602082028036833780820191505090505b5090506000805b7f000000000000000000000000000000000000000000000000000000000000000081101561197d578473ffffffffffffffffffffffffffffffffffffffff166009600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561196c578083838151811061195357611952614195565b5b6020026020010181815250508161196990614255565b91505b8061197690614255565b90506118b0565b5060008167ffffffffffffffff81111561199a5761199961386c565b5b6040519080825280602002602001820160405280156119c85781602001602082028036833780820191505090505b50905060005b82811015611a21578381815181106119e9576119e8614195565b5b6020026020010151828281518110611a0457611a03614195565b5b60200260200101818152505080611a1a90614255565b90506119ce565b50809350505050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060048054611acb9061408b565b80601f0160208091040260200160405190810160405280929190818152602001828054611af79061408b565b8015611b445780601f10611b1957610100808354040283529160200191611b44565b820191906000526020600020905b815481529060010190602001808311611b2757829003601f168201915b5050505050905090565b600281565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000801b81565b600080611b896125e7565b90506000611b97828661203a565b905083811015611bdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd39061450c565b60405180910390fd5b611be982868684036125ef565b60019250505092915050565b60086020528060005260406000206000915090508060000160009054906101000a900461ffff16908060000160029054906101000a90046fffffffffffffffffffffffffffffffff16908060010154905083565b600080611c546125e7565b9050611c61818585612945565b600191505092915050565b611c74611759565b15611cb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cab90614109565b60405180910390fd5b60026007541415611cfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf190614175565b60405180910390fd5b60026007819055506000611d14611d0f6125e7565b61245e565b905081811015611d50576040517fa544177900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181611d5c919061452c565b60086000611d686125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055504260086000611db66125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160026101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550611e3a611e346125e7565b83612ece565b50600160078190555050565b7f7434c6f201a551bfd17336985361933e0c4935b520dac8a49d937b325f7d5c0a611e70816128a5565b611e798361245e565b821115611eb2576040517fa544177900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ebb836127ba565b81600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254611f0d919061452c565b92505081905550505050565b7fbe74a168a238bf2df7daa27dd5487ac84cb89ae44fd7e7d1e4b6397bfe51dcb881565b611f45611759565b15611f85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7c90614109565b60405180910390fd5b611f96611f906125e7565b8261302e565b8060086000611fa36125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254611fef91906142f8565b9250508190555050565b600a6020528060005260406000206000915054906101000a900460ff1681565b61202282610f94565b61202b816128a5565b6120358383612dec565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60026007541415612107576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fe90614175565b60405180910390fd5b600260078190555060008282905014806121245750601982829050115b1561215b576040517f0aa4573000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61216b6121666125e7565b6127ba565b6000805b838390508110156123b257600084848381811061218f5761218e614195565b5b9050602002013590506121a06125e7565b73ffffffffffffffffffffffffffffffffffffffff166009600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612237576040517f1fd15b3200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166342842e0e3061227c6125e7565b846040518463ffffffff1660e01b815260040161229b939291906141c4565b600060405180830381600087803b1580156122b557600080fd5b505af11580156122c9573d6000803e3d6000fd5b5050505060006009600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f000000000000000000000000000000000000000000000000000000000000000081101561235557826123529061422a565b92505b61235d6125e7565b73ffffffffffffffffffffffffffffffffffffffff16817f4ac743692c9ced0a3f0052fb9917c0856b6b12671016afe41b649643a89b1ad560405160405180910390a350806123ab90614255565b905061216f565b5060028161ffff166123c4919061429e565b838390506123d291906142f8565b600860006123de6125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900461ffff166124379190614560565b92506101000a81548161ffff021916908361ffff1602179055505060016007819055505050565b600061246982613205565b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101546124b691906142f8565b9050919050565b7fbe74a168a238bf2df7daa27dd5487ac84cb89ae44fd7e7d1e4b6397bfe51dcb86124e7816128a5565b81600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600082825461253991906142f8565b92505081905550505050565b601981565b60096020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561265f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265690614606565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c690614698565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516127ad9190613b69565b60405180910390a3505050565b6127c381613205565b600860006127cf6125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600082825461281b91906142f8565b92505081905550426008600061282f6125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160026101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555050565b6128b6816128b16125e7565b613326565b50565b60006128c5848461203a565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461293f5781811015612931576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292890614704565b60405180910390fd5b61293e84848484036125ef565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156129b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ac90614796565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1c90614828565b60405180910390fd5b612a308383836133c3565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612ab6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aad906148ba565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b4991906142f8565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612bad9190613b69565b60405180910390a3612bc08484846133c8565b50505050565b612bd08282611a51565b612ca35760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612c486125e7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612caf611759565b15612cef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce690614109565b60405180910390fd5b6001600660006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d336125e7565b604051612d409190613d44565b60405180910390a1565b612d52611759565b612d91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8890614926565b60405180910390fd5b6000600660006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612dd56125e7565b604051612de29190613d44565b60405180910390a1565b612df68282611a51565b15612eca5760006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612e6f6125e7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f3590614992565b60405180910390fd5b612f4a600083836133c3565b8060026000828254612f5c91906142f8565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fb191906142f8565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516130169190613b69565b60405180910390a361302a600083836133c8565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561309e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309590614a24565b60405180910390fd5b6130aa826000836133c3565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015613130576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312790614ab6565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254613187919061452c565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516131ec9190613b69565b60405180910390a3613200836000846133c8565b505050565b600080600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200160018201548152505090506201518081602001516fffffffffffffffffffffffffffffffff16426132ee919061452c565b674563918244f40000836000015161ffff1661330a919061429e565b613314919061429e565b61331e9190614b05565b915050919050565b6133308282611a51565b6133bf576133558173ffffffffffffffffffffffffffffffffffffffff1660146133cd565b6133638360001c60206133cd565b604051602001613374929190614c0a565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133b69190613771565b60405180910390fd5b5050565b505050565b505050565b6060600060028360026133e0919061429e565b6133ea91906142f8565b67ffffffffffffffff8111156134035761340261386c565b5b6040519080825280601f01601f1916602001820160405280156134355781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061346d5761346c614195565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106134d1576134d0614195565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613511919061429e565b61351b91906142f8565b90505b60018111156135bb577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061355d5761355c614195565b5b1a60f81b82828151811061357457613573614195565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806135b490614c44565b905061351e565b50600084146135ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135f690614cba565b60405180910390fd5b8091505092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6136528161361d565b811461365d57600080fd5b50565b60008135905061366f81613649565b92915050565b60006020828403121561368b5761368a613613565b5b600061369984828501613660565b91505092915050565b60008115159050919050565b6136b7816136a2565b82525050565b60006020820190506136d260008301846136ae565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156137125780820151818401526020810190506136f7565b83811115613721576000848401525b50505050565b6000601f19601f8301169050919050565b6000613743826136d8565b61374d81856136e3565b935061375d8185602086016136f4565b61376681613727565b840191505092915050565b6000602082019050818103600083015261378b8184613738565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006137be82613793565b9050919050565b6137ce816137b3565b81146137d957600080fd5b50565b6000813590506137eb816137c5565b92915050565b6000819050919050565b613804816137f1565b811461380f57600080fd5b50565b600081359050613821816137fb565b92915050565b6000806040838503121561383e5761383d613613565b5b600061384c858286016137dc565b925050602061385d85828601613812565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6138a482613727565b810181811067ffffffffffffffff821117156138c3576138c261386c565b5b80604052505050565b60006138d6613609565b90506138e2828261389b565b919050565b600067ffffffffffffffff8211156139025761390161386c565b5b602082029050602081019050919050565b600080fd5b600061392b613926846138e7565b6138cc565b9050808382526020820190506020840283018581111561394e5761394d613913565b5b835b8181101561397757806139638882613812565b845260208401935050602081019050613950565b5050509392505050565b600082601f83011261399657613995613867565b5b81356139a6848260208601613918565b91505092915050565b6000602082840312156139c5576139c4613613565b5b600082013567ffffffffffffffff8111156139e3576139e2613618565b5b6139ef84828501613981565b91505092915050565b600080fd5b600067ffffffffffffffff821115613a1857613a1761386c565b5b613a2182613727565b9050602081019050919050565b82818337600083830152505050565b6000613a50613a4b846139fd565b6138cc565b905082815260208101848484011115613a6c57613a6b6139f8565b5b613a77848285613a2e565b509392505050565b600082601f830112613a9457613a93613867565b5b8135613aa4848260208601613a3d565b91505092915050565b60008060008060808587031215613ac757613ac6613613565b5b6000613ad5878288016137dc565b9450506020613ae6878288016137dc565b9350506040613af787828801613812565b925050606085013567ffffffffffffffff811115613b1857613b17613618565b5b613b2487828801613a7f565b91505092959194509250565b613b398161361d565b82525050565b6000602082019050613b546000830184613b30565b92915050565b613b63816137f1565b82525050565b6000602082019050613b7e6000830184613b5a565b92915050565b600060208284031215613b9a57613b99613613565b5b6000613ba8848285016137dc565b91505092915050565b600080600060608486031215613bca57613bc9613613565b5b6000613bd8868287016137dc565b9350506020613be9868287016137dc565b9250506040613bfa86828701613812565b9150509250925092565b6000819050919050565b613c1781613c04565b8114613c2257600080fd5b50565b600081359050613c3481613c0e565b92915050565b600060208284031215613c5057613c4f613613565b5b6000613c5e84828501613c25565b91505092915050565b613c7081613c04565b82525050565b6000602082019050613c8b6000830184613c67565b92915050565b60008060408385031215613ca857613ca7613613565b5b6000613cb685828601613c25565b9250506020613cc7858286016137dc565b9150509250929050565b600060ff82169050919050565b613ce781613cd1565b82525050565b6000602082019050613d026000830184613cde565b92915050565b600060208284031215613d1e57613d1d613613565b5b6000613d2c84828501613812565b91505092915050565b613d3e816137b3565b82525050565b6000602082019050613d596000830184613d35565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613d94816137f1565b82525050565b6000613da68383613d8b565b60208301905092915050565b6000602082019050919050565b6000613dca82613d5f565b613dd48185613d6a565b9350613ddf83613d7b565b8060005b83811015613e10578151613df78882613d9a565b9750613e0283613db2565b925050600181019050613de3565b5085935050505092915050565b60006020820190508181036000830152613e378184613dbf565b905092915050565b6000819050919050565b6000613e64613e5f613e5a84613793565b613e3f565b613793565b9050919050565b6000613e7682613e49565b9050919050565b6000613e8882613e6b565b9050919050565b613e9881613e7d565b82525050565b6000602082019050613eb36000830184613e8f565b92915050565b6000613ec482613e6b565b9050919050565b613ed481613eb9565b82525050565b6000602082019050613eef6000830184613ecb565b92915050565b600061ffff82169050919050565b613f0c81613ef5565b82525050565b60006fffffffffffffffffffffffffffffffff82169050919050565b613f3781613f12565b82525050565b6000606082019050613f526000830186613f03565b613f5f6020830185613f2e565b613f6c6040830184613b5a565b949350505050565b60008060408385031215613f8b57613f8a613613565b5b6000613f99858286016137dc565b9250506020613faa858286016137dc565b9150509250929050565b600080fd5b60008083601f840112613fcf57613fce613867565b5b8235905067ffffffffffffffff811115613fec57613feb613fb4565b5b60208301915083602082028301111561400857614007613913565b5b9250929050565b6000806020838503121561402657614025613613565b5b600083013567ffffffffffffffff81111561404457614043613618565b5b61405085828601613fb9565b92509250509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806140a357607f821691505b602082108114156140b7576140b661405c565b5b50919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006140f36010836136e3565b91506140fe826140bd565b602082019050919050565b60006020820190508181036000830152614122816140e6565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061415f601f836136e3565b915061416a82614129565b602082019050919050565b6000602082019050818103600083015261418e81614152565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006060820190506141d96000830186613d35565b6141e66020830185613d35565b6141f36040830184613b5a565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061423582613ef5565b915061ffff82141561424a576142496141fb565b5b600182019050919050565b6000614260826137f1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614293576142926141fb565b5b600182019050919050565b60006142a9826137f1565b91506142b4836137f1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156142ed576142ec6141fb565b5b828202905092915050565b6000614303826137f1565b915061430e836137f1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614343576143426141fb565b5b828201905092915050565b600061435982613ef5565b915061436483613ef5565b92508261ffff0382111561437b5761437a6141fb565b5b828201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b60006143e2602f836136e3565b91506143ed82614386565b604082019050919050565b60006020820190508181036000830152614411816143d5565b9050919050565b600060408201905061442d6000830185613d35565b61443a6020830184613b5a565b9392505050565b61444a816136a2565b811461445557600080fd5b50565b60008151905061446781614441565b92915050565b60006020828403121561448357614482613613565b5b600061449184828501614458565b91505092915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006144f66025836136e3565b91506145018261449a565b604082019050919050565b60006020820190508181036000830152614525816144e9565b9050919050565b6000614537826137f1565b9150614542836137f1565b925082821015614555576145546141fb565b5b828203905092915050565b600061456b82613ef5565b915061457683613ef5565b925082821015614589576145886141fb565b5b828203905092915050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006145f06024836136e3565b91506145fb82614594565b604082019050919050565b6000602082019050818103600083015261461f816145e3565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006146826022836136e3565b915061468d82614626565b604082019050919050565b600060208201905081810360008301526146b181614675565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b60006146ee601d836136e3565b91506146f9826146b8565b602082019050919050565b6000602082019050818103600083015261471d816146e1565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006147806025836136e3565b915061478b82614724565b604082019050919050565b600060208201905081810360008301526147af81614773565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006148126023836136e3565b915061481d826147b6565b604082019050919050565b6000602082019050818103600083015261484181614805565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006148a46026836136e3565b91506148af82614848565b604082019050919050565b600060208201905081810360008301526148d381614897565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006149106014836136e3565b915061491b826148da565b602082019050919050565b6000602082019050818103600083015261493f81614903565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b600061497c601f836136e3565b915061498782614946565b602082019050919050565b600060208201905081810360008301526149ab8161496f565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614a0e6021836136e3565b9150614a19826149b2565b604082019050919050565b60006020820190508181036000830152614a3d81614a01565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000614aa06022836136e3565b9150614aab82614a44565b604082019050919050565b60006020820190508181036000830152614acf81614a93565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614b10826137f1565b9150614b1b836137f1565b925082614b2b57614b2a614ad6565b5b828204905092915050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614b77601783614b36565b9150614b8282614b41565b601782019050919050565b6000614b98826136d8565b614ba28185614b36565b9350614bb28185602086016136f4565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614bf4601183614b36565b9150614bff82614bbe565b601182019050919050565b6000614c1582614b6a565b9150614c218285614b8d565b9150614c2c82614be7565b9150614c388284614b8d565b91508190509392505050565b6000614c4f826137f1565b91506000821415614c6357614c626141fb565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614ca46020836136e3565b9150614caf82614c6e565b602082019050919050565b60006020820190508181036000830152614cd381614c97565b905091905056fea2646970667358221220455aa302f2cdc3b24145aed81682a9077f6a4eaa477c18cfdc083d9cb2bbccf964736f6c634300080b00330000000000000000000000000c2e57efddba8c768147d1fdf9176a0a6ebd5d830000000000000000000000000000000000000000000000000000000000000d05000000000000000000000000000000000000000000000000000000000000270f0000000000000000000000005cd2fac9702d68dde5a94b1af95962bcfb80fc7d

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102955760003560e01c806370a0823111610167578063ae9b051c116100ce578063dd62ed3e11610087578063dd62ed3e1461083c578063e449f3411461086c578063eac43a9e14610888578063ef6506db146108b8578063f43a22dc146108d4578063f8a14f46146108f257610295565b8063ae9b051c1461077e578063af7d6ca31461079a578063b31deaf1146107b6578063b6b55f25146107d4578063bbadfe76146107f0578063d547741f1461082057610295565b806396d20e731161012057806396d20e73146106925780639af6bc97146106b0578063a217fddf146106ce578063a457c2d7146106ec578063a7310b581461071c578063a9059cbb1461074e57610295565b806370a08231146105a857806372c16a24146105d85780637717228a146105f65780637792cf211461062657806391d148541461064457806395d89b411461067457610295565b8063313ce5671161020b578063416d80f7116101c4578063416d80f7146104d257806341910f901461050257806357f576eb146105205780635c975abb1461053c5780636352211e1461055a5780636caa570b1461058a57610295565b8063313ce56714610438578063333171bb14610456578063345318281461046057806336568abe1461047c57806339509351146104985780633ccfd60b146104c857610295565b8063150b7a021161025d578063150b7a021461033e57806318160ddd1461036e5780631d0504a81461038c57806323b872dd146103bc578063248a9ca3146103ec5780632f2ff15d1461041c57610295565b806301ffc9a71461029a57806306fdde03146102ca578063095ea7b3146102e85780630fbf0a931461031857806312bf78b714610334575b600080fd5b6102b460048036038101906102af9190613675565b610922565b6040516102c191906136bd565b60405180910390f35b6102d261099c565b6040516102df9190613771565b60405180910390f35b61030260048036038101906102fd9190613827565b610a2e565b60405161030f91906136bd565b60405180910390f35b610332600480360381019061032d91906139af565b610a51565b005b61033c610d95565b005b61035860048036038101906103539190613aad565b610efb565b6040516103659190613b3f565b60405180910390f35b610376610f0f565b6040516103839190613b69565b60405180910390f35b6103a660048036038101906103a19190613b84565b610f19565b6040516103b39190613b69565b60405180910390f35b6103d660048036038101906103d19190613bb1565b610f65565b6040516103e391906136bd565b60405180910390f35b61040660048036038101906104019190613c3a565b610f94565b6040516104139190613c76565b60405180910390f35b61043660048036038101906104319190613c91565b610fb4565b005b610440610fd5565b60405161044d9190613ced565b60405180910390f35b61045e610fde565b005b61047a60048036038101906104759190613675565b6110c9565b005b61049660048036038101906104919190613c91565b611144565b005b6104b260048036038101906104ad9190613827565b6111c7565b6040516104bf91906136bd565b60405180910390f35b6104d06111fe565b005b6104ec60048036038101906104e79190613827565b6113ce565b6040516104f991906136bd565b60405180910390f35b61050a61155a565b6040516105179190613b69565b60405180910390f35b61053a60048036038101906105359190613827565b611566565b005b610544611759565b60405161055191906136bd565b60405180910390f35b610574600480360381019061056f9190613d08565b611770565b6040516105819190613d44565b60405180910390f35b6105926117ad565b60405161059f9190613c76565b60405180910390f35b6105c260048036038101906105bd9190613b84565b6117d1565b6040516105cf9190613b69565b60405180910390f35b6105e0611819565b6040516105ed9190613c76565b60405180910390f35b610610600480360381019061060b9190613b84565b61183d565b60405161061d9190613e1d565b60405180910390f35b61062e611a2d565b60405161063b9190613e9e565b60405180910390f35b61065e60048036038101906106599190613c91565b611a51565b60405161066b91906136bd565b60405180910390f35b61067c611abc565b6040516106899190613771565b60405180910390f35b61069a611b4e565b6040516106a79190613b69565b60405180910390f35b6106b8611b53565b6040516106c59190613eda565b60405180910390f35b6106d6611b77565b6040516106e39190613c76565b60405180910390f35b61070660048036038101906107019190613827565b611b7e565b60405161071391906136bd565b60405180910390f35b61073660048036038101906107319190613b84565b611bf5565b60405161074593929190613f3d565b60405180910390f35b61076860048036038101906107639190613827565b611c49565b60405161077591906136bd565b60405180910390f35b61079860048036038101906107939190613d08565b611c6c565b005b6107b460048036038101906107af9190613827565b611e46565b005b6107be611f19565b6040516107cb9190613c76565b60405180910390f35b6107ee60048036038101906107e99190613d08565b611f3d565b005b61080a60048036038101906108059190613675565b611ff9565b60405161081791906136bd565b60405180910390f35b61083a60048036038101906108359190613c91565b612019565b005b61085660048036038101906108519190613f74565b61203a565b6040516108639190613b69565b60405180910390f35b6108866004803603810190610881919061400f565b6120c1565b005b6108a2600480360381019061089d9190613b84565b61245e565b6040516108af9190613b69565b60405180910390f35b6108d260048036038101906108cd9190613827565b6124bd565b005b6108dc612545565b6040516108e99190613b69565b60405180910390f35b61090c60048036038101906109079190613d08565b61254a565b6040516109199190613d44565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099557506109948261257d565b5b9050919050565b6060600380546109ab9061408b565b80601f01602080910402602001604051908101604052809291908181526020018280546109d79061408b565b8015610a245780601f106109f957610100808354040283529160200191610a24565b820191906000526020600020905b815481529060010190602001808311610a0757829003601f168201915b5050505050905090565b600080610a396125e7565b9050610a468185856125ef565b600191505092915050565b610a59611759565b15610a99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9090614109565b60405180910390fd5b60026007541415610adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad690614175565b60405180910390fd5b6002600781905550600081511480610af8575060198151115b15610b2f576040517f0aa4573000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b3f610b3a6125e7565b6127ba565b6000805b8251811015610cec576000838281518110610b6157610b60614195565b5b602002602001015190507f0000000000000000000000000c2e57efddba8c768147d1fdf9176a0a6ebd5d8373ffffffffffffffffffffffffffffffffffffffff166342842e0e610baf6125e7565b30846040518463ffffffff1660e01b8152600401610bcf939291906141c4565b600060405180830381600087803b158015610be957600080fd5b505af1158015610bfd573d6000803e3d6000fd5b50505050610c096125e7565b6009600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f0000000000000000000000000000000000000000000000000000000000000d05811015610c8f5782610c8c9061422a565b92505b610c976125e7565b73ffffffffffffffffffffffffffffffffffffffff16817f2bccdce62e5aec7ee273161a374088a6da4311d0e688784bde3c1cec8a3c003a60405160405180910390a35080610ce590614255565b9050610b43565b5060028161ffff16610cfe919061429e565b8251610d0a91906142f8565b60086000610d166125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900461ffff16610d6f919061434e565b92506101000a81548161ffff021916908361ffff16021790555050600160078190555050565b600a600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615610e4e576040517f55fcafa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7feed08a88c6e2e5624208e41eedf02a5f5cd8c1fbb42c8ffaa93f7769d9dd1050610e78816128a5565b7f0000000000000000000000005cd2fac9702d68dde5a94b1af95962bcfb80fc7d73ffffffffffffffffffffffffffffffffffffffff1663b88a802f6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610ee057600080fd5b505af1158015610ef4573d6000803e3d6000fd5b5050505050565b600063150b7a0260e01b9050949350505050565b6000600254905090565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050919050565b600080610f706125e7565b9050610f7d8582856128b9565b610f88858585612945565b60019150509392505050565b600060056000838152602001908152602001600020600101549050919050565b610fbd82610f94565b610fc6816128a5565b610fd08383612bc6565b505050565b60006012905090565b600a600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615611097576040517f55fcafa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b6110a4816128a5565b6110ac611759565b6110bd576110b8612ca7565b6110c6565b6110c5612d4a565b5b50565b6000801b6110d6816128a5565b6001600a6000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b61114c6125e7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b0906143f8565b60405180910390fd5b6111c38282612dec565b5050565b6000806111d26125e7565b90506111f38185856111e4858961203a565b6111ee91906142f8565b6125ef565b600191505092915050565b611206611759565b15611246576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123d90614109565b60405180910390fd5b6002600754141561128c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128390614175565b60405180910390fd5b600260078190555060006112a66112a16125e7565b61245e565b905060008114156112e3576040517f338aeff900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600860006112f16125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010181905550426008600061133f6125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160026101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506113c36113bd6125e7565b82612ece565b506001600781905550565b6000600a600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615611489576040517f55fcafa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7feed08a88c6e2e5624208e41eedf02a5f5cd8c1fbb42c8ffaa93f7769d9dd10506114b3816128a5565b7f0000000000000000000000005cd2fac9702d68dde5a94b1af95962bcfb80fc7d73ffffffffffffffffffffffffffffffffffffffff1663095ea7b385856040518363ffffffff1660e01b815260040161150e929190614418565b6020604051808303816000875af115801561152d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611551919061446d565b91505092915050565b674563918244f4000081565b600a600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff161561161f576040517f55fcafa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000801b61162c816128a5565b600073ffffffffffffffffffffffffffffffffffffffff166009600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116c5576040517fc6d74a0100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000c2e57efddba8c768147d1fdf9176a0a6ebd5d8373ffffffffffffffffffffffffffffffffffffffff166323b872dd3085856040518463ffffffff1660e01b8152600401611722939291906141c4565b600060405180830381600087803b15801561173c57600080fd5b505af1158015611750573d6000803e3d6000fd5b50505050505050565b6000600660009054906101000a900460ff16905090565b60006009600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b7feed08a88c6e2e5624208e41eedf02a5f5cd8c1fbb42c8ffaa93f7769d9dd105081565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f7434c6f201a551bfd17336985361933e0c4935b520dac8a49d937b325f7d5c0a81565b606060007f000000000000000000000000000000000000000000000000000000000000270f67ffffffffffffffff81111561187b5761187a61386c565b5b6040519080825280602002602001820160405280156118a95781602001602082028036833780820191505090505b5090506000805b7f000000000000000000000000000000000000000000000000000000000000270f81101561197d578473ffffffffffffffffffffffffffffffffffffffff166009600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561196c578083838151811061195357611952614195565b5b6020026020010181815250508161196990614255565b91505b8061197690614255565b90506118b0565b5060008167ffffffffffffffff81111561199a5761199961386c565b5b6040519080825280602002602001820160405280156119c85781602001602082028036833780820191505090505b50905060005b82811015611a21578381815181106119e9576119e8614195565b5b6020026020010151828281518110611a0457611a03614195565b5b60200260200101818152505080611a1a90614255565b90506119ce565b50809350505050919050565b7f0000000000000000000000000c2e57efddba8c768147d1fdf9176a0a6ebd5d8381565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060048054611acb9061408b565b80601f0160208091040260200160405190810160405280929190818152602001828054611af79061408b565b8015611b445780601f10611b1957610100808354040283529160200191611b44565b820191906000526020600020905b815481529060010190602001808311611b2757829003601f168201915b5050505050905090565b600281565b7f0000000000000000000000005cd2fac9702d68dde5a94b1af95962bcfb80fc7d81565b6000801b81565b600080611b896125e7565b90506000611b97828661203a565b905083811015611bdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd39061450c565b60405180910390fd5b611be982868684036125ef565b60019250505092915050565b60086020528060005260406000206000915090508060000160009054906101000a900461ffff16908060000160029054906101000a90046fffffffffffffffffffffffffffffffff16908060010154905083565b600080611c546125e7565b9050611c61818585612945565b600191505092915050565b611c74611759565b15611cb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cab90614109565b60405180910390fd5b60026007541415611cfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf190614175565b60405180910390fd5b60026007819055506000611d14611d0f6125e7565b61245e565b905081811015611d50576040517fa544177900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181611d5c919061452c565b60086000611d686125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055504260086000611db66125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160026101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550611e3a611e346125e7565b83612ece565b50600160078190555050565b7f7434c6f201a551bfd17336985361933e0c4935b520dac8a49d937b325f7d5c0a611e70816128a5565b611e798361245e565b821115611eb2576040517fa544177900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ebb836127ba565b81600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254611f0d919061452c565b92505081905550505050565b7fbe74a168a238bf2df7daa27dd5487ac84cb89ae44fd7e7d1e4b6397bfe51dcb881565b611f45611759565b15611f85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7c90614109565b60405180910390fd5b611f96611f906125e7565b8261302e565b8060086000611fa36125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254611fef91906142f8565b9250508190555050565b600a6020528060005260406000206000915054906101000a900460ff1681565b61202282610f94565b61202b816128a5565b6120358383612dec565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60026007541415612107576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fe90614175565b60405180910390fd5b600260078190555060008282905014806121245750601982829050115b1561215b576040517f0aa4573000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61216b6121666125e7565b6127ba565b6000805b838390508110156123b257600084848381811061218f5761218e614195565b5b9050602002013590506121a06125e7565b73ffffffffffffffffffffffffffffffffffffffff166009600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612237576040517f1fd15b3200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000c2e57efddba8c768147d1fdf9176a0a6ebd5d8373ffffffffffffffffffffffffffffffffffffffff166342842e0e3061227c6125e7565b846040518463ffffffff1660e01b815260040161229b939291906141c4565b600060405180830381600087803b1580156122b557600080fd5b505af11580156122c9573d6000803e3d6000fd5b5050505060006009600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f0000000000000000000000000000000000000000000000000000000000000d0581101561235557826123529061422a565b92505b61235d6125e7565b73ffffffffffffffffffffffffffffffffffffffff16817f4ac743692c9ced0a3f0052fb9917c0856b6b12671016afe41b649643a89b1ad560405160405180910390a350806123ab90614255565b905061216f565b5060028161ffff166123c4919061429e565b838390506123d291906142f8565b600860006123de6125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900461ffff166124379190614560565b92506101000a81548161ffff021916908361ffff1602179055505060016007819055505050565b600061246982613205565b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101546124b691906142f8565b9050919050565b7fbe74a168a238bf2df7daa27dd5487ac84cb89ae44fd7e7d1e4b6397bfe51dcb86124e7816128a5565b81600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600082825461253991906142f8565b92505081905550505050565b601981565b60096020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561265f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265690614606565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c690614698565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516127ad9190613b69565b60405180910390a3505050565b6127c381613205565b600860006127cf6125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600082825461281b91906142f8565b92505081905550426008600061282f6125e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160026101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555050565b6128b6816128b16125e7565b613326565b50565b60006128c5848461203a565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461293f5781811015612931576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292890614704565b60405180910390fd5b61293e84848484036125ef565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156129b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ac90614796565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1c90614828565b60405180910390fd5b612a308383836133c3565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612ab6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aad906148ba565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b4991906142f8565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612bad9190613b69565b60405180910390a3612bc08484846133c8565b50505050565b612bd08282611a51565b612ca35760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612c486125e7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612caf611759565b15612cef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce690614109565b60405180910390fd5b6001600660006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d336125e7565b604051612d409190613d44565b60405180910390a1565b612d52611759565b612d91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8890614926565b60405180910390fd5b6000600660006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612dd56125e7565b604051612de29190613d44565b60405180910390a1565b612df68282611a51565b15612eca5760006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612e6f6125e7565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f3590614992565b60405180910390fd5b612f4a600083836133c3565b8060026000828254612f5c91906142f8565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fb191906142f8565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516130169190613b69565b60405180910390a361302a600083836133c8565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561309e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309590614a24565b60405180910390fd5b6130aa826000836133c3565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015613130576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312790614ab6565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160026000828254613187919061452c565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516131ec9190613b69565b60405180910390a3613200836000846133c8565b505050565b600080600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200160018201548152505090506201518081602001516fffffffffffffffffffffffffffffffff16426132ee919061452c565b674563918244f40000836000015161ffff1661330a919061429e565b613314919061429e565b61331e9190614b05565b915050919050565b6133308282611a51565b6133bf576133558173ffffffffffffffffffffffffffffffffffffffff1660146133cd565b6133638360001c60206133cd565b604051602001613374929190614c0a565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133b69190613771565b60405180910390fd5b5050565b505050565b505050565b6060600060028360026133e0919061429e565b6133ea91906142f8565b67ffffffffffffffff8111156134035761340261386c565b5b6040519080825280601f01601f1916602001820160405280156134355781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061346d5761346c614195565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106134d1576134d0614195565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613511919061429e565b61351b91906142f8565b90505b60018111156135bb577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061355d5761355c614195565b5b1a60f81b82828151811061357457613573614195565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806135b490614c44565b905061351e565b50600084146135ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135f690614cba565b60405180910390fd5b8091505092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6136528161361d565b811461365d57600080fd5b50565b60008135905061366f81613649565b92915050565b60006020828403121561368b5761368a613613565b5b600061369984828501613660565b91505092915050565b60008115159050919050565b6136b7816136a2565b82525050565b60006020820190506136d260008301846136ae565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156137125780820151818401526020810190506136f7565b83811115613721576000848401525b50505050565b6000601f19601f8301169050919050565b6000613743826136d8565b61374d81856136e3565b935061375d8185602086016136f4565b61376681613727565b840191505092915050565b6000602082019050818103600083015261378b8184613738565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006137be82613793565b9050919050565b6137ce816137b3565b81146137d957600080fd5b50565b6000813590506137eb816137c5565b92915050565b6000819050919050565b613804816137f1565b811461380f57600080fd5b50565b600081359050613821816137fb565b92915050565b6000806040838503121561383e5761383d613613565b5b600061384c858286016137dc565b925050602061385d85828601613812565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6138a482613727565b810181811067ffffffffffffffff821117156138c3576138c261386c565b5b80604052505050565b60006138d6613609565b90506138e2828261389b565b919050565b600067ffffffffffffffff8211156139025761390161386c565b5b602082029050602081019050919050565b600080fd5b600061392b613926846138e7565b6138cc565b9050808382526020820190506020840283018581111561394e5761394d613913565b5b835b8181101561397757806139638882613812565b845260208401935050602081019050613950565b5050509392505050565b600082601f83011261399657613995613867565b5b81356139a6848260208601613918565b91505092915050565b6000602082840312156139c5576139c4613613565b5b600082013567ffffffffffffffff8111156139e3576139e2613618565b5b6139ef84828501613981565b91505092915050565b600080fd5b600067ffffffffffffffff821115613a1857613a1761386c565b5b613a2182613727565b9050602081019050919050565b82818337600083830152505050565b6000613a50613a4b846139fd565b6138cc565b905082815260208101848484011115613a6c57613a6b6139f8565b5b613a77848285613a2e565b509392505050565b600082601f830112613a9457613a93613867565b5b8135613aa4848260208601613a3d565b91505092915050565b60008060008060808587031215613ac757613ac6613613565b5b6000613ad5878288016137dc565b9450506020613ae6878288016137dc565b9350506040613af787828801613812565b925050606085013567ffffffffffffffff811115613b1857613b17613618565b5b613b2487828801613a7f565b91505092959194509250565b613b398161361d565b82525050565b6000602082019050613b546000830184613b30565b92915050565b613b63816137f1565b82525050565b6000602082019050613b7e6000830184613b5a565b92915050565b600060208284031215613b9a57613b99613613565b5b6000613ba8848285016137dc565b91505092915050565b600080600060608486031215613bca57613bc9613613565b5b6000613bd8868287016137dc565b9350506020613be9868287016137dc565b9250506040613bfa86828701613812565b9150509250925092565b6000819050919050565b613c1781613c04565b8114613c2257600080fd5b50565b600081359050613c3481613c0e565b92915050565b600060208284031215613c5057613c4f613613565b5b6000613c5e84828501613c25565b91505092915050565b613c7081613c04565b82525050565b6000602082019050613c8b6000830184613c67565b92915050565b60008060408385031215613ca857613ca7613613565b5b6000613cb685828601613c25565b9250506020613cc7858286016137dc565b9150509250929050565b600060ff82169050919050565b613ce781613cd1565b82525050565b6000602082019050613d026000830184613cde565b92915050565b600060208284031215613d1e57613d1d613613565b5b6000613d2c84828501613812565b91505092915050565b613d3e816137b3565b82525050565b6000602082019050613d596000830184613d35565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613d94816137f1565b82525050565b6000613da68383613d8b565b60208301905092915050565b6000602082019050919050565b6000613dca82613d5f565b613dd48185613d6a565b9350613ddf83613d7b565b8060005b83811015613e10578151613df78882613d9a565b9750613e0283613db2565b925050600181019050613de3565b5085935050505092915050565b60006020820190508181036000830152613e378184613dbf565b905092915050565b6000819050919050565b6000613e64613e5f613e5a84613793565b613e3f565b613793565b9050919050565b6000613e7682613e49565b9050919050565b6000613e8882613e6b565b9050919050565b613e9881613e7d565b82525050565b6000602082019050613eb36000830184613e8f565b92915050565b6000613ec482613e6b565b9050919050565b613ed481613eb9565b82525050565b6000602082019050613eef6000830184613ecb565b92915050565b600061ffff82169050919050565b613f0c81613ef5565b82525050565b60006fffffffffffffffffffffffffffffffff82169050919050565b613f3781613f12565b82525050565b6000606082019050613f526000830186613f03565b613f5f6020830185613f2e565b613f6c6040830184613b5a565b949350505050565b60008060408385031215613f8b57613f8a613613565b5b6000613f99858286016137dc565b9250506020613faa858286016137dc565b9150509250929050565b600080fd5b60008083601f840112613fcf57613fce613867565b5b8235905067ffffffffffffffff811115613fec57613feb613fb4565b5b60208301915083602082028301111561400857614007613913565b5b9250929050565b6000806020838503121561402657614025613613565b5b600083013567ffffffffffffffff81111561404457614043613618565b5b61405085828601613fb9565b92509250509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806140a357607f821691505b602082108114156140b7576140b661405c565b5b50919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006140f36010836136e3565b91506140fe826140bd565b602082019050919050565b60006020820190508181036000830152614122816140e6565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061415f601f836136e3565b915061416a82614129565b602082019050919050565b6000602082019050818103600083015261418e81614152565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006060820190506141d96000830186613d35565b6141e66020830185613d35565b6141f36040830184613b5a565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061423582613ef5565b915061ffff82141561424a576142496141fb565b5b600182019050919050565b6000614260826137f1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614293576142926141fb565b5b600182019050919050565b60006142a9826137f1565b91506142b4836137f1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156142ed576142ec6141fb565b5b828202905092915050565b6000614303826137f1565b915061430e836137f1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614343576143426141fb565b5b828201905092915050565b600061435982613ef5565b915061436483613ef5565b92508261ffff0382111561437b5761437a6141fb565b5b828201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b60006143e2602f836136e3565b91506143ed82614386565b604082019050919050565b60006020820190508181036000830152614411816143d5565b9050919050565b600060408201905061442d6000830185613d35565b61443a6020830184613b5a565b9392505050565b61444a816136a2565b811461445557600080fd5b50565b60008151905061446781614441565b92915050565b60006020828403121561448357614482613613565b5b600061449184828501614458565b91505092915050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006144f66025836136e3565b91506145018261449a565b604082019050919050565b60006020820190508181036000830152614525816144e9565b9050919050565b6000614537826137f1565b9150614542836137f1565b925082821015614555576145546141fb565b5b828203905092915050565b600061456b82613ef5565b915061457683613ef5565b925082821015614589576145886141fb565b5b828203905092915050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006145f06024836136e3565b91506145fb82614594565b604082019050919050565b6000602082019050818103600083015261461f816145e3565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006146826022836136e3565b915061468d82614626565b604082019050919050565b600060208201905081810360008301526146b181614675565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b60006146ee601d836136e3565b91506146f9826146b8565b602082019050919050565b6000602082019050818103600083015261471d816146e1565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006147806025836136e3565b915061478b82614724565b604082019050919050565b600060208201905081810360008301526147af81614773565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006148126023836136e3565b915061481d826147b6565b604082019050919050565b6000602082019050818103600083015261484181614805565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006148a46026836136e3565b91506148af82614848565b604082019050919050565b600060208201905081810360008301526148d381614897565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006149106014836136e3565b915061491b826148da565b602082019050919050565b6000602082019050818103600083015261493f81614903565b9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b600061497c601f836136e3565b915061498782614946565b602082019050919050565b600060208201905081810360008301526149ab8161496f565b9050919050565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614a0e6021836136e3565b9150614a19826149b2565b604082019050919050565b60006020820190508181036000830152614a3d81614a01565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b6000614aa06022836136e3565b9150614aab82614a44565b604082019050919050565b60006020820190508181036000830152614acf81614a93565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614b10826137f1565b9150614b1b836137f1565b925082614b2b57614b2a614ad6565b5b828204905092915050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614b77601783614b36565b9150614b8282614b41565b601782019050919050565b6000614b98826136d8565b614ba28185614b36565b9350614bb28185602086016136f4565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614bf4601183614b36565b9150614bff82614bbe565b601182019050919050565b6000614c1582614b6a565b9150614c218285614b8d565b9150614c2c82614be7565b9150614c388284614b8d565b91508190509392505050565b6000614c4f826137f1565b91506000821415614c6357614c626141fb565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614ca46020836136e3565b9150614caf82614c6e565b602082019050919050565b60006020820190508181036000830152614cd381614c97565b905091905056fea2646970667358221220455aa302f2cdc3b24145aed81682a9077f6a4eaa477c18cfdc083d9cb2bbccf964736f6c634300080b0033

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

0000000000000000000000000c2e57efddba8c768147d1fdf9176a0a6ebd5d830000000000000000000000000000000000000000000000000000000000000d05000000000000000000000000000000000000000000000000000000000000270f0000000000000000000000005cd2fac9702d68dde5a94b1af95962bcfb80fc7d

-----Decoded View---------------
Arg [0] : kaiju (address): 0x0c2E57EFddbA8c768147D1fdF9176a0A6EBd5d83
Arg [1] : genesisSupply (uint256): 3333
Arg [2] : maxSupply (uint256): 9999
Arg [3] : rwaste (address): 0x5cd2FAc9702D68dde5a94B1af95962bCFb80fC7d

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000c2e57efddba8c768147d1fdf9176a0a6ebd5d83
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000d05
Arg [2] : 000000000000000000000000000000000000000000000000000000000000270f
Arg [3] : 0000000000000000000000005cd2fac9702d68dde5a94b1af95962bcfb80fc7d


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.