More Info
Private Name Tags
ContractCreator
Latest 12 from a total of 12 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Update Split | 17314623 | 609 days ago | IN | 0 ETH | 0.00464064 | ||||
Update Split | 17225058 | 622 days ago | IN | 0 ETH | 0.0169513 | ||||
Update Split | 16977994 | 657 days ago | IN | 0 ETH | 0.00481709 | ||||
Grant Role | 16333917 | 747 days ago | IN | 0 ETH | 0.00086501 | ||||
Flush Common | 16283107 | 754 days ago | IN | 0 ETH | 0.00127411 | ||||
Flush Common | 16171221 | 770 days ago | IN | 0 ETH | 0.00216527 | ||||
Flush Common | 16089031 | 781 days ago | IN | 0 ETH | 0.00123818 | ||||
Grant Role | 16089022 | 781 days ago | IN | 0 ETH | 0.00059294 | ||||
Flush Common | 16067779 | 784 days ago | IN | 0 ETH | 0.00150734 | ||||
Flush Common | 16047020 | 787 days ago | IN | 0 ETH | 0.00125655 | ||||
Update Split | 15984883 | 796 days ago | IN | 0 ETH | 0.00781462 | ||||
Flush Common | 15913389 | 806 days ago | IN | 0 ETH | 0.00139706 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21432543 | 33 days ago | 0.000705 ETH | ||||
21432543 | 33 days ago | 0.000705 ETH | ||||
21411109 | 36 days ago | 0.000705 ETH | ||||
21337348 | 46 days ago | 0.000705 ETH | ||||
21332593 | 47 days ago | 0.00047125 ETH | ||||
21332593 | 47 days ago | 0.00047125 ETH | ||||
21310491 | 50 days ago | 0.0009425 ETH | ||||
20851319 | 114 days ago | 0.0002125 ETH | ||||
20851319 | 114 days ago | 0.0002125 ETH | ||||
20836396 | 116 days ago | 0.00005 ETH | ||||
20815754 | 119 days ago | 0.000075 ETH | ||||
20762043 | 126 days ago | 0.00005 ETH | ||||
20762008 | 126 days ago | 0.000075 ETH | ||||
20761938 | 126 days ago | 0.00005 ETH | ||||
20760395 | 127 days ago | 0.00005 ETH | ||||
20722810 | 132 days ago | 0.000075 ETH | ||||
20692522 | 136 days ago | 0.00002985 ETH | ||||
20692522 | 136 days ago | 0.00002985 ETH | ||||
20684388 | 137 days ago | 0.0000097 ETH | ||||
20636793 | 144 days ago | 0.00005 ETH | ||||
20380332 | 180 days ago | 0.00033885 ETH | ||||
20380332 | 180 days ago | 0.00033885 ETH | ||||
20252828 | 197 days ago | 0.00000063 ETH | ||||
20242116 | 199 days ago | 0.00000063 ETH | ||||
20175116 | 208 days ago | 0.00000069 ETH |
Loading...
Loading
Contract Name:
KithSplitter
Compiler Version
v0.8.9+commit.e5eed63a
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.9; /** 8 888888888o. ,o888888o. ,o888888o. 8 8888 `88. 8888 `88. 8888 `88. 8 8888 `88 ,8 8888 `8. ,8 8888 `8. 8 8888 ,88 88 8888 88 8888 8 8888. ,88' 88 8888 88 8888 8 888888888P' 88 8888 88 8888 8 8888`8b 88 8888 88 8888 8 8888 `8b. `8 8888 .8' `8 8888 .8' 8 8888 `8b. 8888 ,88' 8888 ,88' 8 8888 `88. `8888888P' `8888888P' */ import "@mikker/contracts/contracts/UpdatableSplitter.sol"; contract KithSplitter is UpdatableSplitter { constructor( address[] memory payees, uint256[] memory shares, address[] memory tokens ) UpdatableSplitter(payees, shares, tokens) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /* ████████████ ██ ██ ██ ██▓▓ ██ ████▓▓▓▓▓▓ ██ ██████▓▓▒▒▓▓▓▓▓▓▓▓ ████████▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒ ██ ████████▓▓▒▒▒▒▒▒▒▒▒▒ ██ ██▓▓▒▒▒▒▒▒▒▒ ██ ██▓▓▓▓▓▓▓▓ ██ ██ ██ ██ '||''|. || '|| ██ ██ || || ... .. .... ... .. ... || ... ... ... ... ... ██ ██ ||'''|. ||' '' '' .|| || || || ||' || .| '|. || || | ██ ██ || || || .|' || || || || || | || || ||| ||| ██████████ .||...|' .||. '|..'|' .||. .||. ||. '|...' '|..|' | | */ import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; /** * @title UpdatableSplitter * @dev This contract is similar to a common PaymentSplitter except it trades the ability * to pay each payee individually for the option to update its payees and their splits. */ contract UpdatableSplitter is Context, AccessControl { event PayeeAdded(address account, uint256 shares); event EtherFlushed(uint256 amount); event TokenFlushed(IERC20 indexed token, uint256 amount); event PaymentReceived(address from, uint256 amount); bytes32 public constant FLUSHWORTHY = keccak256("FLUSHWORTHY"); uint256 private _totalShares; address[] private _payees; mapping(address => uint256) private _shares; address[] private _commonTokens; /** * @dev Takes a list of payees and a corresponding list of shares. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no duplicates in `payees`. * * Additionally takes a list of ERC20 token addresses that can be flushed with `flushCommon`. */ constructor( address[] memory payees, uint256[] memory shares_, address[] memory tokenAddresses ) payable { _grantRole(DEFAULT_ADMIN_ROLE, _msgSender()); _grantRole(FLUSHWORTHY, _msgSender()); for (uint256 i = 0; i < payees.length; i++) { _grantRole(FLUSHWORTHY, payees[i]); } updateSplit(payees, shares_); _commonTokens = tokenAddresses; } receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the address of an individual payee. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Getter for the assigned number of shares for a given payee. */ function shares(address payee_) public view returns (uint256) { return _shares[payee_]; } /** * @dev Function to add ERC20 token addresses to the list of common tokens. */ function addToken(address tokenAddress) public onlyRole(DEFAULT_ADMIN_ROLE) { require(tokenAddress != address(0), "UpdatableSplitter: address is the zero address"); _commonTokens.push(tokenAddress); } /** * @dev Updates the list of payees and their corresponding shares. Requires both lists to be same length. * * Flushes all holdings before updating. */ function updateSplit(address[] memory payees, uint256[] memory shares_) public onlyRole(DEFAULT_ADMIN_ROLE) { require(payees.length == shares_.length, "UpdatableSplitter: payees and shares length mismatch"); require(payees.length > 0, "UpdatableSplitter: no payees"); flushCommon(); _clear(); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev Flushes all Ether held by contract, split according to the shares. */ function flush() public onlyRole(FLUSHWORTHY) { (uint256 unit, uint256 balance) = _unitAndBalance(); if (unit == 0 || balance == 0) return; for (uint256 i = 0; i < _payees.length; i++) { address payee_ = payee(i); uint256 split = shares(payee_) * unit; Address.sendValue(payable(payee_), split); } emit EtherFlushed(balance); } /** * @dev Flushes total balance of given ERC20 token, split according to the shares. */ function flushToken(IERC20 token) public onlyRole(FLUSHWORTHY) { (uint256 unit, uint256 balance) = _unitAndBalance(token); if (unit == 0 || balance == 0) return; for (uint256 i = 0; i < _payees.length; i++) { address payee_ = payee(i); uint256 split = shares(payee_) * unit; SafeERC20.safeTransfer(token, payee_, split); } emit TokenFlushed(token, balance); } /** * @dev Flushes all Ether + all registered common tokens, split according to the shares. */ function flushCommon() public onlyRole(FLUSHWORTHY) { flush(); for (uint256 i = 0; i < _commonTokens.length; i++) { flushToken(IERC20(_commonTokens[i])); } } function _clear() private { for (uint256 i = 0; i < _payees.length; i++) { _shares[payee(i)] = 0; } delete _payees; _totalShares = 0; } function _addPayee(address account, uint256 shares_) private { require(account != address(0), "UpdatableSplitter: account is the zero address"); require(shares_ > 0, "UpdatableSplitter: shares are 0"); require(shares(account) == 0, "UpdatableSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } function _unitAndBalance() private view returns (uint256, uint256 balance) { balance = uint256(address(this).balance); if (_totalShares == 0 || balance == 0) return (0, 0); return (balance / _totalShares, balance); } function _unitAndBalance(IERC20 token) private view returns (uint256, uint256 balance) { balance = token.balanceOf(address(this)); if (_totalShares == 0 || balance == 0) return (0, 0); return (balance / _totalShares, balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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"); (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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) 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 // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @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 virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { 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 virtual 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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ 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 revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ 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. * * May emit a {RoleGranted} event. * * [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}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) 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 // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
{ "optimizer": { "enabled": true, "runs": 200, "details": { "yul": false } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"address[]","name":"tokens","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EtherFlushed","type":"event"},{"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":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenFlushed","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FLUSHWORTHY","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"addToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flush","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flushCommon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"flushToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"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":"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":"payee_","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":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares_","type":"uint256[]"}],"name":"updateSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200308038038062003080833981016040819052620000349162000f3d565b82828262000044600033620000ed565b6200005f6000805160206200306083398151915233620000ed565b60005b8351811015620000be57620000a96000805160206200306083398151915285838151811062000095576200009562000fe8565b6020026020010151620000ed60201b60201c565b80620000b58162001014565b91505062000062565b50620000cb838362000176565b8051620000e090600490602084019062000cb9565b5050505050505062001626565b620000f982826200025a565b62000172576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001313390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620001838162000285565b8151835114620001b05760405162461bcd60e51b8152600401620001a7906200108f565b60405180910390fd5b6000835111620001d45760405162461bcd60e51b8152600401620001a790620010d8565b620001de62000294565b620001e862000311565b60005b835181101562000254576200023f8482815181106200020e576200020e62000fe8565b60200260200101518483815181106200022b576200022b62000fe8565b60200260200101516200037460201b60201c565b806200024b8162001014565b915050620001eb565b50505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff165b92915050565b620002918133620004a5565b50565b60008051602062003060833981519152620002af8162000285565b620002b962000528565b60005b6004548110156200017257620002fc60048281548110620002e157620002e162000fe8565b6000918252602090912001546001600160a01b031662000629565b80620003088162001014565b915050620002bc565b60005b6002548110156200035e5760006003816200032f8462000738565b6001600160a01b0316815260208101919091526040016000205580620003558162001014565b91505062000314565b506200036d6002600062000d23565b6000600155565b6001600160a01b0382166200039d5760405162461bcd60e51b8152600401620001a79062001136565b60008111620003c05760405162461bcd60e51b8152600401620001a7906200117d565b6001600160a01b03821660009081526003602052604090205415620003f95760405162461bcd60e51b8152600401620001a790620011da565b6002805460018082019092557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b03851690811790915560009081526003602052604090208290555462000462908290620011ec565b6001556040517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac906200049990849084906200121f565b60405180910390a15050565b620004b182826200025a565b6200017257620004d7816001600160a01b031660146200076b60201b6200080b1760201c565b620004ed8360206200080b6200076b821b17811c565b6040516020016200050092919062001292565b60408051601f198184030181529082905262461bcd60e51b8252620001a79160040162001323565b60008051602062003060833981519152620005438162000285565b60008062000550620008fc565b91509150816000148062000562575080155b156200056d57505050565b60005b600254811015620005ea576000620005888262000738565b9050600084620005ad836001600160a01b031660009081526003602052604090205490565b620005b9919062001336565b9050620005d282826200093360201b6200097e1760201c565b50508080620005e19062001014565b91505062000570565b507fce566829d5045934d049cf8f411008d87c23a7df552c21b6d3e9d68b07d6278d816040516200061c919062001358565b60405180910390a1505050565b60008051602062003060833981519152620006448162000285565b6000806200065284620009de565b91509150816000148062000664575080155b15620006705750505050565b60005b600254811015620006ee5760006200068b8262000738565b9050600084620006b0836001600160a01b031660009081526003602052604090205490565b620006bc919062001336565b9050620006d687838362000a9c60201b62000a1a1760201c565b50508080620006e59062001014565b91505062000673565b50836001600160a01b03167f75d34d39d28e6c8fd84f5539c817dea378701028c77ceade58bb8789b3e81bde826040516200072a919062001358565b60405180910390a250505050565b60006002828154811062000750576200075062000fe8565b6000918252602090912001546001600160a01b031692915050565b606060006200077c83600262001336565b62000789906002620011ec565b6001600160401b03811115620007a357620007a362000d55565b6040519080825280601f01601f191660200182016040528015620007ce576020820181803683370190505b509050600360fc1b81600081518110620007ec57620007ec62000fe8565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106200081e576200081e62000fe8565b60200101906001600160f81b031916908160001a90535060006200084484600262001336565b62000851906001620011ec565b90505b6001811115620008d3576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062000889576200088962000fe8565b1a60f81b828281518110620008a257620008a262000fe8565b60200101906001600160f81b031916908160001a90535060049490941c93620008cb8162001368565b905062000854565b508315620008f55760405162461bcd60e51b8152600401620001a790620013b5565b9392505050565b600154600090479015806200090f575080155b156200091e5750600091829150565b6001546200092d9082620013dd565b91509091565b80471015620009565760405162461bcd60e51b8152600401620001a79062001429565b6000826001600160a01b03168260405162000971906200143b565b60006040518083038185875af1925050503d8060008114620009b0576040519150601f19603f3d011682016040523d82523d6000602084013e620009b5565b606091505b5050905080620009d95760405162461bcd60e51b8152600401620001a7906200149f565b505050565b600080826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040162000a0f9190620014b1565b60206040518083038186803b15801562000a2857600080fd5b505afa15801562000a3d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000a639190620014c1565b90506001546000148062000a75575080155b1562000a8657506000928392509050565b60015462000a959082620013dd565b9150915091565b620009d98363a9059cbb60e01b848460405160240162000abe9291906200121f565b60408051808303601f190181529190526020810180516001600160e01b0319939093166001600160e01b039384161790529062000af716565b600062000b53826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031662000b9360201b62000a70179092919060201c565b805190915015620009d9578080602001905181019062000b749190620014fc565b620009d95760405162461bcd60e51b8152600401620001a79062001569565b606062000ba4848460008562000bac565b949350505050565b60608247101562000bd15760405162461bcd60e51b8152600401620001a790620015bf565b6001600160a01b0385163b62000bfb5760405162461bcd60e51b8152600401620001a79062001606565b600080866001600160a01b0316858760405162000c19919062001618565b60006040518083038185875af1925050503d806000811462000c58576040519150601f19603f3d011682016040523d82523d6000602084013e62000c5d565b606091505b50909250905062000c7082828662000c7b565b979650505050505050565b6060831562000c8c575081620008f5565b82511562000c9d5782518084602001fd5b8160405162461bcd60e51b8152600401620001a7919062001323565b82805482825590600052602060002090810192821562000d11579160200282015b8281111562000d1157825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000cda565b5062000d1f92915062000d3e565b5090565b50805460008255906000526020600020908101906200029191905b5b8082111562000d1f576000815560010162000d3f565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b038211171562000d935762000d9362000d55565b6040525050565b600062000da660405190565b905062000db4828262000d6b565b919050565b60006001600160401b0382111562000dd55762000dd562000d55565b5060209081020190565b60006001600160a01b0382166200027f565b62000dfc8162000ddf565b81146200029157600080fd5b80516200027f8162000df1565b600062000e2c62000e268462000db9565b62000d9a565b8381529050602080820190840283018581111562000e4d5762000e4d600080fd5b835b8181101562000e75578062000e65888262000e08565b8452506020928301920162000e4f565b5050509392505050565b600082601f83011262000e955762000e95600080fd5b815162000ba484826020860162000e15565b8062000dfc565b80516200027f8162000ea7565b600062000ecc62000e268462000db9565b8381529050602080820190840283018581111562000eed5762000eed600080fd5b835b8181101562000e75578062000f05888262000eae565b8452506020928301920162000eef565b600082601f83011262000f2b5762000f2b600080fd5b815162000ba484826020860162000ebb565b60008060006060848603121562000f575762000f57600080fd5b83516001600160401b0381111562000f725762000f72600080fd5b62000f808682870162000e7f565b93505060208401516001600160401b0381111562000fa15762000fa1600080fd5b62000faf8682870162000f15565b92505060408401516001600160401b0381111562000fd05762000fd0600080fd5b62000fde8682870162000e7f565b9150509250925092565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156200102b576200102b62000ffe565b5060010190565b603481526000602082017f557064617461626c6553706c69747465723a2070617965657320616e6420736881527f61726573206c656e677468206d69736d61746368000000000000000000000000602082015291505b5060400190565b602080825281016200027f8162001032565b601c81526000602082017f557064617461626c6553706c69747465723a206e6f2070617965657300000000815291505b5060200190565b602080825281016200027f81620010a1565b602e81526000602082017f557064617461626c6553706c69747465723a206163636f756e7420697320746881526d65207a65726f206164647265737360901b6020820152915062001088565b602080825281016200027f81620010ea565b601f81526000602082017f557064617461626c6553706c69747465723a207368617265732061726520300081529150620010d1565b602080825281016200027f8162001148565b602d81526000602082017f557064617461626c6553706c69747465723a206163636f756e7420616c72656181526c6479206861732073686172657360981b6020820152915062001088565b602080825281016200027f816200118f565b6000821982111562001202576200120262000ffe565b500190565b620012128162000ddf565b82525050565b8062001212565b604081016200122f828562001207565b620008f5602083018462001218565b60005b838110156200125b57818101518382015260200162001241565b83811115620002545750506000910152565b600062001278825190565b620012888185602086016200123e565b9290920192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526017016000620012c682856200126d565b7001034b99036b4b9b9b4b733903937b6329607d1b8152601101915062000ba482846200126d565b6000620012f9825190565b808452602084019350620013128185602086016200123e565b601f01601f19169290920192915050565b60208082528101620008f58184620012ee565b600081600019048311821515161562001353576200135362000ffe565b500290565b602081016200027f828462001218565b6000816200137a576200137a62000ffe565b506000190190565b60208082527f537472696e67733a20686578206c656e67746820696e73756666696369656e7491019081526000620010d1565b602080825281016200027f8162001382565b634e487b7160e01b600052601260045260246000fd5b600082620013ef57620013ef620013c7565b500490565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e636500000081529150620010d1565b602080825281016200027f81620013f4565b6000816200027f565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c207281527f6563697069656e74206d617920686176652072657665727465640000000000006020820152915062001088565b602080825281016200027f8162001444565b602081016200027f828462001207565b600060208284031215620014d857620014d8600080fd5b600062000ba4848462000eae565b80151562000dfc565b80516200027f81620014e6565b600060208284031215620015135762001513600080fd5b600062000ba48484620014ef565b602a81526000602082017f5361666545524332303a204552433230206f7065726174696f6e20646964206e8152691bdd081cdd58d8d9595960b21b6020820152915062001088565b602080825281016200027f8162001521565b602681526000602082017f416464726573733a20696e73756666696369656e742062616c616e636520666f8152651c8818d85b1b60d21b6020820152915062001088565b602080825281016200027f816200157b565b601d81526000602082017f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081529150620010d1565b602080825281016200027f81620015d1565b6000620008f582846200126d565b611a2a80620016366000396000f3fe6080604052600436106100f75760003560e01c80637150a10a1161008a578063a217fddf11610059578063a217fddf146102df578063ce7c2ac2146102f4578063d48bfca71461032a578063d547741f1461034a57600080fd5b80637150a10a146102525780638b83209b1461027257806391d148541461029f5780639cee789f146102bf57600080fd5b806336568abe116100c657806336568abe146101e65780633a98ef391461020657806361bba4721461021b5780636b9f96ea1461023d57600080fd5b806301ffc9a71461013c578063248a9ca31461017257806328d7753e146101af5780632f2ff15d146101c657600080fd5b36610137577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770333460405161012d929190611027565b60405180910390a1005b600080fd5b34801561014857600080fd5b5061015c610157366004611064565b61036a565b604051610169919061108d565b60405180910390f35b34801561017e57600080fd5b506101a261018d3660046110ac565b60009081526020819052604090206001015490565b60405161016991906110cd565b3480156101bb57600080fd5b506101c46103a1565b005b3480156101d257600080fd5b506101c46101e13660046110ef565b610414565b3480156101f257600080fd5b506101c46102013660046110ef565b61043e565b34801561021257600080fd5b506001546101a2565b34801561022757600080fd5b506101a26000805160206119d583398151915281565b34801561024957600080fd5b506101c4610479565b34801561025e57600080fd5b506101c461026d3660046112a8565b61055c565b34801561027e57600080fd5b5061029261028d3660046110ac565b610619565b6040516101699190611310565b3480156102ab57600080fd5b5061015c6102ba3660046110ef565b610649565b3480156102cb57600080fd5b506101c46102da36600461133d565b610672565b3480156102eb57600080fd5b506101a2600081565b34801561030057600080fd5b506101a261030f36600461135e565b6001600160a01b031660009081526003602052604090205490565b34801561033657600080fd5b506101c461034536600461135e565b610762565b34801561035657600080fd5b506101c46103653660046110ef565b6107e6565b60006001600160e01b03198216637965db0b60e01b148061039b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000805160206119d58339815191526103b981610a87565b6103c1610479565b60005b600454811015610410576103fe600482815481106103e4576103e461137f565b6000918252602090912001546001600160a01b0316610672565b80610408816113ab565b9150506103c4565b5050565b60008281526020819052604090206001015461042f81610a87565b6104398383610a91565b505050565b6001600160a01b038116331461046f5760405162461bcd60e51b815260040161046690611415565b60405180910390fd5b6104108282610b15565b6000805160206119d583398151915261049181610a87565b60008061049c610b7a565b9150915081600014806104ad575080155b156104b757505050565b60005b60025481101561051e5760006104cf82610619565b90506000846104f3836001600160a01b031660009081526003602052604090205490565b6104fd9190611425565b9050610509828261097e565b50508080610516906113ab565b9150506104ba565b507fce566829d5045934d049cf8f411008d87c23a7df552c21b6d3e9d68b07d6278d8160405161054e91906110cd565b60405180910390a150505b50565b600061056781610a87565b81518351146105885760405162461bcd60e51b815260040161046690611495565b60008351116105a95760405162461bcd60e51b8152600401610466906114dc565b6105b16103a1565b6105b9610bad565b60005b8351811015610613576106018482815181106105da576105da61137f565b60200260200101518483815181106105f4576105f461137f565b6020026020010151610c09565b8061060b816113ab565b9150506105bc565b50505050565b60006002828154811061062e5761062e61137f565b6000918252602090912001546001600160a01b031692915050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000805160206119d583398151915261068a81610a87565b60008061069684610d2d565b9150915081600014806106a7575080155b156106b25750505050565b60005b60025481101561071a5760006106ca82610619565b90506000846106ee836001600160a01b031660009081526003602052604090205490565b6106f89190611425565b9050610705878383610a1a565b50508080610712906113ab565b9150506106b5565b50836001600160a01b03167f75d34d39d28e6c8fd84f5539c817dea378701028c77ceade58bb8789b3e81bde8260405161075491906110cd565b60405180910390a250505050565b600061076d81610a87565b6001600160a01b0382166107935760405162461bcd60e51b815260040161046690611537565b50600480546001810182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526020819052604090206001015461080181610a87565b6104398383610b15565b6060600061081a836002611425565b610825906002611547565b67ffffffffffffffff81111561083d5761083d61112c565b6040519080825280601f01601f191660200182016040528015610867576020820181803683370190505b509050600360fc1b816000815181106108825761088261137f565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106108b1576108b161137f565b60200101906001600160f81b031916908160001a90535060006108d5846002611425565b6108e0906001611547565b90505b6001811115610958576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106109145761091461137f565b1a60f81b82828151811061092a5761092a61137f565b60200101906001600160f81b031916908160001a90535060049490941c936109518161155f565b90506108e3565b5083156109775760405162461bcd60e51b8152600401610466906115a8565b9392505050565b8047101561099e5760405162461bcd60e51b8152600401610466906115ec565b6000826001600160a01b0316826040516109b7906115fc565b60006040518083038185875af1925050503d80600081146109f4576040519150601f19603f3d011682016040523d82523d6000602084013e6109f9565b606091505b50509050806104395760405162461bcd60e51b81526004016104669061165e565b6104398363a9059cbb60e01b8484604051602401610a39929190611027565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610de1565b6060610a7f8484600085610e70565b949350505050565b6105598133610f32565b610a9b8282610649565b610410576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610ad13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610b1f8282610649565b15610410576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60015460009047901580610b8c575080155b15610b9a5750600091829150565b600154610ba79082611684565b91509091565b60005b600254811015610bf557600060036000610bc984610619565b6001600160a01b0316815260208101919091526040016000205580610bed816113ab565b915050610bb0565b50610c0260026000610fcf565b6000600155565b6001600160a01b038216610c2f5760405162461bcd60e51b8152600401610466906116e3565b60008111610c4f5760405162461bcd60e51b815260040161046690611727565b6001600160a01b03821660009081526003602052604090205415610c855760405162461bcd60e51b815260040161046690611781565b6002805460018082019092557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b038516908117909155600090815260036020526040902082905554610cec908290611547565b6001556040517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac90610d219084908490611027565b60405180910390a15050565b600080826001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610d5c9190611310565b60206040518083038186803b158015610d7457600080fd5b505afa158015610d88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dac919061179c565b905060015460001480610dbd575080155b15610dcd57506000928392509050565b600154610dda9082611684565b9150915091565b6000610e36826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610a709092919063ffffffff16565b8051909150156104395780806020019051810190610e5491906117d0565b6104395760405162461bcd60e51b815260040161046690611838565b606082471015610e925760405162461bcd60e51b81526004016104669061188b565b6001600160a01b0385163b610eb95760405162461bcd60e51b8152600401610466906118cf565b600080866001600160a01b03168587604051610ed5919061192d565b60006040518083038185875af1925050503d8060008114610f12576040519150601f19603f3d011682016040523d82523d6000602084013e610f17565b606091505b5091509150610f27828286610f96565b979650505050505050565b610f3c8282610649565b61041057610f54816001600160a01b0316601461080b565b610f5f83602061080b565b604051602001610f70929190611939565b60408051601f198184030181529082905262461bcd60e51b8252610466916004016119c3565b60608315610fa5575081610977565b825115610fb55782518084602001fd5b8160405162461bcd60e51b815260040161046691906119c3565b508054600082559060005260206000209081019061055991905b80821115610ffd5760008155600101610fe9565b5090565b60006001600160a01b03821661039b565b61101b81611001565b82525050565b8061101b565b604081016110358285611012565b6109776020830184611021565b6001600160e01b031981165b811461055957600080fd5b803561039b81611042565b60006020828403121561107957611079600080fd5b6000610a7f8484611059565b80151561101b565b6020810161039b8284611085565b8061104e565b803561039b8161109b565b6000602082840312156110c1576110c1600080fd5b6000610a7f84846110a1565b6020810161039b8284611021565b61104e81611001565b803561039b816110db565b6000806040838503121561110557611105600080fd5b600061111185856110a1565b9250506020611122858286016110e4565b9150509250929050565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff821117156111685761116861112c565b6040525050565b600061117a60405190565b90506111868282611142565b919050565b600067ffffffffffffffff8211156111a5576111a561112c565b5060209081020190565b60006111c26111bd8461118b565b61116f565b838152905060208082019084028301858111156111e1576111e1600080fd5b835b8181101561120557806111f688826110e4565b845250602092830192016111e3565b5050509392505050565b600082601f83011261122357611223600080fd5b8135610a7f8482602086016111af565b60006112416111bd8461118b565b8381529050602080820190840283018581111561126057611260600080fd5b835b81811015611205578061127588826110a1565b84525060209283019201611262565b600082601f83011261129857611298600080fd5b8135610a7f848260208601611233565b600080604083850312156112be576112be600080fd5b823567ffffffffffffffff8111156112d8576112d8600080fd5b6112e48582860161120f565b925050602083013567ffffffffffffffff81111561130457611304600080fd5b61112285828601611284565b6020810161039b8284611012565b600061039b82611001565b61104e8161131e565b803561039b81611329565b60006020828403121561135257611352600080fd5b6000610a7f8484611332565b60006020828403121561137357611373600080fd5b6000610a7f84846110e4565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156113bf576113bf611395565b5060010190565b602f81526000602082017f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636581526e103937b632b9903337b91039b2b63360891b602082015291505b5060400190565b6020808252810161039b816113c6565b600081600019048311821515161561143f5761143f611395565b500290565b603481526000602082017f557064617461626c6553706c69747465723a2070617965657320616e642073688152730c2e4cae640d8cadccee8d040dad2e6dac2e8c6d60631b6020820152915061140e565b6020808252810161039b81611444565b601c81526000602082017f557064617461626c6553706c69747465723a206e6f2070617965657300000000815291505b5060200190565b6020808252810161039b816114a5565b602e81526000602082017f557064617461626c6553706c69747465723a206164647265737320697320746881526d65207a65726f206164647265737360901b6020820152915061140e565b6020808252810161039b816114ec565b6000821982111561155a5761155a611395565b500190565b60008161156e5761156e611395565b506000190190565b60208082527f537472696e67733a20686578206c656e67746820696e73756666696369656e74910190815260006114d5565b6020808252810161039b81611576565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e6365000000815291506114d5565b6020808252810161039b816115b8565b60008161039b565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c207281527f6563697069656e74206d617920686176652072657665727465640000000000006020820152915061140e565b6020808252810161039b81611604565b634e487b7160e01b600052601260045260246000fd5b6000826116935761169361166e565b500490565b602e81526000602082017f557064617461626c6553706c69747465723a206163636f756e7420697320746881526d65207a65726f206164647265737360901b6020820152915061140e565b6020808252810161039b81611698565b601f81526000602082017f557064617461626c6553706c69747465723a2073686172657320617265203000815291506114d5565b6020808252810161039b816116f3565b602d81526000602082017f557064617461626c6553706c69747465723a206163636f756e7420616c72656181526c6479206861732073686172657360981b6020820152915061140e565b6020808252810161039b81611737565b805161039b8161109b565b6000602082840312156117b1576117b1600080fd5b6000610a7f8484611791565b80151561104e565b805161039b816117bd565b6000602082840312156117e5576117e5600080fd5b6000610a7f84846117c5565b602a81526000602082017f5361666545524332303a204552433230206f7065726174696f6e20646964206e8152691bdd081cdd58d8d9595960b21b6020820152915061140e565b6020808252810161039b816117f1565b602681526000602082017f416464726573733a20696e73756666696369656e742062616c616e636520666f8152651c8818d85b1b60d21b6020820152915061140e565b6020808252810161039b81611848565b601d81526000602082017f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000815291506114d5565b6020808252810161039b8161189b565b60005b838110156118fa5781810151838201526020016118e2565b838111156106135750506000910152565b6000611915825190565b6119238185602086016118df565b9290920192915050565b6000610977828461190b565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152601701600061196b828561190b565b7001034b99036b4b9b9b4b733903937b6329607d1b81526011019150610a7f828461190b565b600061199b825190565b8084526020840193506119b28185602086016118df565b601f01601f19169290920192915050565b60208082528101610977818461199156fefeb783bf2f4d93ef3f713b635b3c9d586db0bf6672aa38ec550b29cbcafa519ba2646970667358221220c2a4bcbcdafa87697e2e2323c6c5b4ce46c67dd2d6b49d2577b0133c300deeee64736f6c63430008090033feb783bf2f4d93ef3f713b635b3c9d586db0bf6672aa38ec550b29cbcafa519b000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000e7bc3e402f11cf3a649c3c92d565915ea8a661fa0000000000000000000000007173a646db0eb6e80ed9dc4104a926b5775ee12d0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode
0x6080604052600436106100f75760003560e01c80637150a10a1161008a578063a217fddf11610059578063a217fddf146102df578063ce7c2ac2146102f4578063d48bfca71461032a578063d547741f1461034a57600080fd5b80637150a10a146102525780638b83209b1461027257806391d148541461029f5780639cee789f146102bf57600080fd5b806336568abe116100c657806336568abe146101e65780633a98ef391461020657806361bba4721461021b5780636b9f96ea1461023d57600080fd5b806301ffc9a71461013c578063248a9ca31461017257806328d7753e146101af5780632f2ff15d146101c657600080fd5b36610137577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770333460405161012d929190611027565b60405180910390a1005b600080fd5b34801561014857600080fd5b5061015c610157366004611064565b61036a565b604051610169919061108d565b60405180910390f35b34801561017e57600080fd5b506101a261018d3660046110ac565b60009081526020819052604090206001015490565b60405161016991906110cd565b3480156101bb57600080fd5b506101c46103a1565b005b3480156101d257600080fd5b506101c46101e13660046110ef565b610414565b3480156101f257600080fd5b506101c46102013660046110ef565b61043e565b34801561021257600080fd5b506001546101a2565b34801561022757600080fd5b506101a26000805160206119d583398151915281565b34801561024957600080fd5b506101c4610479565b34801561025e57600080fd5b506101c461026d3660046112a8565b61055c565b34801561027e57600080fd5b5061029261028d3660046110ac565b610619565b6040516101699190611310565b3480156102ab57600080fd5b5061015c6102ba3660046110ef565b610649565b3480156102cb57600080fd5b506101c46102da36600461133d565b610672565b3480156102eb57600080fd5b506101a2600081565b34801561030057600080fd5b506101a261030f36600461135e565b6001600160a01b031660009081526003602052604090205490565b34801561033657600080fd5b506101c461034536600461135e565b610762565b34801561035657600080fd5b506101c46103653660046110ef565b6107e6565b60006001600160e01b03198216637965db0b60e01b148061039b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000805160206119d58339815191526103b981610a87565b6103c1610479565b60005b600454811015610410576103fe600482815481106103e4576103e461137f565b6000918252602090912001546001600160a01b0316610672565b80610408816113ab565b9150506103c4565b5050565b60008281526020819052604090206001015461042f81610a87565b6104398383610a91565b505050565b6001600160a01b038116331461046f5760405162461bcd60e51b815260040161046690611415565b60405180910390fd5b6104108282610b15565b6000805160206119d583398151915261049181610a87565b60008061049c610b7a565b9150915081600014806104ad575080155b156104b757505050565b60005b60025481101561051e5760006104cf82610619565b90506000846104f3836001600160a01b031660009081526003602052604090205490565b6104fd9190611425565b9050610509828261097e565b50508080610516906113ab565b9150506104ba565b507fce566829d5045934d049cf8f411008d87c23a7df552c21b6d3e9d68b07d6278d8160405161054e91906110cd565b60405180910390a150505b50565b600061056781610a87565b81518351146105885760405162461bcd60e51b815260040161046690611495565b60008351116105a95760405162461bcd60e51b8152600401610466906114dc565b6105b16103a1565b6105b9610bad565b60005b8351811015610613576106018482815181106105da576105da61137f565b60200260200101518483815181106105f4576105f461137f565b6020026020010151610c09565b8061060b816113ab565b9150506105bc565b50505050565b60006002828154811061062e5761062e61137f565b6000918252602090912001546001600160a01b031692915050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6000805160206119d583398151915261068a81610a87565b60008061069684610d2d565b9150915081600014806106a7575080155b156106b25750505050565b60005b60025481101561071a5760006106ca82610619565b90506000846106ee836001600160a01b031660009081526003602052604090205490565b6106f89190611425565b9050610705878383610a1a565b50508080610712906113ab565b9150506106b5565b50836001600160a01b03167f75d34d39d28e6c8fd84f5539c817dea378701028c77ceade58bb8789b3e81bde8260405161075491906110cd565b60405180910390a250505050565b600061076d81610a87565b6001600160a01b0382166107935760405162461bcd60e51b815260040161046690611537565b50600480546001810182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526020819052604090206001015461080181610a87565b6104398383610b15565b6060600061081a836002611425565b610825906002611547565b67ffffffffffffffff81111561083d5761083d61112c565b6040519080825280601f01601f191660200182016040528015610867576020820181803683370190505b509050600360fc1b816000815181106108825761088261137f565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106108b1576108b161137f565b60200101906001600160f81b031916908160001a90535060006108d5846002611425565b6108e0906001611547565b90505b6001811115610958576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106109145761091461137f565b1a60f81b82828151811061092a5761092a61137f565b60200101906001600160f81b031916908160001a90535060049490941c936109518161155f565b90506108e3565b5083156109775760405162461bcd60e51b8152600401610466906115a8565b9392505050565b8047101561099e5760405162461bcd60e51b8152600401610466906115ec565b6000826001600160a01b0316826040516109b7906115fc565b60006040518083038185875af1925050503d80600081146109f4576040519150601f19603f3d011682016040523d82523d6000602084013e6109f9565b606091505b50509050806104395760405162461bcd60e51b81526004016104669061165e565b6104398363a9059cbb60e01b8484604051602401610a39929190611027565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610de1565b6060610a7f8484600085610e70565b949350505050565b6105598133610f32565b610a9b8282610649565b610410576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610ad13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610b1f8282610649565b15610410576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60015460009047901580610b8c575080155b15610b9a5750600091829150565b600154610ba79082611684565b91509091565b60005b600254811015610bf557600060036000610bc984610619565b6001600160a01b0316815260208101919091526040016000205580610bed816113ab565b915050610bb0565b50610c0260026000610fcf565b6000600155565b6001600160a01b038216610c2f5760405162461bcd60e51b8152600401610466906116e3565b60008111610c4f5760405162461bcd60e51b815260040161046690611727565b6001600160a01b03821660009081526003602052604090205415610c855760405162461bcd60e51b815260040161046690611781565b6002805460018082019092557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b038516908117909155600090815260036020526040902082905554610cec908290611547565b6001556040517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac90610d219084908490611027565b60405180910390a15050565b600080826001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610d5c9190611310565b60206040518083038186803b158015610d7457600080fd5b505afa158015610d88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dac919061179c565b905060015460001480610dbd575080155b15610dcd57506000928392509050565b600154610dda9082611684565b9150915091565b6000610e36826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610a709092919063ffffffff16565b8051909150156104395780806020019051810190610e5491906117d0565b6104395760405162461bcd60e51b815260040161046690611838565b606082471015610e925760405162461bcd60e51b81526004016104669061188b565b6001600160a01b0385163b610eb95760405162461bcd60e51b8152600401610466906118cf565b600080866001600160a01b03168587604051610ed5919061192d565b60006040518083038185875af1925050503d8060008114610f12576040519150601f19603f3d011682016040523d82523d6000602084013e610f17565b606091505b5091509150610f27828286610f96565b979650505050505050565b610f3c8282610649565b61041057610f54816001600160a01b0316601461080b565b610f5f83602061080b565b604051602001610f70929190611939565b60408051601f198184030181529082905262461bcd60e51b8252610466916004016119c3565b60608315610fa5575081610977565b825115610fb55782518084602001fd5b8160405162461bcd60e51b815260040161046691906119c3565b508054600082559060005260206000209081019061055991905b80821115610ffd5760008155600101610fe9565b5090565b60006001600160a01b03821661039b565b61101b81611001565b82525050565b8061101b565b604081016110358285611012565b6109776020830184611021565b6001600160e01b031981165b811461055957600080fd5b803561039b81611042565b60006020828403121561107957611079600080fd5b6000610a7f8484611059565b80151561101b565b6020810161039b8284611085565b8061104e565b803561039b8161109b565b6000602082840312156110c1576110c1600080fd5b6000610a7f84846110a1565b6020810161039b8284611021565b61104e81611001565b803561039b816110db565b6000806040838503121561110557611105600080fd5b600061111185856110a1565b9250506020611122858286016110e4565b9150509250929050565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff821117156111685761116861112c565b6040525050565b600061117a60405190565b90506111868282611142565b919050565b600067ffffffffffffffff8211156111a5576111a561112c565b5060209081020190565b60006111c26111bd8461118b565b61116f565b838152905060208082019084028301858111156111e1576111e1600080fd5b835b8181101561120557806111f688826110e4565b845250602092830192016111e3565b5050509392505050565b600082601f83011261122357611223600080fd5b8135610a7f8482602086016111af565b60006112416111bd8461118b565b8381529050602080820190840283018581111561126057611260600080fd5b835b81811015611205578061127588826110a1565b84525060209283019201611262565b600082601f83011261129857611298600080fd5b8135610a7f848260208601611233565b600080604083850312156112be576112be600080fd5b823567ffffffffffffffff8111156112d8576112d8600080fd5b6112e48582860161120f565b925050602083013567ffffffffffffffff81111561130457611304600080fd5b61112285828601611284565b6020810161039b8284611012565b600061039b82611001565b61104e8161131e565b803561039b81611329565b60006020828403121561135257611352600080fd5b6000610a7f8484611332565b60006020828403121561137357611373600080fd5b6000610a7f84846110e4565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156113bf576113bf611395565b5060010190565b602f81526000602082017f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636581526e103937b632b9903337b91039b2b63360891b602082015291505b5060400190565b6020808252810161039b816113c6565b600081600019048311821515161561143f5761143f611395565b500290565b603481526000602082017f557064617461626c6553706c69747465723a2070617965657320616e642073688152730c2e4cae640d8cadccee8d040dad2e6dac2e8c6d60631b6020820152915061140e565b6020808252810161039b81611444565b601c81526000602082017f557064617461626c6553706c69747465723a206e6f2070617965657300000000815291505b5060200190565b6020808252810161039b816114a5565b602e81526000602082017f557064617461626c6553706c69747465723a206164647265737320697320746881526d65207a65726f206164647265737360901b6020820152915061140e565b6020808252810161039b816114ec565b6000821982111561155a5761155a611395565b500190565b60008161156e5761156e611395565b506000190190565b60208082527f537472696e67733a20686578206c656e67746820696e73756666696369656e74910190815260006114d5565b6020808252810161039b81611576565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e6365000000815291506114d5565b6020808252810161039b816115b8565b60008161039b565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c207281527f6563697069656e74206d617920686176652072657665727465640000000000006020820152915061140e565b6020808252810161039b81611604565b634e487b7160e01b600052601260045260246000fd5b6000826116935761169361166e565b500490565b602e81526000602082017f557064617461626c6553706c69747465723a206163636f756e7420697320746881526d65207a65726f206164647265737360901b6020820152915061140e565b6020808252810161039b81611698565b601f81526000602082017f557064617461626c6553706c69747465723a2073686172657320617265203000815291506114d5565b6020808252810161039b816116f3565b602d81526000602082017f557064617461626c6553706c69747465723a206163636f756e7420616c72656181526c6479206861732073686172657360981b6020820152915061140e565b6020808252810161039b81611737565b805161039b8161109b565b6000602082840312156117b1576117b1600080fd5b6000610a7f8484611791565b80151561104e565b805161039b816117bd565b6000602082840312156117e5576117e5600080fd5b6000610a7f84846117c5565b602a81526000602082017f5361666545524332303a204552433230206f7065726174696f6e20646964206e8152691bdd081cdd58d8d9595960b21b6020820152915061140e565b6020808252810161039b816117f1565b602681526000602082017f416464726573733a20696e73756666696369656e742062616c616e636520666f8152651c8818d85b1b60d21b6020820152915061140e565b6020808252810161039b81611848565b601d81526000602082017f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000815291506114d5565b6020808252810161039b8161189b565b60005b838110156118fa5781810151838201526020016118e2565b838111156106135750506000910152565b6000611915825190565b6119238185602086016118df565b9290920192915050565b6000610977828461190b565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152601701600061196b828561190b565b7001034b99036b4b9b9b4b733903937b6329607d1b81526011019150610a7f828461190b565b600061199b825190565b8084526020840193506119b28185602086016118df565b601f01601f19169290920192915050565b60208082528101610977818461199156fefeb783bf2f4d93ef3f713b635b3c9d586db0bf6672aa38ec550b29cbcafa519ba2646970667358221220c2a4bcbcdafa87697e2e2323c6c5b4ce46c67dd2d6b49d2577b0133c300deeee64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000e7bc3e402f11cf3a649c3c92d565915ea8a661fa0000000000000000000000007173a646db0eb6e80ed9dc4104a926b5775ee12d0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
-----Decoded View---------------
Arg [0] : payees (address[]): 0xE7bc3E402f11cF3A649C3C92d565915eA8A661Fa,0x7173a646db0Eb6e80eD9dc4104a926B5775EE12D
Arg [1] : shares (uint256[]): 1,1
Arg [2] : tokens (address[]): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [4] : 000000000000000000000000e7bc3e402f11cf3a649c3c92d565915ea8a661fa
Arg [5] : 0000000000000000000000007173a646db0eb6e80ed9dc4104a926b5775ee12d
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [10] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $3,262.18 | 0.0002925 | $0.9541 |
Loading...
Loading
[ Download: CSV Export ]
[ 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.