More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
KapVesting
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./interfaces/IVotingWeightSource.sol"; import "./interfaces/IGovernanceRegistry.sol"; import "./interfaces/IGovernance.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/math/SafeCast.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; /** * @title Kapital DAO Vesting * @author Playground Labs * @custom:security-contact [email protected] * @notice Used to lock and linearly vest KAP */ contract KapVesting is AccessControlEnumerable, IVotingWeightSource { bytes32 public constant VESTING_CREATOR = keccak256("VESTING_CREATOR"); // role to call {createVestingAgreement} bytes32 public constant REGISTRY_SETTER = keccak256("REGISTRY_SETTER"); // role to set {governanceRegistry} using SafeERC20 for IERC20; IERC20 public immutable kapToken; // vesting asset IGovernanceRegistry public governanceRegistry; // used to query the latest governance address struct VestingAgreement { uint64 vestStart; // timestamp at which vesting starts, acts as a vesting delay uint64 vestPeriod; // time period over which vesting occurs uint96 totalAmount; // total KAP amount to which the beneficiary is promised uint96 amountCollected; // portion of `totalAmount` which has already been collected } event CreateVestingAgreement( address indexed beneficiary, uint256 vestStart, uint256 vestPeriod, uint256 amount ); event Collect(address indexed beneficiary, uint256 vestingAgreementId); event AppointDelegate(address indexed beneficiary, address newDelegate); event Undelegate(address indexed beneficiary); mapping(address => VestingAgreement[]) public vestingAgreements; mapping(address => uint256) public balances; // uncollected vesting balances mapping(address => address) public delegates; // governance voting delegates mapping(address => uint256) public votingWeight; // track voting weights based on delegate choice mapping(address => uint256) public lastUndelegated; // timestamp of last {undelegate} call constructor( address _teamMultisig, address _foundationMultisig, address _kapToken ) { require(_teamMultisig != address(0), "Vesting: Zero address"); require(_foundationMultisig != address(0), "Vesting: Zero address"); require(_kapToken != address(0), "Vesting: Zero address"); kapToken = IERC20(_kapToken); _grantRole(VESTING_CREATOR, _teamMultisig); _grantRole(VESTING_CREATOR, _foundationMultisig); _grantRole(REGISTRY_SETTER, _foundationMultisig); } /** * @notice Called by role {VESTING_CREATOR} to create a new vesting * agreement * @param beneficiary Address which is allowed to collect the KAP * @param vestStart Timestamp after which linear vesting starts * @param vestPeriod Time period over which vesting occurs * @param amount Total amount of KAP promised to beneficiary */ function createVestingAgreement( address beneficiary, uint256 vestStart, uint256 vestPeriod, uint256 amount ) external onlyRole(VESTING_CREATOR) { require(beneficiary != address(0), "Vesting: Zero address"); require(vestStart >= block.timestamp, "Vesting: Invalid vest start"); require(vestPeriod > 0, "Vesting: Invalid vest period"); require(amount > 0, "Vesting: Invalid amount"); balances[beneficiary] += amount; votingWeight[delegates[beneficiary]] += amount; vestingAgreements[beneficiary].push( VestingAgreement({ vestStart: SafeCast.toUint64(vestStart), vestPeriod: SafeCast.toUint64(vestPeriod), totalAmount: SafeCast.toUint96(amount), amountCollected: SafeCast.toUint96(0) }) ); emit CreateVestingAgreement(beneficiary, vestStart, vestPeriod, amount); kapToken.safeTransferFrom(msg.sender, address(this), amount); // caller provides KAP for the vesting agreement } /** * @notice Called at will by the beneficiary of a vesting agreement * to collect the available portion of KAP * @param vestingAgreementId Index in `vestingAgreements[beneficiary]` */ function collect(uint256 vestingAgreementId) external { require(vestingAgreementId < vestingAgreements[msg.sender].length, "Vesting: Invalid Id"); VestingAgreement storage vestingAgreement = vestingAgreements[msg.sender][vestingAgreementId]; require(block.timestamp > vestingAgreement.vestStart, "Vesting: Not started"); // enforce vesting cliff uint256 amountUnlocked; // will calculate portion of `totalAmount` currently unlocked if (block.timestamp >= (vestingAgreement.vestStart + vestingAgreement.vestPeriod)) { amountUnlocked = vestingAgreement.totalAmount; // if `vestingAgreement.vestPeriod` has passed, the entire `totalAmount` is unlocked } else { amountUnlocked = (vestingAgreement.totalAmount * (block.timestamp - vestingAgreement.vestStart)) / vestingAgreement.vestPeriod; // otherwise, we find the portion of `totalAmount` currently available } require( amountUnlocked > vestingAgreement.amountCollected, "Vesting: Collection limit" ); // make sure some of `amountUnlocked` has not yet been collected uint256 collectionAmount = amountUnlocked - vestingAgreement.amountCollected; // calculate amount available for collection balances[msg.sender] -= collectionAmount; votingWeight[delegates[msg.sender]] -= collectionAmount; vestingAgreement.amountCollected += SafeCast.toUint96(collectionAmount); emit Collect(msg.sender, vestingAgreementId); kapToken.safeTransfer(msg.sender, collectionAmount); } /** * @notice Used by beneficary to appoint new voting delegate * @param newDelegate The address to which voting weight is delegated */ function appointDelegate(address newDelegate) external { require(newDelegate != address(0), "Vesting: Zero address"); require(delegates[msg.sender] == address(0), "Vesting: Must undelegate first"); uint256 votingPeriod = IGovernance( governanceRegistry.governance() ).votingPeriod(); require( block.timestamp > lastUndelegated[msg.sender] + votingPeriod, "Vesting: Undelegate cooldown" ); // prohibit switching delegates and voting again on same proposal _appointDelegate(newDelegate); emit AppointDelegate(msg.sender, newDelegate); } /** * @notice Used by beneficiary prior to changing their delegate * @dev Protects against double voting by requiring beneficiary to * delegate to the zero address for {Governance.votingPeriod} before * changing to a new delegate */ function undelegate() external { require(delegates[msg.sender] != address(0), "Vesting: Delegate already zero"); lastUndelegated[msg.sender] = block.timestamp; _appointDelegate(address(0)); emit Undelegate(msg.sender); } /** * @dev Internal function used in {appointDelegate} and {undelegate} to * update `msg.sender`'s delegate without restriction * @param newDelegate The address to which voting weight is delegated */ function _appointDelegate(address newDelegate) internal { address oldDelegate = delegates[msg.sender]; delegates[msg.sender] = newDelegate; uint256 balance = balances[msg.sender]; if (balance > 0) { votingWeight[oldDelegate] -= balance; votingWeight[newDelegate] += balance; } } /** * @dev Used by role `REGISTRY_SETTER` to set {governanceRegistry} * @param _governanceRegistry The address which will become {governanceRegistry} */ function setRegistry(address _governanceRegistry) external onlyRole(REGISTRY_SETTER) { require(_governanceRegistry != address(0), "Vesting: Zero address"); governanceRegistry = IGovernanceRegistry(_governanceRegistry); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; /** * @title Interface for Kapital DAO Voting Weight Sources * @author Playground Labs * @custom:security-contact [email protected] * @notice The governance contract is responsible for interpreting the meaning * of the reported voting weight, based on the voting weight source address. * The voting weight could be in units of KAP tokens, but could alternatively * be in different units such as LP tokens. */ interface IVotingWeightSource { function votingWeight(address voter) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; /** * @title Interface for GovernanceRegistry * @author Playground Labs */ interface IGovernanceRegistry { function governance() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; /** * @title Interface for Kapital DAO Governance * @author Playground Labs * @custom:security-contact [email protected] */ interface IGovernance { function votingPeriod() external view returns (uint256); // used when reporting voting weight to prevent double-voting struct Proposal { bytes32 paramsHash; // hash of proposal data uint56 time; // proposal timestamp uint96 yays; // votes for proposal uint96 nays; // votes against proposal bool executed; // to make sure a proposal is only executed once bool vetoed; // vetoed proposal cannot be executed or voted on } event Propose( address indexed proposer, uint256 indexed proposalId, address[] targets, uint256[] values, bytes[] data ); event Vote( address indexed voter, uint256 indexed proposalId, bool yay, uint256 votingWeight ); event Execute(address indexed executor, uint256 indexed proposalId); event Veto(uint256 indexed proposalId); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) 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 `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); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeCast.sol) pragma solidity ^0.8.0; /** * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. * * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing * all math on `uint256` and `int256` and then downcasting. */ library SafeCast { /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits"); return uint224(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits"); return uint128(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits"); return uint96(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits"); return uint64(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits"); return uint32(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits"); return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits. */ function toUint8(uint256 value) internal pure returns (uint8) { require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits"); return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { require(value >= 0, "SafeCast: value must be positive"); return uint256(value); } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits * * _Available since v3.1._ */ function toInt128(int256 value) internal pure returns (int128) { require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits"); return int128(value); } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits * * _Available since v3.1._ */ function toInt64(int256 value) internal pure returns (int64) { require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits"); return int64(value); } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits * * _Available since v3.1._ */ function toInt32(int256 value) internal pure returns (int32) { require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits"); return int32(value); } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits * * _Available since v3.1._ */ function toInt16(int256 value) internal pure returns (int16) { require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits"); return int16(value); } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits. * * _Available since v3.1._ */ function toInt8(int256 value) internal pure returns (int8) { require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits"); return int8(value); } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256"); return int256(value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControlEnumerable.sol"; import "./AccessControl.sol"; import "../utils/structs/EnumerableSet.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override { super._grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _roleMembers[role].remove(account); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) 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"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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, _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 virtual 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 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. */ 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 revoked `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}. * ==== * * 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. */ 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. */ 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 v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // 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/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 v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // 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 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 (last updated v4.5.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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "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":"_teamMultisig","type":"address"},{"internalType":"address","name":"_foundationMultisig","type":"address"},{"internalType":"address","name":"_kapToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"address","name":"newDelegate","type":"address"}],"name":"AppointDelegate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"vestingAgreementId","type":"uint256"}],"name":"Collect","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"vestStart","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"vestPeriod","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CreateVestingAgreement","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"}],"name":"Undelegate","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REGISTRY_SETTER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VESTING_CREATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newDelegate","type":"address"}],"name":"appointDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vestingAgreementId","type":"uint256"}],"name":"collect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"vestStart","type":"uint256"},{"internalType":"uint256","name":"vestPeriod","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"createVestingAgreement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governanceRegistry","outputs":[{"internalType":"contract IGovernanceRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kapToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastUndelegated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governanceRegistry","type":"address"}],"name":"setRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"undelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"vestingAgreements","outputs":[{"internalType":"uint64","name":"vestStart","type":"uint64"},{"internalType":"uint64","name":"vestPeriod","type":"uint64"},{"internalType":"uint96","name":"totalAmount","type":"uint96"},{"internalType":"uint96","name":"amountCollected","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"votingWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620040143803806200401483398181016040528101906200003791906200054d565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415620000aa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000a1906200060a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200011d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000114906200060a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000190576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000187906200060a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050620001f67ff5d68eb2790d611608899723857a21cc248fe60f4b1194fc2253a862272ea890846200026360201b60201c565b620002287ff5d68eb2790d611608899723857a21cc248fe60f4b1194fc2253a862272ea890836200026360201b60201c565b6200025a7fa366488d00b2a3fe55d367eaeafc12da54df8e183aeb5402c952bc5bdd359863836200026360201b60201c565b5050506200062c565b6200027a8282620002ab60201b620017df1760201c565b620002a681600160008581526020019081526020016000206200039c60201b620018bf1790919060201c565b505050565b620002bd8282620003d460201b60201c565b6200039857600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200033d6200043e60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620003cc836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6200044660201b60201c565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b60006200045a8383620004c060201b60201c565b620004b5578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050620004ba565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200051582620004e8565b9050919050565b620005278162000508565b81146200053357600080fd5b50565b60008151905062000547816200051c565b92915050565b600080600060608486031215620005695762000568620004e3565b5b6000620005798682870162000536565b93505060206200058c8682870162000536565b92505060406200059f8682870162000536565b9150509250925092565b600082825260208201905092915050565b7f56657374696e673a205a65726f20616464726573730000000000000000000000600082015250565b6000620005f2601583620005a9565b9150620005ff82620005ba565b602082019050919050565b600060208201905081810360008301526200062581620005e3565b9050919050565b6080516139be6200065660003960008181610b8101528181610f77015261176c01526139be6000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80637f4d4537116100c3578063a91ee0dc1161007c578063a91ee0dc146103b5578063ab73f6c6146103d1578063c47b351114610401578063ca15c87314610431578063ce3f865f14610461578063d547741f1461047d5761014d565b80637f4d4537146102f35780639010d07c1461030f57806390a350641461033f57806391d148541461035d57806392ab89bb1461038d578063a217fddf146103975761014d565b806327e235e31161011557806327e235e3146102215780632aa9fb3d146102515780632f2ff15d1461026f57806336568abe1461028b5780634bd84b63146102a7578063587cde1e146102c35761014d565b806301ffc9a71461015257806303659c4a146101825780630ce182fe146101b557806310a23d2b146101d3578063248a9ca3146101f1575b600080fd5b61016c600480360381019061016791906126bb565b610499565b6040516101799190612703565b60405180910390f35b61019c600480360381019061019791906127b2565b610513565b6040516101ac949392919061283c565b60405180910390f35b6101bd6105b8565b6040516101ca919061289a565b60405180910390f35b6101db6105dc565b6040516101e89190612914565b60405180910390f35b61020b6004803603810190610206919061295b565b610602565b604051610218919061289a565b60405180910390f35b61023b60048036038101906102369190612988565b610621565b60405161024891906129c4565b60405180910390f35b610259610639565b604051610266919061289a565b60405180910390f35b610289600480360381019061028491906129df565b61065d565b005b6102a560048036038101906102a091906129df565b610686565b005b6102c160048036038101906102bc9190612a1f565b610709565b005b6102dd60048036038101906102d89190612988565b610bcd565b6040516102ea9190612a95565b60405180910390f35b61030d60048036038101906103089190612988565b610c00565b005b61032960048036038101906103249190612ab0565b610f46565b6040516103369190612a95565b60405180910390f35b610347610f75565b6040516103549190612b11565b60405180910390f35b610377600480360381019061037291906129df565b610f99565b6040516103849190612703565b60405180910390f35b610395611003565b005b61039f611165565b6040516103ac919061289a565b60405180910390f35b6103cf60048036038101906103ca9190612988565b61116c565b005b6103eb60048036038101906103e69190612988565b611253565b6040516103f891906129c4565b60405180910390f35b61041b60048036038101906104169190612988565b61126b565b60405161042891906129c4565b60405180910390f35b61044b6004803603810190610446919061295b565b611283565b60405161045891906129c4565b60405180910390f35b61047b60048036038101906104769190612b2c565b6112a7565b005b610497600480360381019061049291906129df565b6117b6565b005b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061050c575061050b826118ef565b5b9050919050565b6003602052816000526040600020818154811061052f57600080fd5b9060005260206000209060020201600091509150508060000160009054906101000a900467ffffffffffffffff16908060000160089054906101000a900467ffffffffffffffff16908060000160109054906101000a90046bffffffffffffffffffffffff16908060010160009054906101000a90046bffffffffffffffffffffffff16905084565b7fa366488d00b2a3fe55d367eaeafc12da54df8e183aeb5402c952bc5bdd35986381565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000838152602001908152602001600020600101549050919050565b60046020528060005260406000206000915090505481565b7ff5d68eb2790d611608899723857a21cc248fe60f4b1194fc2253a862272ea89081565b61066682610602565b61067781610672611969565b611971565b6106818383611a0e565b505050565b61068e611969565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146106fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f290612bdc565b60405180910390fd5b6107058282611a42565b5050565b7ff5d68eb2790d611608899723857a21cc248fe60f4b1194fc2253a862272ea89061073b81610736611969565b611971565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156107ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a290612c48565b60405180910390fd5b428410156107ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e590612cb4565b60405180910390fd5b60008311610831576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082890612d20565b60405180910390fd5b60008211610874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086b90612d8c565b60405180910390fd5b81600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546108c39190612ddb565b925050819055508160066000600560008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109789190612ddb565b92505081905550600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180608001604052806109d287611a76565b67ffffffffffffffff1681526020016109ea86611a76565b67ffffffffffffffff168152602001610a0285611acd565b6bffffffffffffffffffffffff168152602001610a1f6000611acd565b6bffffffffffffffffffffffff16815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060208201518160000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160106101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555060608201518160010160006101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050508473ffffffffffffffffffffffffffffffffffffffff167f2616f50ac13429d67a9400f404d31e0c59ba5ab9728a6e991a69ef0725005894858585604051610b7193929190612e31565b60405180910390a2610bc63330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611b28909392919063ffffffff16565b5050505050565b60056020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6790612c48565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3590612eb4565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b158015610da857600080fd5b505afa158015610dbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de09190612ee9565b73ffffffffffffffffffffffffffffffffffffffff166302a251a36040518163ffffffff1660e01b815260040160206040518083038186803b158015610e2557600080fd5b505afa158015610e39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5d9190612f2b565b905080600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610eaa9190612ddb565b4211610eeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee290612fa4565b60405180910390fd5b610ef482611bb1565b3373ffffffffffffffffffffffffffffffffffffffff167fefeabce267f0ba32494ce1f7137982c6743a97bab3e99166b2120ca653ae288683604051610f3a9190612a95565b60405180910390a25050565b6000610f6d8260016000868152602001908152602001600020611d9290919063ffffffff16565b905092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff16600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156110d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c990613010565b60405180910390fd5b42600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506111206000611bb1565b3373ffffffffffffffffffffffffffffffffffffffff167f9effd4c4f763f574c6c125b5a2f6fe1c5565310e6c180002ab65bf5d52340da060405160405180910390a2565b6000801b81565b7fa366488d00b2a3fe55d367eaeafc12da54df8e183aeb5402c952bc5bdd35986361119e81611199611969565b611971565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561120e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120590612c48565b60405180910390fd5b81600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b60076020528060005260406000206000915090505481565b60066020528060005260406000206000915090505481565b60006112a060016000848152602001908152602001600020611dac565b9050919050565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050811061132b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113229061307c565b60405180910390fd5b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811061137e5761137d61309c565b5b906000526020600020906002020190508060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1642116113f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e990613117565b60405180910390fd5b60008160000160089054906101000a900467ffffffffffffffff168260000160009054906101000a900467ffffffffffffffff166114309190613137565b67ffffffffffffffff164210611472578160000160109054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff169050611505565b8160000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff168260000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff16426114c39190613175565b8360000160109054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166114f891906131a9565b6115029190613232565b90505b8160010160009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff168111611571576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611568906132af565b60405180910390fd5b60008260010160009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16826115a99190613175565b905080600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115fa9190613175565b925050819055508060066000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116af9190613175565b925050819055506116bf81611acd565b8360010160008282829054906101000a90046bffffffffffffffffffffffff166116e991906132cf565b92506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff167f4256a058fa2b123d727576d3d31e3a272db98ee5fe264e229610ce43dc8499998560405161175d91906129c4565b60405180910390a26117b033827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611dc19092919063ffffffff16565b50505050565b6117bf82610602565b6117d0816117cb611969565b611971565b6117da8383611a42565b505050565b6117e98282610f99565b6118bb57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611860611969565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006118e7836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611e47565b905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611962575061196182611eb7565b5b9050919050565b600033905090565b61197b8282610f99565b611a0a576119a08173ffffffffffffffffffffffffffffffffffffffff166014611f21565b6119ae8360001c6020611f21565b6040516020016119bf929190613423565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0191906134a7565b60405180910390fd5b5050565b611a1882826117df565b611a3d81600160008581526020019081526020016000206118bf90919063ffffffff16565b505050565b611a4c828261215d565b611a71816001600085815260200190815260200160002061223e90919063ffffffff16565b505050565b600067ffffffffffffffff8016821115611ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abc9061353b565b60405180910390fd5b819050919050565b60006bffffffffffffffffffffffff8016821115611b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b17906135cd565b60405180910390fd5b819050919050565b611bab846323b872dd60e01b858585604051602401611b49939291906135ed565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061226e565b50505050565b6000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115611d8d5780600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d2f9190613175565b9250508190555080600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d859190612ddb565b925050819055505b505050565b6000611da18360000183612335565b60001c905092915050565b6000611dba82600001612360565b9050919050565b611e428363a9059cbb60e01b8484604051602401611de0929190613624565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061226e565b505050565b6000611e538383612371565b611eac578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050611eb1565b600090505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b606060006002836002611f3491906131a9565b611f3e9190612ddb565b67ffffffffffffffff811115611f5757611f5661364d565b5b6040519080825280601f01601f191660200182016040528015611f895781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611fc157611fc061309c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106120255761202461309c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261206591906131a9565b61206f9190612ddb565b90505b600181111561210f577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106120b1576120b061309c565b5b1a60f81b8282815181106120c8576120c761309c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806121089061367c565b9050612072565b5060008414612153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214a906136f2565b60405180910390fd5b8091505092915050565b6121678282610f99565b1561223a57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506121df611969565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000612266836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612394565b905092915050565b60006122d0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166124a89092919063ffffffff16565b905060008151111561233057808060200190518101906122f0919061373e565b61232f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612326906137dd565b60405180910390fd5b5b505050565b600082600001828154811061234d5761234c61309c565b5b9060005260206000200154905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b6000808360010160008481526020019081526020016000205490506000811461249c5760006001826123c69190613175565b90506000600186600001805490506123de9190613175565b905081811461244d5760008660000182815481106123ff576123fe61309c565b5b90600052602060002001549050808760000184815481106124235761242261309c565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480612461576124606137fd565b5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506124a2565b60009150505b92915050565b60606124b784846000856124c0565b90509392505050565b606082471015612505576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124fc9061389e565b60405180910390fd5b61250e856125d4565b61254d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125449061390a565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516125769190613971565b60006040518083038185875af1925050503d80600081146125b3576040519150601f19603f3d011682016040523d82523d6000602084013e6125b8565b606091505b50915091506125c88282866125f7565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561260757829050612657565b60008351111561261a5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264e91906134a7565b60405180910390fd5b9392505050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61269881612663565b81146126a357600080fd5b50565b6000813590506126b58161268f565b92915050565b6000602082840312156126d1576126d061265e565b5b60006126df848285016126a6565b91505092915050565b60008115159050919050565b6126fd816126e8565b82525050565b600060208201905061271860008301846126f4565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006127498261271e565b9050919050565b6127598161273e565b811461276457600080fd5b50565b60008135905061277681612750565b92915050565b6000819050919050565b61278f8161277c565b811461279a57600080fd5b50565b6000813590506127ac81612786565b92915050565b600080604083850312156127c9576127c861265e565b5b60006127d785828601612767565b92505060206127e88582860161279d565b9150509250929050565b600067ffffffffffffffff82169050919050565b61280f816127f2565b82525050565b60006bffffffffffffffffffffffff82169050919050565b61283681612815565b82525050565b60006080820190506128516000830187612806565b61285e6020830186612806565b61286b604083018561282d565b612878606083018461282d565b95945050505050565b6000819050919050565b61289481612881565b82525050565b60006020820190506128af600083018461288b565b92915050565b6000819050919050565b60006128da6128d56128d08461271e565b6128b5565b61271e565b9050919050565b60006128ec826128bf565b9050919050565b60006128fe826128e1565b9050919050565b61290e816128f3565b82525050565b60006020820190506129296000830184612905565b92915050565b61293881612881565b811461294357600080fd5b50565b6000813590506129558161292f565b92915050565b6000602082840312156129715761297061265e565b5b600061297f84828501612946565b91505092915050565b60006020828403121561299e5761299d61265e565b5b60006129ac84828501612767565b91505092915050565b6129be8161277c565b82525050565b60006020820190506129d960008301846129b5565b92915050565b600080604083850312156129f6576129f561265e565b5b6000612a0485828601612946565b9250506020612a1585828601612767565b9150509250929050565b60008060008060808587031215612a3957612a3861265e565b5b6000612a4787828801612767565b9450506020612a588782880161279d565b9350506040612a698782880161279d565b9250506060612a7a8782880161279d565b91505092959194509250565b612a8f8161273e565b82525050565b6000602082019050612aaa6000830184612a86565b92915050565b60008060408385031215612ac757612ac661265e565b5b6000612ad585828601612946565b9250506020612ae68582860161279d565b9150509250929050565b6000612afb826128e1565b9050919050565b612b0b81612af0565b82525050565b6000602082019050612b266000830184612b02565b92915050565b600060208284031215612b4257612b4161265e565b5b6000612b508482850161279d565b91505092915050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612bc6602f83612b59565b9150612bd182612b6a565b604082019050919050565b60006020820190508181036000830152612bf581612bb9565b9050919050565b7f56657374696e673a205a65726f20616464726573730000000000000000000000600082015250565b6000612c32601583612b59565b9150612c3d82612bfc565b602082019050919050565b60006020820190508181036000830152612c6181612c25565b9050919050565b7f56657374696e673a20496e76616c696420766573742073746172740000000000600082015250565b6000612c9e601b83612b59565b9150612ca982612c68565b602082019050919050565b60006020820190508181036000830152612ccd81612c91565b9050919050565b7f56657374696e673a20496e76616c6964207665737420706572696f6400000000600082015250565b6000612d0a601c83612b59565b9150612d1582612cd4565b602082019050919050565b60006020820190508181036000830152612d3981612cfd565b9050919050565b7f56657374696e673a20496e76616c696420616d6f756e74000000000000000000600082015250565b6000612d76601783612b59565b9150612d8182612d40565b602082019050919050565b60006020820190508181036000830152612da581612d69565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612de68261277c565b9150612df18361277c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612e2657612e25612dac565b5b828201905092915050565b6000606082019050612e4660008301866129b5565b612e5360208301856129b5565b612e6060408301846129b5565b949350505050565b7f56657374696e673a204d75737420756e64656c65676174652066697273740000600082015250565b6000612e9e601e83612b59565b9150612ea982612e68565b602082019050919050565b60006020820190508181036000830152612ecd81612e91565b9050919050565b600081519050612ee381612750565b92915050565b600060208284031215612eff57612efe61265e565b5b6000612f0d84828501612ed4565b91505092915050565b600081519050612f2581612786565b92915050565b600060208284031215612f4157612f4061265e565b5b6000612f4f84828501612f16565b91505092915050565b7f56657374696e673a20556e64656c656761746520636f6f6c646f776e00000000600082015250565b6000612f8e601c83612b59565b9150612f9982612f58565b602082019050919050565b60006020820190508181036000830152612fbd81612f81565b9050919050565b7f56657374696e673a2044656c656761746520616c7265616479207a65726f0000600082015250565b6000612ffa601e83612b59565b915061300582612fc4565b602082019050919050565b6000602082019050818103600083015261302981612fed565b9050919050565b7f56657374696e673a20496e76616c696420496400000000000000000000000000600082015250565b6000613066601383612b59565b915061307182613030565b602082019050919050565b6000602082019050818103600083015261309581613059565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f56657374696e673a204e6f742073746172746564000000000000000000000000600082015250565b6000613101601483612b59565b915061310c826130cb565b602082019050919050565b60006020820190508181036000830152613130816130f4565b9050919050565b6000613142826127f2565b915061314d836127f2565b92508267ffffffffffffffff0382111561316a57613169612dac565b5b828201905092915050565b60006131808261277c565b915061318b8361277c565b92508282101561319e5761319d612dac565b5b828203905092915050565b60006131b48261277c565b91506131bf8361277c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156131f8576131f7612dac565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061323d8261277c565b91506132488361277c565b92508261325857613257613203565b5b828204905092915050565b7f56657374696e673a20436f6c6c656374696f6e206c696d697400000000000000600082015250565b6000613299601983612b59565b91506132a482613263565b602082019050919050565b600060208201905081810360008301526132c88161328c565b9050919050565b60006132da82612815565b91506132e583612815565b9250826bffffffffffffffffffffffff0382111561330657613305612dac565b5b828201905092915050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000613352601783613311565b915061335d8261331c565b601782019050919050565b600081519050919050565b60005b83811015613391578082015181840152602081019050613376565b838111156133a0576000848401525b50505050565b60006133b182613368565b6133bb8185613311565b93506133cb818560208601613373565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b600061340d601183613311565b9150613418826133d7565b601182019050919050565b600061342e82613345565b915061343a82856133a6565b915061344582613400565b915061345182846133a6565b91508190509392505050565b6000601f19601f8301169050919050565b600061347982613368565b6134838185612b59565b9350613493818560208601613373565b61349c8161345d565b840191505092915050565b600060208201905081810360008301526134c1818461346e565b905092915050565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203660008201527f3420626974730000000000000000000000000000000000000000000000000000602082015250565b6000613525602683612b59565b9150613530826134c9565b604082019050919050565b6000602082019050818103600083015261355481613518565b9050919050565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203960008201527f3620626974730000000000000000000000000000000000000000000000000000602082015250565b60006135b7602683612b59565b91506135c28261355b565b604082019050919050565b600060208201905081810360008301526135e6816135aa565b9050919050565b60006060820190506136026000830186612a86565b61360f6020830185612a86565b61361c60408301846129b5565b949350505050565b60006040820190506136396000830185612a86565b61364660208301846129b5565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006136878261277c565b9150600082141561369b5761369a612dac565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006136dc602083612b59565b91506136e7826136a6565b602082019050919050565b6000602082019050818103600083015261370b816136cf565b9050919050565b61371b816126e8565b811461372657600080fd5b50565b60008151905061373881613712565b92915050565b6000602082840312156137545761375361265e565b5b600061376284828501613729565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006137c7602a83612b59565b91506137d28261376b565b604082019050919050565b600060208201905081810360008301526137f6816137ba565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613888602683612b59565b91506138938261382c565b604082019050919050565b600060208201905081810360008301526138b78161387b565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006138f4601d83612b59565b91506138ff826138be565b602082019050919050565b60006020820190508181036000830152613923816138e7565b9050919050565b600081519050919050565b600081905092915050565b600061394b8261392a565b6139558185613935565b9350613965818560208601613373565b80840191505092915050565b600061397d8284613940565b91508190509291505056fea2646970667358221220cd3248902bb926148da46f1bcf239d79c5497845d7b58c636ed51d7c267d817064736f6c634300080900330000000000000000000000004731e90300ff77f0b414a651a2626a25286fa13b000000000000000000000000bc450c9eced158c6bd1affa8d37153e278e63e680000000000000000000000009625ce7753ace1fa1865a47aae2c5c2ce4418569
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80637f4d4537116100c3578063a91ee0dc1161007c578063a91ee0dc146103b5578063ab73f6c6146103d1578063c47b351114610401578063ca15c87314610431578063ce3f865f14610461578063d547741f1461047d5761014d565b80637f4d4537146102f35780639010d07c1461030f57806390a350641461033f57806391d148541461035d57806392ab89bb1461038d578063a217fddf146103975761014d565b806327e235e31161011557806327e235e3146102215780632aa9fb3d146102515780632f2ff15d1461026f57806336568abe1461028b5780634bd84b63146102a7578063587cde1e146102c35761014d565b806301ffc9a71461015257806303659c4a146101825780630ce182fe146101b557806310a23d2b146101d3578063248a9ca3146101f1575b600080fd5b61016c600480360381019061016791906126bb565b610499565b6040516101799190612703565b60405180910390f35b61019c600480360381019061019791906127b2565b610513565b6040516101ac949392919061283c565b60405180910390f35b6101bd6105b8565b6040516101ca919061289a565b60405180910390f35b6101db6105dc565b6040516101e89190612914565b60405180910390f35b61020b6004803603810190610206919061295b565b610602565b604051610218919061289a565b60405180910390f35b61023b60048036038101906102369190612988565b610621565b60405161024891906129c4565b60405180910390f35b610259610639565b604051610266919061289a565b60405180910390f35b610289600480360381019061028491906129df565b61065d565b005b6102a560048036038101906102a091906129df565b610686565b005b6102c160048036038101906102bc9190612a1f565b610709565b005b6102dd60048036038101906102d89190612988565b610bcd565b6040516102ea9190612a95565b60405180910390f35b61030d60048036038101906103089190612988565b610c00565b005b61032960048036038101906103249190612ab0565b610f46565b6040516103369190612a95565b60405180910390f35b610347610f75565b6040516103549190612b11565b60405180910390f35b610377600480360381019061037291906129df565b610f99565b6040516103849190612703565b60405180910390f35b610395611003565b005b61039f611165565b6040516103ac919061289a565b60405180910390f35b6103cf60048036038101906103ca9190612988565b61116c565b005b6103eb60048036038101906103e69190612988565b611253565b6040516103f891906129c4565b60405180910390f35b61041b60048036038101906104169190612988565b61126b565b60405161042891906129c4565b60405180910390f35b61044b6004803603810190610446919061295b565b611283565b60405161045891906129c4565b60405180910390f35b61047b60048036038101906104769190612b2c565b6112a7565b005b610497600480360381019061049291906129df565b6117b6565b005b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061050c575061050b826118ef565b5b9050919050565b6003602052816000526040600020818154811061052f57600080fd5b9060005260206000209060020201600091509150508060000160009054906101000a900467ffffffffffffffff16908060000160089054906101000a900467ffffffffffffffff16908060000160109054906101000a90046bffffffffffffffffffffffff16908060010160009054906101000a90046bffffffffffffffffffffffff16905084565b7fa366488d00b2a3fe55d367eaeafc12da54df8e183aeb5402c952bc5bdd35986381565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000838152602001908152602001600020600101549050919050565b60046020528060005260406000206000915090505481565b7ff5d68eb2790d611608899723857a21cc248fe60f4b1194fc2253a862272ea89081565b61066682610602565b61067781610672611969565b611971565b6106818383611a0e565b505050565b61068e611969565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146106fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f290612bdc565b60405180910390fd5b6107058282611a42565b5050565b7ff5d68eb2790d611608899723857a21cc248fe60f4b1194fc2253a862272ea89061073b81610736611969565b611971565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156107ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a290612c48565b60405180910390fd5b428410156107ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e590612cb4565b60405180910390fd5b60008311610831576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082890612d20565b60405180910390fd5b60008211610874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086b90612d8c565b60405180910390fd5b81600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546108c39190612ddb565b925050819055508160066000600560008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109789190612ddb565b92505081905550600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180608001604052806109d287611a76565b67ffffffffffffffff1681526020016109ea86611a76565b67ffffffffffffffff168152602001610a0285611acd565b6bffffffffffffffffffffffff168152602001610a1f6000611acd565b6bffffffffffffffffffffffff16815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060208201518160000160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160000160106101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555060608201518160010160006101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050508473ffffffffffffffffffffffffffffffffffffffff167f2616f50ac13429d67a9400f404d31e0c59ba5ab9728a6e991a69ef0725005894858585604051610b7193929190612e31565b60405180910390a2610bc63330847f0000000000000000000000009625ce7753ace1fa1865a47aae2c5c2ce441856973ffffffffffffffffffffffffffffffffffffffff16611b28909392919063ffffffff16565b5050505050565b60056020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6790612c48565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3590612eb4565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b158015610da857600080fd5b505afa158015610dbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de09190612ee9565b73ffffffffffffffffffffffffffffffffffffffff166302a251a36040518163ffffffff1660e01b815260040160206040518083038186803b158015610e2557600080fd5b505afa158015610e39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e5d9190612f2b565b905080600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610eaa9190612ddb565b4211610eeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee290612fa4565b60405180910390fd5b610ef482611bb1565b3373ffffffffffffffffffffffffffffffffffffffff167fefeabce267f0ba32494ce1f7137982c6743a97bab3e99166b2120ca653ae288683604051610f3a9190612a95565b60405180910390a25050565b6000610f6d8260016000868152602001908152602001600020611d9290919063ffffffff16565b905092915050565b7f0000000000000000000000009625ce7753ace1fa1865a47aae2c5c2ce441856981565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff16600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156110d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c990613010565b60405180910390fd5b42600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506111206000611bb1565b3373ffffffffffffffffffffffffffffffffffffffff167f9effd4c4f763f574c6c125b5a2f6fe1c5565310e6c180002ab65bf5d52340da060405160405180910390a2565b6000801b81565b7fa366488d00b2a3fe55d367eaeafc12da54df8e183aeb5402c952bc5bdd35986361119e81611199611969565b611971565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561120e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120590612c48565b60405180910390fd5b81600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b60076020528060005260406000206000915090505481565b60066020528060005260406000206000915090505481565b60006112a060016000848152602001908152602001600020611dac565b9050919050565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050811061132b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113229061307c565b60405180910390fd5b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811061137e5761137d61309c565b5b906000526020600020906002020190508060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff1642116113f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e990613117565b60405180910390fd5b60008160000160089054906101000a900467ffffffffffffffff168260000160009054906101000a900467ffffffffffffffff166114309190613137565b67ffffffffffffffff164210611472578160000160109054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff169050611505565b8160000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff168260000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff16426114c39190613175565b8360000160109054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166114f891906131a9565b6115029190613232565b90505b8160010160009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff168111611571576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611568906132af565b60405180910390fd5b60008260010160009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff16826115a99190613175565b905080600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115fa9190613175565b925050819055508060066000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116af9190613175565b925050819055506116bf81611acd565b8360010160008282829054906101000a90046bffffffffffffffffffffffff166116e991906132cf565b92506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff167f4256a058fa2b123d727576d3d31e3a272db98ee5fe264e229610ce43dc8499998560405161175d91906129c4565b60405180910390a26117b033827f0000000000000000000000009625ce7753ace1fa1865a47aae2c5c2ce441856973ffffffffffffffffffffffffffffffffffffffff16611dc19092919063ffffffff16565b50505050565b6117bf82610602565b6117d0816117cb611969565b611971565b6117da8383611a42565b505050565b6117e98282610f99565b6118bb57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611860611969565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006118e7836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611e47565b905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611962575061196182611eb7565b5b9050919050565b600033905090565b61197b8282610f99565b611a0a576119a08173ffffffffffffffffffffffffffffffffffffffff166014611f21565b6119ae8360001c6020611f21565b6040516020016119bf929190613423565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0191906134a7565b60405180910390fd5b5050565b611a1882826117df565b611a3d81600160008581526020019081526020016000206118bf90919063ffffffff16565b505050565b611a4c828261215d565b611a71816001600085815260200190815260200160002061223e90919063ffffffff16565b505050565b600067ffffffffffffffff8016821115611ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abc9061353b565b60405180910390fd5b819050919050565b60006bffffffffffffffffffffffff8016821115611b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b17906135cd565b60405180910390fd5b819050919050565b611bab846323b872dd60e01b858585604051602401611b49939291906135ed565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061226e565b50505050565b6000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115611d8d5780600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d2f9190613175565b9250508190555080600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d859190612ddb565b925050819055505b505050565b6000611da18360000183612335565b60001c905092915050565b6000611dba82600001612360565b9050919050565b611e428363a9059cbb60e01b8484604051602401611de0929190613624565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061226e565b505050565b6000611e538383612371565b611eac578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050611eb1565b600090505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b606060006002836002611f3491906131a9565b611f3e9190612ddb565b67ffffffffffffffff811115611f5757611f5661364d565b5b6040519080825280601f01601f191660200182016040528015611f895781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611fc157611fc061309c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106120255761202461309c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261206591906131a9565b61206f9190612ddb565b90505b600181111561210f577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106120b1576120b061309c565b5b1a60f81b8282815181106120c8576120c761309c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806121089061367c565b9050612072565b5060008414612153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214a906136f2565b60405180910390fd5b8091505092915050565b6121678282610f99565b1561223a57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506121df611969565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000612266836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612394565b905092915050565b60006122d0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166124a89092919063ffffffff16565b905060008151111561233057808060200190518101906122f0919061373e565b61232f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612326906137dd565b60405180910390fd5b5b505050565b600082600001828154811061234d5761234c61309c565b5b9060005260206000200154905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b6000808360010160008481526020019081526020016000205490506000811461249c5760006001826123c69190613175565b90506000600186600001805490506123de9190613175565b905081811461244d5760008660000182815481106123ff576123fe61309c565b5b90600052602060002001549050808760000184815481106124235761242261309c565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480612461576124606137fd565b5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506124a2565b60009150505b92915050565b60606124b784846000856124c0565b90509392505050565b606082471015612505576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124fc9061389e565b60405180910390fd5b61250e856125d4565b61254d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125449061390a565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516125769190613971565b60006040518083038185875af1925050503d80600081146125b3576040519150601f19603f3d011682016040523d82523d6000602084013e6125b8565b606091505b50915091506125c88282866125f7565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561260757829050612657565b60008351111561261a5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264e91906134a7565b60405180910390fd5b9392505050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61269881612663565b81146126a357600080fd5b50565b6000813590506126b58161268f565b92915050565b6000602082840312156126d1576126d061265e565b5b60006126df848285016126a6565b91505092915050565b60008115159050919050565b6126fd816126e8565b82525050565b600060208201905061271860008301846126f4565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006127498261271e565b9050919050565b6127598161273e565b811461276457600080fd5b50565b60008135905061277681612750565b92915050565b6000819050919050565b61278f8161277c565b811461279a57600080fd5b50565b6000813590506127ac81612786565b92915050565b600080604083850312156127c9576127c861265e565b5b60006127d785828601612767565b92505060206127e88582860161279d565b9150509250929050565b600067ffffffffffffffff82169050919050565b61280f816127f2565b82525050565b60006bffffffffffffffffffffffff82169050919050565b61283681612815565b82525050565b60006080820190506128516000830187612806565b61285e6020830186612806565b61286b604083018561282d565b612878606083018461282d565b95945050505050565b6000819050919050565b61289481612881565b82525050565b60006020820190506128af600083018461288b565b92915050565b6000819050919050565b60006128da6128d56128d08461271e565b6128b5565b61271e565b9050919050565b60006128ec826128bf565b9050919050565b60006128fe826128e1565b9050919050565b61290e816128f3565b82525050565b60006020820190506129296000830184612905565b92915050565b61293881612881565b811461294357600080fd5b50565b6000813590506129558161292f565b92915050565b6000602082840312156129715761297061265e565b5b600061297f84828501612946565b91505092915050565b60006020828403121561299e5761299d61265e565b5b60006129ac84828501612767565b91505092915050565b6129be8161277c565b82525050565b60006020820190506129d960008301846129b5565b92915050565b600080604083850312156129f6576129f561265e565b5b6000612a0485828601612946565b9250506020612a1585828601612767565b9150509250929050565b60008060008060808587031215612a3957612a3861265e565b5b6000612a4787828801612767565b9450506020612a588782880161279d565b9350506040612a698782880161279d565b9250506060612a7a8782880161279d565b91505092959194509250565b612a8f8161273e565b82525050565b6000602082019050612aaa6000830184612a86565b92915050565b60008060408385031215612ac757612ac661265e565b5b6000612ad585828601612946565b9250506020612ae68582860161279d565b9150509250929050565b6000612afb826128e1565b9050919050565b612b0b81612af0565b82525050565b6000602082019050612b266000830184612b02565b92915050565b600060208284031215612b4257612b4161265e565b5b6000612b508482850161279d565b91505092915050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612bc6602f83612b59565b9150612bd182612b6a565b604082019050919050565b60006020820190508181036000830152612bf581612bb9565b9050919050565b7f56657374696e673a205a65726f20616464726573730000000000000000000000600082015250565b6000612c32601583612b59565b9150612c3d82612bfc565b602082019050919050565b60006020820190508181036000830152612c6181612c25565b9050919050565b7f56657374696e673a20496e76616c696420766573742073746172740000000000600082015250565b6000612c9e601b83612b59565b9150612ca982612c68565b602082019050919050565b60006020820190508181036000830152612ccd81612c91565b9050919050565b7f56657374696e673a20496e76616c6964207665737420706572696f6400000000600082015250565b6000612d0a601c83612b59565b9150612d1582612cd4565b602082019050919050565b60006020820190508181036000830152612d3981612cfd565b9050919050565b7f56657374696e673a20496e76616c696420616d6f756e74000000000000000000600082015250565b6000612d76601783612b59565b9150612d8182612d40565b602082019050919050565b60006020820190508181036000830152612da581612d69565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612de68261277c565b9150612df18361277c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612e2657612e25612dac565b5b828201905092915050565b6000606082019050612e4660008301866129b5565b612e5360208301856129b5565b612e6060408301846129b5565b949350505050565b7f56657374696e673a204d75737420756e64656c65676174652066697273740000600082015250565b6000612e9e601e83612b59565b9150612ea982612e68565b602082019050919050565b60006020820190508181036000830152612ecd81612e91565b9050919050565b600081519050612ee381612750565b92915050565b600060208284031215612eff57612efe61265e565b5b6000612f0d84828501612ed4565b91505092915050565b600081519050612f2581612786565b92915050565b600060208284031215612f4157612f4061265e565b5b6000612f4f84828501612f16565b91505092915050565b7f56657374696e673a20556e64656c656761746520636f6f6c646f776e00000000600082015250565b6000612f8e601c83612b59565b9150612f9982612f58565b602082019050919050565b60006020820190508181036000830152612fbd81612f81565b9050919050565b7f56657374696e673a2044656c656761746520616c7265616479207a65726f0000600082015250565b6000612ffa601e83612b59565b915061300582612fc4565b602082019050919050565b6000602082019050818103600083015261302981612fed565b9050919050565b7f56657374696e673a20496e76616c696420496400000000000000000000000000600082015250565b6000613066601383612b59565b915061307182613030565b602082019050919050565b6000602082019050818103600083015261309581613059565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f56657374696e673a204e6f742073746172746564000000000000000000000000600082015250565b6000613101601483612b59565b915061310c826130cb565b602082019050919050565b60006020820190508181036000830152613130816130f4565b9050919050565b6000613142826127f2565b915061314d836127f2565b92508267ffffffffffffffff0382111561316a57613169612dac565b5b828201905092915050565b60006131808261277c565b915061318b8361277c565b92508282101561319e5761319d612dac565b5b828203905092915050565b60006131b48261277c565b91506131bf8361277c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156131f8576131f7612dac565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061323d8261277c565b91506132488361277c565b92508261325857613257613203565b5b828204905092915050565b7f56657374696e673a20436f6c6c656374696f6e206c696d697400000000000000600082015250565b6000613299601983612b59565b91506132a482613263565b602082019050919050565b600060208201905081810360008301526132c88161328c565b9050919050565b60006132da82612815565b91506132e583612815565b9250826bffffffffffffffffffffffff0382111561330657613305612dac565b5b828201905092915050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000613352601783613311565b915061335d8261331c565b601782019050919050565b600081519050919050565b60005b83811015613391578082015181840152602081019050613376565b838111156133a0576000848401525b50505050565b60006133b182613368565b6133bb8185613311565b93506133cb818560208601613373565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b600061340d601183613311565b9150613418826133d7565b601182019050919050565b600061342e82613345565b915061343a82856133a6565b915061344582613400565b915061345182846133a6565b91508190509392505050565b6000601f19601f8301169050919050565b600061347982613368565b6134838185612b59565b9350613493818560208601613373565b61349c8161345d565b840191505092915050565b600060208201905081810360008301526134c1818461346e565b905092915050565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203660008201527f3420626974730000000000000000000000000000000000000000000000000000602082015250565b6000613525602683612b59565b9150613530826134c9565b604082019050919050565b6000602082019050818103600083015261355481613518565b9050919050565b7f53616665436173743a2076616c756520646f65736e27742066697420696e203960008201527f3620626974730000000000000000000000000000000000000000000000000000602082015250565b60006135b7602683612b59565b91506135c28261355b565b604082019050919050565b600060208201905081810360008301526135e6816135aa565b9050919050565b60006060820190506136026000830186612a86565b61360f6020830185612a86565b61361c60408301846129b5565b949350505050565b60006040820190506136396000830185612a86565b61364660208301846129b5565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006136878261277c565b9150600082141561369b5761369a612dac565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006136dc602083612b59565b91506136e7826136a6565b602082019050919050565b6000602082019050818103600083015261370b816136cf565b9050919050565b61371b816126e8565b811461372657600080fd5b50565b60008151905061373881613712565b92915050565b6000602082840312156137545761375361265e565b5b600061376284828501613729565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006137c7602a83612b59565b91506137d28261376b565b604082019050919050565b600060208201905081810360008301526137f6816137ba565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613888602683612b59565b91506138938261382c565b604082019050919050565b600060208201905081810360008301526138b78161387b565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006138f4601d83612b59565b91506138ff826138be565b602082019050919050565b60006020820190508181036000830152613923816138e7565b9050919050565b600081519050919050565b600081905092915050565b600061394b8261392a565b6139558185613935565b9350613965818560208601613373565b80840191505092915050565b600061397d8284613940565b91508190509291505056fea2646970667358221220cd3248902bb926148da46f1bcf239d79c5497845d7b58c636ed51d7c267d817064736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004731e90300ff77f0b414a651a2626a25286fa13b000000000000000000000000bc450c9eced158c6bd1affa8d37153e278e63e680000000000000000000000009625ce7753ace1fa1865a47aae2c5c2ce4418569
-----Decoded View---------------
Arg [0] : _teamMultisig (address): 0x4731E90300FF77f0b414A651a2626A25286fA13B
Arg [1] : _foundationMultisig (address): 0xbc450C9EcED158c6bD1AFfA8D37153E278e63e68
Arg [2] : _kapToken (address): 0x9625cE7753ace1fa1865A47aAe2c5C2Ce4418569
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000004731e90300ff77f0b414a651a2626a25286fa13b
Arg [1] : 000000000000000000000000bc450c9eced158c6bd1affa8d37153e278e63e68
Arg [2] : 0000000000000000000000009625ce7753ace1fa1865a47aae2c5c2ce4418569
Loading...
Loading
Loading...
Loading
OVERVIEW
This contract locks KAP tokens according to the parameters a user submits.Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.010146 | 622,712,722.3099 | $6,318,093.1 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.