Contract Overview
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Contract Name:
MarketingFund
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "./DistributionManagement.sol"; contract MarketingFund is DistributionManagement { constructor() DistributionManagement() {} function requestDistribution( uint256 amount, address toAddress, string memory description ) public only(MANAGER_ROLE) { _requestDistribution(amount, toAddress, description); } function approveDistributionRequest(uint256 requestID) public only(MANAGER_ROLE) { _approveDistributionRequest(requestID); } function transferTo(address toAddress, uint256 amount) public onlyRole(WITHDRAWAL_MANAGER_ROLE) { _transferTo(toAddress, amount); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract DistributionManagement is AccessControlEnumerable { IERC20 internal ERC20_TOKEN; uint256 internal _allocatedTokens; uint256 internal _requiredApprovals = 2; bytes32 public constant ALLOCATOR_ROLE = keccak256("ALLOCATOR_ROLE"); bytes32 public constant WITHDRAWAL_MANAGER_ROLE = keccak256("WITHDRAWAL_MANAGER_ROLE"); bytes32 public constant MANAGER_ROLE = keccak256("MANAGER_ROLE"); mapping(address => uint256) public holderBalance; uint256 public poolBalance; uint256[] internal _pendingDistributions; struct DistributionRequest { uint256 id; address recipient; uint256 amount; string description; uint256 approvalsRequired; uint256 approvalsReceived; uint256 distributionDate; address requestor; } uint256 internal currentRequestId = 1; // all request Ids for given address mapping(address => uint256[]) internal _userRequests; // Distribution Request from Request Id mapping(uint256 => DistributionRequest) internal _distributionRequest; // set to true when a user approves a distribution request _requestApproved[request id][address] mapping(uint256 => mapping(address => bool)) internal _requestApproved; modifier only(bytes32 role) { require( hasRole(role, _msgSender()), "Sender does not have appropriate role" ); _; } constructor() { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); } function contractBalance() public view returns (uint256) { return ERC20_TOKEN.balanceOf(address(this)); } function setToken(address tokenAddress) public only(DEFAULT_ADMIN_ROLE) { ERC20_TOKEN = IERC20(tokenAddress); } function allocateTokens() public virtual only(ALLOCATOR_ROLE) { _allocateTokens(); } function setRequiredApprovals(uint256 numApprovals) public only(DEFAULT_ADMIN_ROLE) { _requiredApprovals = numApprovals; } function setNewAdmin(address newAdmin) public only(DEFAULT_ADMIN_ROLE) { revokeRole(DEFAULT_ADMIN_ROLE, getRoleMember(DEFAULT_ADMIN_ROLE, 0)); _setupRole(DEFAULT_ADMIN_ROLE, newAdmin); } function addManager(address manager) public only(DEFAULT_ADMIN_ROLE) { grantRole(MANAGER_ROLE, manager); } function removeManager(address manager) public only(DEFAULT_ADMIN_ROLE) { revokeRole(MANAGER_ROLE, manager); } function addAllocatorAndWithdrawer( address allocatorAddress, address withdrawalManagerAddress ) public only(DEFAULT_ADMIN_ROLE) { grantRole(ALLOCATOR_ROLE, allocatorAddress); grantRole(WITHDRAWAL_MANAGER_ROLE, withdrawalManagerAddress); } function addAllocator(address allocatorAddress) public only(DEFAULT_ADMIN_ROLE) { grantRole(ALLOCATOR_ROLE, allocatorAddress); } function addWithdrawer(address withdrawerAddress) public only(DEFAULT_ADMIN_ROLE) { grantRole(WITHDRAWAL_MANAGER_ROLE, withdrawerAddress); } function _requestDistribution( uint256 amount, address toAddress, string memory description ) internal { DistributionRequest memory dr; dr.id = currentRequestId; dr.recipient = toAddress; dr.amount = amount; dr.description = description; dr.approvalsRequired = _requiredApprovals; dr.approvalsReceived = 1; dr.requestor = _msgSender(); // requester auto-approves request _requestApproved[currentRequestId][_msgSender()] = true; _userRequests[_msgSender()].push(currentRequestId); _distributionRequest[currentRequestId] = dr; currentRequestId++; } function getPendingDistributions() public view virtual returns (uint256[] memory) { return _pendingDistributions; } function getRequiredApprovals() public view virtual returns (uint256) { return _requiredApprovals; } function getRequestsFor(address requestor) public view virtual returns (uint256[] memory) { return _userRequests[requestor]; } function getRequests() public view virtual returns (uint256[] memory) { return _userRequests[_msgSender()]; } function pushPendingDistribution(uint256 pendingIndex) public { require( _pendingDistributions[pendingIndex] != 0, "no distribution at index" ); DistributionRequest storage dr = _distributionRequest[ _pendingDistributions[pendingIndex] ]; if ( dr.approvalsReceived >= dr.approvalsRequired && dr.distributionDate == 0 ) { if (poolBalance >= dr.amount) { _transferTo(dr.recipient, dr.amount); dr.distributionDate = block.timestamp; _removeRequestFromUserList(dr.id, dr.requestor); _pendingDistributions[pendingIndex] = 0; } } } function _removeRequestFromUserList(uint256 requestID, address user) internal { for (uint256 i = 0; i < _userRequests[user].length; i++) { if (requestID == _userRequests[user][i]) { _userRequests[user][i] = 0; } } } function _approveDistributionRequest(uint256 requestID) internal { // This function should only be called by disgnated "approvers" as determined by the particular contract require( !_requestApproved[requestID][_msgSender()], "Request already approved by sender" ); DistributionRequest storage dr = _distributionRequest[requestID]; require( dr.approvalsReceived < dr.approvalsRequired, "distribution already approved" ); _requestApproved[requestID][_msgSender()] = true; dr.approvalsReceived++; if ( dr.approvalsReceived >= dr.approvalsRequired && dr.distributionDate == 0 ) { if (poolBalance >= dr.amount) { _transferTo(dr.recipient, dr.amount); dr.distributionDate = block.timestamp; _removeRequestFromUserList(dr.id, dr.requestor); } else { // add to pending requests _pendingDistributions.push(dr.id); } } } function _transferTo(address toAddress, uint256 amount) internal { require( ERC20_TOKEN.balanceOf(address(this)) >= poolBalance, "contract balance too low" ); ERC20_TOKEN.transfer(toAddress, amount); poolBalance -= amount; _allocatedTokens -= amount; } function transferERC20( address ERC20Address, address toAddress, uint256 amount ) public onlyRole(WITHDRAWAL_MANAGER_ROLE) { require( ERC20Address != address(ERC20_TOKEN), "cannot use for primary token" ); IERC20 token = IERC20(ERC20Address); token.transfer(toAddress, amount); } function withdrawETHTo(address payable toAddress, uint256 amount) public onlyRole(WITHDRAWAL_MANAGER_ROLE) { toAddress.transfer(amount); } function hasUnallocatedTokens() public view returns (bool) { bool hasTokens = contractBalance() > _allocatedTokens; return hasTokens; } function _allocateTokens() internal { require(contractBalance() > _allocatedTokens, "No tokens to allocate"); uint256 tokensToAllocate = contractBalance() - _allocatedTokens; poolBalance += tokensToAllocate; _allocatedTokens += tokensToAllocate; } }
// 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]; } // 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); } // 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)))); } // 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)); } }
// 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 "./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 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; /* * @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 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 "./AccessControl.sol"; import "../utils/structs/EnumerableSet.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable { function getRoleMember(bytes32 role, uint256 index) external view returns (address); function getRoleMemberCount(bytes32 role) external view returns (uint256); } /** * @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 { super.grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {revokeRole} to track enumerable memberships */ function revokeRole(bytes32 role, address account) public virtual override { super.revokeRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {renounceRole} to track enumerable memberships */ function renounceRole(bytes32 role, address account) public virtual override { 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 "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { function hasRole(bytes32 role, address account) external view returns (bool); function getRoleAdmin(bytes32 role) external view returns (bytes32); function grantRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function renounceRole(bytes32 role, address account) external; } /** * @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 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 {_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 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]{20}) is missing role (0x[0-9a-f]{32})$/ * * _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]{20}) is missing role (0x[0-9a-f]{32})$/ */ 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 { emit RoleAdminChanged(role, getRoleAdmin(role), adminRole); _roles[role].adminRole = 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()); } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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"},{"inputs":[],"name":"ALLOCATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAWAL_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"allocatorAddress","type":"address"}],"name":"addAllocator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"allocatorAddress","type":"address"},{"internalType":"address","name":"withdrawalManagerAddress","type":"address"}],"name":"addAllocatorAndWithdrawer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"manager","type":"address"}],"name":"addManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"withdrawerAddress","type":"address"}],"name":"addWithdrawer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allocateTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestID","type":"uint256"}],"name":"approveDistributionRequest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPendingDistributions","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRequests","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"requestor","type":"address"}],"name":"getRequestsFor","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRequiredApprovals","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":"hasUnallocatedTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"holderBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pendingIndex","type":"uint256"}],"name":"pushPendingDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"manager","type":"address"}],"name":"removeManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"string","name":"description","type":"string"}],"name":"requestDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"setNewAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numApprovals","type":"uint256"}],"name":"setRequiredApprovals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"setToken","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":[{"internalType":"address","name":"ERC20Address","type":"address"},{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"toAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETHTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600260045560016008553480156200001b57600080fd5b50620000296000336200002f565b62000194565b6200004682826200007260201b62000cc31760201c565b60008281526001602090815260409091206200006d91839062000ccd62000082821b17901c565b505050565b6200007e8282620000a2565b5050565b600062000099836001600160a01b03841662000142565b90505b92915050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200007e576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620000fe3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546200018b575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200009c565b5060006200009c565b611e5080620001a46000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c80638b1e24ab11610125578063ab6ddfa8116100ad578063c81cbaa11161007c578063c81cbaa11461046d578063ca15c87314610482578063d418ca5414610495578063d547741f1461049d578063ec87621c146104b057600080fd5b8063ab6ddfa814610412578063ac18de4314610432578063ad7805e814610445578063c2aebf241461045a57600080fd5b806391d14854116100f457806391d14854146103c857806396365d44146103db5780639db5dbe4146103e4578063a217fddf146103f7578063a7b5dd0b146103ff57600080fd5b80638b1e24ab1461037a5780638b7afe2e146103825780638eec99c81461038a5780639010d07c1461039d57600080fd5b80632f2ff15d116101a85780634fede8df116101775780634fede8df1461032457806356788a8c14610337578063697b894a1461034a5780636bde5f0d1461035d5780638813ce121461037257600080fd5b80632f2ff15d146102d857806336568abe146102eb57806341f44125146102fe5780634f2a27ae1461031157600080fd5b8063222a242e116101e4578063222a242e1461026e578063248a9ca3146102815780632ccb1b30146102b25780632d06177a146102c557600080fd5b806301ffc9a714610216578063038949221461023e578063144fa6d7146102485780631d7983f71461025b575b600080fd5b6102296102243660046118e0565b6104c5565b60405190151581526020015b60405180910390f35b6102466104f0565b005b61024661025636600461191f565b610539565b61024661026936600461193c565b610584565b61024661027c36600461193c565b6105c6565b6102a461028f36600461193c565b60009081526020819052604090206001015490565b604051908152602001610235565b6102466102c0366004611955565b6105f4565b6102466102d336600461191f565b61061c565b6102466102e6366004611981565b610658565b6102466102f9366004611981565b61067a565b61024661030c36600461191f565b61069c565b61024661031f3660046119c7565b6106dc565b610246610332366004611a94565b610722565b61024661034536600461191f565b61077a565b610246610358366004611955565b6107ba565b610365610809565b6040516102359190611ac2565b610365610861565b6004546102a4565b6102a46108c0565b61024661039836600461191f565b610932565b6103b06103ab366004611b06565b610974565b6040516001600160a01b039091168152602001610235565b6102296103d6366004611981565b610993565b6102a460065481565b6102466103f2366004611b28565b6109bc565b6102a4600081565b61024661040d36600461193c565b610ab1565b6102a461042036600461191f565b60056020526000908152604090205481565b61024661044036600461191f565b610be1565b6102a4600080516020611dbb83398151915281565b61036561046836600461191f565b610c21565b6102a4600080516020611ddb83398151915281565b6102a461049036600461193c565b610c8d565b610229610ca4565b6102466104ab366004611981565b610cb9565b6102a4600080516020611dfb83398151915281565b60006001600160e01b03198216635a05180f60e01b14806104ea57506104ea82610ce2565b92915050565b600080516020611ddb8339815191526105098133610993565b61052e5760405162461bcd60e51b815260040161052590611b69565b60405180910390fd5b610536610d17565b50565b60006105458133610993565b6105615760405162461bcd60e51b815260040161052590611b69565b50600280546001600160a01b0319166001600160a01b0392909216919091179055565b600080516020611dfb83398151915261059d8133610993565b6105b95760405162461bcd60e51b815260040161052590611b69565b6105c282610db3565b5050565b60006105d28133610993565b6105ee5760405162461bcd60e51b815260040161052590611b69565b50600455565b600080516020611dbb83398151915261060d8133610f66565b6106178383610fca565b505050565b60006106288133610993565b6106445760405162461bcd60e51b815260040161052590611b69565b6105c2600080516020611dfb833981519152835b6106628282611133565b60008281526001602052604090206106179082610ccd565b6106848282611159565b600082815260016020526040902061061790826111d3565b60006106a88133610993565b6106c45760405162461bcd60e51b815260040161052590611b69565b6105c2600080516020611ddb83398151915283610658565b600080516020611dfb8339815191526106f58133610993565b6107115760405162461bcd60e51b815260040161052590611b69565b61071c8484846111e8565b50505050565b600061072e8133610993565b61074a5760405162461bcd60e51b815260040161052590611b69565b610762600080516020611ddb83398151915284610658565b610617600080516020611dbb83398151915283610658565b60006107868133610993565b6107a25760405162461bcd60e51b815260040161052590611b69565b6105c2600080516020611dbb83398151915283610658565b600080516020611dbb8339815191526107d38133610f66565b6040516001600160a01b0384169083156108fc029084906000818181858888f1935050505015801561071c573d6000803e3d6000fd5b6060600780548060200260200160405190810160405280929190818152602001828054801561085757602002820191906000526020600020905b815481526020019060010190808311610843575b5050505050905090565b336000908152600960209081526040918290208054835181840281018401909452808452606093928301828280156108575760200282019190600052602060002090815481526020019060010190808311610843575050505050905090565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610909573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092d9190611bae565b905090565b600061093e8133610993565b61095a5760405162461bcd60e51b815260040161052590611b69565b61096960006104ab8180610974565b6105c2600083611368565b600082815260016020526040812061098c9083611372565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600080516020611dbb8339815191526109d58133610f66565b6002546001600160a01b0385811691161415610a335760405162461bcd60e51b815260206004820152601c60248201527f63616e6e6f742075736520666f72207072696d61727920746f6b656e000000006044820152606401610525565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820184905285919082169063a9059cbb906044016020604051808303816000875af1158015610a85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa99190611bc7565b505050505050565b60078181548110610ac457610ac4611be9565b906000526020600020015460001415610b1f5760405162461bcd60e51b815260206004820152601860248201527f6e6f20646973747269627574696f6e20617420696e64657800000000000000006044820152606401610525565b6000600a600060078481548110610b3857610b38611be9565b9060005260206000200154815260200190815260200160002090508060040154816005015410158015610b6d57506006810154155b156105c2578060020154600654106105c25760018101546002820154610b9c916001600160a01b031690610fca565b42600682015580546007820154610bbc91906001600160a01b031661137e565b600060078381548110610bd157610bd1611be9565b6000918252602090912001555050565b6000610bed8133610993565b610c095760405162461bcd60e51b815260040161052590611b69565b6105c2600080516020611dfb83398151915283610cb9565b6001600160a01b038116600090815260096020908152604091829020805483518184028101840190945280845260609392830182828015610c8157602002820191906000526020600020905b815481526020019060010190808311610c6d575b50505050509050919050565b60008181526001602052604081206104ea90611426565b600080600354610cb26108c0565b1192915050565b6106848282611430565b6105c28282611456565b600061098c836001600160a01b0384166114da565b60006001600160e01b03198216637965db0b60e01b14806104ea57506301ffc9a760e01b6001600160e01b03198316146104ea565b600354610d226108c0565b11610d675760405162461bcd60e51b81526020600482015260156024820152744e6f20746f6b656e7320746f20616c6c6f6361746560581b6044820152606401610525565b6000600354610d746108c0565b610d7e9190611c15565b90508060066000828254610d929190611c2c565b925050819055508060036000828254610dab9190611c2c565b909155505050565b6000818152600b6020908152604080832033845290915290205460ff1615610e285760405162461bcd60e51b815260206004820152602260248201527f5265717565737420616c726561647920617070726f7665642062792073656e6460448201526132b960f11b6064820152608401610525565b6000818152600a602052604090206004810154600582015410610e8d5760405162461bcd60e51b815260206004820152601d60248201527f646973747269627574696f6e20616c726561647920617070726f7665640000006044820152606401610525565b6000828152600b602090815260408083203384529091528120805460ff1916600117905560058201805491610ec183611c44565b91905055508060040154816005015410158015610ee057506006810154155b156105c257806002015460065410610f2f5760018101546002820154610f0f916001600160a01b031690610fca565b426006820155805460078201546105c291906001600160a01b031661137e565b54600780546001810182556000919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688015550565b610f708282610993565b6105c257610f88816001600160a01b03166014611529565b610f93836020611529565b604051602001610fa4929190611c8b565b60408051601f198184030181529082905262461bcd60e51b825261052591600401611d00565b6006546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611015573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110399190611bae565b10156110875760405162461bcd60e51b815260206004820152601860248201527f636f6e74726163742062616c616e636520746f6f206c6f7700000000000000006044820152606401610525565b60025460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af11580156110da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fe9190611bc7565b5080600660008282546111119190611c15565b92505081905550806003600082825461112a9190611c15565b90915550505050565b60008281526020819052604090206001015461114f8133610f66565b6106178383611456565b6001600160a01b03811633146111c95760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610525565b6105c282826116c5565b600061098c836001600160a01b03841661172a565b6112426040518061010001604052806000815260200160006001600160a01b03168152602001600081526020016060815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b600880548083526001600160a01b03858116602080860191825260408087018a81526060880189815260045460808a0152600160a08a018190523360e08b018190526000988952600b86528489209089528552838820805460ff19168217905560098552838820895481548084018355918a52868a209091015597548752600a84529190952087518155925195830180546001600160a01b031916969094169590951790925591516002830155915180518493611306926003850192910190611847565b506080820151600482015560a0820151600582015560c0820151600682015560e090910151600790910180546001600160a01b0319166001600160a01b039092169190911790556008805490600061135d83611c44565b919050555050505050565b6106628282610cc3565b600061098c838361181d565b60005b6001600160a01b038216600090815260096020526040902054811015610617576001600160a01b03821660009081526009602052604090208054829081106113cb576113cb611be9565b9060005260206000200154831415611414576001600160a01b038216600090815260096020526040812080548390811061140757611407611be9565b6000918252602090912001555b8061141e81611c44565b915050611381565b60006104ea825490565b60008281526020819052604090206001015461144c8133610f66565b61061783836116c5565b6114608282610993565b6105c2576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556114963390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054611521575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556104ea565b5060006104ea565b60606000611538836002611d33565b611543906002611c2c565b67ffffffffffffffff81111561155b5761155b6119b1565b6040519080825280601f01601f191660200182016040528015611585576020820181803683370190505b509050600360fc1b816000815181106115a0576115a0611be9565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106115cf576115cf611be9565b60200101906001600160f81b031916908160001a90535060006115f3846002611d33565b6115fe906001611c2c565b90505b6001811115611676576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061163257611632611be9565b1a60f81b82828151811061164857611648611be9565b60200101906001600160f81b031916908160001a90535060049490941c9361166f81611d52565b9050611601565b50831561098c5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610525565b6116cf8282610993565b156105c2576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600183016020526040812054801561181357600061174e600183611c15565b855490915060009061176290600190611c15565b90508181146117c757600086600001828154811061178257611782611be9565b90600052602060002001549050808760000184815481106117a5576117a5611be9565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806117d8576117d8611d69565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506104ea565b60009150506104ea565b600082600001828154811061183457611834611be9565b9060005260206000200154905092915050565b82805461185390611d7f565b90600052602060002090601f01602090048101928261187557600085556118bb565b82601f1061188e57805160ff19168380011785556118bb565b828001600101855582156118bb579182015b828111156118bb5782518255916020019190600101906118a0565b506118c79291506118cb565b5090565b5b808211156118c757600081556001016118cc565b6000602082840312156118f257600080fd5b81356001600160e01b03198116811461098c57600080fd5b6001600160a01b038116811461053657600080fd5b60006020828403121561193157600080fd5b813561098c8161190a565b60006020828403121561194e57600080fd5b5035919050565b6000806040838503121561196857600080fd5b82356119738161190a565b946020939093013593505050565b6000806040838503121561199457600080fd5b8235915060208301356119a68161190a565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156119dc57600080fd5b8335925060208401356119ee8161190a565b9150604084013567ffffffffffffffff80821115611a0b57600080fd5b818601915086601f830112611a1f57600080fd5b813581811115611a3157611a316119b1565b604051601f8201601f19908116603f01168101908382118183101715611a5957611a596119b1565b81604052828152896020848701011115611a7257600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60008060408385031215611aa757600080fd5b8235611ab28161190a565b915060208301356119a68161190a565b6020808252825182820181905260009190848201906040850190845b81811015611afa57835183529284019291840191600101611ade565b50909695505050505050565b60008060408385031215611b1957600080fd5b50508035926020909101359150565b600080600060608486031215611b3d57600080fd5b8335611b488161190a565b92506020840135611b588161190a565b929592945050506040919091013590565b60208082526025908201527f53656e64657220646f6573206e6f74206861766520617070726f70726961746560408201526420726f6c6560d81b606082015260800190565b600060208284031215611bc057600080fd5b5051919050565b600060208284031215611bd957600080fd5b8151801515811461098c57600080fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082821015611c2757611c27611bff565b500390565b60008219821115611c3f57611c3f611bff565b500190565b6000600019821415611c5857611c58611bff565b5060010190565b60005b83811015611c7a578181015183820152602001611c62565b8381111561071c5750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611cc3816017850160208801611c5f565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611cf4816028840160208801611c5f565b01602801949350505050565b6020815260008251806020840152611d1f816040850160208701611c5f565b601f01601f19169190910160400192915050565b6000816000190483118215151615611d4d57611d4d611bff565b500290565b600081611d6157611d61611bff565b506000190190565b634e487b7160e01b600052603160045260246000fd5b600181811c90821680611d9357607f821691505b60208210811415611db457634e487b7160e01b600052602260045260246000fd5b5091905056fee0d563514842a8c29151c49cd2698127f54dd344a9b2c74a42fe9be3e305fe9868bf109b95a5c15fb2bb99041323c27d15f8675e11bf7420a1cd6ad64c394f46241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08a2646970667358221220f69eb8f3e843a69209ab2c968e0555d202a16d7273227b2a0210046175d80c4664736f6c634300080a0033
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.