More Info
Private Name Tags
ContractCreator
Latest 14 from a total of 14 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Grant Role | 16074993 | 819 days ago | IN | 0 ETH | 0.00077223 | ||||
Grant Role | 16067280 | 820 days ago | IN | 0 ETH | 0.00056207 | ||||
Grant Role | 16067227 | 820 days ago | IN | 0 ETH | 0.00056207 | ||||
Grant Role | 15966216 | 834 days ago | IN | 0 ETH | 0.00076647 | ||||
Grant Role | 14637132 | 1040 days ago | IN | 0 ETH | 0.00486506 | ||||
Grant Role | 14626902 | 1041 days ago | IN | 0 ETH | 0.00229941 | ||||
Recover Token | 14267360 | 1097 days ago | IN | 0 ETH | 0.0041656 | ||||
Recover Token | 13669151 | 1190 days ago | IN | 0 ETH | 0.00423258 | ||||
Recover Token | 13417684 | 1230 days ago | IN | 0 ETH | 0.01018142 | ||||
Grant Role | 13193810 | 1265 days ago | IN | 0 ETH | 0.0051098 | ||||
Grant Role | 13193786 | 1265 days ago | IN | 0 ETH | 0.00539719 | ||||
Grant Role | 13019114 | 1292 days ago | IN | 0 ETH | 0.00334638 | ||||
Grant Role | 12524916 | 1369 days ago | IN | 0 ETH | 0.00214611 | ||||
Grant Role | 12524912 | 1369 days ago | IN | 0 ETH | 0.00216224 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
MoneyHandler
Compiler Version
v0.8.0+commit.c7dfd78e
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.6.0 <=0.8.0; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. */ contract MoneyHandler is Context, AccessControl{ using SafeMath for uint256; event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event PaymentReceived(address from, uint256 amount); IERC20 private token; // uint256 public _totalShares; uint256 public _totalReleased; // uint256 public amu = 1; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; mapping(address => uint256) public collectionMoney; address[] private _payees; uint256 private _totalCllcAmnt; bytes32 public constant COLLECTION_ROLE = bytes32(keccak256("COLLECTION_ROLE")); constructor() public { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ /** * @dev Getter for the total shares held by payees. */ // function totalShares() public view returns (uint256) { // return _totalShares; // } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } function collecMny(address collection) public view returns (uint256) { return collectionMoney[collection]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } function updateCollecMny(address collection, uint256 amount) public onlyRole(COLLECTION_ROLE) { collectionMoney[collection] = collectionMoney[collection].add(amount); } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address account, address collection, address _token) private { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); _released[account] = _released[account].add(_shares[account]); _totalReleased = _totalReleased.add(_shares[account]); IERC20 token = IERC20(_token); token.transfer(account, _shares[account]); collectionMoney[collection] = collectionMoney[collection].sub(_shares[account]); emit PaymentReleased(account, _shares[account]); } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * // shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 sharePerc_, address collection, address _token) private { require(account != address(0), "PaymentSplitter: account is the zero address"); uint256 shares_ = getAmountPer(_totalCllcAmnt,sharePerc_); _shares[account] = shares_; _payees.push(account); release(account, collection, _token); // emit PayeeAdded(account, shares_); } //Get amount per person function getAmountPer(uint256 totalAmount,uint256 sharePerc) private pure returns(uint256){ uint256 sharesmul_ = SafeMath.mul(totalAmount,sharePerc); uint256 shares_ = SafeMath.div(sharesmul_,10**18); return shares_; } function recoverToken(address _token) external onlyRole(DEFAULT_ADMIN_ROLE) { uint amount = IERC20(_token).balanceOf(address(this)); IERC20(_token).transfer(msg.sender, amount); } function redeem (address collection, address _token, address[] memory payees, uint256 [] memory sharePerc_) public onlyRole(DEFAULT_ADMIN_ROLE) { require(payees.length > 0, "redeem: no payees"); require(payees.length == sharePerc_.length, "redeem: no payees"); _totalCllcAmnt = collectionMoney[collection]; require(_totalCllcAmnt > 0,"redeem: insufficient funds"); uint256 totalShareAmount; for (uint256 i = 0; i < sharePerc_.length; i++) { totalShareAmount = totalShareAmount.add(getAmountPer(_totalCllcAmnt, sharePerc_[i])); } require(_totalCllcAmnt >= totalShareAmount, "redeem: the total amount in the contract must be equal to or greater than the amount to be withdraw"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], sharePerc_[i], collection, _token); } } }
// 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()); } } }
// 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; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "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] = alphabet[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; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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"},{"inputs":[],"name":"COLLECTION_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":"_totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"collecMny","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"collectionMoney","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":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"sharePerc_","type":"uint256[]"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"updateCollecMny","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061001c600033610021565b6100e1565b61002b828261002f565b5050565b61003982826100b4565b61002b576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556100706100dd565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b3390565b61142280620000f16000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80639852595c116100a2578063d547741f11610071578063d547741f14610223578063dbc40d2e14610236578063e33b7de314610249578063fb4c1f3614610251578063fdb9b0771461026457610116565b80639852595c146101e25780639be65a60146101f5578063a217fddf14610208578063ce7c2ac21461021057610116565b80632f2ff15d116100e95780632f2ff15d1461018157806336568abe146101945780633a7d7d39146101a75780638b83209b146101af57806391d14854146101cf57610116565b806301ffc9a71461011b578063145f8dd4146101445780631e4ee01b14610159578063248a9ca31461016e575b600080fd5b61012e610129366004610f76565b610277565b60405161013b9190611058565b60405180910390f35b61014c6102a4565b60405161013b9190611063565b61016c610167366004610eea565b6102c8565b005b61014c61017c366004610f33565b61033e565b61016c61018f366004610f4b565b610353565b61016c6101a2366004610f4b565b610377565b61014c6103c6565b6101c26101bd366004610f33565b6103cc565b60405161013b919061102b565b61012e6101dd366004610f4b565b61040a565b61014c6101f0366004610def565b610433565b61016c610203366004610def565b61044e565b61014c610564565b61014c61021e366004610def565b610569565b61016c610231366004610f4b565b610584565b61014c610244366004610def565b6105a3565b61014c6105be565b61014c61025f366004610def565b6105c4565b61016c610272366004610e09565b6105d6565b60006001600160e01b03198216637965db0b60e01b148061029c575061029c82610762565b90505b919050565b7f40a5c770eee7730548a6335e1f372e76bf4759f6fda1a932bd9cfc33106f0b4c81565b7f40a5c770eee7730548a6335e1f372e76bf4759f6fda1a932bd9cfc33106f0b4c6102fa816102f561077b565b61077f565b6001600160a01b03831660009081526005602052604090205461031d90836107e3565b6001600160a01b039093166000908152600560205260409020929092555050565b60009081526020819052604090206001015490565b61035c8261033e565b610368816102f561077b565b61037283836107f6565b505050565b61037f61077b565b6001600160a01b0316816001600160a01b0316146103b85760405162461bcd60e51b81526004016103af90611257565b60405180910390fd5b6103c2828261087b565b5050565b60025481565b6000600682815481106103ef57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6001600160a01b031660009081526004602052604090205490565b600061045c816102f561077b565b6040516370a0823160e01b81526000906001600160a01b038416906370a082319061048b90309060040161102b565b60206040518083038186803b1580156104a357600080fd5b505afa1580156104b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104db9190610f9e565b60405163a9059cbb60e01b81529091506001600160a01b0384169063a9059cbb9061050c903390859060040161103f565b602060405180830381600087803b15801561052657600080fd5b505af115801561053a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055e9190610f13565b50505050565b600081565b6001600160a01b031660009081526003602052604090205490565b61058d8261033e565b610599816102f561077b565b610372838361087b565b6001600160a01b031660009081526005602052604090205490565b60025490565b60056020526000908152604090205481565b60006105e4816102f561077b565b60008351116106055760405162461bcd60e51b81526004016103af9061119d565b81518351146106265760405162461bcd60e51b81526004016103af9061119d565b6001600160a01b03851660009081526005602052604090205460078190556106605760405162461bcd60e51b81526004016103af906110d4565b6000805b83518110156106be576106aa6106a360075486848151811061069657634e487b7160e01b600052603260045260246000fd5b60200260200101516108fe565b83906107e3565b9150806106b6816113a5565b915050610664565b508060075410156106e15760405162461bcd60e51b81526004016103af906111c8565b60005b84518110156107595761074785828151811061071057634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061073857634e487b7160e01b600052603260045260246000fd5b6020026020010151898961092a565b80610751816113a5565b9150506106e4565b50505050505050565b6001600160e01b031981166301ffc9a760e01b14919050565b3390565b610789828261040a565b6103c2576107a1816001600160a01b031660146109cc565b6107ac8360206109cc565b6040516020016107bd929190610fb6565b60408051601f198184030181529082905262461bcd60e51b82526103af9160040161106c565b60006107ef82846112f4565b9392505050565b610800828261040a565b6103c2576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561083761077b565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610885828261040a565b156103c2576000828152602081815260408083206001600160a01b03851684529091529020805460ff191690556108ba61077b565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60008061090b8484610b7e565b9050600061092182670de0b6b3a7640000610b8a565b95945050505050565b6001600160a01b0384166109505760405162461bcd60e51b81526004016103af9061110b565b600061095e600754856108fe565b6001600160a01b03861660008181526003602052604081208390556006805460018101825591527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b031916909117905590506109c5858484610b96565b5050505050565b606060006109db83600261132c565b6109e69060026112f4565b67ffffffffffffffff811115610a0c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610a36576020820181803683370190505b509050600360fc1b81600081518110610a5f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610a9c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000610ac084600261132c565b610acb9060016112f4565b90505b6001811115610b5f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610b0d57634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110610b3157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93610b588161138e565b9050610ace565b5083156107ef5760405162461bcd60e51b81526004016103af9061109f565b60006107ef828461132c565b60006107ef828461130c565b6001600160a01b038316600090815260036020526040902054610bcb5760405162461bcd60e51b81526004016103af90611157565b6001600160a01b038316600090815260036020908152604080832054600490925290912054610bf9916107e3565b6001600160a01b038416600090815260046020908152604080832093909355600390522054600254610c2a916107e3565b6002556001600160a01b038381166000908152600360205260409081902054905163a9059cbb60e01b8152839283169163a9059cbb91610c6e91889160040161103f565b602060405180830381600087803b158015610c8857600080fd5b505af1158015610c9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc09190610f13565b506001600160a01b0380851660009081526003602090815260408083205493871683526005909152902054610cf491610d60565b6001600160a01b03808516600090815260056020908152604080832094909455918716815260039091528190205490517fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b05691610d529187919061103f565b60405180910390a150505050565b60006107ef828461134b565b80356001600160a01b038116811461029f57600080fd5b600082601f830112610d93578081fd5b81356020610da8610da3836112d0565b6112a6565b8281528181019085830183850287018401881015610dc4578586fd5b855b85811015610de257813584529284019290840190600101610dc6565b5090979650505050505050565b600060208284031215610e00578081fd5b6107ef82610d6c565b60008060008060808587031215610e1e578283fd5b610e2785610d6c565b93506020610e36818701610d6c565b9350604086013567ffffffffffffffff80821115610e52578485fd5b818801915088601f830112610e65578485fd5b8135610e73610da3826112d0565b81815284810190848601868402860187018d1015610e8f578889fd5b8895505b83861015610eb857610ea481610d6c565b835260019590950194918601918601610e93565b50965050506060880135925080831115610ed0578384fd5b5050610ede87828801610d83565b91505092959194509250565b60008060408385031215610efc578182fd5b610f0583610d6c565b946020939093013593505050565b600060208284031215610f24578081fd5b815180151581146107ef578182fd5b600060208284031215610f44578081fd5b5035919050565b60008060408385031215610f5d578182fd5b82359150610f6d60208401610d6c565b90509250929050565b600060208284031215610f87578081fd5b81356001600160e01b0319811681146107ef578182fd5b600060208284031215610faf578081fd5b5051919050565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351610fee816017850160208801611362565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161101f816028840160208801611362565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b600060208252825180602084015261108b816040850160208701611362565b601f01601f19169190910160400192915050565b6020808252818101527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604082015260600190565b6020808252601a908201527f72656465656d3a20696e73756666696369656e742066756e6473000000000000604082015260600190565b6020808252602c908201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060408201526b7a65726f206164647265737360a01b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b60208082526011908201527072656465656d3a206e6f2070617965657360781b604082015260600190565b60208082526063908201527f72656465656d3a2074686520746f74616c20616d6f756e7420696e207468652060408201527f636f6e7472616374206d75737420626520657175616c20746f206f722067726560608201527f61746572207468616e2074686520616d6f756e7420746f20626520776974686460808201526272617760e81b60a082015260c00190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201526e103937b632b9903337b91039b2b63360891b606082015260800190565b60405181810167ffffffffffffffff811182821017156112c8576112c86113d6565b604052919050565b600067ffffffffffffffff8211156112ea576112ea6113d6565b5060209081020190565b60008219821115611307576113076113c0565b500190565b60008261132757634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611346576113466113c0565b500290565b60008282101561135d5761135d6113c0565b500390565b60005b8381101561137d578181015183820152602001611365565b8381111561055e5750506000910152565b60008161139d5761139d6113c0565b506000190190565b60006000198214156113b9576113b96113c0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220cc7c3801ec38e305823466fad8e50d105c80f03b7a4efb9f23cb23a0a02d91c764736f6c63430008000033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c80639852595c116100a2578063d547741f11610071578063d547741f14610223578063dbc40d2e14610236578063e33b7de314610249578063fb4c1f3614610251578063fdb9b0771461026457610116565b80639852595c146101e25780639be65a60146101f5578063a217fddf14610208578063ce7c2ac21461021057610116565b80632f2ff15d116100e95780632f2ff15d1461018157806336568abe146101945780633a7d7d39146101a75780638b83209b146101af57806391d14854146101cf57610116565b806301ffc9a71461011b578063145f8dd4146101445780631e4ee01b14610159578063248a9ca31461016e575b600080fd5b61012e610129366004610f76565b610277565b60405161013b9190611058565b60405180910390f35b61014c6102a4565b60405161013b9190611063565b61016c610167366004610eea565b6102c8565b005b61014c61017c366004610f33565b61033e565b61016c61018f366004610f4b565b610353565b61016c6101a2366004610f4b565b610377565b61014c6103c6565b6101c26101bd366004610f33565b6103cc565b60405161013b919061102b565b61012e6101dd366004610f4b565b61040a565b61014c6101f0366004610def565b610433565b61016c610203366004610def565b61044e565b61014c610564565b61014c61021e366004610def565b610569565b61016c610231366004610f4b565b610584565b61014c610244366004610def565b6105a3565b61014c6105be565b61014c61025f366004610def565b6105c4565b61016c610272366004610e09565b6105d6565b60006001600160e01b03198216637965db0b60e01b148061029c575061029c82610762565b90505b919050565b7f40a5c770eee7730548a6335e1f372e76bf4759f6fda1a932bd9cfc33106f0b4c81565b7f40a5c770eee7730548a6335e1f372e76bf4759f6fda1a932bd9cfc33106f0b4c6102fa816102f561077b565b61077f565b6001600160a01b03831660009081526005602052604090205461031d90836107e3565b6001600160a01b039093166000908152600560205260409020929092555050565b60009081526020819052604090206001015490565b61035c8261033e565b610368816102f561077b565b61037283836107f6565b505050565b61037f61077b565b6001600160a01b0316816001600160a01b0316146103b85760405162461bcd60e51b81526004016103af90611257565b60405180910390fd5b6103c2828261087b565b5050565b60025481565b6000600682815481106103ef57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6001600160a01b031660009081526004602052604090205490565b600061045c816102f561077b565b6040516370a0823160e01b81526000906001600160a01b038416906370a082319061048b90309060040161102b565b60206040518083038186803b1580156104a357600080fd5b505afa1580156104b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104db9190610f9e565b60405163a9059cbb60e01b81529091506001600160a01b0384169063a9059cbb9061050c903390859060040161103f565b602060405180830381600087803b15801561052657600080fd5b505af115801561053a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055e9190610f13565b50505050565b600081565b6001600160a01b031660009081526003602052604090205490565b61058d8261033e565b610599816102f561077b565b610372838361087b565b6001600160a01b031660009081526005602052604090205490565b60025490565b60056020526000908152604090205481565b60006105e4816102f561077b565b60008351116106055760405162461bcd60e51b81526004016103af9061119d565b81518351146106265760405162461bcd60e51b81526004016103af9061119d565b6001600160a01b03851660009081526005602052604090205460078190556106605760405162461bcd60e51b81526004016103af906110d4565b6000805b83518110156106be576106aa6106a360075486848151811061069657634e487b7160e01b600052603260045260246000fd5b60200260200101516108fe565b83906107e3565b9150806106b6816113a5565b915050610664565b508060075410156106e15760405162461bcd60e51b81526004016103af906111c8565b60005b84518110156107595761074785828151811061071057634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061073857634e487b7160e01b600052603260045260246000fd5b6020026020010151898961092a565b80610751816113a5565b9150506106e4565b50505050505050565b6001600160e01b031981166301ffc9a760e01b14919050565b3390565b610789828261040a565b6103c2576107a1816001600160a01b031660146109cc565b6107ac8360206109cc565b6040516020016107bd929190610fb6565b60408051601f198184030181529082905262461bcd60e51b82526103af9160040161106c565b60006107ef82846112f4565b9392505050565b610800828261040a565b6103c2576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561083761077b565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610885828261040a565b156103c2576000828152602081815260408083206001600160a01b03851684529091529020805460ff191690556108ba61077b565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60008061090b8484610b7e565b9050600061092182670de0b6b3a7640000610b8a565b95945050505050565b6001600160a01b0384166109505760405162461bcd60e51b81526004016103af9061110b565b600061095e600754856108fe565b6001600160a01b03861660008181526003602052604081208390556006805460018101825591527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b031916909117905590506109c5858484610b96565b5050505050565b606060006109db83600261132c565b6109e69060026112f4565b67ffffffffffffffff811115610a0c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015610a36576020820181803683370190505b509050600360fc1b81600081518110610a5f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610a9c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000610ac084600261132c565b610acb9060016112f4565b90505b6001811115610b5f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610b0d57634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110610b3157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93610b588161138e565b9050610ace565b5083156107ef5760405162461bcd60e51b81526004016103af9061109f565b60006107ef828461132c565b60006107ef828461130c565b6001600160a01b038316600090815260036020526040902054610bcb5760405162461bcd60e51b81526004016103af90611157565b6001600160a01b038316600090815260036020908152604080832054600490925290912054610bf9916107e3565b6001600160a01b038416600090815260046020908152604080832093909355600390522054600254610c2a916107e3565b6002556001600160a01b038381166000908152600360205260409081902054905163a9059cbb60e01b8152839283169163a9059cbb91610c6e91889160040161103f565b602060405180830381600087803b158015610c8857600080fd5b505af1158015610c9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc09190610f13565b506001600160a01b0380851660009081526003602090815260408083205493871683526005909152902054610cf491610d60565b6001600160a01b03808516600090815260056020908152604080832094909455918716815260039091528190205490517fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b05691610d529187919061103f565b60405180910390a150505050565b60006107ef828461134b565b80356001600160a01b038116811461029f57600080fd5b600082601f830112610d93578081fd5b81356020610da8610da3836112d0565b6112a6565b8281528181019085830183850287018401881015610dc4578586fd5b855b85811015610de257813584529284019290840190600101610dc6565b5090979650505050505050565b600060208284031215610e00578081fd5b6107ef82610d6c565b60008060008060808587031215610e1e578283fd5b610e2785610d6c565b93506020610e36818701610d6c565b9350604086013567ffffffffffffffff80821115610e52578485fd5b818801915088601f830112610e65578485fd5b8135610e73610da3826112d0565b81815284810190848601868402860187018d1015610e8f578889fd5b8895505b83861015610eb857610ea481610d6c565b835260019590950194918601918601610e93565b50965050506060880135925080831115610ed0578384fd5b5050610ede87828801610d83565b91505092959194509250565b60008060408385031215610efc578182fd5b610f0583610d6c565b946020939093013593505050565b600060208284031215610f24578081fd5b815180151581146107ef578182fd5b600060208284031215610f44578081fd5b5035919050565b60008060408385031215610f5d578182fd5b82359150610f6d60208401610d6c565b90509250929050565b600060208284031215610f87578081fd5b81356001600160e01b0319811681146107ef578182fd5b600060208284031215610faf578081fd5b5051919050565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351610fee816017850160208801611362565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161101f816028840160208801611362565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b600060208252825180602084015261108b816040850160208701611362565b601f01601f19169190910160400192915050565b6020808252818101527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604082015260600190565b6020808252601a908201527f72656465656d3a20696e73756666696369656e742066756e6473000000000000604082015260600190565b6020808252602c908201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060408201526b7a65726f206164647265737360a01b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b60208082526011908201527072656465656d3a206e6f2070617965657360781b604082015260600190565b60208082526063908201527f72656465656d3a2074686520746f74616c20616d6f756e7420696e207468652060408201527f636f6e7472616374206d75737420626520657175616c20746f206f722067726560608201527f61746572207468616e2074686520616d6f756e7420746f20626520776974686460808201526272617760e81b60a082015260c00190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201526e103937b632b9903337b91039b2b63360891b606082015260800190565b60405181810167ffffffffffffffff811182821017156112c8576112c86113d6565b604052919050565b600067ffffffffffffffff8211156112ea576112ea6113d6565b5060209081020190565b60008219821115611307576113076113c0565b500190565b60008261132757634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611346576113466113c0565b500290565b60008282101561135d5761135d6113c0565b500390565b60005b8381101561137d578181015183820152602001611365565b8381111561055e5750506000910152565b60008161139d5761139d6113c0565b506000190190565b60006000198214156113b9576113b96113c0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220cc7c3801ec38e305823466fad8e50d105c80f03b7a4efb9f23cb23a0a02d91c764736f6c63430008000033
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.