Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 196 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Claim Hula | 14064806 | 1495 days ago | IN | 0 ETH | 0.01212033 | ||||
| Claim Hula | 14064802 | 1495 days ago | IN | 0 ETH | 0.01978196 | ||||
| Claim Hula | 14062025 | 1495 days ago | IN | 0 ETH | 0.0060609 | ||||
| Claim Hula | 14061904 | 1495 days ago | IN | 0 ETH | 0.00806455 | ||||
| Claim Hula | 14061886 | 1495 days ago | IN | 0 ETH | 0.00771024 | ||||
| Claim Hula | 14060761 | 1496 days ago | IN | 0 ETH | 0.0104077 | ||||
| Claim Hula | 14060759 | 1496 days ago | IN | 0 ETH | 0.01161499 | ||||
| Claim Hula | 14056174 | 1496 days ago | IN | 0 ETH | 0.01656983 | ||||
| Claim Hula | 14056038 | 1496 days ago | IN | 0 ETH | 0.00946597 | ||||
| Claim Hula | 14056030 | 1496 days ago | IN | 0 ETH | 0.00982647 | ||||
| Claim Hula | 14053152 | 1497 days ago | IN | 0 ETH | 0.01270189 | ||||
| Claim Hula | 14053143 | 1497 days ago | IN | 0 ETH | 0.015143 | ||||
| Claim Hula | 14053133 | 1497 days ago | IN | 0 ETH | 0.01249378 | ||||
| Claim Hula | 14053127 | 1497 days ago | IN | 0 ETH | 0.0112283 | ||||
| Claim Hula | 14053114 | 1497 days ago | IN | 0 ETH | 0.01311139 | ||||
| Claim Hula | 14048889 | 1497 days ago | IN | 0 ETH | 0.0119457 | ||||
| Claim Hula | 14043043 | 1498 days ago | IN | 0 ETH | 0.00852887 | ||||
| Claim Hula | 14043010 | 1498 days ago | IN | 0 ETH | 0.00881905 | ||||
| Claim Hula | 14040528 | 1499 days ago | IN | 0 ETH | 0.01012929 | ||||
| Claim Hula | 14040526 | 1499 days ago | IN | 0 ETH | 0.01068623 | ||||
| Claim Hula | 14040524 | 1499 days ago | IN | 0 ETH | 0.01212072 | ||||
| Claim Hula | 14037751 | 1499 days ago | IN | 0 ETH | 0.01016455 | ||||
| Claim Hula | 14037751 | 1499 days ago | IN | 0 ETH | 0.01297823 | ||||
| Claim Hula | 14037751 | 1499 days ago | IN | 0 ETH | 0.0106335 | ||||
| Claim Hula | 14037751 | 1499 days ago | IN | 0 ETH | 0.01344717 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
HulaDistributor
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//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 isTokenOwner(address _address, uint _tokenid) private view returns (bool) {
bool isOwner = false;
uint balance = bttContract.balanceOf(_address);
for (uint i=0; i<balance; i++) {
uint tokenid = bttContract.tokenOfOwnerByIndex(_address, i);
if (tokenid == _tokenid) {
isOwner = true;
break;
}
}
return isOwner;
}
function availableHula(uint _tokenid) public view returns (uint) {
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];
return available;
}
function claimHula(uint _tokenid, uint _amount) public whenNotPaused {
address sender = _msgSender();
require(isTokenOwner(sender, _tokenid), 'HulaDist: Must own tiki to claim hula');
uint available = availableHula(_tokenid);
require(_amount <= available, 'HulaDist: Cannot claim more than available balance');
claimDate[_tokenid] = block.timestamp;
outstandingBalance[_tokenid] = available - _amount;
hulaContract.mint(sender, _amount);
}
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();
}
}// 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());
}
}// 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);
}
}// 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);
}// 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;
}
}// 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);
}// 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());
}
}
}// 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;
}
}// 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;
}// 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);
}
}// 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;
}
}// 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);
}// 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;
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"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":"_tokenid","type":"uint256"}],"name":"availableHula","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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"}]Contract Creation Code
60806040526801a055690d9db800006003556753444835ec580000600455674563918244f400006005553480156200003657600080fd5b5060405162002eab38038062002eab83398181016040528101906200005c9190620005fc565b60008060006101000a81548160ff0219169083151502179055506200009a6000801b6200008e6200034e60201b60201c565b6200035660201b60201c565b620000db7fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f6620000cf6200034e60201b60201c565b6200035660201b60201c565b81600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600060405180610140016040528061054981526020016107a881526020016107cc815260200161082c81526020016108638152602001610bce8152602001610bd98152602001610df98152602001610faa8152602001611218815250905060005b600a81101562000248576001600660008484600a811062000208577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806200023f906200067b565b915050620001be565b506000604051806101800160405280600e81526020016102b6815260200161032581526020016108e6815260200161094e8152602001610ab38152602001610abc8152602001610ba4815260200161107c81526020016110f1815260200161120581526020016112ea815250905060005b600c81101562000343576001600760008484600c811062000303577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806200033a906200067b565b915050620002b9565b505050505062000712565b600033905090565b6200036d82826200039e60201b62000e0a1760201c565b620003998160026000858152602001908152602001600020620003b460201b62000e181790919060201c565b505050565b620003b08282620003ec60201b60201c565b5050565b6000620003e4836000018373ffffffffffffffffffffffffffffffffffffffff1660001b620004dd60201b60201c565b905092915050565b620003fe82826200055760201b60201c565b620004d957600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200047e6200034e60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620004f18383620005c260201b60201c565b6200054c57826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905062000551565b600090505b92915050565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081519050620005f681620006f8565b92915050565b600080604083850312156200061057600080fd5b60006200062085828601620005e5565b92505060206200063385828601620005e5565b9150509250929050565b60006200064a8262000651565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000620006888262000671565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415620006be57620006bd620006c9565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b62000703816200063d565b81146200070f57600080fd5b50565b61278980620007226000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80638456cb59116100de5780639b92bee311610097578063ca15c87311610071578063ca15c87314610471578063d547741f146104a1578063de99135b146104bd578063f9950399146104db5761018e565b80639b92bee314610419578063a217fddf14610437578063a40398a6146104555761018e565b80638456cb59146103435780638580cf761461034d5780638c58a6c91461036b5780639010d07c1461039b57806391d14854146103cb5780639a645dd7146103fb5761018e565b806336568abe1161014b578063545599ff11610125578063545599ff146102bb5780635c975abb146102d957806362ea4f3e146102f757806364305a11146103275761018e565b806336568abe14610277578063372c6533146102935780633f4ba83a146102b15761018e565b806301ffc9a71461019357806302d57696146101c35780630ea0f7a1146101f35780630f616eb41461020f578063248a9ca31461022b5780632f2ff15d1461025b575b600080fd5b6101ad60048036038101906101a89190611c69565b6104f7565b6040516101ba9190612014565b60405180910390f35b6101dd60048036038101906101d89190611c92565b610571565b6040516101ea919061218c565b60405180910390f35b61020d60048036038101906102089190611b8c565b610589565b005b61022960048036038101906102249190611ce4565b61068c565b005b61024560048036038101906102409190611bc8565b610849565b604051610252919061202f565b60405180910390f35b61027560048036038101906102709190611bf1565b610869565b005b610291600480360381019061028c9190611bf1565b61089d565b005b61029b6108d1565b6040516102a8919061218c565b60405180910390f35b6102b96108d9565b005b6102c3610936565b6040516102d0919061218c565b60405180910390f35b6102e161093e565b6040516102ee9190612014565b60405180910390f35b610311600480360381019061030c9190611c92565b610954565b60405161031e919061218c565b60405180910390f35b610341600480360381019061033c9190611ce4565b61096c565b005b61034b610a60565b005b610355610abd565b604051610362919061202f565b60405180910390f35b61038560048036038101906103809190611c92565b610ae1565b604051610392919061218c565b60405180910390f35b6103b560048036038101906103b09190611c2d565b610bf4565b6040516103c29190611fd0565b60405180910390f35b6103e560048036038101906103e09190611bf1565b610c23565b6040516103f29190612014565b60405180910390f35b610403610c8e565b604051610410919061218c565b60405180910390f35b610421610c94565b60405161042e919061218c565b60405180910390f35b61043f610c9a565b60405161044c919061202f565b60405180910390f35b61046f600480360381019061046a9190611ce4565b610ca1565b005b61048b60048036038101906104869190611bc8565b610d3f565b604051610498919061218c565b60405180910390f35b6104bb60048036038101906104b69190611bf1565b610d63565b005b6104c5610d97565b6040516104d2919061218c565b60405180910390f35b6104f560048036038101906104f09190611d20565b610d9d565b005b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061056a575061056982610e48565b5b9050919050565b60086020528060005260406000206000915090505481565b6105ba7fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f66105b5610ec2565b610c23565b6105f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f0906120cc565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b8152600401610656929190611feb565b600060405180830381600087803b15801561067057600080fd5b505af1158015610684573d6000803e3d6000fd5b505050505050565b61069461093e565b156106d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106cb9061210c565b60405180910390fd5b60006106de610ec2565b90506106ea8184610eca565b610729576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610720906120ac565b60405180910390fd5b600061073484610ae1565b905080831115610779576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107709061214c565b60405180910390fd5b426009600086815260200190815260200160002081905550828161079d91906122af565b6008600086815260200190815260200160002081905550600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1983856040518363ffffffff1660e01b8152600401610811929190611feb565b600060405180830381600087803b15801561082b57600080fd5b505af115801561083f573d6000803e3d6000fd5b5050505050505050565b600060016000838152602001908152602001600020600101549050919050565b610873828261106e565b6108988160026000858152602001908152602001600020610e1890919063ffffffff16565b505050565b6108a78282611097565b6108cc816002600085815260200190815260200160002061111a90919063ffffffff16565b505050565b63617f2e0081565b6108ed6000801b6108e8610ec2565b610c23565b61092c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610923906120ec565b60405180910390fd5b61093461114a565b565b63744dd40081565b60008060009054906101000a900460ff16905090565b60096020528060005260406000206000915090505481565b61099d7fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f6610998610ec2565b610c23565b6109dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d3906120cc565b60405180910390fd5b6008600083815260200190815260200160002054811115610a32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a299061212c565b60405180910390fd5b80600860008481526020019081526020016000206000828254610a5591906122af565b925050819055505050565b610a746000801b610a6f610ec2565b610c23565b610ab3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aaa906120ec565b60405180910390fd5b610abb6111eb565b565b7fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f681565b6000806000600960008581526020019081526020016000205411610b095763617f2e00610b1e565b60096000848152602001908152602001600020545b90506000620151808242610b3291906122af565b610b3c9190612224565b905060006006600086815260200190815260200160002060009054906101000a900460ff1615610b7b5760035482610b749190612255565b9050610bc8565b6007600086815260200190815260200160002060009054906101000a900460ff1615610bb65760045482610baf9190612255565b9050610bc7565b60055482610bc49190612255565b90505b5b600860008681526020019081526020016000205481610be791906121ce565b9050809350505050919050565b6000610c1b826002600086815260200190815260200160002061128d90919063ffffffff16565b905092915050565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60035481565b60045481565b6000801b81565b610cd27fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f6610ccd610ec2565b610c23565b610d11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d08906120cc565b60405180910390fd5b80600860008481526020019081526020016000206000828254610d3491906121ce565b925050819055505050565b6000610d5c600260008481526020019081526020016000206112a7565b9050919050565b610d6d82826112bc565b610d92816002600085815260200190815260200160002061111a90919063ffffffff16565b505050565b60055481565b610db16000801b610dac610ec2565b610c23565b610df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de7906120ec565b60405180910390fd5b826005819055508160048190555080600381905550505050565b610e1482826112e5565b5050565b6000610e40836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6113c5565b905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610ebb5750610eba82611435565b5b9050919050565b600033905090565b600080600090506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401610f2e9190611fd0565b60206040518083038186803b158015610f4657600080fd5b505afa158015610f5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7e9190611cbb565b905060005b81811015611062576000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5988846040518363ffffffff1660e01b8152600401610fea929190611feb565b60206040518083038186803b15801561100257600080fd5b505afa158015611016573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103a9190611cbb565b90508581141561104e576001935050611062565b50808061105a906123be565b915050610f83565b50819250505092915050565b61107782610849565b61108881611083610ec2565b61149f565b61109283836112e5565b505050565b61109f610ec2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461110c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111039061216c565b60405180910390fd5b611116828261153c565b5050565b6000611142836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61161e565b905092915050565b61115261093e565b611191576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111889061208c565b60405180910390fd5b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6111d4610ec2565b6040516111e19190611fd0565b60405180910390a1565b6111f361093e565b15611233576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122a9061210c565b60405180910390fd5b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611276610ec2565b6040516112839190611fd0565b60405180910390a1565b600061129c83600001836117a4565b60001c905092915050565b60006112b5826000016117f5565b9050919050565b6112c582610849565b6112d6816112d1610ec2565b61149f565b6112e0838361153c565b505050565b6112ef8282610c23565b6113c157600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611366610ec2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006113d18383611806565b61142a57826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061142f565b600090505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6114a98282610c23565b611538576114ce8173ffffffffffffffffffffffffffffffffffffffff166014611829565b6114dc8360001c6020611829565b6040516020016114ed929190611f96565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152f919061204a565b60405180910390fd5b5050565b6115468282610c23565b1561161a5760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506115bf610ec2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000808360010160008481526020019081526020016000205490506000811461179857600060018261165091906122af565b905060006001866000018054905061166891906122af565b90508181146117235760008660000182815481106116af577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050808760000184815481106116f9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b8560000180548061175d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061179e565b60009150505b92915050565b60008260000182815481106117e2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60606000600283600261183c9190612255565b61184691906121ce565b67ffffffffffffffff811115611885577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156118b75781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611915577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061199f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026119df9190612255565b6119e991906121ce565b90505b6001811115611ad5577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611a51577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110611a8e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611ace90612394565b90506119ec565b5060008414611b19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b109061206c565b60405180910390fd5b8091505092915050565b600081359050611b32816126f7565b92915050565b600081359050611b478161270e565b92915050565b600081359050611b5c81612725565b92915050565b600081359050611b718161273c565b92915050565b600081519050611b868161273c565b92915050565b60008060408385031215611b9f57600080fd5b6000611bad85828601611b23565b9250506020611bbe85828601611b62565b9150509250929050565b600060208284031215611bda57600080fd5b6000611be884828501611b38565b91505092915050565b60008060408385031215611c0457600080fd5b6000611c1285828601611b38565b9250506020611c2385828601611b23565b9150509250929050565b60008060408385031215611c4057600080fd5b6000611c4e85828601611b38565b9250506020611c5f85828601611b62565b9150509250929050565b600060208284031215611c7b57600080fd5b6000611c8984828501611b4d565b91505092915050565b600060208284031215611ca457600080fd5b6000611cb284828501611b62565b91505092915050565b600060208284031215611ccd57600080fd5b6000611cdb84828501611b77565b91505092915050565b60008060408385031215611cf757600080fd5b6000611d0585828601611b62565b9250506020611d1685828601611b62565b9150509250929050565b600080600060608486031215611d3557600080fd5b6000611d4386828701611b62565b9350506020611d5486828701611b62565b9250506040611d6586828701611b62565b9150509250925092565b611d78816122e3565b82525050565b611d87816122f5565b82525050565b611d9681612301565b82525050565b6000611da7826121a7565b611db181856121b2565b9350611dc1818560208601612361565b611dca81612465565b840191505092915050565b6000611de0826121a7565b611dea81856121c3565b9350611dfa818560208601612361565b80840191505092915050565b6000611e136020836121b2565b9150611e1e82612476565b602082019050919050565b6000611e366014836121b2565b9150611e418261249f565b602082019050919050565b6000611e596025836121b2565b9150611e64826124c8565b604082019050919050565b6000611e7c6021836121b2565b9150611e8782612517565b604082019050919050565b6000611e9f601e836121b2565b9150611eaa82612566565b602082019050919050565b6000611ec26010836121b2565b9150611ecd8261258f565b602082019050919050565b6000611ee5602b836121b2565b9150611ef0826125b8565b604082019050919050565b6000611f086032836121b2565b9150611f1382612607565b604082019050919050565b6000611f2b6017836121c3565b9150611f3682612656565b601782019050919050565b6000611f4e6011836121c3565b9150611f598261267f565b601182019050919050565b6000611f71602f836121b2565b9150611f7c826126a8565b604082019050919050565b611f9081612357565b82525050565b6000611fa182611f1e565b9150611fad8285611dd5565b9150611fb882611f41565b9150611fc48284611dd5565b91508190509392505050565b6000602082019050611fe56000830184611d6f565b92915050565b60006040820190506120006000830185611d6f565b61200d6020830184611f87565b9392505050565b60006020820190506120296000830184611d7e565b92915050565b60006020820190506120446000830184611d8d565b92915050565b600060208201905081810360008301526120648184611d9c565b905092915050565b6000602082019050818103600083015261208581611e06565b9050919050565b600060208201905081810360008301526120a581611e29565b9050919050565b600060208201905081810360008301526120c581611e4c565b9050919050565b600060208201905081810360008301526120e581611e6f565b9050919050565b6000602082019050818103600083015261210581611e92565b9050919050565b6000602082019050818103600083015261212581611eb5565b9050919050565b6000602082019050818103600083015261214581611ed8565b9050919050565b6000602082019050818103600083015261216581611efb565b9050919050565b6000602082019050818103600083015261218581611f64565b9050919050565b60006020820190506121a16000830184611f87565b92915050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b60006121d982612357565b91506121e483612357565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561221957612218612407565b5b828201905092915050565b600061222f82612357565b915061223a83612357565b92508261224a57612249612436565b5b828204905092915050565b600061226082612357565b915061226b83612357565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156122a4576122a3612407565b5b828202905092915050565b60006122ba82612357565b91506122c583612357565b9250828210156122d8576122d7612407565b5b828203905092915050565b60006122ee82612337565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101561237f578082015181840152602081019050612364565b8381111561238e576000848401525b50505050565b600061239f82612357565b915060008214156123b3576123b2612407565b5b600182039050919050565b60006123c982612357565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156123fc576123fb612407565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f48756c61446973743a204d757374206f776e2074696b6920746f20636c61696d60008201527f2068756c61000000000000000000000000000000000000000000000000000000602082015250565b7f48756c61446973743a204d757374206861766520726577617264657220726f6c60008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b7f48756c61446973743a204d75737420686176652061646d696e20726f6c650000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f48756c61446973743a2043616e6e6f742072656d6f7665206d6f72652074686160008201527f6e20617661696c61626c65000000000000000000000000000000000000000000602082015250565b7f48756c61446973743a2043616e6e6f7420636c61696d206d6f7265207468616e60008201527f20617661696c61626c652062616c616e63650000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b612700816122e3565b811461270b57600080fd5b50565b61271781612301565b811461272257600080fd5b50565b61272e8161230b565b811461273957600080fd5b50565b61274581612357565b811461275057600080fd5b5056fea26469706673582212200d3edb0ce9a3c6fdeebbfa7769bf1f79532061bd84e233c7fb07c5adb5ecc96564736f6c634300080400330000000000000000000000003eff964d46c62be703d9a01ef720ba0479e79c3c0000000000000000000000003608aaa2623dcb3dd0105d93a44da65dcdf9a586
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80638456cb59116100de5780639b92bee311610097578063ca15c87311610071578063ca15c87314610471578063d547741f146104a1578063de99135b146104bd578063f9950399146104db5761018e565b80639b92bee314610419578063a217fddf14610437578063a40398a6146104555761018e565b80638456cb59146103435780638580cf761461034d5780638c58a6c91461036b5780639010d07c1461039b57806391d14854146103cb5780639a645dd7146103fb5761018e565b806336568abe1161014b578063545599ff11610125578063545599ff146102bb5780635c975abb146102d957806362ea4f3e146102f757806364305a11146103275761018e565b806336568abe14610277578063372c6533146102935780633f4ba83a146102b15761018e565b806301ffc9a71461019357806302d57696146101c35780630ea0f7a1146101f35780630f616eb41461020f578063248a9ca31461022b5780632f2ff15d1461025b575b600080fd5b6101ad60048036038101906101a89190611c69565b6104f7565b6040516101ba9190612014565b60405180910390f35b6101dd60048036038101906101d89190611c92565b610571565b6040516101ea919061218c565b60405180910390f35b61020d60048036038101906102089190611b8c565b610589565b005b61022960048036038101906102249190611ce4565b61068c565b005b61024560048036038101906102409190611bc8565b610849565b604051610252919061202f565b60405180910390f35b61027560048036038101906102709190611bf1565b610869565b005b610291600480360381019061028c9190611bf1565b61089d565b005b61029b6108d1565b6040516102a8919061218c565b60405180910390f35b6102b96108d9565b005b6102c3610936565b6040516102d0919061218c565b60405180910390f35b6102e161093e565b6040516102ee9190612014565b60405180910390f35b610311600480360381019061030c9190611c92565b610954565b60405161031e919061218c565b60405180910390f35b610341600480360381019061033c9190611ce4565b61096c565b005b61034b610a60565b005b610355610abd565b604051610362919061202f565b60405180910390f35b61038560048036038101906103809190611c92565b610ae1565b604051610392919061218c565b60405180910390f35b6103b560048036038101906103b09190611c2d565b610bf4565b6040516103c29190611fd0565b60405180910390f35b6103e560048036038101906103e09190611bf1565b610c23565b6040516103f29190612014565b60405180910390f35b610403610c8e565b604051610410919061218c565b60405180910390f35b610421610c94565b60405161042e919061218c565b60405180910390f35b61043f610c9a565b60405161044c919061202f565b60405180910390f35b61046f600480360381019061046a9190611ce4565b610ca1565b005b61048b60048036038101906104869190611bc8565b610d3f565b604051610498919061218c565b60405180910390f35b6104bb60048036038101906104b69190611bf1565b610d63565b005b6104c5610d97565b6040516104d2919061218c565b60405180910390f35b6104f560048036038101906104f09190611d20565b610d9d565b005b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061056a575061056982610e48565b5b9050919050565b60086020528060005260406000206000915090505481565b6105ba7fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f66105b5610ec2565b610c23565b6105f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f0906120cc565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b8152600401610656929190611feb565b600060405180830381600087803b15801561067057600080fd5b505af1158015610684573d6000803e3d6000fd5b505050505050565b61069461093e565b156106d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106cb9061210c565b60405180910390fd5b60006106de610ec2565b90506106ea8184610eca565b610729576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610720906120ac565b60405180910390fd5b600061073484610ae1565b905080831115610779576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107709061214c565b60405180910390fd5b426009600086815260200190815260200160002081905550828161079d91906122af565b6008600086815260200190815260200160002081905550600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1983856040518363ffffffff1660e01b8152600401610811929190611feb565b600060405180830381600087803b15801561082b57600080fd5b505af115801561083f573d6000803e3d6000fd5b5050505050505050565b600060016000838152602001908152602001600020600101549050919050565b610873828261106e565b6108988160026000858152602001908152602001600020610e1890919063ffffffff16565b505050565b6108a78282611097565b6108cc816002600085815260200190815260200160002061111a90919063ffffffff16565b505050565b63617f2e0081565b6108ed6000801b6108e8610ec2565b610c23565b61092c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610923906120ec565b60405180910390fd5b61093461114a565b565b63744dd40081565b60008060009054906101000a900460ff16905090565b60096020528060005260406000206000915090505481565b61099d7fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f6610998610ec2565b610c23565b6109dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d3906120cc565b60405180910390fd5b6008600083815260200190815260200160002054811115610a32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a299061212c565b60405180910390fd5b80600860008481526020019081526020016000206000828254610a5591906122af565b925050819055505050565b610a746000801b610a6f610ec2565b610c23565b610ab3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aaa906120ec565b60405180910390fd5b610abb6111eb565b565b7fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f681565b6000806000600960008581526020019081526020016000205411610b095763617f2e00610b1e565b60096000848152602001908152602001600020545b90506000620151808242610b3291906122af565b610b3c9190612224565b905060006006600086815260200190815260200160002060009054906101000a900460ff1615610b7b5760035482610b749190612255565b9050610bc8565b6007600086815260200190815260200160002060009054906101000a900460ff1615610bb65760045482610baf9190612255565b9050610bc7565b60055482610bc49190612255565b90505b5b600860008681526020019081526020016000205481610be791906121ce565b9050809350505050919050565b6000610c1b826002600086815260200190815260200160002061128d90919063ffffffff16565b905092915050565b60006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60035481565b60045481565b6000801b81565b610cd27fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f6610ccd610ec2565b610c23565b610d11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d08906120cc565b60405180910390fd5b80600860008481526020019081526020016000206000828254610d3491906121ce565b925050819055505050565b6000610d5c600260008481526020019081526020016000206112a7565b9050919050565b610d6d82826112bc565b610d92816002600085815260200190815260200160002061111a90919063ffffffff16565b505050565b60055481565b610db16000801b610dac610ec2565b610c23565b610df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de7906120ec565b60405180910390fd5b826005819055508160048190555080600381905550505050565b610e1482826112e5565b5050565b6000610e40836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6113c5565b905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610ebb5750610eba82611435565b5b9050919050565b600033905090565b600080600090506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401610f2e9190611fd0565b60206040518083038186803b158015610f4657600080fd5b505afa158015610f5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7e9190611cbb565b905060005b81811015611062576000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5988846040518363ffffffff1660e01b8152600401610fea929190611feb565b60206040518083038186803b15801561100257600080fd5b505afa158015611016573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103a9190611cbb565b90508581141561104e576001935050611062565b50808061105a906123be565b915050610f83565b50819250505092915050565b61107782610849565b61108881611083610ec2565b61149f565b61109283836112e5565b505050565b61109f610ec2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461110c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111039061216c565b60405180910390fd5b611116828261153c565b5050565b6000611142836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61161e565b905092915050565b61115261093e565b611191576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111889061208c565b60405180910390fd5b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6111d4610ec2565b6040516111e19190611fd0565b60405180910390a1565b6111f361093e565b15611233576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122a9061210c565b60405180910390fd5b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611276610ec2565b6040516112839190611fd0565b60405180910390a1565b600061129c83600001836117a4565b60001c905092915050565b60006112b5826000016117f5565b9050919050565b6112c582610849565b6112d6816112d1610ec2565b61149f565b6112e0838361153c565b505050565b6112ef8282610c23565b6113c157600180600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611366610ec2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006113d18383611806565b61142a57826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061142f565b600090505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6114a98282610c23565b611538576114ce8173ffffffffffffffffffffffffffffffffffffffff166014611829565b6114dc8360001c6020611829565b6040516020016114ed929190611f96565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152f919061204a565b60405180910390fd5b5050565b6115468282610c23565b1561161a5760006001600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506115bf610ec2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000808360010160008481526020019081526020016000205490506000811461179857600060018261165091906122af565b905060006001866000018054905061166891906122af565b90508181146117235760008660000182815481106116af577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050808760000184815481106116f9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b8560000180548061175d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061179e565b60009150505b92915050565b60008260000182815481106117e2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60606000600283600261183c9190612255565b61184691906121ce565b67ffffffffffffffff811115611885577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156118b75781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611915577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061199f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026119df9190612255565b6119e991906121ce565b90505b6001811115611ad5577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611a51577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110611a8e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611ace90612394565b90506119ec565b5060008414611b19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b109061206c565b60405180910390fd5b8091505092915050565b600081359050611b32816126f7565b92915050565b600081359050611b478161270e565b92915050565b600081359050611b5c81612725565b92915050565b600081359050611b718161273c565b92915050565b600081519050611b868161273c565b92915050565b60008060408385031215611b9f57600080fd5b6000611bad85828601611b23565b9250506020611bbe85828601611b62565b9150509250929050565b600060208284031215611bda57600080fd5b6000611be884828501611b38565b91505092915050565b60008060408385031215611c0457600080fd5b6000611c1285828601611b38565b9250506020611c2385828601611b23565b9150509250929050565b60008060408385031215611c4057600080fd5b6000611c4e85828601611b38565b9250506020611c5f85828601611b62565b9150509250929050565b600060208284031215611c7b57600080fd5b6000611c8984828501611b4d565b91505092915050565b600060208284031215611ca457600080fd5b6000611cb284828501611b62565b91505092915050565b600060208284031215611ccd57600080fd5b6000611cdb84828501611b77565b91505092915050565b60008060408385031215611cf757600080fd5b6000611d0585828601611b62565b9250506020611d1685828601611b62565b9150509250929050565b600080600060608486031215611d3557600080fd5b6000611d4386828701611b62565b9350506020611d5486828701611b62565b9250506040611d6586828701611b62565b9150509250925092565b611d78816122e3565b82525050565b611d87816122f5565b82525050565b611d9681612301565b82525050565b6000611da7826121a7565b611db181856121b2565b9350611dc1818560208601612361565b611dca81612465565b840191505092915050565b6000611de0826121a7565b611dea81856121c3565b9350611dfa818560208601612361565b80840191505092915050565b6000611e136020836121b2565b9150611e1e82612476565b602082019050919050565b6000611e366014836121b2565b9150611e418261249f565b602082019050919050565b6000611e596025836121b2565b9150611e64826124c8565b604082019050919050565b6000611e7c6021836121b2565b9150611e8782612517565b604082019050919050565b6000611e9f601e836121b2565b9150611eaa82612566565b602082019050919050565b6000611ec26010836121b2565b9150611ecd8261258f565b602082019050919050565b6000611ee5602b836121b2565b9150611ef0826125b8565b604082019050919050565b6000611f086032836121b2565b9150611f1382612607565b604082019050919050565b6000611f2b6017836121c3565b9150611f3682612656565b601782019050919050565b6000611f4e6011836121c3565b9150611f598261267f565b601182019050919050565b6000611f71602f836121b2565b9150611f7c826126a8565b604082019050919050565b611f9081612357565b82525050565b6000611fa182611f1e565b9150611fad8285611dd5565b9150611fb882611f41565b9150611fc48284611dd5565b91508190509392505050565b6000602082019050611fe56000830184611d6f565b92915050565b60006040820190506120006000830185611d6f565b61200d6020830184611f87565b9392505050565b60006020820190506120296000830184611d7e565b92915050565b60006020820190506120446000830184611d8d565b92915050565b600060208201905081810360008301526120648184611d9c565b905092915050565b6000602082019050818103600083015261208581611e06565b9050919050565b600060208201905081810360008301526120a581611e29565b9050919050565b600060208201905081810360008301526120c581611e4c565b9050919050565b600060208201905081810360008301526120e581611e6f565b9050919050565b6000602082019050818103600083015261210581611e92565b9050919050565b6000602082019050818103600083015261212581611eb5565b9050919050565b6000602082019050818103600083015261214581611ed8565b9050919050565b6000602082019050818103600083015261216581611efb565b9050919050565b6000602082019050818103600083015261218581611f64565b9050919050565b60006020820190506121a16000830184611f87565b92915050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b60006121d982612357565b91506121e483612357565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561221957612218612407565b5b828201905092915050565b600061222f82612357565b915061223a83612357565b92508261224a57612249612436565b5b828204905092915050565b600061226082612357565b915061226b83612357565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156122a4576122a3612407565b5b828202905092915050565b60006122ba82612357565b91506122c583612357565b9250828210156122d8576122d7612407565b5b828203905092915050565b60006122ee82612337565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101561237f578082015181840152602081019050612364565b8381111561238e576000848401525b50505050565b600061239f82612357565b915060008214156123b3576123b2612407565b5b600182039050919050565b60006123c982612357565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156123fc576123fb612407565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f48756c61446973743a204d757374206f776e2074696b6920746f20636c61696d60008201527f2068756c61000000000000000000000000000000000000000000000000000000602082015250565b7f48756c61446973743a204d757374206861766520726577617264657220726f6c60008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b7f48756c61446973743a204d75737420686176652061646d696e20726f6c650000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f48756c61446973743a2043616e6e6f742072656d6f7665206d6f72652074686160008201527f6e20617661696c61626c65000000000000000000000000000000000000000000602082015250565b7f48756c61446973743a2043616e6e6f7420636c61696d206d6f7265207468616e60008201527f20617661696c61626c652062616c616e63650000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b612700816122e3565b811461270b57600080fd5b50565b61271781612301565b811461272257600080fd5b50565b61272e8161230b565b811461273957600080fd5b50565b61274581612357565b811461275057600080fd5b5056fea26469706673582212200d3edb0ce9a3c6fdeebbfa7769bf1f79532061bd84e233c7fb07c5adb5ecc96564736f6c63430008040033
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
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.