Address Details
contract
0xE08df71991c6203bc5DeB34c29B225379BB68358
- Contract Name
- TokenPaymentSplitter
- Creator
- 0x31ec66–cb920e at 0x0f4f5d–787e39
- Balance
- 0 CELO ( )
- Locked CELO Balance
- 0.00 CELO
- Voting CELO Balance
- 0.00 CELO
- Pending Unlocked Gold
- 0.00 CELO
- Tokens
-
Fetching tokens...
- Transactions
- 0 Transactions
- Transfers
- 0 Transfers
- Gas Used
- Fetching gas used...
- Last Balance Update
- 7672115
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- TokenPaymentSplitter
- Optimization enabled
- true
- Compiler version
- v0.8.0+commit.c7dfd78e
- Optimization runs
- 200
- EVM Version
- istanbul
- Verified at
- 2023-02-06T04:50:56.888611Z
TokenPaymentSplitter.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./PaymentSplitterPool.sol"; contract TokenPaymentSplitter is AccessControl { mapping(uint256 => address) public paymentSplitterPools; event PaymentSplitterCreated(address account, address paymentSplitterPool); event PaymentReleased(address to, uint256 amount); constructor() { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); } function createPaymentSplitterPool(uint256 id, address[] memory payees, uint256[] memory shares) payable external returns(bool) { PaymentSplitterPool ps = new PaymentSplitterPool(payees, shares); paymentSplitterPools[id] = address(ps); emit PaymentSplitterCreated(msg.sender, address(ps)); return true; } function transferPaymentSplit(address payable[] memory payees, uint256[] memory shares) payable external returns(bool) { require(payees.length == shares.length, "TokenPaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "TokenPaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; ++i) { uint256 payment = SafeMath.div(SafeMath.mul(msg.value, shares[i]), 100); Address.sendValue(payees[i], payment); } return true; } function transferPaymentSplit(IERC20 paymentToken, uint256 amount, address[] memory payees, uint256[] memory shares) external returns(bool) { require(payees.length == shares.length, "TokenPaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "TokenPaymentSplitter: no payees"); require(IERC20(paymentToken).balanceOf(msg.sender) > amount, "TokenPaymentSplitter: low balance"); require(IERC20(paymentToken).allowance(msg.sender, address(this)) < amount, "TokenPaymentSplitter: low allowance"); for (uint256 i = 0; i < payees.length; ++i) { uint256 payment = SafeMath.div(SafeMath.mul(amount, shares[i]), 100); SafeERC20.safeTransferFrom(paymentToken, msg.sender, payees[i], payment); } return true; } }
/PaymentSplitterPool.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; contract PaymentSplitterPool is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * 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`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @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]. */ 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 total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @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]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @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 payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + totalReleased(); uint256 payment = _pendingPayment(account, totalReceived, released(account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); uint256 payment = _pendingPayment(account, totalReceived, released(token, account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
/_openzeppelin/contracts/access/AccessControl.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
/_openzeppelin/contracts/access/IAccessControl.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
/_openzeppelin/contracts/token/ERC20/IERC20.sol
// 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); }
/_openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.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)); } } /** * @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"); } } }
/_openzeppelin/contracts/utils/Address.sol
// 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; 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"); (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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
/_openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
/_openzeppelin/contracts/utils/Strings.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
/_openzeppelin/contracts/utils/introspection/ERC165.sol
// 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; } }
/_openzeppelin/contracts/utils/introspection/IERC165.sol
// 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); }
/_openzeppelin/contracts/utils/math/SafeMath.sol
// 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. 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; } } }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"PaymentReleased","inputs":[{"type":"address","name":"to","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"PaymentSplitterCreated","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false},{"type":"address","name":"paymentSplitterPool","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"previousAdminRole","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"newAdminRole","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"createPaymentSplitterPool","inputs":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"address[]","name":"payees","internalType":"address[]"},{"type":"uint256[]","name":"shares","internalType":"uint256[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"grantRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"paymentSplitterPools","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferPaymentSplit","inputs":[{"type":"address","name":"paymentToken","internalType":"contract IERC20"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"address[]","name":"payees","internalType":"address[]"},{"type":"uint256[]","name":"shares","internalType":"uint256[]"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferPaymentSplit","inputs":[{"type":"address[]","name":"payees","internalType":"address payable[]"},{"type":"uint256[]","name":"shares","internalType":"uint256[]"}]}]
Contract Creation Code
0x60806040523480156200001157600080fd5b506200001f60003362000025565b620000ec565b62000031828262000035565b5050565b620000418282620000bf565b62000031576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200007b620000e8565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b3390565b61291080620000fc6000396000f3fe608060405260043610620000aa5760003560e01c80637725886d116200006d5780637725886d146200019157806391d1485414620001a8578063a217fddf14620001cd578063d547741f14620001e5578063de1d38b5146200020a578063ff3250f9146200022157620000aa565b806301ffc9a714620000af57806305851bb814620000ec578063248a9ca314620001115780632f2ff15d146200014557806336568abe146200016c575b600080fd5b348015620000bc57600080fd5b50620000d4620000ce36600462000fc5565b62000255565b604051620000e3919062001265565b60405180910390f35b348015620000f957600080fd5b50620000d46200010b36600462000fef565b62000283565b3480156200011e57600080fd5b50620001366200013036600462000f7a565b620004c7565b604051620000e3919062001270565b3480156200015257600080fd5b506200016a6200016436600462000f93565b620004dc565b005b3480156200017957600080fd5b506200016a6200018b36600462000f93565b6200050d565b620000d4620001a236600462000e8a565b6200055a565b348015620001b557600080fd5b50620000d4620001c736600462000f93565b62000631565b348015620001da57600080fd5b50620001366200065a565b348015620001f257600080fd5b506200016a6200020436600462000f93565b6200065f565b620000d46200021b3660046200108e565b62000685565b3480156200022e57600080fd5b50620002466200024036600462000f7a565b62000736565b604051620000e3919062001199565b60006001600160e01b03198216637965db0b60e01b14806200027d57506200027d8262000751565b92915050565b60008151835114620002b25760405162461bcd60e51b8152600401620002a990620014af565b60405180910390fd5b6000835111620002d65760405162461bcd60e51b8152600401620002a99062001441565b6040516370a0823160e01b815284906001600160a01b038716906370a08231906200030690339060040162001199565b60206040518083038186803b1580156200031f57600080fd5b505afa15801562000334573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200035a919062001075565b116200037a5760405162461bcd60e51b8152600401620002a99062001326565b604051636eb1769f60e11b815284906001600160a01b0387169063dd62ed3e90620003ac9033903090600401620011ad565b60206040518083038186803b158015620003c557600080fd5b505afa158015620003da573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000400919062001075565b10620004205760405162461bcd60e51b8152600401620002a990620012e3565b60005b8351811015620004bb5760006200046f62000467878685815181106200045957634e487b7160e01b600052603260045260246000fd5b60200260200101516200076a565b606462000778565b9050620004a787338785815181106200049857634e487b7160e01b600052603260045260246000fd5b60200260200101518462000786565b50620004b381620016a0565b905062000423565b50600195945050505050565b60009081526020819052604090206001015490565b620004e782620004c7565b620004fc81620004f6620007e8565b620007ec565b6200050883836200085b565b505050565b62000517620007e8565b6001600160a01b0316816001600160a01b0316146200054a5760405162461bcd60e51b8152600401620002a99062001556565b620005568282620008e5565b5050565b60008151835114620005805760405162461bcd60e51b8152600401620002a990620014af565b6000835111620005a45760405162461bcd60e51b8152600401620002a99062001441565b60005b835181101562000627576000620005dd62000467348685815181106200045957634e487b7160e01b600052603260045260246000fd5b9050620006138583815181106200060457634e487b7160e01b600052603260045260246000fd5b6020026020010151826200096d565b506200061f81620016a0565b9050620005a7565b5060019392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600081565b6200066a82620004c7565b6200067981620004f6620007e8565b620005088383620008e5565b6000808383604051620006989062000d9c565b620006a5929190620011eb565b604051809103906000f080158015620006c2573d6000803e3d6000fd5b506000868152600160205260409081902080546001600160a01b0319166001600160a01b038416179055519091507f44a01f0be942c69102a4db51809774c56902b734e1597c62acaf58b71b8d634590620007219033908490620011ad565b60405180910390a160019150505b9392505050565b6001602052600090815260409020546001600160a01b031681565b6001600160e01b031981166301ffc9a760e01b14919050565b60006200072f828462001635565b60006200072f828462001614565b620007e2846323b872dd60e01b858585604051602401620007aa93929190620011c7565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915262000a13565b50505050565b3390565b620007f8828262000631565b620005565762000813816001600160a01b0316601462000aaa565b6200082083602062000aaa565b6040516020016200083392919062001120565b60408051601f198184030181529082905262461bcd60e51b8252620002a99160040162001279565b62000867828262000631565b62000556576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620008a1620007e8565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b620008f1828262000631565b1562000556576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916905562000929620007e8565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b80471015620009905760405162461bcd60e51b8152600401620002a990620013c4565b6000826001600160a01b031682604051620009ab906200111d565b60006040518083038185875af1925050503d8060008114620009ea576040519150601f19603f3d011682016040523d82523d6000602084013e620009ef565b606091505b5050905080620005085760405162461bcd60e51b8152600401620002a99062001367565b600062000a6a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031662000c719092919063ffffffff16565b80519091501562000508578080602001905181019062000a8b919062000f58565b620005085760405162461bcd60e51b8152600401620002a9906200150c565b6060600062000abb83600262001635565b62000ac8906002620015f9565b67ffffffffffffffff81111562000aef57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801562000b1a576020820181803683370190505b509050600360fc1b8160008151811062000b4457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811062000b8257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600062000ba884600262001635565b62000bb5906001620015f9565b90505b600181111562000c4f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062000bf957634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811062000c1e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9362000c478162001686565b905062000bb8565b5083156200072f5760405162461bcd60e51b8152600401620002a990620012ae565b606062000c82848460008562000c8a565b949350505050565b60608247101562000caf5760405162461bcd60e51b8152600401620002a990620013fb565b62000cba8562000d58565b62000cd95760405162461bcd60e51b8152600401620002a99062001478565b600080866001600160a01b0316858760405162000cf79190620010ff565b60006040518083038185875af1925050503d806000811462000d36576040519150601f19603f3d011682016040523d82523d6000602084013e62000d3b565b606091505b509150915062000d4d82828662000d5e565b979650505050505050565b3b151590565b6060831562000d6f5750816200072f565b82511562000d805782518084602001fd5b8160405162461bcd60e51b8152600401620002a9919062001279565b6111d7806200170483390190565b600082601f83011262000dbb578081fd5b8135602062000dd462000dce83620015d2565b620015a5565b828152818101908583018385028701840188101562000df1578586fd5b855b8581101562000e1c57813562000e0981620016ea565b8452928401929084019060010162000df3565b5090979650505050505050565b600082601f83011262000e3a578081fd5b8135602062000e4d62000dce83620015d2565b828152818101908583018385028701840188101562000e6a578586fd5b855b8581101562000e1c5781358452928401929084019060010162000e6c565b6000806040838503121562000e9d578182fd5b823567ffffffffffffffff8082111562000eb5578384fd5b818501915085601f83011262000ec9578384fd5b8135602062000edc62000dce83620015d2565b82815281810190858301838502870184018b101562000ef9578889fd5b8896505b8487101562000f2857803562000f1381620016ea565b83526001969096019591830191830162000efd565b509650508601359250508082111562000f3f578283fd5b5062000f4e8582860162000e29565b9150509250929050565b60006020828403121562000f6a578081fd5b815180151581146200072f578182fd5b60006020828403121562000f8c578081fd5b5035919050565b6000806040838503121562000fa6578182fd5b82359150602083013562000fba81620016ea565b809150509250929050565b60006020828403121562000fd7578081fd5b81356001600160e01b0319811681146200072f578182fd5b6000806000806080858703121562001005578182fd5b84356200101281620016ea565b935060208501359250604085013567ffffffffffffffff8082111562001036578384fd5b620010448883890162000daa565b935060608701359150808211156200105a578283fd5b50620010698782880162000e29565b91505092959194509250565b60006020828403121562001087578081fd5b5051919050565b600080600060608486031215620010a3578283fd5b83359250602084013567ffffffffffffffff80821115620010c2578384fd5b620010d08783880162000daa565b93506040860135915080821115620010e6578283fd5b50620010f58682870162000e29565b9150509250925092565b600082516200111381846020870162001657565b9190910192915050565b90565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516200115a81601785016020880162001657565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516200118d81602884016020880162001657565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b604080825283519082018190526000906020906060840190828701845b828110156200122f5781516001600160a01b03168452928401929084019060010162001208565b50505083810382850152845180825285830191830190845b8181101562000e1c5783518352928401929184019160010162001247565b901515815260200190565b90815260200190565b60006020825282518060208401526200129a81604085016020870162001657565b601f01601f19169190910160400192915050565b6020808252818101527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604082015260600190565b60208082526023908201527f546f6b656e5061796d656e7453706c69747465723a206c6f7720616c6c6f77616040820152626e636560e81b606082015260800190565b60208082526021908201527f546f6b656e5061796d656e7453706c69747465723a206c6f772062616c616e636040820152606560f81b606082015260800190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601f908201527f546f6b656e5061796d656e7453706c69747465723a206e6f2070617965657300604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526037908201527f546f6b656e5061796d656e7453706c69747465723a2070617965657320616e6460408201527f20736861726573206c656e677468206d69736d61746368000000000000000000606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201526e103937b632b9903337b91039b2b63360891b606082015260800190565b60405181810167ffffffffffffffff81118282101715620015ca57620015ca620016d4565b604052919050565b600067ffffffffffffffff821115620015ef57620015ef620016d4565b5060209081020190565b600082198211156200160f576200160f620016be565b500190565b6000826200163057634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615620016525762001652620016be565b500290565b60005b83811015620016745781810151838201526020016200165a565b83811115620007e25750506000910152565b600081620016985762001698620016be565b506000190190565b6000600019821415620016b757620016b7620016be565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146200170057600080fd5b5056fe6080604052604051620011d7380380620011d78339810160408190526200002691620002a8565b8051825114620000535760405162461bcd60e51b81526004016200004a90620003e7565b60405180910390fd5b6000825111620000775760405162461bcd60e51b81526004016200004a9062000484565b60005b8251811015620000fb57620000e6838281518110620000a957634e487b7160e01b600052603260045260246000fd5b6020026020010151838381518110620000d257634e487b7160e01b600052603260045260246000fd5b60200260200101516200010460201b60201c565b80620000f2816200055f565b9150506200007a565b505050620005a9565b6001600160a01b0382166200012d5760405162461bcd60e51b81526004016200004a906200039b565b60008111620001505760405162461bcd60e51b81526004016200004a90620004bb565b6001600160a01b03821660009081526002602052604090205415620001895760405162461bcd60e51b81526004016200004a9062000439565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b038416908117909155600090815260026020526040812082905554620001f190829062000544565b6000556040517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac9062000228908490849062000382565b60405180910390a15050565b600082601f83011262000245578081fd5b815160206200025e62000258836200051e565b620004f2565b82815281810190858301838502870184018810156200027b578586fd5b855b858110156200029b578151845292840192908401906001016200027d565b5090979650505050505050565b60008060408385031215620002bb578182fd5b82516001600160401b0380821115620002d2578384fd5b818501915085601f830112620002e6578384fd5b81516020620002f962000258836200051e565b82815281810190858301838502870184018b101562000316578889fd5b8896505b848710156200034f5780516001600160a01b03811681146200033a57898afd5b8352600196909601959183019183016200031a565b509188015191965090935050508082111562000369578283fd5b50620003788582860162000234565b9150509250929050565b6001600160a01b03929092168252602082015260400190565b6020808252602c908201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060408201526b7a65726f206164647265737360a01b606082015260800190565b60208082526032908201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726040820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960408201526a206861732073686172657360a81b606082015260800190565b6020808252601a908201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604082015260600190565b6020808252601d908201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604082015260600190565b6040518181016001600160401b038111828210171562000516576200051662000593565b604052919050565b60006001600160401b038211156200053a576200053a62000593565b5060209081020190565b600082198211156200055a576200055a6200057d565b500190565b60006000198214156200057657620005766200057d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b610c1e80620005b96000396000f3fe60806040526004361061008a5760003560e01c80638b83209b116100595780638b83209b146101635780639852595c14610190578063ce7c2ac2146101b0578063d79779b2146101d0578063e33b7de3146101f0576100d1565b806319165587146100d65780633a98ef39146100f8578063406072a91461012357806348b7504414610143576100d1565b366100d1577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706100b8610205565b346040516100c7929190610921565b60405180910390a1005b600080fd5b3480156100e257600080fd5b506100f66100f136600461084a565b610209565b005b34801561010457600080fd5b5061010d610320565b60405161011a9190610b13565b60405180910390f35b34801561012f57600080fd5b5061010d61013e366004610886565b610326565b34801561014f57600080fd5b506100f661015e366004610886565b610351565b34801561016f57600080fd5b5061018361017e3660046108be565b610507565b60405161011a919061090d565b34801561019c57600080fd5b5061010d6101ab36600461084a565b610545565b3480156101bc57600080fd5b5061010d6101cb36600461084a565b610560565b3480156101dc57600080fd5b5061010d6101eb36600461084a565b61057b565b3480156101fc57600080fd5b5061010d610596565b3390565b6001600160a01b0381166000908152600260205260409020546102475760405162461bcd60e51b815260040161023e9061096d565b60405180910390fd5b6000610251610596565b61025b9047610b1c565b90506000610272838361026d86610545565b61059c565b9050806102915760405162461bcd60e51b815260040161023e90610a47565b6001600160a01b038316600090815260036020526040812080548392906102b9908490610b1c565b9250508190555080600160008282546102d29190610b1c565b909155506102e2905083826105e1565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568382604051610313929190610921565b60405180910390a1505050565b60005490565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b6001600160a01b0381166000908152600260205260409020546103865760405162461bcd60e51b815260040161023e9061096d565b60006103918361057b565b6040516370a0823160e01b81526001600160a01b038516906370a08231906103bd90309060040161090d565b60206040518083038186803b1580156103d557600080fd5b505afa1580156103e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040d91906108d6565b6104179190610b1c565b9050600061042a838361026d8787610326565b9050806104495760405162461bcd60e51b815260040161023e90610a47565b6001600160a01b03808516600090815260066020908152604080832093871683529290529081208054839290610480908490610b1c565b90915550506001600160a01b038416600090815260056020526040812080548392906104ad908490610b1c565b909155506104be9050848483610682565b836001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a84836040516104f9929190610921565b60405180910390a250505050565b60006004828154811061052a57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6001600160a01b031660009081526003602052604090205490565b6001600160a01b031660009081526002602052604090205490565b6001600160a01b031660009081526005602052604090205490565b60015490565b600080546001600160a01b0385168252600260205260408220548391906105c39086610b54565b6105cd9190610b34565b6105d79190610b73565b90505b9392505050565b804710156106015760405162461bcd60e51b815260040161023e90610a10565b6000826001600160a01b03168260405161061a9061090a565b60006040518083038185875af1925050503d8060008114610657576040519150601f19603f3d011682016040523d82523d6000602084013e61065c565b606091505b505090508061067d5760405162461bcd60e51b815260040161023e906109b3565b505050565b61067d8363a9059cbb60e01b84846040516024016106a1929190610921565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526000610728826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107629092919063ffffffff16565b80519091501561067d57808060200190518101906107469190610866565b61067d5760405162461bcd60e51b815260040161023e90610ac9565b60606105d78484600085856107768561080b565b6107925760405162461bcd60e51b815260040161023e90610a92565b600080866001600160a01b031685876040516107ae91906108ee565b60006040518083038185875af1925050503d80600081146107eb576040519150601f19603f3d011682016040523d82523d6000602084013e6107f0565b606091505b5091509150610800828286610811565b979650505050505050565b3b151590565b606083156108205750816105da565b8251156108305782518084602001fd5b8160405162461bcd60e51b815260040161023e919061093a565b60006020828403121561085b578081fd5b81356105da81610bd0565b600060208284031215610877578081fd5b815180151581146105da578182fd5b60008060408385031215610898578081fd5b82356108a381610bd0565b915060208301356108b381610bd0565b809150509250929050565b6000602082840312156108cf578081fd5b5035919050565b6000602082840312156108e7578081fd5b5051919050565b60008251610900818460208701610b8a565b9190910192915050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6000602082528251806020840152610959816040850160208701610b8a565b601f01601f19169190910160400192915050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b90815260200190565b60008219821115610b2f57610b2f610bba565b500190565b600082610b4f57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610b6e57610b6e610bba565b500290565b600082821015610b8557610b85610bba565b500390565b60005b83811015610ba5578181015183820152602001610b8d565b83811115610bb4576000848401525b50505050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610be557600080fd5b5056fea2646970667358221220fc59907b38b159fb052d4c0efe11f7846f855c9322435315a60c197c5a8d277f64736f6c63430008000033a264697066735822122020ff53b921c51718d0350ccc95cc00dfa7ae9e15f7eae5ecb7780afb744f285564736f6c63430008000033
Deployed ByteCode
0x608060405260043610620000aa5760003560e01c80637725886d116200006d5780637725886d146200019157806391d1485414620001a8578063a217fddf14620001cd578063d547741f14620001e5578063de1d38b5146200020a578063ff3250f9146200022157620000aa565b806301ffc9a714620000af57806305851bb814620000ec578063248a9ca314620001115780632f2ff15d146200014557806336568abe146200016c575b600080fd5b348015620000bc57600080fd5b50620000d4620000ce36600462000fc5565b62000255565b604051620000e3919062001265565b60405180910390f35b348015620000f957600080fd5b50620000d46200010b36600462000fef565b62000283565b3480156200011e57600080fd5b50620001366200013036600462000f7a565b620004c7565b604051620000e3919062001270565b3480156200015257600080fd5b506200016a6200016436600462000f93565b620004dc565b005b3480156200017957600080fd5b506200016a6200018b36600462000f93565b6200050d565b620000d4620001a236600462000e8a565b6200055a565b348015620001b557600080fd5b50620000d4620001c736600462000f93565b62000631565b348015620001da57600080fd5b50620001366200065a565b348015620001f257600080fd5b506200016a6200020436600462000f93565b6200065f565b620000d46200021b3660046200108e565b62000685565b3480156200022e57600080fd5b50620002466200024036600462000f7a565b62000736565b604051620000e3919062001199565b60006001600160e01b03198216637965db0b60e01b14806200027d57506200027d8262000751565b92915050565b60008151835114620002b25760405162461bcd60e51b8152600401620002a990620014af565b60405180910390fd5b6000835111620002d65760405162461bcd60e51b8152600401620002a99062001441565b6040516370a0823160e01b815284906001600160a01b038716906370a08231906200030690339060040162001199565b60206040518083038186803b1580156200031f57600080fd5b505afa15801562000334573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200035a919062001075565b116200037a5760405162461bcd60e51b8152600401620002a99062001326565b604051636eb1769f60e11b815284906001600160a01b0387169063dd62ed3e90620003ac9033903090600401620011ad565b60206040518083038186803b158015620003c557600080fd5b505afa158015620003da573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000400919062001075565b10620004205760405162461bcd60e51b8152600401620002a990620012e3565b60005b8351811015620004bb5760006200046f62000467878685815181106200045957634e487b7160e01b600052603260045260246000fd5b60200260200101516200076a565b606462000778565b9050620004a787338785815181106200049857634e487b7160e01b600052603260045260246000fd5b60200260200101518462000786565b50620004b381620016a0565b905062000423565b50600195945050505050565b60009081526020819052604090206001015490565b620004e782620004c7565b620004fc81620004f6620007e8565b620007ec565b6200050883836200085b565b505050565b62000517620007e8565b6001600160a01b0316816001600160a01b0316146200054a5760405162461bcd60e51b8152600401620002a99062001556565b620005568282620008e5565b5050565b60008151835114620005805760405162461bcd60e51b8152600401620002a990620014af565b6000835111620005a45760405162461bcd60e51b8152600401620002a99062001441565b60005b835181101562000627576000620005dd62000467348685815181106200045957634e487b7160e01b600052603260045260246000fd5b9050620006138583815181106200060457634e487b7160e01b600052603260045260246000fd5b6020026020010151826200096d565b506200061f81620016a0565b9050620005a7565b5060019392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600081565b6200066a82620004c7565b6200067981620004f6620007e8565b620005088383620008e5565b6000808383604051620006989062000d9c565b620006a5929190620011eb565b604051809103906000f080158015620006c2573d6000803e3d6000fd5b506000868152600160205260409081902080546001600160a01b0319166001600160a01b038416179055519091507f44a01f0be942c69102a4db51809774c56902b734e1597c62acaf58b71b8d634590620007219033908490620011ad565b60405180910390a160019150505b9392505050565b6001602052600090815260409020546001600160a01b031681565b6001600160e01b031981166301ffc9a760e01b14919050565b60006200072f828462001635565b60006200072f828462001614565b620007e2846323b872dd60e01b858585604051602401620007aa93929190620011c7565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915262000a13565b50505050565b3390565b620007f8828262000631565b620005565762000813816001600160a01b0316601462000aaa565b6200082083602062000aaa565b6040516020016200083392919062001120565b60408051601f198184030181529082905262461bcd60e51b8252620002a99160040162001279565b62000867828262000631565b62000556576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620008a1620007e8565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b620008f1828262000631565b1562000556576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916905562000929620007e8565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b80471015620009905760405162461bcd60e51b8152600401620002a990620013c4565b6000826001600160a01b031682604051620009ab906200111d565b60006040518083038185875af1925050503d8060008114620009ea576040519150601f19603f3d011682016040523d82523d6000602084013e620009ef565b606091505b5050905080620005085760405162461bcd60e51b8152600401620002a99062001367565b600062000a6a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031662000c719092919063ffffffff16565b80519091501562000508578080602001905181019062000a8b919062000f58565b620005085760405162461bcd60e51b8152600401620002a9906200150c565b6060600062000abb83600262001635565b62000ac8906002620015f9565b67ffffffffffffffff81111562000aef57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801562000b1a576020820181803683370190505b509050600360fc1b8160008151811062000b4457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811062000b8257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600062000ba884600262001635565b62000bb5906001620015f9565b90505b600181111562000c4f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062000bf957634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811062000c1e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9362000c478162001686565b905062000bb8565b5083156200072f5760405162461bcd60e51b8152600401620002a990620012ae565b606062000c82848460008562000c8a565b949350505050565b60608247101562000caf5760405162461bcd60e51b8152600401620002a990620013fb565b62000cba8562000d58565b62000cd95760405162461bcd60e51b8152600401620002a99062001478565b600080866001600160a01b0316858760405162000cf79190620010ff565b60006040518083038185875af1925050503d806000811462000d36576040519150601f19603f3d011682016040523d82523d6000602084013e62000d3b565b606091505b509150915062000d4d82828662000d5e565b979650505050505050565b3b151590565b6060831562000d6f5750816200072f565b82511562000d805782518084602001fd5b8160405162461bcd60e51b8152600401620002a9919062001279565b6111d7806200170483390190565b600082601f83011262000dbb578081fd5b8135602062000dd462000dce83620015d2565b620015a5565b828152818101908583018385028701840188101562000df1578586fd5b855b8581101562000e1c57813562000e0981620016ea565b8452928401929084019060010162000df3565b5090979650505050505050565b600082601f83011262000e3a578081fd5b8135602062000e4d62000dce83620015d2565b828152818101908583018385028701840188101562000e6a578586fd5b855b8581101562000e1c5781358452928401929084019060010162000e6c565b6000806040838503121562000e9d578182fd5b823567ffffffffffffffff8082111562000eb5578384fd5b818501915085601f83011262000ec9578384fd5b8135602062000edc62000dce83620015d2565b82815281810190858301838502870184018b101562000ef9578889fd5b8896505b8487101562000f2857803562000f1381620016ea565b83526001969096019591830191830162000efd565b509650508601359250508082111562000f3f578283fd5b5062000f4e8582860162000e29565b9150509250929050565b60006020828403121562000f6a578081fd5b815180151581146200072f578182fd5b60006020828403121562000f8c578081fd5b5035919050565b6000806040838503121562000fa6578182fd5b82359150602083013562000fba81620016ea565b809150509250929050565b60006020828403121562000fd7578081fd5b81356001600160e01b0319811681146200072f578182fd5b6000806000806080858703121562001005578182fd5b84356200101281620016ea565b935060208501359250604085013567ffffffffffffffff8082111562001036578384fd5b620010448883890162000daa565b935060608701359150808211156200105a578283fd5b50620010698782880162000e29565b91505092959194509250565b60006020828403121562001087578081fd5b5051919050565b600080600060608486031215620010a3578283fd5b83359250602084013567ffffffffffffffff80821115620010c2578384fd5b620010d08783880162000daa565b93506040860135915080821115620010e6578283fd5b50620010f58682870162000e29565b9150509250925092565b600082516200111381846020870162001657565b9190910192915050565b90565b60007f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000825283516200115a81601785016020880162001657565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516200118d81602884016020880162001657565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b604080825283519082018190526000906020906060840190828701845b828110156200122f5781516001600160a01b03168452928401929084019060010162001208565b50505083810382850152845180825285830191830190845b8181101562000e1c5783518352928401929184019160010162001247565b901515815260200190565b90815260200190565b60006020825282518060208401526200129a81604085016020870162001657565b601f01601f19169190910160400192915050565b6020808252818101527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604082015260600190565b60208082526023908201527f546f6b656e5061796d656e7453706c69747465723a206c6f7720616c6c6f77616040820152626e636560e81b606082015260800190565b60208082526021908201527f546f6b656e5061796d656e7453706c69747465723a206c6f772062616c616e636040820152606560f81b606082015260800190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252601f908201527f546f6b656e5061796d656e7453706c69747465723a206e6f2070617965657300604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526037908201527f546f6b656e5061796d656e7453706c69747465723a2070617965657320616e6460408201527f20736861726573206c656e677468206d69736d61746368000000000000000000606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201526e103937b632b9903337b91039b2b63360891b606082015260800190565b60405181810167ffffffffffffffff81118282101715620015ca57620015ca620016d4565b604052919050565b600067ffffffffffffffff821115620015ef57620015ef620016d4565b5060209081020190565b600082198211156200160f576200160f620016be565b500190565b6000826200163057634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615620016525762001652620016be565b500290565b60005b83811015620016745781810151838201526020016200165a565b83811115620007e25750506000910152565b600081620016985762001698620016be565b506000190190565b6000600019821415620016b757620016b7620016be565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146200170057600080fd5b5056fe6080604052604051620011d7380380620011d78339810160408190526200002691620002a8565b8051825114620000535760405162461bcd60e51b81526004016200004a90620003e7565b60405180910390fd5b6000825111620000775760405162461bcd60e51b81526004016200004a9062000484565b60005b8251811015620000fb57620000e6838281518110620000a957634e487b7160e01b600052603260045260246000fd5b6020026020010151838381518110620000d257634e487b7160e01b600052603260045260246000fd5b60200260200101516200010460201b60201c565b80620000f2816200055f565b9150506200007a565b505050620005a9565b6001600160a01b0382166200012d5760405162461bcd60e51b81526004016200004a906200039b565b60008111620001505760405162461bcd60e51b81526004016200004a90620004bb565b6001600160a01b03821660009081526002602052604090205415620001895760405162461bcd60e51b81526004016200004a9062000439565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b038416908117909155600090815260026020526040812082905554620001f190829062000544565b6000556040517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac9062000228908490849062000382565b60405180910390a15050565b600082601f83011262000245578081fd5b815160206200025e62000258836200051e565b620004f2565b82815281810190858301838502870184018810156200027b578586fd5b855b858110156200029b578151845292840192908401906001016200027d565b5090979650505050505050565b60008060408385031215620002bb578182fd5b82516001600160401b0380821115620002d2578384fd5b818501915085601f830112620002e6578384fd5b81516020620002f962000258836200051e565b82815281810190858301838502870184018b101562000316578889fd5b8896505b848710156200034f5780516001600160a01b03811681146200033a57898afd5b8352600196909601959183019183016200031a565b509188015191965090935050508082111562000369578283fd5b50620003788582860162000234565b9150509250929050565b6001600160a01b03929092168252602082015260400190565b6020808252602c908201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060408201526b7a65726f206164647265737360a01b606082015260800190565b60208082526032908201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726040820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960408201526a206861732073686172657360a81b606082015260800190565b6020808252601a908201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604082015260600190565b6020808252601d908201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604082015260600190565b6040518181016001600160401b038111828210171562000516576200051662000593565b604052919050565b60006001600160401b038211156200053a576200053a62000593565b5060209081020190565b600082198211156200055a576200055a6200057d565b500190565b60006000198214156200057657620005766200057d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b610c1e80620005b96000396000f3fe60806040526004361061008a5760003560e01c80638b83209b116100595780638b83209b146101635780639852595c14610190578063ce7c2ac2146101b0578063d79779b2146101d0578063e33b7de3146101f0576100d1565b806319165587146100d65780633a98ef39146100f8578063406072a91461012357806348b7504414610143576100d1565b366100d1577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706100b8610205565b346040516100c7929190610921565b60405180910390a1005b600080fd5b3480156100e257600080fd5b506100f66100f136600461084a565b610209565b005b34801561010457600080fd5b5061010d610320565b60405161011a9190610b13565b60405180910390f35b34801561012f57600080fd5b5061010d61013e366004610886565b610326565b34801561014f57600080fd5b506100f661015e366004610886565b610351565b34801561016f57600080fd5b5061018361017e3660046108be565b610507565b60405161011a919061090d565b34801561019c57600080fd5b5061010d6101ab36600461084a565b610545565b3480156101bc57600080fd5b5061010d6101cb36600461084a565b610560565b3480156101dc57600080fd5b5061010d6101eb36600461084a565b61057b565b3480156101fc57600080fd5b5061010d610596565b3390565b6001600160a01b0381166000908152600260205260409020546102475760405162461bcd60e51b815260040161023e9061096d565b60405180910390fd5b6000610251610596565b61025b9047610b1c565b90506000610272838361026d86610545565b61059c565b9050806102915760405162461bcd60e51b815260040161023e90610a47565b6001600160a01b038316600090815260036020526040812080548392906102b9908490610b1c565b9250508190555080600160008282546102d29190610b1c565b909155506102e2905083826105e1565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568382604051610313929190610921565b60405180910390a1505050565b60005490565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b6001600160a01b0381166000908152600260205260409020546103865760405162461bcd60e51b815260040161023e9061096d565b60006103918361057b565b6040516370a0823160e01b81526001600160a01b038516906370a08231906103bd90309060040161090d565b60206040518083038186803b1580156103d557600080fd5b505afa1580156103e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040d91906108d6565b6104179190610b1c565b9050600061042a838361026d8787610326565b9050806104495760405162461bcd60e51b815260040161023e90610a47565b6001600160a01b03808516600090815260066020908152604080832093871683529290529081208054839290610480908490610b1c565b90915550506001600160a01b038416600090815260056020526040812080548392906104ad908490610b1c565b909155506104be9050848483610682565b836001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a84836040516104f9929190610921565b60405180910390a250505050565b60006004828154811061052a57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6001600160a01b031660009081526003602052604090205490565b6001600160a01b031660009081526002602052604090205490565b6001600160a01b031660009081526005602052604090205490565b60015490565b600080546001600160a01b0385168252600260205260408220548391906105c39086610b54565b6105cd9190610b34565b6105d79190610b73565b90505b9392505050565b804710156106015760405162461bcd60e51b815260040161023e90610a10565b6000826001600160a01b03168260405161061a9061090a565b60006040518083038185875af1925050503d8060008114610657576040519150601f19603f3d011682016040523d82523d6000602084013e61065c565b606091505b505090508061067d5760405162461bcd60e51b815260040161023e906109b3565b505050565b61067d8363a9059cbb60e01b84846040516024016106a1929190610921565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526000610728826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107629092919063ffffffff16565b80519091501561067d57808060200190518101906107469190610866565b61067d5760405162461bcd60e51b815260040161023e90610ac9565b60606105d78484600085856107768561080b565b6107925760405162461bcd60e51b815260040161023e90610a92565b600080866001600160a01b031685876040516107ae91906108ee565b60006040518083038185875af1925050503d80600081146107eb576040519150601f19603f3d011682016040523d82523d6000602084013e6107f0565b606091505b5091509150610800828286610811565b979650505050505050565b3b151590565b606083156108205750816105da565b8251156108305782518084602001fd5b8160405162461bcd60e51b815260040161023e919061093a565b60006020828403121561085b578081fd5b81356105da81610bd0565b600060208284031215610877578081fd5b815180151581146105da578182fd5b60008060408385031215610898578081fd5b82356108a381610bd0565b915060208301356108b381610bd0565b809150509250929050565b6000602082840312156108cf578081fd5b5035919050565b6000602082840312156108e7578081fd5b5051919050565b60008251610900818460208701610b8a565b9190910192915050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6000602082528251806020840152610959816040850160208701610b8a565b601f01601f19169190910160400192915050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b90815260200190565b60008219821115610b2f57610b2f610bba565b500190565b600082610b4f57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610b6e57610b6e610bba565b500290565b600082821015610b8557610b85610bba565b500390565b60005b83811015610ba5578181015183820152602001610b8d565b83811115610bb4576000848401525b50505050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610be557600080fd5b5056fea2646970667358221220fc59907b38b159fb052d4c0efe11f7846f855c9322435315a60c197c5a8d277f64736f6c63430008000033a264697066735822122020ff53b921c51718d0350ccc95cc00dfa7ae9e15f7eae5ecb7780afb744f285564736f6c63430008000033