ETH Price: $3,114.00 (+0.51%)
Gas: 5 Gwei

Contract

0xC3BA642A837fa9907a7aE934508FF88F75f31A68
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Claim Hula190624602024-01-22 13:06:11170 days ago1705928771IN
0xC3BA642A...F75f31A68
0 ETH0.0014086418.11035804
Claim All Hula188872182023-12-28 22:56:23195 days ago1703804183IN
0xC3BA642A...F75f31A68
0 ETH0.0020574517.50387508
Claim All Hula181355912023-09-14 16:08:35300 days ago1694707715IN
0xC3BA642A...F75f31A68
0 ETH0.0054937834.78068245
Claim All Hula179131512023-08-14 12:41:23331 days ago1692016883IN
0xC3BA642A...F75f31A68
0 ETH0.0116939621.63781965
Claim All Hula179100462023-08-14 2:15:59332 days ago1691979359IN
0xC3BA642A...F75f31A68
0 ETH0.0023945913.4120251
Claim All Hula178450982023-08-05 0:09:11341 days ago1691194151IN
0xC3BA642A...F75f31A68
0 ETH0.0015994813.60761765
Claim All Hula176988272023-07-15 12:37:23361 days ago1689424643IN
0xC3BA642A...F75f31A68
0 ETH0.007207915.2471808
Claim Hula175302192023-06-21 19:48:35385 days ago1687376915IN
0xC3BA642A...F75f31A68
0 ETH0.0018462923.74069604
Claim All Hula170449072023-04-14 10:43:59453 days ago1681469039IN
0xC3BA642A...F75f31A68
0 ETH0.0030306827.00781182
Claim All Hula170130302023-04-09 20:16:59458 days ago1681071419IN
0xC3BA642A...F75f31A68
0 ETH0.0013595117.39154157
Claim All Hula168991432023-03-24 18:28:35474 days ago1679682515IN
0xC3BA642A...F75f31A68
0 ETH0.0081771323.58154777
Claim All Hula168656682023-03-20 1:39:23479 days ago1679276363IN
0xC3BA642A...F75f31A68
0 ETH0.0083054413.24842188
Claim All Hula167848212023-03-08 16:47:47490 days ago1678294067IN
0xC3BA642A...F75f31A68
0 ETH0.0058341936.93583368
Claim All Hula166660392023-02-19 23:56:47507 days ago1676851007IN
0xC3BA642A...F75f31A68
0 ETH0.0031589718.42062714
Claim All Hula165501342023-02-03 18:45:23523 days ago1675449923IN
0xC3BA642A...F75f31A68
0 ETH0.0150676929.74272843
Claim All Hula165205332023-01-30 15:27:47527 days ago1675092467IN
0xC3BA642A...F75f31A68
0 ETH0.0023370619.88470744
Claim All Hula164195352023-01-16 13:05:47541 days ago1673874347IN
0xC3BA642A...F75f31A68
0 ETH0.0015321217.70664033
Claim All Hula164195352023-01-16 13:05:47541 days ago1673874347IN
0xC3BA642A...F75f31A68
0 ETH0.0026328317.70664033
Claim All Hula164178042023-01-16 7:17:23542 days ago1673853443IN
0xC3BA642A...F75f31A68
0 ETH0.0044836117.26358307
Claim All Hula164070032023-01-14 19:01:35543 days ago1673722895IN
0xC3BA642A...F75f31A68
0 ETH0.0024107317.92702117
Claim All Hula163626002023-01-08 14:14:59549 days ago1673187299IN
0xC3BA642A...F75f31A68
0 ETH0.0026899115.06607438
Claim All Hula162715272022-12-26 21:10:47562 days ago1672089047IN
0xC3BA642A...F75f31A68
0 ETH0.0038685712.58257135
Claim All Hula162623742022-12-25 14:31:59563 days ago1671978719IN
0xC3BA642A...F75f31A68
0 ETH0.0024606411.58466615
Claim All Hula162286512022-12-20 21:39:59568 days ago1671572399IN
0xC3BA642A...F75f31A68
0 ETH0.0048778617.09647781
Claim All Hula161640442022-12-11 21:06:35577 days ago1670792795IN
0xC3BA642A...F75f31A68
0 ETH0.0038021914.4320638
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HulaDistributor

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : HulaDistributor.sol
//SPDX-License-Identifier: MIT

/*

 ____                     __               __          ______    __              ______           __                
/\  _`\                  /\ \__         __/\ \        /\__  _\__/\ \      __    /\__  _\       __/\ \               
\ \ \L\ \     __     __  \ \ ,_\   ___ /\_\ \ \/'\    \/_/\ \/\_\ \ \/'\ /\_\   \/_/\ \/ _ __ /\_\ \ \____     __   
 \ \  _ <'  /'__`\ /'__`\ \ \ \/ /' _ `\/\ \ \ , <       \ \ \/\ \ \ , < \/\ \     \ \ \/\`'__\/\ \ \ '__`\  /'__`\ 
  \ \ \L\ \/\  __//\ \L\.\_\ \ \_/\ \/\ \ \ \ \ \\`\      \ \ \ \ \ \ \\`\\ \ \     \ \ \ \ \/ \ \ \ \ \L\ \/\  __/ 
   \ \____/\ \____\ \__/.\_\\ \__\ \_\ \_\ \_\ \_\ \_\     \ \_\ \_\ \_\ \_\ \_\     \ \_\ \_\  \ \_\ \_,__/\ \____\
    \/___/  \/____/\/__/\/_/ \/__/\/_/\/_/\/_/\/_/\/_/      \/_/\/_/\/_/\/_/\/_/      \/_/\/_/   \/_/\/___/  \/____/
                                                                                                                                                                                                                                        
*/

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

abstract contract HC {
    function mint(address to, uint256 amount) public virtual;
}

contract HulaDistributor is Pausable, AccessControlEnumerable {

    bytes32 public constant REWARDER_ROLE = keccak256("REWARDER_ROLE");

    uint public constant START_DATE = 1635724800; // Mon, 1 Nov 2021 0:00:00 GMT
    uint public constant END_DATE = 1951257600; // Mon, 1 Nov 2031 0:00:00 GMT

    uint public UNIKI_DAILY_YIELD = 30 ether;
    uint public SPECIAL_DAILY_YIELD = 6 ether;
    uint public REGULAR_DAILY_YIELD = 5 ether;

    mapping(uint => bool) private unikis;
    mapping(uint => bool) private specials;
    mapping(uint => uint) public outstandingBalance;
    mapping(uint => uint) public claimDate;

    IERC721Enumerable bttContract;
    HC hulaContract;

    constructor(address _bttAddress, address _hulaAddress) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(REWARDER_ROLE, _msgSender());

        bttContract = IERC721Enumerable(_bttAddress);
        hulaContract = HC(_hulaAddress);

        uint[10] memory unikiIds = [ uint(1353), 1960, 1996, 2092, 2147, 3022, 3033, 3577, 4010, 4632 ];
        for (uint i=0; i<unikiIds.length; i++)
            unikis[unikiIds[i]] = true;
        

        uint[12] memory specialIds = [ uint(14), 694, 805, 2278, 2382, 2739, 2748, 2980, 4220, 4337, 4613, 4842 ];
        for (uint i=0; i<specialIds.length; i++)
            specials[specialIds[i]] = true;
    }

    function containsAll(uint[] memory _tokenids, uint[] memory _ownerTokenIds) private pure returns (bool) {

        for (uint i=0; i<_tokenids.length; i++) {

            bool contained = false;
            uint tokenid = _tokenids[i];

            for (uint j=0; j<_ownerTokenIds.length; j++) {
                if (tokenid == _ownerTokenIds[j]) {
                    contained = true;
                    break;
                } 
            }

            if (!contained) {
                return contained;
            }
        }

        return true;
    }

    function isTokenOwner(address _address, uint[] memory _tokenids) private view returns (bool) {
        uint balance = bttContract.balanceOf(_address);
        uint[] memory ownerTokenIds = new uint[](balance);

        for (uint i=0; i<balance; i++) {
            ownerTokenIds[i] = bttContract.tokenOfOwnerByIndex(_address, i);
        }

        bool isOwner = containsAll(_tokenids, ownerTokenIds);

        return isOwner;
    }
    function availableHula(uint[] memory _tokenids) public view returns (uint[] memory) {
        
        uint[] memory available = new uint[](_tokenids.length);

        for (uint i=0; i<_tokenids.length; i++) {

            uint _tokenid = _tokenids[i];
            uint startDate = (claimDate[_tokenid] > 0) ? claimDate[_tokenid] : START_DATE;
            uint numOfDays = (block.timestamp - startDate) / (1 days);
            uint _available;

            if (unikis[_tokenid])
                _available = numOfDays * UNIKI_DAILY_YIELD;
            else if (specials[_tokenid])
                _available = numOfDays * SPECIAL_DAILY_YIELD;
            else
                _available = numOfDays * REGULAR_DAILY_YIELD;

            _available += outstandingBalance[_tokenid];
            available[i] = _available;
        }

        return available;
    }

    function claimHula(uint _tokenid, uint _amount) public whenNotPaused {
        address sender = _msgSender();
        
        uint[] memory _tokenids = new uint[](1);
        _tokenids[0] = _tokenid;
        require(isTokenOwner(sender, _tokenids), 'HulaDist: Must own tiki to claim hula');
        
        uint available = availableHula(_tokenids)[0];
        require(_amount <= available, 'HulaDist: Cannot claim more than available balance');

        claimDate[_tokenid] = block.timestamp;
        outstandingBalance[_tokenid] = available - _amount;
        hulaContract.mint(sender, _amount);
    }

    function claimAllHula(uint[] calldata _tokenids) external whenNotPaused {
        
        address sender = _msgSender();
        require(isTokenOwner(sender, _tokenids), "HulaDist: Must own all tikis to claim all hula");
        
        uint[] memory available = availableHula(_tokenids);

        uint total = 0;
        for (uint i=0; i<_tokenids.length; i++) {
            claimDate[_tokenids[i]] = block.timestamp;
            outstandingBalance[_tokenids[i]] = 0;
            total += available[i];
        }

        hulaContract.mint(sender, total);
    }

    function addBalance(uint _tokenid, uint _amount) public {
        require(hasRole(REWARDER_ROLE, _msgSender()), "HulaDist: Must have rewarder role");
        outstandingBalance[_tokenid] += _amount;
    }

    function removeBalance(uint _tokenid, uint _amount) public {
        require(hasRole(REWARDER_ROLE, _msgSender()), "HulaDist: Must have rewarder role");
        require(_amount <= outstandingBalance[_tokenid], "HulaDist: Cannot remove more than available");
        outstandingBalance[_tokenid] -= _amount;
    }

    function mintHula(address _address, uint _amount) public {
        require(hasRole(REWARDER_ROLE, _msgSender()), "HulaDist: Must have rewarder role");
        hulaContract.mint(_address, _amount);
    }

    function setDailyYield(uint _regular, uint _special, uint _uniki) public {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "HulaDist: Must have admin role");
        REGULAR_DAILY_YIELD = _regular;
        SPECIAL_DAILY_YIELD = _special;
        UNIKI_DAILY_YIELD = _uniki;
    }

    function pause() public {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "HulaDist: Must have admin role");
        _pause();
    }

    function unpause() public {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "HulaDist: Must have admin role");
        _unpause();
    }

}

File 2 of 13 : Pausable.sol
// SPDX-License-Identifier: MIT

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 3 of 13 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

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

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

    /**
     * @dev Overload {grantRole} to track enumerable memberships
     */
    function grantRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) {
        super.grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {revokeRole} to track enumerable memberships
     */
    function revokeRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) {
        super.revokeRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {renounceRole} to track enumerable memberships
     */
    function renounceRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) {
        super.renounceRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {_setupRole} to track enumerable memberships
     */
    function _setupRole(bytes32 role, address account) internal virtual override {
        super._setupRole(role, account);
        _roleMembers[role].add(account);
    }
}

File 4 of 13 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 5 of 13 : Context.sol
// SPDX-License-Identifier: MIT

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 6 of 13 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

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

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

File 7 of 13 : AccessControl.sol
// SPDX-License-Identifier: MIT

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, _msgSender());
        _;
    }

    /**
     * @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 override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @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 {
        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 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 granted `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}.
     * ====
     */
    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);
    }

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

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

File 8 of 13 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 9 of 13 : IAccessControl.sol
// SPDX-License-Identifier: MIT

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 10 of 13 : Strings.sol
// SPDX-License-Identifier: MIT

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 11 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT

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 12 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 13 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT

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`, 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 Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_bttAddress","type":"address"},{"internalType":"address","name":"_hulaAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"END_DATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REGULAR_DAILY_YIELD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARDER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPECIAL_DAILY_YIELD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_DATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNIKI_DAILY_YIELD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenids","type":"uint256[]"}],"name":"availableHula","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenids","type":"uint256[]"}],"name":"claimAllHula","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"claimHula","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintHula","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"outstandingBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"removeBalance","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":"uint256","name":"_regular","type":"uint256"},{"internalType":"uint256","name":"_special","type":"uint256"},{"internalType":"uint256","name":"_uniki","type":"uint256"}],"name":"setDailyYield","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526801a055690d9db800006003556753444835ec580000600455674563918244f400006005553480156200003657600080fd5b506040516200390e3803806200390e83398181016040528101906200005c9190620005fc565b60008060006101000a81548160ff0219169083151502179055506200009a6000801b6200008e6200034e60201b60201c565b6200035660201b60201c565b620000db7fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f6620000cf6200034e60201b60201c565b6200035660201b60201c565b81600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600060405180610140016040528061054981526020016107a881526020016107cc815260200161082c81526020016108638152602001610bce8152602001610bd98152602001610df98152602001610faa8152602001611218815250905060005b600a81101562000248576001600660008484600a811062000208577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806200023f906200067b565b915050620001be565b506000604051806101800160405280600e81526020016102b6815260200161032581526020016108e6815260200161094e8152602001610ab38152602001610abc8152602001610ba4815260200161107c81526020016110f1815260200161120581526020016112ea815250905060005b600c81101562000343576001600760008484600c811062000303577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806200033a906200067b565b915050620002b9565b505050505062000712565b600033905090565b6200036d82826200039e60201b620013411760201c565b620003998160026000858152602001908152602001600020620003b460201b6200134f1790919060201c565b505050565b620003b08282620003ec60201b60201c565b5050565b6000620003e4836000018373ffffffffffffffffffffffffffffffffffffffff1660001b620004dd60201b60201c565b905092915050565b620003fe82826200055760201b60201c565b620004d957600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200047e6200034e60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620004f18383620005c260201b60201c565b6200054c57826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905062000551565b600090505b92915050565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081519050620005f681620006f8565b92915050565b600080604083850312156200061057600080fd5b60006200062085828601620005e5565b92505060206200063385828601620005e5565b9150509250929050565b60006200064a8262000651565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000620006888262000671565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415620006be57620006bd620006c9565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b62000703816200063d565b81146200070f57600080fd5b50565b6131ec80620007226000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806362ea4f3e116100f95780639b92bee311610097578063ca15c87311610071578063ca15c873146104a8578063d547741f146104d8578063de99135b146104f4578063f995039914610512576101a9565b80639b92bee314610450578063a217fddf1461046e578063a40398a61461048c576101a9565b80638580cf76116100d35780638580cf76146103b45780639010d07c146103d257806391d14854146104025780639a645dd714610432576101a9565b806362ea4f3e1461035e57806364305a111461038e5780638456cb59146103aa576101a9565b80632f2ff15d116101665780633f4ba83a116101405780633f4ba83a146102fc578063545599ff14610306578063562813cc146103245780635c975abb14610340576101a9565b80632f2ff15d146102a657806336568abe146102c2578063372c6533146102de576101a9565b806301ffc9a7146101ae57806302d57696146101de5780630ea0f7a11461020e5780630f616eb41461022a5780631b83fdad14610246578063248a9ca314610276575b600080fd5b6101c860048036038101906101c391906124a9565b61052e565b6040516101d5919061291e565b60405180910390f35b6101f860048036038101906101f391906124d2565b6105a8565b6040516102059190612ab6565b60405180910390f35b61022860048036038101906102239190612346565b6105c0565b005b610244600480360381019061023f9190612524565b6106c3565b005b610260600480360381019061025b91906123c7565b61097d565b60405161026d91906128fc565b60405180910390f35b610290600480360381019061028b9190612408565b610bb1565b60405161029d9190612939565b60405180910390f35b6102c060048036038101906102bb9190612431565b610bd1565b005b6102dc60048036038101906102d79190612431565b610c05565b005b6102e6610c39565b6040516102f39190612ab6565b60405180910390f35b610304610c41565b005b61030e610c9e565b60405161031b9190612ab6565b60405180910390f35b61033e60048036038101906103399190612382565b610ca6565b005b610348610f88565b604051610355919061291e565b60405180910390f35b610378600480360381019061037391906124d2565b610f9e565b6040516103859190612ab6565b60405180910390f35b6103a860048036038101906103a39190612524565b610fb6565b005b6103b26110aa565b005b6103bc611107565b6040516103c99190612939565b60405180910390f35b6103ec60048036038101906103e7919061246d565b61112b565b6040516103f991906128b8565b60405180910390f35b61041c60048036038101906104179190612431565b61115a565b604051610429919061291e565b60405180910390f35b61043a6111c5565b6040516104479190612ab6565b60405180910390f35b6104586111cb565b6040516104659190612ab6565b60405180910390f35b6104766111d1565b6040516104839190612939565b60405180910390f35b6104a660048036038101906104a19190612524565b6111d8565b005b6104c260048036038101906104bd9190612408565b611276565b6040516104cf9190612ab6565b60405180910390f35b6104f260048036038101906104ed9190612431565b61129a565b005b6104fc6112ce565b6040516105099190612ab6565b60405180910390f35b61052c60048036038101906105279190612560565b6112d4565b005b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105a157506105a08261137f565b5b9050919050565b60086020528060005260406000206000915090505481565b6105f17fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f66105ec6113f9565b61115a565b610630576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610627906129d6565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b815260040161068d9291906128d3565b600060405180830381600087803b1580156106a757600080fd5b505af11580156106bb573d6000803e3d6000fd5b505050505050565b6106cb610f88565b1561070b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070290612a16565b60405180910390fd5b60006107156113f9565b90506000600167ffffffffffffffff81111561075a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156107885781602001602082028036833780820191505090505b50905083816000815181106107c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250506107dc8282611401565b61081b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610812906129b6565b60405180910390fd5b60006108268261097d565b60008151811061085f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808411156108ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a390612a56565b60405180910390fd5b42600960008781526020019081526020016000208190555083816108d09190612c63565b6008600087815260200190815260200160002081905550600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1984866040518363ffffffff1660e01b81526004016109449291906128d3565b600060405180830381600087803b15801561095e57600080fd5b505af1158015610972573d6000803e3d6000fd5b505050505050505050565b60606000825167ffffffffffffffff8111156109c2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156109f05781602001602082028036833780820191505090505b50905060005b8351811015610ba7576000848281518110610a3a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600080600960008481526020019081526020016000205411610a6a5763617f2e00610a7f565b60096000838152602001908152602001600020545b90506000620151808242610a939190612c63565b610a9d9190612bd8565b905060006006600085815260200190815260200160002060009054906101000a900460ff1615610adc5760035482610ad59190612c09565b9050610b29565b6007600085815260200190815260200160002060009054906101000a900460ff1615610b175760045482610b109190612c09565b9050610b28565b60055482610b259190612c09565b90505b5b600860008581526020019081526020016000205481610b489190612b82565b905080868681518110610b84577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050505050508080610b9f90612da3565b9150506109f6565b5080915050919050565b600060016000838152602001908152602001600020600101549050919050565b610bdb828261164f565b610c00816002600085815260200190815260200160002061134f90919063ffffffff16565b505050565b610c0f8282611678565b610c3481600260008581526020019081526020016000206116fb90919063ffffffff16565b505050565b63617f2e0081565b610c556000801b610c506113f9565b61115a565b610c94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8b906129f6565b60405180910390fd5b610c9c61172b565b565b63744dd40081565b610cae610f88565b15610cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce590612a16565b60405180910390fd5b6000610cf86113f9565b9050610d4581848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611401565b610d84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7b90612a76565b60405180910390fd5b6000610dd0848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505061097d565b90506000805b85859050811015610ef1574260096000888885818110610e1f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135815260200190815260200160002081905550600060086000888885818110610e77577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135815260200190815260200160002081905550828181518110610ec9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015182610edc9190612b82565b91508080610ee990612da3565b915050610dd6565b50600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1984836040518363ffffffff1660e01b8152600401610f4f9291906128d3565b600060405180830381600087803b158015610f6957600080fd5b505af1158015610f7d573d6000803e3d6000fd5b505050505050505050565b60008060009054906101000a900460ff16905090565b60096020528060005260406000206000915090505481565b610fe77fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f6610fe26113f9565b61115a565b611026576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101d906129d6565b60405180910390fd5b600860008381526020019081526020016000205481111561107c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107390612a36565b60405180910390fd5b8060086000848152602001908152602001600020600082825461109f9190612c63565b925050819055505050565b6110be6000801b6110b96113f9565b61115a565b6110fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f4906129f6565b60405180910390fd5b6111056117cc565b565b7fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f681565b6000611152826002600086815260200190815260200160002061186e90919063ffffffff16565b905092915050565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60035481565b60045481565b6000801b81565b6112097fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f66112046113f9565b61115a565b611248576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123f906129d6565b60405180910390fd5b8060086000848152602001908152602001600020600082825461126b9190612b82565b925050819055505050565b600061129360026000848152602001908152602001600020611888565b9050919050565b6112a4828261189d565b6112c981600260008581526020019081526020016000206116fb90919063ffffffff16565b505050565b60055481565b6112e86000801b6112e36113f9565b61115a565b611327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131e906129f6565b60405180910390fd5b826005819055508160048190555080600381905550505050565b61134b82826118c6565b5050565b6000611377836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6119a6565b905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806113f257506113f182611a16565b5b9050919050565b600033905090565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b815260040161145f91906128b8565b60206040518083038186803b15801561147757600080fd5b505afa15801561148b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114af91906124fb565b905060008167ffffffffffffffff8111156114f3577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156115215781602001602082028036833780820191505090505b50905060005b8281101561163457600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5987836040518363ffffffff1660e01b815260040161158c9291906128d3565b60206040518083038186803b1580156115a457600080fd5b505afa1580156115b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115dc91906124fb565b828281518110611615577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050808061162c90612da3565b915050611527565b5060006116418583611a80565b905080935050505092915050565b61165882610bb1565b611669816116646113f9565b611b79565b61167383836118c6565b505050565b6116806113f9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e490612a96565b60405180910390fd5b6116f78282611c16565b5050565b6000611723836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611cf8565b905092915050565b611733610f88565b611772576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176990612996565b60405180910390fd5b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6117b56113f9565b6040516117c291906128b8565b60405180910390a1565b6117d4610f88565b15611814576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180b90612a16565b60405180910390fd5b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118576113f9565b60405161186491906128b8565b60405180910390a1565b600061187d8360000183611e7e565b60001c905092915050565b600061189682600001611ecf565b9050919050565b6118a682610bb1565b6118b7816118b26113f9565b611b79565b6118c18383611c16565b505050565b6118d0828261115a565b6119a257600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506119476113f9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006119b28383611ee0565b611a0b578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050611a10565b600090505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080600090505b8351811015611b6d57600080858381518110611acd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060005b8551811015611b4757858181518110611b1c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151821415611b345760019250611b47565b8080611b3f90612da3565b915050611ada565b5081611b5857819350505050611b73565b50508080611b6590612da3565b915050611a88565b50600190505b92915050565b611b83828261115a565b611c1257611ba88173ffffffffffffffffffffffffffffffffffffffff166014611f03565b611bb68360001c6020611f03565b604051602001611bc792919061287e565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c099190612954565b60405180910390fd5b5050565b611c20828261115a565b15611cf45760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611c996113f9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60008083600101600084815260200190815260200160002054905060008114611e72576000600182611d2a9190612c63565b9050600060018660000180549050611d429190612c63565b9050818114611dfd576000866000018281548110611d89577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110611dd3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480611e37577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611e78565b60009150505b92915050565b6000826000018281548110611ebc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b606060006002836002611f169190612c09565b611f209190612b82565b67ffffffffffffffff811115611f5f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611f915781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611fef577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612079577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026120b99190612c09565b6120c39190612b82565b90505b60018111156121af577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061212b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612168577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806121a890612d48565b90506120c6565b50600084146121f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ea90612976565b60405180910390fd5b8091505092915050565b600061221061220b84612af6565b612ad1565b9050808382526020820190508285602086028201111561222f57600080fd5b60005b8581101561225f5781612245888261231c565b845260208401935060208301925050600181019050612232565b5050509392505050565b6000813590506122788161315a565b92915050565b60008083601f84011261229057600080fd5b8235905067ffffffffffffffff8111156122a957600080fd5b6020830191508360208202830111156122c157600080fd5b9250929050565b600082601f8301126122d957600080fd5b81356122e98482602086016121fd565b91505092915050565b60008135905061230181613171565b92915050565b60008135905061231681613188565b92915050565b60008135905061232b8161319f565b92915050565b6000815190506123408161319f565b92915050565b6000806040838503121561235957600080fd5b600061236785828601612269565b92505060206123788582860161231c565b9150509250929050565b6000806020838503121561239557600080fd5b600083013567ffffffffffffffff8111156123af57600080fd5b6123bb8582860161227e565b92509250509250929050565b6000602082840312156123d957600080fd5b600082013567ffffffffffffffff8111156123f357600080fd5b6123ff848285016122c8565b91505092915050565b60006020828403121561241a57600080fd5b6000612428848285016122f2565b91505092915050565b6000806040838503121561244457600080fd5b6000612452858286016122f2565b925050602061246385828601612269565b9150509250929050565b6000806040838503121561248057600080fd5b600061248e858286016122f2565b925050602061249f8582860161231c565b9150509250929050565b6000602082840312156124bb57600080fd5b60006124c984828501612307565b91505092915050565b6000602082840312156124e457600080fd5b60006124f28482850161231c565b91505092915050565b60006020828403121561250d57600080fd5b600061251b84828501612331565b91505092915050565b6000806040838503121561253757600080fd5b60006125458582860161231c565b92505060206125568582860161231c565b9150509250929050565b60008060006060848603121561257557600080fd5b60006125838682870161231c565b93505060206125948682870161231c565b92505060406125a58682870161231c565b9150509250925092565b60006125bb8383612860565b60208301905092915050565b6125d081612c97565b82525050565b60006125e182612b32565b6125eb8185612b55565b93506125f683612b22565b8060005b8381101561262757815161260e88826125af565b975061261983612b48565b9250506001810190506125fa565b5085935050505092915050565b61263d81612ca9565b82525050565b61264c81612cb5565b82525050565b600061265d82612b3d565b6126678185612b66565b9350612677818560208601612d15565b61268081612e79565b840191505092915050565b600061269682612b3d565b6126a08185612b77565b93506126b0818560208601612d15565b80840191505092915050565b60006126c9602083612b66565b91506126d482612e8a565b602082019050919050565b60006126ec601483612b66565b91506126f782612eb3565b602082019050919050565b600061270f602583612b66565b915061271a82612edc565b604082019050919050565b6000612732602183612b66565b915061273d82612f2b565b604082019050919050565b6000612755601e83612b66565b915061276082612f7a565b602082019050919050565b6000612778601083612b66565b915061278382612fa3565b602082019050919050565b600061279b602b83612b66565b91506127a682612fcc565b604082019050919050565b60006127be603283612b66565b91506127c98261301b565b604082019050919050565b60006127e1601783612b77565b91506127ec8261306a565b601782019050919050565b6000612804602e83612b66565b915061280f82613093565b604082019050919050565b6000612827601183612b77565b9150612832826130e2565b601182019050919050565b600061284a602f83612b66565b91506128558261310b565b604082019050919050565b61286981612d0b565b82525050565b61287881612d0b565b82525050565b6000612889826127d4565b9150612895828561268b565b91506128a08261281a565b91506128ac828461268b565b91508190509392505050565b60006020820190506128cd60008301846125c7565b92915050565b60006040820190506128e860008301856125c7565b6128f5602083018461286f565b9392505050565b6000602082019050818103600083015261291681846125d6565b905092915050565b60006020820190506129336000830184612634565b92915050565b600060208201905061294e6000830184612643565b92915050565b6000602082019050818103600083015261296e8184612652565b905092915050565b6000602082019050818103600083015261298f816126bc565b9050919050565b600060208201905081810360008301526129af816126df565b9050919050565b600060208201905081810360008301526129cf81612702565b9050919050565b600060208201905081810360008301526129ef81612725565b9050919050565b60006020820190508181036000830152612a0f81612748565b9050919050565b60006020820190508181036000830152612a2f8161276b565b9050919050565b60006020820190508181036000830152612a4f8161278e565b9050919050565b60006020820190508181036000830152612a6f816127b1565b9050919050565b60006020820190508181036000830152612a8f816127f7565b9050919050565b60006020820190508181036000830152612aaf8161283d565b9050919050565b6000602082019050612acb600083018461286f565b92915050565b6000612adb612aec565b9050612ae78282612d72565b919050565b6000604051905090565b600067ffffffffffffffff821115612b1157612b10612e4a565b5b602082029050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000612b8d82612d0b565b9150612b9883612d0b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612bcd57612bcc612dec565b5b828201905092915050565b6000612be382612d0b565b9150612bee83612d0b565b925082612bfe57612bfd612e1b565b5b828204905092915050565b6000612c1482612d0b565b9150612c1f83612d0b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612c5857612c57612dec565b5b828202905092915050565b6000612c6e82612d0b565b9150612c7983612d0b565b925082821015612c8c57612c8b612dec565b5b828203905092915050565b6000612ca282612ceb565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015612d33578082015181840152602081019050612d18565b83811115612d42576000848401525b50505050565b6000612d5382612d0b565b91506000821415612d6757612d66612dec565b5b600182039050919050565b612d7b82612e79565b810181811067ffffffffffffffff82111715612d9a57612d99612e4a565b5b80604052505050565b6000612dae82612d0b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612de157612de0612dec565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f48756c61446973743a204d757374206f776e2074696b6920746f20636c61696d60008201527f2068756c61000000000000000000000000000000000000000000000000000000602082015250565b7f48756c61446973743a204d757374206861766520726577617264657220726f6c60008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b7f48756c61446973743a204d75737420686176652061646d696e20726f6c650000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f48756c61446973743a2043616e6e6f742072656d6f7665206d6f72652074686160008201527f6e20617661696c61626c65000000000000000000000000000000000000000000602082015250565b7f48756c61446973743a2043616e6e6f7420636c61696d206d6f7265207468616e60008201527f20617661696c61626c652062616c616e63650000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f48756c61446973743a204d757374206f776e20616c6c2074696b697320746f2060008201527f636c61696d20616c6c2068756c61000000000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b61316381612c97565b811461316e57600080fd5b50565b61317a81612cb5565b811461318557600080fd5b50565b61319181612cbf565b811461319c57600080fd5b50565b6131a881612d0b565b81146131b357600080fd5b5056fea2646970667358221220a186a430511b03dcc1043d01c00b8825f57b25c3ed3cac61a4940c349494ab5764736f6c634300080400330000000000000000000000003eff964d46c62be703d9a01ef720ba0479e79c3c0000000000000000000000003608aaa2623dcb3dd0105d93a44da65dcdf9a586

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101a95760003560e01c806362ea4f3e116100f95780639b92bee311610097578063ca15c87311610071578063ca15c873146104a8578063d547741f146104d8578063de99135b146104f4578063f995039914610512576101a9565b80639b92bee314610450578063a217fddf1461046e578063a40398a61461048c576101a9565b80638580cf76116100d35780638580cf76146103b45780639010d07c146103d257806391d14854146104025780639a645dd714610432576101a9565b806362ea4f3e1461035e57806364305a111461038e5780638456cb59146103aa576101a9565b80632f2ff15d116101665780633f4ba83a116101405780633f4ba83a146102fc578063545599ff14610306578063562813cc146103245780635c975abb14610340576101a9565b80632f2ff15d146102a657806336568abe146102c2578063372c6533146102de576101a9565b806301ffc9a7146101ae57806302d57696146101de5780630ea0f7a11461020e5780630f616eb41461022a5780631b83fdad14610246578063248a9ca314610276575b600080fd5b6101c860048036038101906101c391906124a9565b61052e565b6040516101d5919061291e565b60405180910390f35b6101f860048036038101906101f391906124d2565b6105a8565b6040516102059190612ab6565b60405180910390f35b61022860048036038101906102239190612346565b6105c0565b005b610244600480360381019061023f9190612524565b6106c3565b005b610260600480360381019061025b91906123c7565b61097d565b60405161026d91906128fc565b60405180910390f35b610290600480360381019061028b9190612408565b610bb1565b60405161029d9190612939565b60405180910390f35b6102c060048036038101906102bb9190612431565b610bd1565b005b6102dc60048036038101906102d79190612431565b610c05565b005b6102e6610c39565b6040516102f39190612ab6565b60405180910390f35b610304610c41565b005b61030e610c9e565b60405161031b9190612ab6565b60405180910390f35b61033e60048036038101906103399190612382565b610ca6565b005b610348610f88565b604051610355919061291e565b60405180910390f35b610378600480360381019061037391906124d2565b610f9e565b6040516103859190612ab6565b60405180910390f35b6103a860048036038101906103a39190612524565b610fb6565b005b6103b26110aa565b005b6103bc611107565b6040516103c99190612939565b60405180910390f35b6103ec60048036038101906103e7919061246d565b61112b565b6040516103f991906128b8565b60405180910390f35b61041c60048036038101906104179190612431565b61115a565b604051610429919061291e565b60405180910390f35b61043a6111c5565b6040516104479190612ab6565b60405180910390f35b6104586111cb565b6040516104659190612ab6565b60405180910390f35b6104766111d1565b6040516104839190612939565b60405180910390f35b6104a660048036038101906104a19190612524565b6111d8565b005b6104c260048036038101906104bd9190612408565b611276565b6040516104cf9190612ab6565b60405180910390f35b6104f260048036038101906104ed9190612431565b61129a565b005b6104fc6112ce565b6040516105099190612ab6565b60405180910390f35b61052c60048036038101906105279190612560565b6112d4565b005b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105a157506105a08261137f565b5b9050919050565b60086020528060005260406000206000915090505481565b6105f17fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f66105ec6113f9565b61115a565b610630576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610627906129d6565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b815260040161068d9291906128d3565b600060405180830381600087803b1580156106a757600080fd5b505af11580156106bb573d6000803e3d6000fd5b505050505050565b6106cb610f88565b1561070b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070290612a16565b60405180910390fd5b60006107156113f9565b90506000600167ffffffffffffffff81111561075a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156107885781602001602082028036833780820191505090505b50905083816000815181106107c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250506107dc8282611401565b61081b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610812906129b6565b60405180910390fd5b60006108268261097d565b60008151811061085f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808411156108ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a390612a56565b60405180910390fd5b42600960008781526020019081526020016000208190555083816108d09190612c63565b6008600087815260200190815260200160002081905550600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1984866040518363ffffffff1660e01b81526004016109449291906128d3565b600060405180830381600087803b15801561095e57600080fd5b505af1158015610972573d6000803e3d6000fd5b505050505050505050565b60606000825167ffffffffffffffff8111156109c2577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156109f05781602001602082028036833780820191505090505b50905060005b8351811015610ba7576000848281518110610a3a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600080600960008481526020019081526020016000205411610a6a5763617f2e00610a7f565b60096000838152602001908152602001600020545b90506000620151808242610a939190612c63565b610a9d9190612bd8565b905060006006600085815260200190815260200160002060009054906101000a900460ff1615610adc5760035482610ad59190612c09565b9050610b29565b6007600085815260200190815260200160002060009054906101000a900460ff1615610b175760045482610b109190612c09565b9050610b28565b60055482610b259190612c09565b90505b5b600860008581526020019081526020016000205481610b489190612b82565b905080868681518110610b84577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050505050508080610b9f90612da3565b9150506109f6565b5080915050919050565b600060016000838152602001908152602001600020600101549050919050565b610bdb828261164f565b610c00816002600085815260200190815260200160002061134f90919063ffffffff16565b505050565b610c0f8282611678565b610c3481600260008581526020019081526020016000206116fb90919063ffffffff16565b505050565b63617f2e0081565b610c556000801b610c506113f9565b61115a565b610c94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8b906129f6565b60405180910390fd5b610c9c61172b565b565b63744dd40081565b610cae610f88565b15610cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce590612a16565b60405180910390fd5b6000610cf86113f9565b9050610d4581848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611401565b610d84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7b90612a76565b60405180910390fd5b6000610dd0848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505061097d565b90506000805b85859050811015610ef1574260096000888885818110610e1f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135815260200190815260200160002081905550600060086000888885818110610e77577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135815260200190815260200160002081905550828181518110610ec9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015182610edc9190612b82565b91508080610ee990612da3565b915050610dd6565b50600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1984836040518363ffffffff1660e01b8152600401610f4f9291906128d3565b600060405180830381600087803b158015610f6957600080fd5b505af1158015610f7d573d6000803e3d6000fd5b505050505050505050565b60008060009054906101000a900460ff16905090565b60096020528060005260406000206000915090505481565b610fe77fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f6610fe26113f9565b61115a565b611026576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101d906129d6565b60405180910390fd5b600860008381526020019081526020016000205481111561107c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107390612a36565b60405180910390fd5b8060086000848152602001908152602001600020600082825461109f9190612c63565b925050819055505050565b6110be6000801b6110b96113f9565b61115a565b6110fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f4906129f6565b60405180910390fd5b6111056117cc565b565b7fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f681565b6000611152826002600086815260200190815260200160002061186e90919063ffffffff16565b905092915050565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60035481565b60045481565b6000801b81565b6112097fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f66112046113f9565b61115a565b611248576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123f906129d6565b60405180910390fd5b8060086000848152602001908152602001600020600082825461126b9190612b82565b925050819055505050565b600061129360026000848152602001908152602001600020611888565b9050919050565b6112a4828261189d565b6112c981600260008581526020019081526020016000206116fb90919063ffffffff16565b505050565b60055481565b6112e86000801b6112e36113f9565b61115a565b611327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131e906129f6565b60405180910390fd5b826005819055508160048190555080600381905550505050565b61134b82826118c6565b5050565b6000611377836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6119a6565b905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806113f257506113f182611a16565b5b9050919050565b600033905090565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b815260040161145f91906128b8565b60206040518083038186803b15801561147757600080fd5b505afa15801561148b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114af91906124fb565b905060008167ffffffffffffffff8111156114f3577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156115215781602001602082028036833780820191505090505b50905060005b8281101561163457600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5987836040518363ffffffff1660e01b815260040161158c9291906128d3565b60206040518083038186803b1580156115a457600080fd5b505afa1580156115b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115dc91906124fb565b828281518110611615577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050808061162c90612da3565b915050611527565b5060006116418583611a80565b905080935050505092915050565b61165882610bb1565b611669816116646113f9565b611b79565b61167383836118c6565b505050565b6116806113f9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e490612a96565b60405180910390fd5b6116f78282611c16565b5050565b6000611723836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611cf8565b905092915050565b611733610f88565b611772576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176990612996565b60405180910390fd5b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6117b56113f9565b6040516117c291906128b8565b60405180910390a1565b6117d4610f88565b15611814576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180b90612a16565b60405180910390fd5b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118576113f9565b60405161186491906128b8565b60405180910390a1565b600061187d8360000183611e7e565b60001c905092915050565b600061189682600001611ecf565b9050919050565b6118a682610bb1565b6118b7816118b26113f9565b611b79565b6118c18383611c16565b505050565b6118d0828261115a565b6119a257600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506119476113f9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006119b28383611ee0565b611a0b578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050611a10565b600090505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080600090505b8351811015611b6d57600080858381518110611acd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060005b8551811015611b4757858181518110611b1c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151821415611b345760019250611b47565b8080611b3f90612da3565b915050611ada565b5081611b5857819350505050611b73565b50508080611b6590612da3565b915050611a88565b50600190505b92915050565b611b83828261115a565b611c1257611ba88173ffffffffffffffffffffffffffffffffffffffff166014611f03565b611bb68360001c6020611f03565b604051602001611bc792919061287e565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c099190612954565b60405180910390fd5b5050565b611c20828261115a565b15611cf45760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611c996113f9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60008083600101600084815260200190815260200160002054905060008114611e72576000600182611d2a9190612c63565b9050600060018660000180549050611d429190612c63565b9050818114611dfd576000866000018281548110611d89577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110611dd3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480611e37577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611e78565b60009150505b92915050565b6000826000018281548110611ebc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b606060006002836002611f169190612c09565b611f209190612b82565b67ffffffffffffffff811115611f5f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611f915781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611fef577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612079577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026120b99190612c09565b6120c39190612b82565b90505b60018111156121af577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061212b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612168577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806121a890612d48565b90506120c6565b50600084146121f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ea90612976565b60405180910390fd5b8091505092915050565b600061221061220b84612af6565b612ad1565b9050808382526020820190508285602086028201111561222f57600080fd5b60005b8581101561225f5781612245888261231c565b845260208401935060208301925050600181019050612232565b5050509392505050565b6000813590506122788161315a565b92915050565b60008083601f84011261229057600080fd5b8235905067ffffffffffffffff8111156122a957600080fd5b6020830191508360208202830111156122c157600080fd5b9250929050565b600082601f8301126122d957600080fd5b81356122e98482602086016121fd565b91505092915050565b60008135905061230181613171565b92915050565b60008135905061231681613188565b92915050565b60008135905061232b8161319f565b92915050565b6000815190506123408161319f565b92915050565b6000806040838503121561235957600080fd5b600061236785828601612269565b92505060206123788582860161231c565b9150509250929050565b6000806020838503121561239557600080fd5b600083013567ffffffffffffffff8111156123af57600080fd5b6123bb8582860161227e565b92509250509250929050565b6000602082840312156123d957600080fd5b600082013567ffffffffffffffff8111156123f357600080fd5b6123ff848285016122c8565b91505092915050565b60006020828403121561241a57600080fd5b6000612428848285016122f2565b91505092915050565b6000806040838503121561244457600080fd5b6000612452858286016122f2565b925050602061246385828601612269565b9150509250929050565b6000806040838503121561248057600080fd5b600061248e858286016122f2565b925050602061249f8582860161231c565b9150509250929050565b6000602082840312156124bb57600080fd5b60006124c984828501612307565b91505092915050565b6000602082840312156124e457600080fd5b60006124f28482850161231c565b91505092915050565b60006020828403121561250d57600080fd5b600061251b84828501612331565b91505092915050565b6000806040838503121561253757600080fd5b60006125458582860161231c565b92505060206125568582860161231c565b9150509250929050565b60008060006060848603121561257557600080fd5b60006125838682870161231c565b93505060206125948682870161231c565b92505060406125a58682870161231c565b9150509250925092565b60006125bb8383612860565b60208301905092915050565b6125d081612c97565b82525050565b60006125e182612b32565b6125eb8185612b55565b93506125f683612b22565b8060005b8381101561262757815161260e88826125af565b975061261983612b48565b9250506001810190506125fa565b5085935050505092915050565b61263d81612ca9565b82525050565b61264c81612cb5565b82525050565b600061265d82612b3d565b6126678185612b66565b9350612677818560208601612d15565b61268081612e79565b840191505092915050565b600061269682612b3d565b6126a08185612b77565b93506126b0818560208601612d15565b80840191505092915050565b60006126c9602083612b66565b91506126d482612e8a565b602082019050919050565b60006126ec601483612b66565b91506126f782612eb3565b602082019050919050565b600061270f602583612b66565b915061271a82612edc565b604082019050919050565b6000612732602183612b66565b915061273d82612f2b565b604082019050919050565b6000612755601e83612b66565b915061276082612f7a565b602082019050919050565b6000612778601083612b66565b915061278382612fa3565b602082019050919050565b600061279b602b83612b66565b91506127a682612fcc565b604082019050919050565b60006127be603283612b66565b91506127c98261301b565b604082019050919050565b60006127e1601783612b77565b91506127ec8261306a565b601782019050919050565b6000612804602e83612b66565b915061280f82613093565b604082019050919050565b6000612827601183612b77565b9150612832826130e2565b601182019050919050565b600061284a602f83612b66565b91506128558261310b565b604082019050919050565b61286981612d0b565b82525050565b61287881612d0b565b82525050565b6000612889826127d4565b9150612895828561268b565b91506128a08261281a565b91506128ac828461268b565b91508190509392505050565b60006020820190506128cd60008301846125c7565b92915050565b60006040820190506128e860008301856125c7565b6128f5602083018461286f565b9392505050565b6000602082019050818103600083015261291681846125d6565b905092915050565b60006020820190506129336000830184612634565b92915050565b600060208201905061294e6000830184612643565b92915050565b6000602082019050818103600083015261296e8184612652565b905092915050565b6000602082019050818103600083015261298f816126bc565b9050919050565b600060208201905081810360008301526129af816126df565b9050919050565b600060208201905081810360008301526129cf81612702565b9050919050565b600060208201905081810360008301526129ef81612725565b9050919050565b60006020820190508181036000830152612a0f81612748565b9050919050565b60006020820190508181036000830152612a2f8161276b565b9050919050565b60006020820190508181036000830152612a4f8161278e565b9050919050565b60006020820190508181036000830152612a6f816127b1565b9050919050565b60006020820190508181036000830152612a8f816127f7565b9050919050565b60006020820190508181036000830152612aaf8161283d565b9050919050565b6000602082019050612acb600083018461286f565b92915050565b6000612adb612aec565b9050612ae78282612d72565b919050565b6000604051905090565b600067ffffffffffffffff821115612b1157612b10612e4a565b5b602082029050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000612b8d82612d0b565b9150612b9883612d0b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612bcd57612bcc612dec565b5b828201905092915050565b6000612be382612d0b565b9150612bee83612d0b565b925082612bfe57612bfd612e1b565b5b828204905092915050565b6000612c1482612d0b565b9150612c1f83612d0b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612c5857612c57612dec565b5b828202905092915050565b6000612c6e82612d0b565b9150612c7983612d0b565b925082821015612c8c57612c8b612dec565b5b828203905092915050565b6000612ca282612ceb565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015612d33578082015181840152602081019050612d18565b83811115612d42576000848401525b50505050565b6000612d5382612d0b565b91506000821415612d6757612d66612dec565b5b600182039050919050565b612d7b82612e79565b810181811067ffffffffffffffff82111715612d9a57612d99612e4a565b5b80604052505050565b6000612dae82612d0b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612de157612de0612dec565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f48756c61446973743a204d757374206f776e2074696b6920746f20636c61696d60008201527f2068756c61000000000000000000000000000000000000000000000000000000602082015250565b7f48756c61446973743a204d757374206861766520726577617264657220726f6c60008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b7f48756c61446973743a204d75737420686176652061646d696e20726f6c650000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f48756c61446973743a2043616e6e6f742072656d6f7665206d6f72652074686160008201527f6e20617661696c61626c65000000000000000000000000000000000000000000602082015250565b7f48756c61446973743a2043616e6e6f7420636c61696d206d6f7265207468616e60008201527f20617661696c61626c652062616c616e63650000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f48756c61446973743a204d757374206f776e20616c6c2074696b697320746f2060008201527f636c61696d20616c6c2068756c61000000000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b61316381612c97565b811461316e57600080fd5b50565b61317a81612cb5565b811461318557600080fd5b50565b61319181612cbf565b811461319c57600080fd5b50565b6131a881612d0b565b81146131b357600080fd5b5056fea2646970667358221220a186a430511b03dcc1043d01c00b8825f57b25c3ed3cac61a4940c349494ab5764736f6c63430008040033

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

0000000000000000000000003eff964d46c62be703d9a01ef720ba0479e79c3c0000000000000000000000003608aaa2623dcb3dd0105d93a44da65dcdf9a586

-----Decoded View---------------
Arg [0] : _bttAddress (address): 0x3Eff964d46C62be703D9A01EF720ba0479e79c3C
Arg [1] : _hulaAddress (address): 0x3608aAa2623DCB3dD0105D93a44Da65dCdf9A586

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000003eff964d46c62be703d9a01ef720ba0479e79c3c
Arg [1] : 0000000000000000000000003608aaa2623dcb3dd0105d93a44da65dcdf9a586


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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