Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 466 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 16501102 | 622 days ago | IN | 0 ETH | 0.00046595 | ||||
Claim All | 16151448 | 671 days ago | IN | 0 ETH | 0.00077314 | ||||
Claim All | 16151446 | 671 days ago | IN | 0 ETH | 0.00074224 | ||||
Claim Multiple | 16072873 | 682 days ago | IN | 0 ETH | 0.00116369 | ||||
Claim Multiple | 15678071 | 737 days ago | IN | 0 ETH | 0.00108756 | ||||
Claim Multiple | 15599962 | 748 days ago | IN | 0 ETH | 0.00108406 | ||||
Approve | 15562611 | 753 days ago | IN | 0 ETH | 0.00018043 | ||||
Claim Multiple | 15492962 | 764 days ago | IN | 0 ETH | 0.00116919 | ||||
Claim Multiple | 15490322 | 765 days ago | IN | 0 ETH | 0.00119253 | ||||
Claim Multiple | 15475044 | 767 days ago | IN | 0 ETH | 0.00068626 | ||||
Approve | 15426580 | 775 days ago | IN | 0 ETH | 0.00033312 | ||||
Claim Multiple | 15405160 | 778 days ago | IN | 0 ETH | 0.00195796 | ||||
Claim Multiple | 15394638 | 780 days ago | IN | 0 ETH | 0.00031278 | ||||
Claim Multiple | 15394632 | 780 days ago | IN | 0 ETH | 0.00083854 | ||||
Claim Multiple | 15365230 | 784 days ago | IN | 0 ETH | 0.00153965 | ||||
Claim Multiple | 15329586 | 790 days ago | IN | 0 ETH | 0.00198898 | ||||
Claim Multiple | 15311042 | 793 days ago | IN | 0 ETH | 0.0007991 | ||||
Approve | 15266408 | 800 days ago | IN | 0 ETH | 0.00012165 | ||||
Claim Multiple | 15239704 | 804 days ago | IN | 0 ETH | 0.00120518 | ||||
Claim Multiple | 15233423 | 805 days ago | IN | 0 ETH | 0.00133357 | ||||
Claim Multiple | 15228935 | 806 days ago | IN | 0 ETH | 0.00117593 | ||||
Claim Multiple | 15219448 | 807 days ago | IN | 0 ETH | 0.00275821 | ||||
Transfer | 15215855 | 808 days ago | IN | 0.031375 ETH | 0.00078052 | ||||
Claim Multiple | 15211626 | 809 days ago | IN | 0 ETH | 0.00264369 | ||||
Claim Multiple | 15181354 | 813 days ago | IN | 0 ETH | 0.00322574 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
CHILL
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "./NFTYieldedToken.sol"; /// @custom:security-contact [email protected] contract CHILL is NFTYieldedToken { uint256 constant public PROJECT_ALLOCATION = 5000000 * 10**18; uint256 constant public YIELD_STEP = 86400; uint256 constant public YIELD = 10**19; constructor( address admin, address pauser, address minter, address yieldManager, uint256 epoch_, uint256 horizon_, address nftContractAddress ) NFTYieldedToken( "CHILL", "CHILL", admin, pauser, minter, yieldManager, YIELD_STEP, YIELD, epoch_, horizon_, nftContractAddress ) { _mint(0x7A105DFD75713c1FDd592E1F9f81232Fa3E74945, PROJECT_ALLOCATION); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "./TimeYieldedCredit.sol"; import "./UtilityToken.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface NFTContract is IERC721, IERC721Enumerable {} /// @custom:security-contact [email protected] contract NFTYieldedToken is UtilityToken, TimeYieldedCredit { // The ERC721 NFT contract whose tokens are yielded this token NFTContract public nftContract; constructor( string memory name, string memory symbol, address admin, address pauser, address minter, address yieldManager, uint256 yieldStep_, uint256 yield_, uint256 epoch_, uint256 horizon_, address nftContractAddress) UtilityToken(name, symbol, admin, pauser, minter) TimeYieldedCredit(yieldManager, yieldStep_, yield_, epoch_, horizon_) { nftContract = NFTContract(nftContractAddress); } /** * @dev Returns the amount claimable by the owner of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function getClaimableAmount(uint256 tokenId) external view returns (uint256) { require(tokenId < nftContract.totalSupply(), "NFTYieldedToken: Non-existent tokenId"); return _creditFor(tokenId); } /** * @dev Returns an array of amounts claimable by `addr`. * If `addr` doesn't own any tokens, returns an empty array. */ function getClaimableForAddress(address addr) external view returns (uint256[] memory, uint256[] memory) { uint256 balance = nftContract.balanceOf(addr); uint256[] memory balances = new uint256[](balance); uint256[] memory tokenIds = new uint256[](balance); for (uint256 i = 0; i < balance; i++) { uint256 tokenId = nftContract.tokenOfOwnerByIndex(addr, i); balances[i] = _creditFor(tokenId); tokenIds[i] = tokenId; } return (balances, tokenIds); } /** * @dev Spends `amount` credit from `tokenId`'s balance - * for the consumption of an external service identified by `serviceId`. * Optionally sending additional `data`. * * Requirements: * * See {NFTYieldedToken._spend} */ function spend( uint256 tokenId, uint256 amount, uint256 serviceId, bytes calldata data ) public { _spend(tokenId, amount); emit TokenSpent(msg.sender, amount, serviceId, data); } /** * @dev Claims `amount` credit as tokens from `tokenId`'s balance. * * Requirements: * * See {NFTYieldedToken._spend} */ function claim(uint256 tokenId, uint256 amount) public { _spend(tokenId, amount); _mint(msg.sender, amount); } /** * @dev Spends `amount` credit from `tokenId`'s balance. * * Requirements: * * - The caller must own `tokenId`. * * - `tokenId` must exist. * * - `tokenId` must have at least `amount` of credit available. */ function _spend(uint256 tokenId, uint256 amount) internal { require(msg.sender == nftContract.ownerOf(tokenId), "NFTYieldedToken: Not owner of token"); _spendCredit(tokenId, amount); } /** * @dev Spends `amount` credit from `tokenId`'s balance on behalf of `account`- * for the consumption of an external service identified by `serviceId`. * Optionally sending additional `data`. * * Requirements: * * See {NFTYieldedToken._spendFrom} */ function spendFrom( address account, uint256 tokenId, uint256 amount, uint256 serviceId, bytes calldata data ) public { _spendFrom(account, tokenId, amount); emit TokenSpent(account, amount, serviceId, data); } /** * @dev Claims `amount` credit as tokens from `tokenId`'s balance on behalf of `account`- * The tokens are minted to the address `to`. * * Requirements: * * See {NFTYieldedToken._spendFrom} */ function claimFrom( address account, uint256 tokenId, uint256 amount, address to ) public { _spendFrom(account, tokenId, amount); _mint(to, amount); } /** * @dev Spends `amount` credit from `tokenId`'s balance on behalf of `account`. * * Requirements: * * - `account` must own `tokenId`. * * - `tokenId` must exist. * * - The caller must have allowance for `accounts`'s tokens of at least * `amount`. */ function _spendFrom( address account, uint256 tokenId, uint256 amount ) internal { require(account == nftContract.ownerOf(tokenId), "NFTYieldedToken: Not owner of token"); uint256 currentAllowance = allowance(account, msg.sender); require(currentAllowance >= amount, "NFTYieldedToken: spend amount exceeds allowance"); unchecked { _approve(account, msg.sender, currentAllowance - amount); } _spendCredit(tokenId, amount); } /** * @dev Spends credit from multiple `tokenIds` as specified by `amounts`- * for the consumption of an external service identified by `serviceId`. * Optionally sending additional `data`. * * Requirements: * * See {NFTYieldedToken._spendMultiple} */ function spendMultiple( uint256[] calldata tokenIds, uint256[] calldata amounts, uint256 serviceId, bytes calldata data ) public { uint256 totalSpent = _spendMultiple(msg.sender, tokenIds, amounts); emit TokenSpent(msg.sender, totalSpent, serviceId, data); } /** * @dev Spends credit from multiple `tokenIds` - owned by `account` - as specified by `amounts`- * for the consumption of an external service identified by `serviceId`. * Optionally sending additional `data`. * * Requirements: * * See {NFTYieldedToken._spendMultiple} */ function externalSpendMultiple( address account, uint256[] calldata tokenIds, uint256[] calldata amounts, uint256 serviceId, bytes calldata data ) external onlyRole(EXTERNAL_SPENDER_ROLE) { uint256 totalSpent = _spendMultiple(account, tokenIds, amounts); emit TokenSpent(account, totalSpent, serviceId, data); } /** * @dev Claims credit as tokens from multiple `tokenIds` as specified by `amounts`. * * Requirements: * * See {NFTYieldedToken._spendMultiple} */ function claimMultiple( uint256[] calldata tokenIds, uint256[] calldata amounts ) public { uint256 totalSpent = _spendMultiple(msg.sender, tokenIds, amounts); _mint(msg.sender, totalSpent); } /** * @dev Spends credit from multiple `tokenIds` as specified by `amounts`. * Returns the total amount spent. * * Requirements: * * - `account` must own all of the tokens in the `tokenIds` array. * * - All tokens in `tokenIds` must exist. * * - All tokens must have available credit greater than or equal to the corresponding amounts to transact. */ function _spendMultiple( address account, uint256[] calldata tokenIds, uint256[] calldata amounts ) internal returns (uint256) { for (uint256 i = 0; i < tokenIds.length; i++) { require(account == nftContract.ownerOf(tokenIds[i]), "NFTYieldedToken: Not owner of token"); } return _spendCreditBatch(tokenIds, amounts); } /** * @dev Claims all the available credit as the token for `tokenId`. * * Requirements: * * - The caller must own `tokenId`. * * - `tokenId` must exist. */ function claimAll(uint256 tokenId) public { require(msg.sender == nftContract.ownerOf(tokenId), "NFTYieldedToken: Not owner of token"); uint256 amount = _spendAll(tokenId); _mint(msg.sender, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; /// @custom:security-contact [email protected] contract TimeYieldedCredit is AccessControlEnumerable { bytes32 public constant YIELD_MANAGER_ROLE = keccak256("YIELD_MANAGER_ROLE"); // A mapping between yieldId and it's usedCredit // A yieldId is an integer representing an entity (address, token, etc...) // yieldIds are assigned by an inheriting contract mapping(uint256 => uint256) _usedCredit; // The timeframe in seconds that generates `yield` // Should not be too low as it becomes susceptible to malicious nodes uint256 public yieldStep; // The amount acrrued after `yieldStep` seconds had passed uint256 public yield; // The begining timestamp against which yieldsSteps are calculated uint256 public epoch; // The timestamp after which no more yield will be allowed uint256 public horizon = type(uint256).max; constructor( address yieldManager, uint256 yieldStep_, uint256 yield_, uint256 epoch_, uint256 horizon_) { require(yieldStep_ > 0, "TimeYieldedCredit: yieldStep must be positive"); epoch = epoch_; yieldStep = yieldStep_; yield = yield_; _setHorizon(horizon_); _setupRole(YIELD_MANAGER_ROLE, yieldManager); } /** * @dev Sets a new horizon for the contract as given by `newHorizon`. */ function setHorizon(uint256 newHorizon) public onlyRole(YIELD_MANAGER_ROLE) { _setHorizon(newHorizon); } function _setHorizon(uint256 newHorizon) internal { require(newHorizon > epoch, "TimeYieldedCredit: new horizon precedes epoch"); horizon = newHorizon; } /** * @dev Returns the maximum yield up to this point in time */ function getCurrentYield() public view returns(uint256) { uint256 effectiveTs = block.timestamp < horizon ? block.timestamp : horizon; if (effectiveTs < epoch) { return 0; } unchecked { // uint256 currentYieldStep = (effectiveTs - epoch) / yieldStep; return ((effectiveTs - epoch) / yieldStep) * yield; } } /** * @dev Returns the available credit for `yieldId`, depending on * the current time and how much was already spent by it. */ function _creditFor(uint256 yieldId) internal view returns (uint256) { uint256 currentYield = getCurrentYield(); uint256 currentSpent = _usedCredit[yieldId]; if (currentYield > currentSpent) { unchecked { return currentYield - currentSpent; } } return 0; } /** * @dev Spends `amount` credit from `yieldId`'s balance if available. */ function _spendCredit(uint256 yieldId, uint256 amount) internal { uint256 credit = _creditFor(yieldId); require(amount <= credit, "TimeYieldedCredit: Insufficient credit"); _usedCredit[yieldId] += amount; } /** * @dev Spends all available credit from `yieldId`'s balance. * Returns the amount of credit spent. */ function _spendAll(uint256 yieldId) internal returns (uint256) { uint256 credit = _creditFor(yieldId); require(credit > 0, "TimeYieldedCredit: Insufficient credit"); _usedCredit[yieldId] += credit; return credit; } function _spendCreditBatch( uint256[] calldata yieldIds, uint256[] calldata amounts ) internal returns (uint256) { require(yieldIds.length == amounts.length, "TimeYieldedCredit: Incorrect arguments length"); uint256 totalSpent = 0; uint256 currentYield = getCurrentYield(); for (uint256 i = 0; i < yieldIds.length; i++) { uint256 yieldId = yieldIds[i]; uint256 currentSpent = _usedCredit[yieldId]; // if currentSpent == currentYield then revert // Thrown when no more credit to spend for the specific yieldId require(currentYield > currentSpent, "TimeYieldedCredit: No credit available"); uint256 amount = amounts[i]; uint256 credit; unchecked { credit = currentYield - currentSpent; } // Thrown when there is some credit available for yieldId but not enough require(amount <= credit, "TimeYieldedCredit: Insufficient credit"); _usedCredit[yieldId] += amount; totalSpent += amount; } return totalSpent; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; /// @custom:security-contact [email protected] contract UtilityToken is ERC20, Pausable, AccessControlEnumerable { event TokenSpent(address indexed spender, uint256 amount, uint256 indexed serviceId, bytes data); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant EXTERNAL_SPENDER_ROLE = keccak256("EXTERNAL_SPENDER_ROLE"); constructor( string memory name, string memory symbol, address admin, address pauser, address minter) ERC20(name, symbol) { _setupRole(DEFAULT_ADMIN_ROLE, admin); _setupRole(PAUSER_ROLE, pauser); _setupRole(MINTER_ROLE, minter); } function pause() public onlyRole(PAUSER_ROLE) { _pause(); } function unpause() public onlyRole(PAUSER_ROLE) { _unpause(); } function mint(address to, uint256 amount) public onlyRole(MINTER_ROLE) { _mint(to, amount); } function _beforeTokenTransfer(address from, address to, uint256 amount) internal whenNotPaused override { super._beforeTokenTransfer(from, to, amount); } /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn( uint256 amount, uint256 serviceId, bytes calldata data ) public virtual { _burn(msg.sender, amount); emit TokenSpent(msg.sender, amount, serviceId, data); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom( address account, uint256 amount, uint256 serviceId, bytes calldata data ) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); emit TokenSpent(account, amount, serviceId, data); } /** * @dev Destroys `amount` tokens from `account`. * * See {ERC20-_burn}. * * Requirements: * * - The sender must be granted the EXTERNAL_SPENDER_ROLE role. */ function externalBurnFrom( address account, uint256 amount, uint256 serviceId, bytes calldata data ) external virtual onlyRole(EXTERNAL_SPENDER_ROLE) { _burn(account, amount); emit TokenSpent(account, amount, serviceId, data); } }
// 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; 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; }
// 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 "./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 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; /** * @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 "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// 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; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"pauser","type":"address"},{"internalType":"address","name":"minter","type":"address"},{"internalType":"address","name":"yieldManager","type":"address"},{"internalType":"uint256","name":"epoch_","type":"uint256"},{"internalType":"uint256","name":"horizon_","type":"uint256"},{"internalType":"address","name":"nftContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"serviceId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"TokenSpent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EXTERNAL_SPENDER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROJECT_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"YIELD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"YIELD_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"YIELD_STEP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"serviceId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"serviceId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"claimFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"claimMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"epoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"serviceId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"externalBurnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"serviceId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"externalSpendMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getClaimableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getClaimableForAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentYield","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":[],"name":"horizon","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftContract","outputs":[{"internalType":"contract NFTContract","name":"","type":"address"}],"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":"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":"newHorizon","type":"uint256"}],"name":"setHorizon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"serviceId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"spend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"serviceId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"spendFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"serviceId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"spendMultiple","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":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yield","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yieldStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052600019600c553480156200001757600080fd5b50604051620038dd380380620038dd8339810160408190526200003a9162000643565b6040518060400160405280600581526020016410d212531360da1b8152506040518060400160405280600581526020016410d212531360da1b8152508888888862015180678ac7230489e800008a8a8a85858585858f8f8f8f8f84848160039080519060200190620000ae92919062000580565b508051620000c490600490602084019062000580565b50506005805460ff1916905550620000de60008462000259565b6200010a7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a8362000259565b620001367f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a68262000259565b505050505060008411620001a75760405162461bcd60e51b815260206004820152602d60248201527f54696d655969656c6465644372656469743a207969656c6453746570206d757360448201526c7420626520706f73697469766560981b60648201526084015b60405180910390fd5b600b8290556009849055600a839055620001c1816200029c565b620001ed7f470f4f1717679395b6a9e0700797bfeeaa970f1643e72f5684d687c0be10fe278662000259565b5050600d80546001600160a01b0319166001600160a01b039590951694909417909355506200024c9b50737a105dfd75713c1fdd592e1f9f81232fa3e749459a506a0422ca8b0a00a42500000099506200030a98505050505050505050565b505050505050506200072a565b620002708282620003fe60201b620013941760201c565b6000828152600760209081526040909120620002979183906200139e6200040a821b17901c565b505050565b600b548111620003055760405162461bcd60e51b815260206004820152602d60248201527f54696d655969656c6465644372656469743a206e657720686f72697a6f6e207060448201526c0e4cac6cac8cae640cae0dec6d609b1b60648201526084016200019e565b600c55565b6001600160a01b038216620003625760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016200019e565b62000370600083836200042a565b8060026000828254620003849190620006c6565b90915550506001600160a01b03821660009081526020819052604081208054839290620003b3908490620006c6565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35b5050565b620003fa82826200048a565b600062000421836001600160a01b0384166200052e565b90505b92915050565b60055460ff1615620004725760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016200019e565b620002978383836200029760201b62000c2c1760201c565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16620003fa5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620004ea3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054620005775750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000424565b50600062000424565b8280546200058e90620006ed565b90600052602060002090601f016020900481019282620005b25760008555620005fd565b82601f10620005cd57805160ff1916838001178555620005fd565b82800160010185558215620005fd579182015b82811115620005fd578251825591602001919060010190620005e0565b506200060b9291506200060f565b5090565b5b808211156200060b576000815560010162000610565b80516001600160a01b03811681146200063e57600080fd5b919050565b600080600080600080600060e0888a0312156200065f57600080fd5b6200066a8862000626565b96506200067a6020890162000626565b95506200068a6040890162000626565b94506200069a6060890162000626565b93506080880151925060a08801519150620006b860c0890162000626565b905092959891949750929550565b60008219821115620006e857634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200070257607f821691505b602082108114156200072457634e487b7160e01b600052602260045260246000fd5b50919050565b6131a3806200073a6000396000f3fe608060405234801561001057600080fd5b50600436106103415760003560e01c80637d8ca242116101bd578063a9059cbb116100f9578063d5391393116100a2578063dd62ed3e1161007c578063dd62ed3e14610700578063de8b3c3b14610739578063e63ab1e91461074c578063fe9e96401461077357600080fd5b8063d5391393146106b3578063d547741f146106da578063d56d229d146106ed57600080fd5b8063ba73e9f9116100d3578063ba73e9f91461067a578063c34902631461068d578063ca15c873146106a057600080fd5b8063a9059cbb1461064c578063b4ba8a1e1461065f578063b91503a61461067257600080fd5b806391d1485411610166578063a01edc0d11610140578063a01edc0d1461060c578063a024bde01461061e578063a217fddf14610631578063a457c2d71461063957600080fd5b806391d14854146105b857806395d89b41146105f15780639aab0eac146105f957600080fd5b80638456cb59116101975780638456cb591461057c578063900cf0cf146105845780639010d07c1461058d57600080fd5b80637d8ca2421461054357806380a5a371146105565780638330c0811461056957600080fd5b80632f2ff15d1161028c5780634aee8a9f116102355780635dc6b7221161020f5780635dc6b722146104d65780636930fd2a146104fd57806370a08231146105105780637634a27d1461053957600080fd5b80634aee8a9f146104a557806357db6e1d146104b85780635c975abb146104cb57600080fd5b8063395093511161026657806339509351146104775780633f4ba83a1461048a57806340c10f191461049257600080fd5b80632f2ff15d14610442578063313ce5671461045557806336568abe1461046457600080fd5b80631ce832b5116102ee578063248a9ca3116102c8578063248a9ca3146103f557806328593984146104185780632acf4ca81461042157600080fd5b80631ce832b5146103ca5780631dfa45e3146103d357806323b872dd146103e257600080fd5b806306fdde031161031f57806306fdde031461039a578063095ea7b3146103af57806318160ddd146103c257600080fd5b806301ffc9a71461034657806302f8c5551461036e57806303374a8c14610385575b600080fd5b610359610354366004612927565b61079a565b60405190151581526020015b60405180910390f35b61037760095481565b604051908152602001610365565b6103986103933660046129af565b6107de565b005b6103a2610861565b6040516103659190612a45565b6103596103bd366004612a78565b6108f3565b600254610377565b610377600c5481565b610377678ac7230489e8000081565b6103596103f0366004612aa4565b610909565b610377610403366004612ae5565b60009081526006602052604090206001015490565b610377600a5481565b61043461042f366004612afe565b6109cd565b604051610365929190612b56565b610398610450366004612b84565b610c0a565b60405160128152602001610365565b610398610472366004612b84565b610c31565b610359610485366004612a78565b610c53565b610398610c8f565b6103986104a0366004612a78565b610cc5565b6103986104b3366004612bb4565b610cfa565b6103986104c6366004612c6c565b610d43565b60055460ff16610359565b6103777feb4885d7dea1097acaefd1077d6635e2c5b75f3589c2ae3a67ddf9c31f10bf7881565b61039861050b366004612ae5565b610d65565b61037761051e366004612afe565b6001600160a01b031660009081526020819052604090205490565b6103776201518081565b610377610551366004612ae5565b610e68565b610398610564366004612cd8565b610f7b565b610398610577366004612d1f565b610fd1565b610398611032565b610377600b5481565b6105a061059b366004612dc3565b611065565b6040516001600160a01b039091168152602001610365565b6103596105c6366004612b84565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6103a2611084565b610398610607366004612de5565b611093565b6103776a0422ca8b0a00a42500000081565b61039861062c366004612e2f565b6110ae565b610377600081565b610359610647366004612a78565b611105565b61035961065a366004612a78565b6111b6565b61039861066d3660046129af565b6111c3565b610377611253565b610398610688366004612e73565b61129d565b61039861069b366004612dc3565b61132b565b6103776106ae366004612ae5565b61133f565b6103777f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6103986106e8366004612b84565b611356565b600d546105a0906001600160a01b031681565b61037761070e366004612f29565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610398610747366004612ae5565b611360565b6103777f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6103777f470f4f1717679395b6a9e0700797bfeeaa970f1643e72f5684d687c0be10fe2781565b60006001600160e01b031982167f5a05180f0000000000000000000000000000000000000000000000000000000014806107d857506107d8826113b3565b92915050565b7feb4885d7dea1097acaefd1077d6635e2c5b75f3589c2ae3a67ddf9c31f10bf78610809813361141a565b610813868661149a565b83866001600160a01b03167fd78e4dd8415b4b5b20d48ad08a38585858e256f60c29cd74614b9e0f4497f2bd87868660405161085193929190612f57565b60405180910390a3505050505050565b60606003805461087090612f8d565b80601f016020809104026020016040519081016040528092919081815260200182805461089c90612f8d565b80156108e95780601f106108be576101008083540402835291602001916108e9565b820191906000526020600020905b8154815290600101906020018083116108cc57829003601f168201915b5050505050905090565b600061090033848461162b565b50600192915050565b6000610916848484611783565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156109b55760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6109c2853385840361162b565b506001949350505050565b600d546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526060928392600092909116906370a082319060240160206040518083038186803b158015610a3357600080fd5b505afa158015610a47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6b9190612fc8565b905060008167ffffffffffffffff811115610a8857610a88612fe1565b604051908082528060200260200182016040528015610ab1578160200160208202803683370190505b50905060008267ffffffffffffffff811115610acf57610acf612fe1565b604051908082528060200260200182016040528015610af8578160200160208202803683370190505b50905060005b83811015610bfe57600d546040517f2f745c590000000000000000000000000000000000000000000000000000000081526001600160a01b038981166004830152602482018490526000921690632f745c599060440160206040518083038186803b158015610b6c57600080fd5b505afa158015610b80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba49190612fc8565b9050610baf816119a5565b848381518110610bc157610bc1612ff7565b60200260200101818152505080838381518110610be057610be0612ff7565b60209081029190910101525080610bf681613023565b915050610afe565b50909590945092505050565b610c1482826119dc565b6000828152600760205260409020610c2c908261139e565b505050565b610c3b8282611a02565b6000828152600760205260409020610c2c9082611a8a565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610900918590610c8a90869061303e565b61162b565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610cba813361141a565b610cc2611a9f565b50565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610cf0813361141a565b610c2c8383611b3b565b610d05868686611c26565b82866001600160a01b03167fd78e4dd8415b4b5b20d48ad08a38585858e256f60c29cd74614b9e0f4497f2bd86858560405161085193929190612f57565b6000610d523386868686611dbf565b9050610d5e3382611b3b565b5050505050565b600d546040516331a9108f60e11b8152600481018390526001600160a01b0390911690636352211e9060240160206040518083038186803b158015610da957600080fd5b505afa158015610dbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de19190613056565b6001600160a01b0316336001600160a01b031614610e4d5760405162461bcd60e51b815260206004820152602360248201527f4e46545969656c646564546f6b656e3a204e6f74206f776e6572206f6620746f60448201526235b2b760e91b60648201526084016109ac565b6000610e5882611ef8565b9050610e643382611b3b565b5050565b600d54604080517f18160ddd00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b158015610ec657600080fd5b505afa158015610eda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efe9190612fc8565b8210610f725760405162461bcd60e51b815260206004820152602560248201527f4e46545969656c646564546f6b656e3a204e6f6e2d6578697374656e7420746f60448201527f6b656e496400000000000000000000000000000000000000000000000000000060648201526084016109ac565b6107d8826119a5565b610f85338561149a565b82336001600160a01b03167fd78e4dd8415b4b5b20d48ad08a38585858e256f60c29cd74614b9e0f4497f2bd868585604051610fc393929190612f57565b60405180910390a350505050565b6000610fe03389898989611dbf565b905083336001600160a01b03167fd78e4dd8415b4b5b20d48ad08a38585858e256f60c29cd74614b9e0f4497f2bd83868660405161102093929190612f57565b60405180910390a35050505050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61105d813361141a565b610cc2611f8f565b600082815260076020526040812061107d9083612017565b9392505050565b60606004805461087090612f8d565b61109e848484611c26565b6110a88183611b3b565b50505050565b6110b88585612023565b82336001600160a01b03167fd78e4dd8415b4b5b20d48ad08a38585858e256f60c29cd74614b9e0f4497f2bd8685856040516110f693929190612f57565b60405180910390a35050505050565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561119f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016109ac565b6111ac338585840361162b565b5060019392505050565b6000610900338484611783565b60006111cf863361070e565b9050848110156112465760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e63650000000000000000000000000000000000000000000000000000000060648201526084016109ac565b610809863387840361162b565b600080600c54421061126757600c54611269565b425b9050600b5481101561127d57600091505090565b600a54600954600b5483038161129557611295613073565b040291505090565b7feb4885d7dea1097acaefd1077d6635e2c5b75f3589c2ae3a67ddf9c31f10bf786112c8813361141a565b60006112d78a8a8a8a8a611dbf565b9050848a6001600160a01b03167fd78e4dd8415b4b5b20d48ad08a38585858e256f60c29cd74614b9e0f4497f2bd83878760405161131793929190612f57565b60405180910390a350505050505050505050565b6113358282612023565b610e643382611b3b565b60008181526007602052604081206107d890612115565b610c3b828261211f565b7f470f4f1717679395b6a9e0700797bfeeaa970f1643e72f5684d687c0be10fe2761138b813361141a565b610e6482612145565b610e6482826121c1565b600061107d836001600160a01b038416612263565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806107d857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146107d8565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16610e6457611458816001600160a01b031660146122b2565b6114638360206122b2565b604051602001611474929190613089565b60408051601f198184030181529082905262461bcd60e51b82526109ac91600401612a45565b6001600160a01b0382166115165760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016109ac565b61152282600083612493565b6001600160a01b038216600090815260208190526040902054818110156115b15760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016109ac565b6001600160a01b03831660009081526020819052604081208383039055600280548492906115e090849061310a565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6001600160a01b0383166116a65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109ac565b6001600160a01b0382166117225760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016109ac565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166117ff5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016109ac565b6001600160a01b03821661187b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016109ac565b611886838383612493565b6001600160a01b038316600090815260208190526040902054818110156119155760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016109ac565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061194c90849061303e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161199891815260200190565b60405180910390a36110a8565b6000806119b0611253565b600084815260086020526040902054909150808211156119d257900392915050565b5060009392505050565b6000828152600660205260409020600101546119f8813361141a565b610c2c83836121c1565b6001600160a01b0381163314611a805760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016109ac565b610e6482826124e6565b600061107d836001600160a01b038416612569565b60055460ff16611af15760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016109ac565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038216611b915760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016109ac565b611b9d60008383612493565b8060026000828254611baf919061303e565b90915550506001600160a01b03821660009081526020819052604081208054839290611bdc90849061303e565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600d546040516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e9060240160206040518083038186803b158015611c6a57600080fd5b505afa158015611c7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca29190613056565b6001600160a01b0316836001600160a01b031614611d0e5760405162461bcd60e51b815260206004820152602360248201527f4e46545969656c646564546f6b656e3a204e6f74206f776e6572206f6620746f60448201526235b2b760e91b60648201526084016109ac565b6001600160a01b038316600090815260016020908152604080832033845290915290205481811015611da85760405162461bcd60e51b815260206004820152602f60248201527f4e46545969656c646564546f6b656e3a207370656e6420616d6f756e7420657860448201527f636565647320616c6c6f77616e6365000000000000000000000000000000000060648201526084016109ac565b611db5843384840361162b565b6110a8838361265c565b6000805b84811015611ee157600d546001600160a01b0316636352211e878784818110611dee57611dee612ff7565b905060200201356040518263ffffffff1660e01b8152600401611e1391815260200190565b60206040518083038186803b158015611e2b57600080fd5b505afa158015611e3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e639190613056565b6001600160a01b0316876001600160a01b031614611ecf5760405162461bcd60e51b815260206004820152602360248201527f4e46545969656c646564546f6b656e3a204e6f74206f776e6572206f6620746f60448201526235b2b760e91b60648201526084016109ac565b80611ed981613023565b915050611dc3565b50611eee858585856126f0565b9695505050505050565b600080611f04836119a5565b905060008111611f655760405162461bcd60e51b815260206004820152602660248201527f54696d655969656c6465644372656469743a20496e73756666696369656e742060448201526518dc99591a5d60d21b60648201526084016109ac565b60008381526008602052604081208054839290611f8390849061303e565b90915550909392505050565b60055460ff1615611fe25760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016109ac565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b1e3390565b600061107d83836128fd565b600d546040516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e9060240160206040518083038186803b15801561206757600080fd5b505afa15801561207b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061209f9190613056565b6001600160a01b0316336001600160a01b03161461210b5760405162461bcd60e51b815260206004820152602360248201527f4e46545969656c646564546f6b656e3a204e6f74206f776e6572206f6620746f60448201526235b2b760e91b60648201526084016109ac565b610e64828261265c565b60006107d8825490565b60008281526006602052604090206001015461213b813361141a565b610c2c83836124e6565b600b5481116121bc5760405162461bcd60e51b815260206004820152602d60248201527f54696d655969656c6465644372656469743a206e657720686f72697a6f6e207060448201527f726563656465732065706f63680000000000000000000000000000000000000060648201526084016109ac565b600c55565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16610e645760008281526006602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561221f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546122aa575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107d8565b5060006107d8565b606060006122c1836002613121565b6122cc90600261303e565b67ffffffffffffffff8111156122e4576122e4612fe1565b6040519080825280601f01601f19166020018201604052801561230e576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061234557612345612ff7565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061239057612390612ff7565b60200101906001600160f81b031916908160001a90535060006123b4846002613121565b6123bf90600161303e565b90505b6001811115612444577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061240057612400612ff7565b1a60f81b82828151811061241657612416612ff7565b60200101906001600160f81b031916908160001a90535060049490941c9361243d81613140565b90506123c2565b50831561107d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109ac565b60055460ff1615610c2c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016109ac565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1615610e645760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600183016020526040812054801561265257600061258d60018361310a565b85549091506000906125a19060019061310a565b90508181146126065760008660000182815481106125c1576125c1612ff7565b90600052602060002001549050808760000184815481106125e4576125e4612ff7565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061261757612617613157565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506107d8565b60009150506107d8565b6000612667836119a5565b9050808211156126c85760405162461bcd60e51b815260206004820152602660248201527f54696d655969656c6465644372656469743a20496e73756666696369656e742060448201526518dc99591a5d60d21b60648201526084016109ac565b600083815260086020526040812080548492906126e690849061303e565b9091555050505050565b60008382146127675760405162461bcd60e51b815260206004820152602d60248201527f54696d655969656c6465644372656469743a20496e636f72726563742061726760448201527f756d656e7473206c656e6774680000000000000000000000000000000000000060648201526084016109ac565b600080612772611253565b905060005b868110156128f157600088888381811061279357612793612ff7565b9050602002013590506000600860008381526020019081526020016000205490508084116128295760405162461bcd60e51b815260206004820152602660248201527f54696d655969656c6465644372656469743a204e6f206372656469742061766160448201527f696c61626c65000000000000000000000000000000000000000000000000000060648201526084016109ac565b600088888581811061283d5761283d612ff7565b6020029190910135915050818503808211156128aa5760405162461bcd60e51b815260206004820152602660248201527f54696d655969656c6465644372656469743a20496e73756666696369656e742060448201526518dc99591a5d60d21b60648201526084016109ac565b600084815260086020526040812080548492906128c890849061303e565b909155506128d89050828861303e565b96505050505080806128e990613023565b915050612777565b50909695505050505050565b600082600001828154811061291457612914612ff7565b9060005260206000200154905092915050565b60006020828403121561293957600080fd5b81356001600160e01b03198116811461107d57600080fd5b6001600160a01b0381168114610cc257600080fd5b60008083601f84011261297857600080fd5b50813567ffffffffffffffff81111561299057600080fd5b6020830191508360208285010111156129a857600080fd5b9250929050565b6000806000806000608086880312156129c757600080fd5b85356129d281612951565b94506020860135935060408601359250606086013567ffffffffffffffff8111156129fc57600080fd5b612a0888828901612966565b969995985093965092949392505050565b60005b83811015612a34578181015183820152602001612a1c565b838111156110a85750506000910152565b6020815260008251806020840152612a64816040850160208701612a19565b601f01601f19169190910160400192915050565b60008060408385031215612a8b57600080fd5b8235612a9681612951565b946020939093013593505050565b600080600060608486031215612ab957600080fd5b8335612ac481612951565b92506020840135612ad481612951565b929592945050506040919091013590565b600060208284031215612af757600080fd5b5035919050565b600060208284031215612b1057600080fd5b813561107d81612951565b600081518084526020808501945080840160005b83811015612b4b57815187529582019590820190600101612b2f565b509495945050505050565b604081526000612b696040830185612b1b565b8281036020840152612b7b8185612b1b565b95945050505050565b60008060408385031215612b9757600080fd5b823591506020830135612ba981612951565b809150509250929050565b60008060008060008060a08789031215612bcd57600080fd5b8635612bd881612951565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff811115612c0957600080fd5b612c1589828a01612966565b979a9699509497509295939492505050565b60008083601f840112612c3957600080fd5b50813567ffffffffffffffff811115612c5157600080fd5b6020830191508360208260051b85010111156129a857600080fd5b60008060008060408587031215612c8257600080fd5b843567ffffffffffffffff80821115612c9a57600080fd5b612ca688838901612c27565b90965094506020870135915080821115612cbf57600080fd5b50612ccc87828801612c27565b95989497509550505050565b60008060008060608587031215612cee57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115612d1357600080fd5b612ccc87828801612966565b60008060008060008060006080888a031215612d3a57600080fd5b873567ffffffffffffffff80821115612d5257600080fd5b612d5e8b838c01612c27565b909950975060208a0135915080821115612d7757600080fd5b612d838b838c01612c27565b909750955060408a0135945060608a0135915080821115612da357600080fd5b50612db08a828b01612966565b989b979a50959850939692959293505050565b60008060408385031215612dd657600080fd5b50508035926020909101359150565b60008060008060808587031215612dfb57600080fd5b8435612e0681612951565b935060208501359250604085013591506060850135612e2481612951565b939692955090935050565b600080600080600060808688031215612e4757600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff8111156129fc57600080fd5b60008060008060008060008060a0898b031215612e8f57600080fd5b8835612e9a81612951565b9750602089013567ffffffffffffffff80821115612eb757600080fd5b612ec38c838d01612c27565b909950975060408b0135915080821115612edc57600080fd5b612ee88c838d01612c27565b909750955060608b0135945060808b0135915080821115612f0857600080fd5b50612f158b828c01612966565b999c989b5096995094979396929594505050565b60008060408385031215612f3c57600080fd5b8235612f4781612951565b91506020830135612ba981612951565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b600181811c90821680612fa157607f821691505b60208210811415612fc257634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612fda57600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156130375761303761300d565b5060010190565b600082198211156130515761305161300d565b500190565b60006020828403121561306857600080fd5b815161107d81612951565b634e487b7160e01b600052601260045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516130c1816017850160208801612a19565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516130fe816028840160208801612a19565b01602801949350505050565b60008282101561311c5761311c61300d565b500390565b600081600019048311821515161561313b5761313b61300d565b500290565b60008161314f5761314f61300d565b506000190190565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220403bb84e32f79b10ab3355f12bc6d6b3f16808017c90b73c11df0fa2ffc7286b64736f6c63430008090033000000000000000000000000b3cfbf8dc8f5d2f6607d8d8e251f7aae62a5d10a0000000000000000000000007a105dfd75713c1fdd592e1f9f81232fa3e749450000000000000000000000007a105dfd75713c1fdd592e1f9f81232fa3e749450000000000000000000000007a105dfd75713c1fdd592e1f9f81232fa3e749450000000000000000000000000000000000000000000000000000000061851cc0000000000000000000000000000000000000000000000000000000007453c2c00000000000000000000000002106c00ac7da0a3430ae667879139e832307aeaa
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103415760003560e01c80637d8ca242116101bd578063a9059cbb116100f9578063d5391393116100a2578063dd62ed3e1161007c578063dd62ed3e14610700578063de8b3c3b14610739578063e63ab1e91461074c578063fe9e96401461077357600080fd5b8063d5391393146106b3578063d547741f146106da578063d56d229d146106ed57600080fd5b8063ba73e9f9116100d3578063ba73e9f91461067a578063c34902631461068d578063ca15c873146106a057600080fd5b8063a9059cbb1461064c578063b4ba8a1e1461065f578063b91503a61461067257600080fd5b806391d1485411610166578063a01edc0d11610140578063a01edc0d1461060c578063a024bde01461061e578063a217fddf14610631578063a457c2d71461063957600080fd5b806391d14854146105b857806395d89b41146105f15780639aab0eac146105f957600080fd5b80638456cb59116101975780638456cb591461057c578063900cf0cf146105845780639010d07c1461058d57600080fd5b80637d8ca2421461054357806380a5a371146105565780638330c0811461056957600080fd5b80632f2ff15d1161028c5780634aee8a9f116102355780635dc6b7221161020f5780635dc6b722146104d65780636930fd2a146104fd57806370a08231146105105780637634a27d1461053957600080fd5b80634aee8a9f146104a557806357db6e1d146104b85780635c975abb146104cb57600080fd5b8063395093511161026657806339509351146104775780633f4ba83a1461048a57806340c10f191461049257600080fd5b80632f2ff15d14610442578063313ce5671461045557806336568abe1461046457600080fd5b80631ce832b5116102ee578063248a9ca3116102c8578063248a9ca3146103f557806328593984146104185780632acf4ca81461042157600080fd5b80631ce832b5146103ca5780631dfa45e3146103d357806323b872dd146103e257600080fd5b806306fdde031161031f57806306fdde031461039a578063095ea7b3146103af57806318160ddd146103c257600080fd5b806301ffc9a71461034657806302f8c5551461036e57806303374a8c14610385575b600080fd5b610359610354366004612927565b61079a565b60405190151581526020015b60405180910390f35b61037760095481565b604051908152602001610365565b6103986103933660046129af565b6107de565b005b6103a2610861565b6040516103659190612a45565b6103596103bd366004612a78565b6108f3565b600254610377565b610377600c5481565b610377678ac7230489e8000081565b6103596103f0366004612aa4565b610909565b610377610403366004612ae5565b60009081526006602052604090206001015490565b610377600a5481565b61043461042f366004612afe565b6109cd565b604051610365929190612b56565b610398610450366004612b84565b610c0a565b60405160128152602001610365565b610398610472366004612b84565b610c31565b610359610485366004612a78565b610c53565b610398610c8f565b6103986104a0366004612a78565b610cc5565b6103986104b3366004612bb4565b610cfa565b6103986104c6366004612c6c565b610d43565b60055460ff16610359565b6103777feb4885d7dea1097acaefd1077d6635e2c5b75f3589c2ae3a67ddf9c31f10bf7881565b61039861050b366004612ae5565b610d65565b61037761051e366004612afe565b6001600160a01b031660009081526020819052604090205490565b6103776201518081565b610377610551366004612ae5565b610e68565b610398610564366004612cd8565b610f7b565b610398610577366004612d1f565b610fd1565b610398611032565b610377600b5481565b6105a061059b366004612dc3565b611065565b6040516001600160a01b039091168152602001610365565b6103596105c6366004612b84565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6103a2611084565b610398610607366004612de5565b611093565b6103776a0422ca8b0a00a42500000081565b61039861062c366004612e2f565b6110ae565b610377600081565b610359610647366004612a78565b611105565b61035961065a366004612a78565b6111b6565b61039861066d3660046129af565b6111c3565b610377611253565b610398610688366004612e73565b61129d565b61039861069b366004612dc3565b61132b565b6103776106ae366004612ae5565b61133f565b6103777f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6103986106e8366004612b84565b611356565b600d546105a0906001600160a01b031681565b61037761070e366004612f29565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610398610747366004612ae5565b611360565b6103777f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6103777f470f4f1717679395b6a9e0700797bfeeaa970f1643e72f5684d687c0be10fe2781565b60006001600160e01b031982167f5a05180f0000000000000000000000000000000000000000000000000000000014806107d857506107d8826113b3565b92915050565b7feb4885d7dea1097acaefd1077d6635e2c5b75f3589c2ae3a67ddf9c31f10bf78610809813361141a565b610813868661149a565b83866001600160a01b03167fd78e4dd8415b4b5b20d48ad08a38585858e256f60c29cd74614b9e0f4497f2bd87868660405161085193929190612f57565b60405180910390a3505050505050565b60606003805461087090612f8d565b80601f016020809104026020016040519081016040528092919081815260200182805461089c90612f8d565b80156108e95780601f106108be576101008083540402835291602001916108e9565b820191906000526020600020905b8154815290600101906020018083116108cc57829003601f168201915b5050505050905090565b600061090033848461162b565b50600192915050565b6000610916848484611783565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156109b55760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6109c2853385840361162b565b506001949350505050565b600d546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526060928392600092909116906370a082319060240160206040518083038186803b158015610a3357600080fd5b505afa158015610a47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6b9190612fc8565b905060008167ffffffffffffffff811115610a8857610a88612fe1565b604051908082528060200260200182016040528015610ab1578160200160208202803683370190505b50905060008267ffffffffffffffff811115610acf57610acf612fe1565b604051908082528060200260200182016040528015610af8578160200160208202803683370190505b50905060005b83811015610bfe57600d546040517f2f745c590000000000000000000000000000000000000000000000000000000081526001600160a01b038981166004830152602482018490526000921690632f745c599060440160206040518083038186803b158015610b6c57600080fd5b505afa158015610b80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba49190612fc8565b9050610baf816119a5565b848381518110610bc157610bc1612ff7565b60200260200101818152505080838381518110610be057610be0612ff7565b60209081029190910101525080610bf681613023565b915050610afe565b50909590945092505050565b610c1482826119dc565b6000828152600760205260409020610c2c908261139e565b505050565b610c3b8282611a02565b6000828152600760205260409020610c2c9082611a8a565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610900918590610c8a90869061303e565b61162b565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610cba813361141a565b610cc2611a9f565b50565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610cf0813361141a565b610c2c8383611b3b565b610d05868686611c26565b82866001600160a01b03167fd78e4dd8415b4b5b20d48ad08a38585858e256f60c29cd74614b9e0f4497f2bd86858560405161085193929190612f57565b6000610d523386868686611dbf565b9050610d5e3382611b3b565b5050505050565b600d546040516331a9108f60e11b8152600481018390526001600160a01b0390911690636352211e9060240160206040518083038186803b158015610da957600080fd5b505afa158015610dbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de19190613056565b6001600160a01b0316336001600160a01b031614610e4d5760405162461bcd60e51b815260206004820152602360248201527f4e46545969656c646564546f6b656e3a204e6f74206f776e6572206f6620746f60448201526235b2b760e91b60648201526084016109ac565b6000610e5882611ef8565b9050610e643382611b3b565b5050565b600d54604080517f18160ddd00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b158015610ec657600080fd5b505afa158015610eda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efe9190612fc8565b8210610f725760405162461bcd60e51b815260206004820152602560248201527f4e46545969656c646564546f6b656e3a204e6f6e2d6578697374656e7420746f60448201527f6b656e496400000000000000000000000000000000000000000000000000000060648201526084016109ac565b6107d8826119a5565b610f85338561149a565b82336001600160a01b03167fd78e4dd8415b4b5b20d48ad08a38585858e256f60c29cd74614b9e0f4497f2bd868585604051610fc393929190612f57565b60405180910390a350505050565b6000610fe03389898989611dbf565b905083336001600160a01b03167fd78e4dd8415b4b5b20d48ad08a38585858e256f60c29cd74614b9e0f4497f2bd83868660405161102093929190612f57565b60405180910390a35050505050505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61105d813361141a565b610cc2611f8f565b600082815260076020526040812061107d9083612017565b9392505050565b60606004805461087090612f8d565b61109e848484611c26565b6110a88183611b3b565b50505050565b6110b88585612023565b82336001600160a01b03167fd78e4dd8415b4b5b20d48ad08a38585858e256f60c29cd74614b9e0f4497f2bd8685856040516110f693929190612f57565b60405180910390a35050505050565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561119f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016109ac565b6111ac338585840361162b565b5060019392505050565b6000610900338484611783565b60006111cf863361070e565b9050848110156112465760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e63650000000000000000000000000000000000000000000000000000000060648201526084016109ac565b610809863387840361162b565b600080600c54421061126757600c54611269565b425b9050600b5481101561127d57600091505090565b600a54600954600b5483038161129557611295613073565b040291505090565b7feb4885d7dea1097acaefd1077d6635e2c5b75f3589c2ae3a67ddf9c31f10bf786112c8813361141a565b60006112d78a8a8a8a8a611dbf565b9050848a6001600160a01b03167fd78e4dd8415b4b5b20d48ad08a38585858e256f60c29cd74614b9e0f4497f2bd83878760405161131793929190612f57565b60405180910390a350505050505050505050565b6113358282612023565b610e643382611b3b565b60008181526007602052604081206107d890612115565b610c3b828261211f565b7f470f4f1717679395b6a9e0700797bfeeaa970f1643e72f5684d687c0be10fe2761138b813361141a565b610e6482612145565b610e6482826121c1565b600061107d836001600160a01b038416612263565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806107d857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146107d8565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16610e6457611458816001600160a01b031660146122b2565b6114638360206122b2565b604051602001611474929190613089565b60408051601f198184030181529082905262461bcd60e51b82526109ac91600401612a45565b6001600160a01b0382166115165760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016109ac565b61152282600083612493565b6001600160a01b038216600090815260208190526040902054818110156115b15760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016109ac565b6001600160a01b03831660009081526020819052604081208383039055600280548492906115e090849061310a565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6001600160a01b0383166116a65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109ac565b6001600160a01b0382166117225760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016109ac565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166117ff5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016109ac565b6001600160a01b03821661187b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016109ac565b611886838383612493565b6001600160a01b038316600090815260208190526040902054818110156119155760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016109ac565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061194c90849061303e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161199891815260200190565b60405180910390a36110a8565b6000806119b0611253565b600084815260086020526040902054909150808211156119d257900392915050565b5060009392505050565b6000828152600660205260409020600101546119f8813361141a565b610c2c83836121c1565b6001600160a01b0381163314611a805760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016109ac565b610e6482826124e6565b600061107d836001600160a01b038416612569565b60055460ff16611af15760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016109ac565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038216611b915760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016109ac565b611b9d60008383612493565b8060026000828254611baf919061303e565b90915550506001600160a01b03821660009081526020819052604081208054839290611bdc90849061303e565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600d546040516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e9060240160206040518083038186803b158015611c6a57600080fd5b505afa158015611c7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca29190613056565b6001600160a01b0316836001600160a01b031614611d0e5760405162461bcd60e51b815260206004820152602360248201527f4e46545969656c646564546f6b656e3a204e6f74206f776e6572206f6620746f60448201526235b2b760e91b60648201526084016109ac565b6001600160a01b038316600090815260016020908152604080832033845290915290205481811015611da85760405162461bcd60e51b815260206004820152602f60248201527f4e46545969656c646564546f6b656e3a207370656e6420616d6f756e7420657860448201527f636565647320616c6c6f77616e6365000000000000000000000000000000000060648201526084016109ac565b611db5843384840361162b565b6110a8838361265c565b6000805b84811015611ee157600d546001600160a01b0316636352211e878784818110611dee57611dee612ff7565b905060200201356040518263ffffffff1660e01b8152600401611e1391815260200190565b60206040518083038186803b158015611e2b57600080fd5b505afa158015611e3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e639190613056565b6001600160a01b0316876001600160a01b031614611ecf5760405162461bcd60e51b815260206004820152602360248201527f4e46545969656c646564546f6b656e3a204e6f74206f776e6572206f6620746f60448201526235b2b760e91b60648201526084016109ac565b80611ed981613023565b915050611dc3565b50611eee858585856126f0565b9695505050505050565b600080611f04836119a5565b905060008111611f655760405162461bcd60e51b815260206004820152602660248201527f54696d655969656c6465644372656469743a20496e73756666696369656e742060448201526518dc99591a5d60d21b60648201526084016109ac565b60008381526008602052604081208054839290611f8390849061303e565b90915550909392505050565b60055460ff1615611fe25760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016109ac565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b1e3390565b600061107d83836128fd565b600d546040516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e9060240160206040518083038186803b15801561206757600080fd5b505afa15801561207b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061209f9190613056565b6001600160a01b0316336001600160a01b03161461210b5760405162461bcd60e51b815260206004820152602360248201527f4e46545969656c646564546f6b656e3a204e6f74206f776e6572206f6620746f60448201526235b2b760e91b60648201526084016109ac565b610e64828261265c565b60006107d8825490565b60008281526006602052604090206001015461213b813361141a565b610c2c83836124e6565b600b5481116121bc5760405162461bcd60e51b815260206004820152602d60248201527f54696d655969656c6465644372656469743a206e657720686f72697a6f6e207060448201527f726563656465732065706f63680000000000000000000000000000000000000060648201526084016109ac565b600c55565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16610e645760008281526006602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561221f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546122aa575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107d8565b5060006107d8565b606060006122c1836002613121565b6122cc90600261303e565b67ffffffffffffffff8111156122e4576122e4612fe1565b6040519080825280601f01601f19166020018201604052801561230e576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061234557612345612ff7565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061239057612390612ff7565b60200101906001600160f81b031916908160001a90535060006123b4846002613121565b6123bf90600161303e565b90505b6001811115612444577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061240057612400612ff7565b1a60f81b82828151811061241657612416612ff7565b60200101906001600160f81b031916908160001a90535060049490941c9361243d81613140565b90506123c2565b50831561107d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109ac565b60055460ff1615610c2c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016109ac565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1615610e645760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600183016020526040812054801561265257600061258d60018361310a565b85549091506000906125a19060019061310a565b90508181146126065760008660000182815481106125c1576125c1612ff7565b90600052602060002001549050808760000184815481106125e4576125e4612ff7565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061261757612617613157565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506107d8565b60009150506107d8565b6000612667836119a5565b9050808211156126c85760405162461bcd60e51b815260206004820152602660248201527f54696d655969656c6465644372656469743a20496e73756666696369656e742060448201526518dc99591a5d60d21b60648201526084016109ac565b600083815260086020526040812080548492906126e690849061303e565b9091555050505050565b60008382146127675760405162461bcd60e51b815260206004820152602d60248201527f54696d655969656c6465644372656469743a20496e636f72726563742061726760448201527f756d656e7473206c656e6774680000000000000000000000000000000000000060648201526084016109ac565b600080612772611253565b905060005b868110156128f157600088888381811061279357612793612ff7565b9050602002013590506000600860008381526020019081526020016000205490508084116128295760405162461bcd60e51b815260206004820152602660248201527f54696d655969656c6465644372656469743a204e6f206372656469742061766160448201527f696c61626c65000000000000000000000000000000000000000000000000000060648201526084016109ac565b600088888581811061283d5761283d612ff7565b6020029190910135915050818503808211156128aa5760405162461bcd60e51b815260206004820152602660248201527f54696d655969656c6465644372656469743a20496e73756666696369656e742060448201526518dc99591a5d60d21b60648201526084016109ac565b600084815260086020526040812080548492906128c890849061303e565b909155506128d89050828861303e565b96505050505080806128e990613023565b915050612777565b50909695505050505050565b600082600001828154811061291457612914612ff7565b9060005260206000200154905092915050565b60006020828403121561293957600080fd5b81356001600160e01b03198116811461107d57600080fd5b6001600160a01b0381168114610cc257600080fd5b60008083601f84011261297857600080fd5b50813567ffffffffffffffff81111561299057600080fd5b6020830191508360208285010111156129a857600080fd5b9250929050565b6000806000806000608086880312156129c757600080fd5b85356129d281612951565b94506020860135935060408601359250606086013567ffffffffffffffff8111156129fc57600080fd5b612a0888828901612966565b969995985093965092949392505050565b60005b83811015612a34578181015183820152602001612a1c565b838111156110a85750506000910152565b6020815260008251806020840152612a64816040850160208701612a19565b601f01601f19169190910160400192915050565b60008060408385031215612a8b57600080fd5b8235612a9681612951565b946020939093013593505050565b600080600060608486031215612ab957600080fd5b8335612ac481612951565b92506020840135612ad481612951565b929592945050506040919091013590565b600060208284031215612af757600080fd5b5035919050565b600060208284031215612b1057600080fd5b813561107d81612951565b600081518084526020808501945080840160005b83811015612b4b57815187529582019590820190600101612b2f565b509495945050505050565b604081526000612b696040830185612b1b565b8281036020840152612b7b8185612b1b565b95945050505050565b60008060408385031215612b9757600080fd5b823591506020830135612ba981612951565b809150509250929050565b60008060008060008060a08789031215612bcd57600080fd5b8635612bd881612951565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff811115612c0957600080fd5b612c1589828a01612966565b979a9699509497509295939492505050565b60008083601f840112612c3957600080fd5b50813567ffffffffffffffff811115612c5157600080fd5b6020830191508360208260051b85010111156129a857600080fd5b60008060008060408587031215612c8257600080fd5b843567ffffffffffffffff80821115612c9a57600080fd5b612ca688838901612c27565b90965094506020870135915080821115612cbf57600080fd5b50612ccc87828801612c27565b95989497509550505050565b60008060008060608587031215612cee57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115612d1357600080fd5b612ccc87828801612966565b60008060008060008060006080888a031215612d3a57600080fd5b873567ffffffffffffffff80821115612d5257600080fd5b612d5e8b838c01612c27565b909950975060208a0135915080821115612d7757600080fd5b612d838b838c01612c27565b909750955060408a0135945060608a0135915080821115612da357600080fd5b50612db08a828b01612966565b989b979a50959850939692959293505050565b60008060408385031215612dd657600080fd5b50508035926020909101359150565b60008060008060808587031215612dfb57600080fd5b8435612e0681612951565b935060208501359250604085013591506060850135612e2481612951565b939692955090935050565b600080600080600060808688031215612e4757600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff8111156129fc57600080fd5b60008060008060008060008060a0898b031215612e8f57600080fd5b8835612e9a81612951565b9750602089013567ffffffffffffffff80821115612eb757600080fd5b612ec38c838d01612c27565b909950975060408b0135915080821115612edc57600080fd5b612ee88c838d01612c27565b909750955060608b0135945060808b0135915080821115612f0857600080fd5b50612f158b828c01612966565b999c989b5096995094979396929594505050565b60008060408385031215612f3c57600080fd5b8235612f4781612951565b91506020830135612ba981612951565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b600181811c90821680612fa157607f821691505b60208210811415612fc257634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612fda57600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156130375761303761300d565b5060010190565b600082198211156130515761305161300d565b500190565b60006020828403121561306857600080fd5b815161107d81612951565b634e487b7160e01b600052601260045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516130c1816017850160208801612a19565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516130fe816028840160208801612a19565b01602801949350505050565b60008282101561311c5761311c61300d565b500390565b600081600019048311821515161561313b5761313b61300d565b500290565b60008161314f5761314f61300d565b506000190190565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220403bb84e32f79b10ab3355f12bc6d6b3f16808017c90b73c11df0fa2ffc7286b64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b3cfbf8dc8f5d2f6607d8d8e251f7aae62a5d10a0000000000000000000000007a105dfd75713c1fdd592e1f9f81232fa3e749450000000000000000000000007a105dfd75713c1fdd592e1f9f81232fa3e749450000000000000000000000007a105dfd75713c1fdd592e1f9f81232fa3e749450000000000000000000000000000000000000000000000000000000061851cc0000000000000000000000000000000000000000000000000000000007453c2c00000000000000000000000002106c00ac7da0a3430ae667879139e832307aeaa
-----Decoded View---------------
Arg [0] : admin (address): 0xB3CfBf8dC8F5d2f6607d8d8E251F7aae62a5d10a
Arg [1] : pauser (address): 0x7A105DFD75713c1FDd592E1F9f81232Fa3E74945
Arg [2] : minter (address): 0x7A105DFD75713c1FDd592E1F9f81232Fa3E74945
Arg [3] : yieldManager (address): 0x7A105DFD75713c1FDd592E1F9f81232Fa3E74945
Arg [4] : epoch_ (uint256): 1636113600
Arg [5] : horizon_ (uint256): 1951646400
Arg [6] : nftContractAddress (address): 0x2106C00Ac7dA0A3430aE667879139E832307AeAa
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000b3cfbf8dc8f5d2f6607d8d8e251f7aae62a5d10a
Arg [1] : 0000000000000000000000007a105dfd75713c1fdd592e1f9f81232fa3e74945
Arg [2] : 0000000000000000000000007a105dfd75713c1fdd592e1f9f81232fa3e74945
Arg [3] : 0000000000000000000000007a105dfd75713c1fdd592e1f9f81232fa3e74945
Arg [4] : 0000000000000000000000000000000000000000000000000000000061851cc0
Arg [5] : 000000000000000000000000000000000000000000000000000000007453c2c0
Arg [6] : 0000000000000000000000002106c00ac7da0a3430ae667879139e832307aeaa
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.