- Contract name:
- GANGDistribution_Contest
- Optimization enabled
- false
- Compiler version
- v0.8.19+commit.7dd6d404
- EVM Version
- default
- Verified at
- 2023-12-02T07:27:42.684085Z
Contract source code
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; /** * @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; } } /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); } /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { bool private _paused; /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } } /** * Gang Distribution contract. * This Contract airdrops GANG on Gauss by distributing a percentage, of the total amount * allocated to this contract, to each recipient in the list. */ contract GANGDistribution_Contest is Ownable, Pausable { uint256 private immutable _precisionFactor = 1000000; mapping (uint => uint256) private totalAirdropAmount; mapping (uint => uint256) private airdropCount; mapping (uint => uint256) private totalAirdropCount; mapping (address => uint) private addressList; struct AirdropRecipient { address wallet; uint256 percentage; uint256 totalReceived; bool claimed; uint256 amountUnclaimed; } mapping (uint => AirdropRecipient[]) private _airdropRecipients; event AirdropCompleted(); event DistributionCalculated(uint256 remainingAirdrops, uint256 GANGToDistribute); event GANGDistributed(address recipient, uint256 GANGAmount); constructor() {} // Fallback function to allow the contract to receives Native Currency receive() external payable {} // Pause Token Trading and Transfers function pause() public onlyOwner { super._pause(); } // Unpause Token Trading and Transfers function unpause() public onlyOwner { super._unpause(); } // Allows Winners to Claim their Contest Rewards function claimReward() public returns (bool) { require(msg.sender != address(0), "Can not interact with the zero address"); address recipientToClaim = msg.sender; bool claimSuccessful = false; uint listNum = addressList[recipientToClaim]; for (uint256 i = 0; i < _airdropRecipients[listNum].length; i++) { if (_airdropRecipients[listNum][i].wallet == recipientToClaim) { if (_airdropRecipients[listNum][i].claimed == false) { uint256 amountUnclaimedRewards = _airdropRecipients[listNum][i].amountUnclaimed; _airdropRecipients[listNum][i].claimed = true; payable(_airdropRecipients[listNum][i].wallet).transfer(amountUnclaimedRewards); _airdropRecipients[listNum][i].totalReceived = _airdropRecipients[listNum][i].totalReceived + amountUnclaimedRewards; claimSuccessful = true; } } } return claimSuccessful; } // Allows Owner to Claim Contest Rewards in Bulk function bulkClaimReward(address[] memory bulkAddresses) public onlyOwner { require(bulkAddresses.length != 0, "No recipients to airdrop GANG to."); for (uint256 i = 0; i < bulkAddresses.length; i++) { uint listNum = (i+1); for (uint256 j = 0; j < _airdropRecipients[listNum].length; j++) { if (_airdropRecipients[listNum][j].wallet == bulkAddresses[i]) { uint256 amountUnclaimedRewards = _airdropRecipients[listNum][j].amountUnclaimed; _airdropRecipients[listNum][j].claimed = true; payable(_airdropRecipients[listNum][j].wallet).transfer(amountUnclaimedRewards); _airdropRecipients[listNum][j].totalReceived = _airdropRecipients[listNum][j].totalReceived + amountUnclaimedRewards; } } } } // Airdrops GANG to recipient wallets. function airdropGANG(uint listNum) external onlyOwner whenNotPaused() { require(_airdropRecipients[listNum].length != 0, "No recipients to airdrop GANG to."); require(airdropCount[listNum] < totalAirdropCount[listNum], "All airdrops have been completed."); // Calculate the total amount for one airdrop uint256 airdropAmount = (totalAirdropAmount[listNum] * 10**18) / totalAirdropCount[listNum]; // Transfer GANG to each recipient for (uint256 i = 0; i < _airdropRecipients[listNum].length; i++) { address payable recipientWallet = payable(_airdropRecipients[listNum][i].wallet); // Calculate GANG to send to this recipient uint256 amountOfGANG = Math.mulDiv(airdropAmount, _airdropRecipients[listNum][i].percentage, _precisionFactor, Math.Rounding.Trunc); if (_airdropRecipients[listNum][i].claimed == true) { recipientWallet.transfer(amountOfGANG); // Update total received for this recipient _airdropRecipients[listNum][i].totalReceived = _airdropRecipients[listNum][i].totalReceived + amountOfGANG; } else if (_airdropRecipients[listNum][i].claimed == false) { // Adds the Amount of GANG to the Unclaimed amount for this wallet _airdropRecipients[listNum][i].amountUnclaimed = _airdropRecipients[listNum][i].amountUnclaimed + amountOfGANG; } } // Update airdrop count airdropCount[listNum]++; // Emit AirdropCompleted event emit AirdropCompleted(); } // Gets the wallet addresses of the recipients function getRecipientAddresses(uint listNum) public view onlyOwner returns (address[] memory) { address[] memory addresses = new address[](_airdropRecipients[listNum].length); for (uint256 i = 0; i < _airdropRecipients[listNum].length; i++) { addresses[i] = _airdropRecipients[listNum][i].wallet; } return addresses; } // Gets the Percentages of the recipients function getRecipientPercentages(uint listNum) public view onlyOwner returns (uint256[] memory) { uint256[] memory percentages = new uint256[](_airdropRecipients[listNum].length); for (uint256 i = 0; i < _airdropRecipients[listNum].length; i++) { percentages[i] = _airdropRecipients[listNum][i].percentage; } return percentages; } // Gets the Total Received for each the recipient function getRecipientAmountReceived(uint listNum) public view onlyOwner returns (uint256[] memory) { uint256[] memory amountReceived = new uint256[](_airdropRecipients[listNum].length); for (uint256 i = 0; i < _airdropRecipients[listNum].length; i++) { amountReceived[i] = _airdropRecipients[listNum][i].totalReceived; } return amountReceived; } // Updates the total amount to distribute after sending GANG tokens to the contract function updateTotalAirdropAmount(uint listNum) public onlyOwner { totalAirdropAmount[listNum] = address(this).balance; } // Updates the total airdrop count, essentially proloning the vesting period function updateTotalAirdropCount(uint256 _totalAirdropCount, uint listNum) external onlyOwner { totalAirdropCount[listNum] = _totalAirdropCount; } // Function to update the list of recipients function updateRecipients(address[] memory recipientAddresses, uint256[] memory percentages, uint256 _totalAirdropAmount, uint256 _totalAirdropCount, uint listNum) external onlyOwner { require(recipientAddresses.length == percentages.length, "Number of addresses and percentages should match."); require(recipientAddresses.length > 0, "There are no recipients to update."); // Clear the existing _airdropRecipients array delete _airdropRecipients[listNum]; uint256 totalPercentages = 0; totalAirdropAmount[listNum] = _totalAirdropAmount; totalAirdropCount[listNum] = _totalAirdropCount; airdropCount[listNum] = 0; // Add the updated recipients to the _airdropRecipients array for (uint256 i = 0; i < recipientAddresses.length; i++) { require(recipientAddresses[i] != address(0), "Invalid recipient address."); require(percentages[i] > 0, "Percentage must be greater than 0."); require(percentages[i] <= _precisionFactor, "Percentage cannot exceed 100%."); _airdropRecipients[listNum].push( AirdropRecipient({ wallet: recipientAddresses[i], percentage: percentages[i], totalReceived: 0, claimed: false, amountUnclaimed: 0 }) ); addressList[recipientAddresses[i]] = listNum; totalPercentages = totalPercentages + percentages[i]; } // Ensure total percentage amount is equal to or less than 100% (we round down on math calculations to prevent overflows) require(totalPercentages <= _precisionFactor, "Total of Percentages must be <= 100%"); } // Gets the contract balance function getContractBalance() public view returns (uint256) { return address(this).balance; } // Contract Owner can withdraw any Native Currency in the contract function nativeRecover(address recoveryWallet) external onlyOwner { payable(recoveryWallet).transfer(address(this).balance); } /* Withdrawl any ERC20 Token that are accidentally sent to this contract WARNING: Interacting with unsafe tokens or smart contracts can result in stolen private keys, loss of funds, and drained wallets. Use this function with trusted Tokens/Contracts only */ function withdrawERC20(address tokenToWithdraw, address recoveryWallet) external onlyOwner { require(tokenToWithdraw != address(0), "Zero address not valid token address"); IERC20 token = IERC20(tokenToWithdraw); uint256 balance = token.balanceOf(address(this)); require(balance > 0, "No tokens to withdraw"); token.transfer(recoveryWallet, balance); } }
Contract ABI
[{"type":"constructor","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"airdropGANG","inputs":[{"type":"uint256","name":"listNum","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"bulkClaimReward","inputs":[{"type":"address[]","name":"bulkAddresses","internalType":"address[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"claimReward","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getContractBalance","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address[]","name":"","internalType":"address[]"}],"name":"getRecipientAddresses","inputs":[{"type":"uint256","name":"listNum","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"}],"name":"getRecipientAmountReceived","inputs":[{"type":"uint256","name":"listNum","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"}],"name":"getRecipientPercentages","inputs":[{"type":"uint256","name":"listNum","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"nativeRecover","inputs":[{"type":"address","name":"recoveryWallet","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pause","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unpause","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateRecipients","inputs":[{"type":"address[]","name":"recipientAddresses","internalType":"address[]"},{"type":"uint256[]","name":"percentages","internalType":"uint256[]"},{"type":"uint256","name":"_totalAirdropAmount","internalType":"uint256"},{"type":"uint256","name":"_totalAirdropCount","internalType":"uint256"},{"type":"uint256","name":"listNum","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateTotalAirdropAmount","inputs":[{"type":"uint256","name":"listNum","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateTotalAirdropCount","inputs":[{"type":"uint256","name":"_totalAirdropCount","internalType":"uint256"},{"type":"uint256","name":"listNum","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawERC20","inputs":[{"type":"address","name":"tokenToWithdraw","internalType":"address"},{"type":"address","name":"recoveryWallet","internalType":"address"}]},{"type":"event","name":"AirdropCompleted","inputs":[],"anonymous":false},{"type":"event","name":"DistributionCalculated","inputs":[{"type":"uint256","name":"remainingAirdrops","indexed":false},{"type":"uint256","name":"GANGToDistribute","indexed":false}],"anonymous":false},{"type":"event","name":"GANGDistributed","inputs":[{"type":"address","name":"recipient","indexed":false},{"type":"uint256","name":"GANGAmount","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","indexed":true},{"type":"address","name":"newOwner","indexed":true}],"anonymous":false},{"type":"event","name":"Paused","inputs":[{"type":"address","name":"account","indexed":false}],"anonymous":false},{"type":"event","name":"Unpaused","inputs":[{"type":"address","name":"account","indexed":false}],"anonymous":false},{"type":"error","name":"EnforcedPause","inputs":[]},{"type":"error","name":"ExpectedPause","inputs":[]},{"type":"error","name":"MathOverflowedMulDiv","inputs":[]},{"type":"receive"}]
Contract Creation Code
0x60a0604052620f42406080908152503480156200001b57600080fd5b506200003c620000306200005c60201b60201c565b6200006460201b60201c565b60008060146101000a81548160ff02191690831515021790555062000128565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b608051612f79620001526000396000818161071a0152818161096a015261165b0152612f796000f3fe60806040526004361061010c5760003560e01c80639456fbcc11610095578063b88a802f11610064578063b88a802f14610311578063db0a703e1461033c578063f2fde38b14610379578063f61fc482146103a2578063ff86e185146103cb57610113565b80639456fbcc1461026d57806399a4d7b214610296578063ac6f1f8a146102bf578063b4c01405146102e857610113565b80635c975abb116100dc5780635c975abb146101be5780636f9fb98a146101e9578063715018a6146102145780638456cb591461022b5780638da5cb5b1461024257610113565b806201d891146101185780630762992c1461014157806338619a8b1461017e5780633f4ba83a146101a757610113565b3661011357005b600080fd5b34801561012457600080fd5b5061013f600480360381019061013a9190611f19565b610408565b005b34801561014d57600080fd5b5061016860048036038101906101639190611f19565b61042b565b6040516101759190612004565b60405180910390f35b34801561018a57600080fd5b506101a560048036038101906101a091906122a0565b61052c565b005b3480156101b357600080fd5b506101bc6109d3565b005b3480156101ca57600080fd5b506101d36109e5565b6040516101e0919061236e565b60405180910390f35b3480156101f557600080fd5b506101fe6109fb565b60405161020b9190612398565b60405180910390f35b34801561022057600080fd5b50610229610a03565b005b34801561023757600080fd5b50610240610a17565b005b34801561024e57600080fd5b50610257610a29565b60405161026491906123c2565b60405180910390f35b34801561027957600080fd5b50610294600480360381019061028f91906123dd565b610a52565b005b3480156102a257600080fd5b506102bd60048036038101906102b8919061241d565b610c14565b005b3480156102cb57600080fd5b506102e660048036038101906102e1919061245d565b610c38565b005b3480156102f457600080fd5b5061030f600480360381019061030a919061248a565b610c8a565b005b34801561031d57600080fd5b50610326610f88565b604051610333919061236e565b60405180910390f35b34801561034857600080fd5b50610363600480360381019061035e9190611f19565b611302565b6040516103709190612004565b60405180910390f35b34801561038557600080fd5b506103a0600480360381019061039b919061245d565b611403565b005b3480156103ae57600080fd5b506103c960048036038101906103c49190611f19565b611486565b005b3480156103d757600080fd5b506103f260048036038101906103ed9190611f19565b6118d6565b6040516103ff9190612591565b60405180910390f35b610410611a25565b47600160008381526020019081526020016000208190555050565b6060610435611a25565b6000600560008481526020019081526020016000208054905067ffffffffffffffff8111156104675761046661203c565b5b6040519080825280602002602001820160405280156104955781602001602082028036833780820191505090505b50905060005b6005600085815260200190815260200160002080549050811015610522576005600085815260200190815260200160002081815481106104de576104dd6125b3565b5b906000526020600020906005020160010154828281518110610503576105026125b3565b5b602002602001018181525050808061051a90612611565b91505061049b565b5080915050919050565b610534611a25565b8351855114610578576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056f906126dc565b60405180910390fd5b60008551116105bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b39061276e565b60405180910390fd5b6005600082815260200190815260200160002060006105db9190611e41565b60008360016000848152602001908152602001600020819055508260036000848152602001908152602001600020819055506000600260008481526020019081526020016000208190555060005b865181101561096757600073ffffffffffffffffffffffffffffffffffffffff1687828151811061065d5761065c6125b3565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16036106bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b2906127da565b60405180910390fd5b60008682815181106106d0576106cf6125b3565b5b602002602001015111610718576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070f9061286c565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000086828151811061074c5761074b6125b3565b5b60200260200101511115610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c906128d8565b60405180910390fd5b600560008481526020019081526020016000206040518060a001604052808984815181106107c6576107c56125b3565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1681526020018884815181106107fc576107fb6125b3565b5b60200260200101518152602001600081526020016000151581526020016000815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030160006101000a81548160ff02191690831515021790555060808201518160040155505082600460008984815181106108e6576108e56125b3565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555085818151811061093f5761093e6125b3565b5b60200260200101518261095291906128f8565b9150808061095f90612611565b915050610629565b507f00000000000000000000000000000000000000000000000000000000000000008111156109cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c29061299e565b60405180910390fd5b505050505050565b6109db611a25565b6109e3611aa3565b565b60008060149054906101000a900460ff16905090565b600047905090565b610a0b611a25565b610a156000611b05565b565b610a1f611a25565b610a27611bc9565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610a5a611a25565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ac9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac090612a30565b60405180910390fd5b600082905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b0991906123c2565b602060405180830381865afa158015610b26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4a9190612a65565b905060008111610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8690612ade565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401610bca929190612afe565b6020604051808303816000875af1158015610be9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0d9190612b53565b5050505050565b610c1c611a25565b8160036000838152602001908152602001600020819055505050565b610c40611a25565b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610c86573d6000803e3d6000fd5b5050565b610c92611a25565b6000815103610cd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccd90612bf2565b60405180910390fd5b60005b8151811015610f84576000600182610cf191906128f8565b905060005b6005600083815260200190815260200160002080549050811015610f6f57838381518110610d2757610d266125b3565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16600560008481526020019081526020016000208281548110610d6a57610d696125b3565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610f5c576000600560008481526020019081526020016000208281548110610dde57610ddd6125b3565b5b90600052602060002090600502016004015490506001600560008581526020019081526020016000208381548110610e1957610e186125b3565b5b906000526020600020906005020160030160006101000a81548160ff021916908315150217905550600560008481526020019081526020016000208281548110610e6657610e656125b3565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610edd573d6000803e3d6000fd5b5080600560008581526020019081526020016000208381548110610f0457610f036125b3565b5b906000526020600020906005020160020154610f2091906128f8565b600560008581526020019081526020016000208381548110610f4557610f446125b3565b5b906000526020600020906005020160020181905550505b8080610f6790612611565b915050610cf6565b50508080610f7c90612611565b915050610cd9565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1603610ff8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fef90612c84565b60405180910390fd5b6000339050600080600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060005b60056000838152602001908152602001600020805490508110156112f8578373ffffffffffffffffffffffffffffffffffffffff1660056000848152602001908152602001600020828154811061109f5761109e6125b3565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036112e55760001515600560008481526020019081526020016000208281548110611115576111146125b3565b5b906000526020600020906005020160030160009054906101000a900460ff161515036112e4576000600560008481526020019081526020016000208281548110611162576111616125b3565b5b9060005260206000209060050201600401549050600160056000858152602001908152602001600020838154811061119d5761119c6125b3565b5b906000526020600020906005020160030160006101000a81548160ff0219169083151502179055506005600084815260200190815260200160002082815481106111ea576111e96125b3565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611261573d6000803e3d6000fd5b5080600560008581526020019081526020016000208381548110611288576112876125b3565b5b9060005260206000209060050201600201546112a491906128f8565b6005600085815260200190815260200160002083815481106112c9576112c86125b3565b5b90600052602060002090600502016002018190555060019350505b5b80806112f090612611565b915050611045565b5081935050505090565b606061130c611a25565b6000600560008481526020019081526020016000208054905067ffffffffffffffff81111561133e5761133d61203c565b5b60405190808252806020026020018201604052801561136c5781602001602082028036833780820191505090505b50905060005b60056000858152602001908152602001600020805490508110156113f9576005600085815260200190815260200160002081815481106113b5576113b46125b3565b5b9060005260206000209060050201600201548282815181106113da576113d96125b3565b5b60200260200101818152505080806113f190612611565b915050611372565b5080915050919050565b61140b611a25565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361147a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147190612d16565b60405180910390fd5b61148381611b05565b50565b61148e611a25565b611496611c2c565b60006005600083815260200190815260200160002080549050036114ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e690612bf2565b60405180910390fd5b6003600082815260200190815260200160002054600260008381526020019081526020016000205410611557576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154e90612da8565b60405180910390fd5b60006003600083815260200190815260200160002054670de0b6b3a764000060016000858152602001908152602001600020546115949190612dc8565b61159e9190612e39565b905060005b600560008481526020019081526020016000208054905081101561187c5760006005600085815260200190815260200160002082815481106115e8576115e76125b3565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600061168184600560008881526020019081526020016000208581548110611647576116466125b3565b5b9060005260206000209060050201600101547f00000000000000000000000000000000000000000000000000000000000000006002611c6d565b9050600115156005600087815260200190815260200160002084815481106116ac576116ab6125b3565b5b906000526020600020906005020160030160009054906101000a900460ff1615150361179a578173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611718573d6000803e3d6000fd5b508060056000878152602001908152602001600020848154811061173f5761173e6125b3565b5b90600052602060002090600502016002015461175b91906128f8565b6005600087815260200190815260200160002084815481106117805761177f6125b3565b5b906000526020600020906005020160020181905550611867565b600015156005600087815260200190815260200160002084815481106117c3576117c26125b3565b5b906000526020600020906005020160030160009054906101000a900460ff16151503611866578060056000878152602001908152602001600020848154811061180f5761180e6125b3565b5b90600052602060002090600502016004015461182b91906128f8565b6005600087815260200190815260200160002084815481106118505761184f6125b3565b5b9060005260206000209060050201600401819055505b5b5050808061187490612611565b9150506115a3565b506002600083815260200190815260200160002060008154809291906118a190612611565b91905055507fd403d21816f497db96eadddc73c53e00455176302bcd4f046ba25e996dac9e7760405160405180910390a15050565b60606118e0611a25565b6000600560008481526020019081526020016000208054905067ffffffffffffffff8111156119125761191161203c565b5b6040519080825280602002602001820160405280156119405781602001602082028036833780820191505090505b50905060005b6005600085815260200190815260200160002080549050811015611a1b57600560008581526020019081526020016000208181548110611989576119886125b3565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168282815181106119ce576119cd6125b3565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508080611a1390612611565b915050611946565b5080915050919050565b611a2d611cc4565b73ffffffffffffffffffffffffffffffffffffffff16611a4b610a29565b73ffffffffffffffffffffffffffffffffffffffff1614611aa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9890612eb6565b60405180910390fd5b565b611aab611ccc565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611aee611cc4565b604051611afb91906123c2565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611bd1611c2c565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c15611cc4565b604051611c2291906123c2565b60405180910390a1565b611c346109e5565b15611c6b576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600080611c7b868686611d0c565b9050611c8683611e13565b8015611ca3575060008480611c9e57611c9d612e0a565b5b868809115b15611cb857600181611cb591906128f8565b90505b80915050949350505050565b600033905090565b611cd46109e5565b611d0a576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6000808385029050600080198587098281108382030391505060008103611d4757838281611d3d57611d3c612e0a565b5b0492505050611e0c565b808411611d80576040517f227bc15300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084868809905082811182039150808303925060008560000386169050808604955080840493506001818260000304019050808302841793506000600287600302189050808702600203810290508087026002038102905080870260020381029050808702600203810290508087026002038102905080870260020381029050808502955050505050505b9392505050565b600060016002836003811115611e2c57611e2b612ed6565b5b611e369190612f12565b60ff16149050919050565b5080546000825560050290600052602060002090810190611e629190611e65565b50565b5b80821115611ecb57600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000905560028201600090556003820160006101000a81549060ff0219169055600482016000905550600501611e66565b5090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b611ef681611ee3565b8114611f0157600080fd5b50565b600081359050611f1381611eed565b92915050565b600060208284031215611f2f57611f2e611ed9565b5b6000611f3d84828501611f04565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b611f7b81611ee3565b82525050565b6000611f8d8383611f72565b60208301905092915050565b6000602082019050919050565b6000611fb182611f46565b611fbb8185611f51565b9350611fc683611f62565b8060005b83811015611ff7578151611fde8882611f81565b9750611fe983611f99565b925050600181019050611fca565b5085935050505092915050565b6000602082019050818103600083015261201e8184611fa6565b905092915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6120748261202b565b810181811067ffffffffffffffff821117156120935761209261203c565b5b80604052505050565b60006120a6611ecf565b90506120b2828261206b565b919050565b600067ffffffffffffffff8211156120d2576120d161203c565b5b602082029050602081019050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612113826120e8565b9050919050565b61212381612108565b811461212e57600080fd5b50565b6000813590506121408161211a565b92915050565b6000612159612154846120b7565b61209c565b9050808382526020820190506020840283018581111561217c5761217b6120e3565b5b835b818110156121a557806121918882612131565b84526020840193505060208101905061217e565b5050509392505050565b600082601f8301126121c4576121c3612026565b5b81356121d4848260208601612146565b91505092915050565b600067ffffffffffffffff8211156121f8576121f761203c565b5b602082029050602081019050919050565b600061221c612217846121dd565b61209c565b9050808382526020820190506020840283018581111561223f5761223e6120e3565b5b835b8181101561226857806122548882611f04565b845260208401935050602081019050612241565b5050509392505050565b600082601f83011261228757612286612026565b5b8135612297848260208601612209565b91505092915050565b600080600080600060a086880312156122bc576122bb611ed9565b5b600086013567ffffffffffffffff8111156122da576122d9611ede565b5b6122e6888289016121af565b955050602086013567ffffffffffffffff81111561230757612306611ede565b5b61231388828901612272565b945050604061232488828901611f04565b935050606061233588828901611f04565b925050608061234688828901611f04565b9150509295509295909350565b60008115159050919050565b61236881612353565b82525050565b6000602082019050612383600083018461235f565b92915050565b61239281611ee3565b82525050565b60006020820190506123ad6000830184612389565b92915050565b6123bc81612108565b82525050565b60006020820190506123d760008301846123b3565b92915050565b600080604083850312156123f4576123f3611ed9565b5b600061240285828601612131565b925050602061241385828601612131565b9150509250929050565b6000806040838503121561243457612433611ed9565b5b600061244285828601611f04565b925050602061245385828601611f04565b9150509250929050565b60006020828403121561247357612472611ed9565b5b600061248184828501612131565b91505092915050565b6000602082840312156124a05761249f611ed9565b5b600082013567ffffffffffffffff8111156124be576124bd611ede565b5b6124ca848285016121af565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61250881612108565b82525050565b600061251a83836124ff565b60208301905092915050565b6000602082019050919050565b600061253e826124d3565b61254881856124de565b9350612553836124ef565b8060005b8381101561258457815161256b888261250e565b975061257683612526565b925050600181019050612557565b5085935050505092915050565b600060208201905081810360008301526125ab8184612533565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061261c82611ee3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361264e5761264d6125e2565b5b600182019050919050565b600082825260208201905092915050565b7f4e756d626572206f662061646472657373657320616e642070657263656e746160008201527f6765732073686f756c64206d617463682e000000000000000000000000000000602082015250565b60006126c6603183612659565b91506126d18261266a565b604082019050919050565b600060208201905081810360008301526126f5816126b9565b9050919050565b7f546865726520617265206e6f20726563697069656e747320746f20757064617460008201527f652e000000000000000000000000000000000000000000000000000000000000602082015250565b6000612758602283612659565b9150612763826126fc565b604082019050919050565b600060208201905081810360008301526127878161274b565b9050919050565b7f496e76616c696420726563697069656e7420616464726573732e000000000000600082015250565b60006127c4601a83612659565b91506127cf8261278e565b602082019050919050565b600060208201905081810360008301526127f3816127b7565b9050919050565b7f50657263656e74616765206d7573742062652067726561746572207468616e2060008201527f302e000000000000000000000000000000000000000000000000000000000000602082015250565b6000612856602283612659565b9150612861826127fa565b604082019050919050565b6000602082019050818103600083015261288581612849565b9050919050565b7f50657263656e746167652063616e6e6f742065786365656420313030252e0000600082015250565b60006128c2601e83612659565b91506128cd8261288c565b602082019050919050565b600060208201905081810360008301526128f1816128b5565b9050919050565b600061290382611ee3565b915061290e83611ee3565b9250828201905080821115612926576129256125e2565b5b92915050565b7f546f74616c206f662050657263656e7461676573206d757374206265203c3d2060008201527f3130302500000000000000000000000000000000000000000000000000000000602082015250565b6000612988602483612659565b91506129938261292c565b604082019050919050565b600060208201905081810360008301526129b78161297b565b9050919050565b7f5a65726f2061646472657373206e6f742076616c696420746f6b656e2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000612a1a602483612659565b9150612a25826129be565b604082019050919050565b60006020820190508181036000830152612a4981612a0d565b9050919050565b600081519050612a5f81611eed565b92915050565b600060208284031215612a7b57612a7a611ed9565b5b6000612a8984828501612a50565b91505092915050565b7f4e6f20746f6b656e7320746f2077697468647261770000000000000000000000600082015250565b6000612ac8601583612659565b9150612ad382612a92565b602082019050919050565b60006020820190508181036000830152612af781612abb565b9050919050565b6000604082019050612b1360008301856123b3565b612b206020830184612389565b9392505050565b612b3081612353565b8114612b3b57600080fd5b50565b600081519050612b4d81612b27565b92915050565b600060208284031215612b6957612b68611ed9565b5b6000612b7784828501612b3e565b91505092915050565b7f4e6f20726563697069656e747320746f2061697264726f702047414e4720746f60008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000612bdc602183612659565b9150612be782612b80565b604082019050919050565b60006020820190508181036000830152612c0b81612bcf565b9050919050565b7f43616e206e6f7420696e746572616374207769746820746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612c6e602683612659565b9150612c7982612c12565b604082019050919050565b60006020820190508181036000830152612c9d81612c61565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612d00602683612659565b9150612d0b82612ca4565b604082019050919050565b60006020820190508181036000830152612d2f81612cf3565b9050919050565b7f416c6c2061697264726f70732068617665206265656e20636f6d706c6574656460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000612d92602183612659565b9150612d9d82612d36565b604082019050919050565b60006020820190508181036000830152612dc181612d85565b9050919050565b6000612dd382611ee3565b9150612dde83611ee3565b9250828202612dec81611ee3565b91508282048414831517612e0357612e026125e2565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612e4482611ee3565b9150612e4f83611ee3565b925082612e5f57612e5e612e0a565b5b828204905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612ea0602083612659565b9150612eab82612e6a565b602082019050919050565b60006020820190508181036000830152612ecf81612e93565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600060ff82169050919050565b6000612f1d82612f05565b9150612f2883612f05565b925082612f3857612f37612e0a565b5b82820690509291505056fea2646970667358221220dabecfe780a8c416de62911fb777921b20a9485103f47e245177c5160859bc9864736f6c63430008130033
Deployed ByteCode
0x60806040526004361061010c5760003560e01c80639456fbcc11610095578063b88a802f11610064578063b88a802f14610311578063db0a703e1461033c578063f2fde38b14610379578063f61fc482146103a2578063ff86e185146103cb57610113565b80639456fbcc1461026d57806399a4d7b214610296578063ac6f1f8a146102bf578063b4c01405146102e857610113565b80635c975abb116100dc5780635c975abb146101be5780636f9fb98a146101e9578063715018a6146102145780638456cb591461022b5780638da5cb5b1461024257610113565b806201d891146101185780630762992c1461014157806338619a8b1461017e5780633f4ba83a146101a757610113565b3661011357005b600080fd5b34801561012457600080fd5b5061013f600480360381019061013a9190611f19565b610408565b005b34801561014d57600080fd5b5061016860048036038101906101639190611f19565b61042b565b6040516101759190612004565b60405180910390f35b34801561018a57600080fd5b506101a560048036038101906101a091906122a0565b61052c565b005b3480156101b357600080fd5b506101bc6109d3565b005b3480156101ca57600080fd5b506101d36109e5565b6040516101e0919061236e565b60405180910390f35b3480156101f557600080fd5b506101fe6109fb565b60405161020b9190612398565b60405180910390f35b34801561022057600080fd5b50610229610a03565b005b34801561023757600080fd5b50610240610a17565b005b34801561024e57600080fd5b50610257610a29565b60405161026491906123c2565b60405180910390f35b34801561027957600080fd5b50610294600480360381019061028f91906123dd565b610a52565b005b3480156102a257600080fd5b506102bd60048036038101906102b8919061241d565b610c14565b005b3480156102cb57600080fd5b506102e660048036038101906102e1919061245d565b610c38565b005b3480156102f457600080fd5b5061030f600480360381019061030a919061248a565b610c8a565b005b34801561031d57600080fd5b50610326610f88565b604051610333919061236e565b60405180910390f35b34801561034857600080fd5b50610363600480360381019061035e9190611f19565b611302565b6040516103709190612004565b60405180910390f35b34801561038557600080fd5b506103a0600480360381019061039b919061245d565b611403565b005b3480156103ae57600080fd5b506103c960048036038101906103c49190611f19565b611486565b005b3480156103d757600080fd5b506103f260048036038101906103ed9190611f19565b6118d6565b6040516103ff9190612591565b60405180910390f35b610410611a25565b47600160008381526020019081526020016000208190555050565b6060610435611a25565b6000600560008481526020019081526020016000208054905067ffffffffffffffff8111156104675761046661203c565b5b6040519080825280602002602001820160405280156104955781602001602082028036833780820191505090505b50905060005b6005600085815260200190815260200160002080549050811015610522576005600085815260200190815260200160002081815481106104de576104dd6125b3565b5b906000526020600020906005020160010154828281518110610503576105026125b3565b5b602002602001018181525050808061051a90612611565b91505061049b565b5080915050919050565b610534611a25565b8351855114610578576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056f906126dc565b60405180910390fd5b60008551116105bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b39061276e565b60405180910390fd5b6005600082815260200190815260200160002060006105db9190611e41565b60008360016000848152602001908152602001600020819055508260036000848152602001908152602001600020819055506000600260008481526020019081526020016000208190555060005b865181101561096757600073ffffffffffffffffffffffffffffffffffffffff1687828151811061065d5761065c6125b3565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16036106bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b2906127da565b60405180910390fd5b60008682815181106106d0576106cf6125b3565b5b602002602001015111610718576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070f9061286c565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000f424086828151811061074c5761074b6125b3565b5b60200260200101511115610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c906128d8565b60405180910390fd5b600560008481526020019081526020016000206040518060a001604052808984815181106107c6576107c56125b3565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1681526020018884815181106107fc576107fb6125b3565b5b60200260200101518152602001600081526020016000151581526020016000815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030160006101000a81548160ff02191690831515021790555060808201518160040155505082600460008984815181106108e6576108e56125b3565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555085818151811061093f5761093e6125b3565b5b60200260200101518261095291906128f8565b9150808061095f90612611565b915050610629565b507f00000000000000000000000000000000000000000000000000000000000f42408111156109cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c29061299e565b60405180910390fd5b505050505050565b6109db611a25565b6109e3611aa3565b565b60008060149054906101000a900460ff16905090565b600047905090565b610a0b611a25565b610a156000611b05565b565b610a1f611a25565b610a27611bc9565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610a5a611a25565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ac9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac090612a30565b60405180910390fd5b600082905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b0991906123c2565b602060405180830381865afa158015610b26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4a9190612a65565b905060008111610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8690612ade565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401610bca929190612afe565b6020604051808303816000875af1158015610be9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0d9190612b53565b5050505050565b610c1c611a25565b8160036000838152602001908152602001600020819055505050565b610c40611a25565b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610c86573d6000803e3d6000fd5b5050565b610c92611a25565b6000815103610cd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccd90612bf2565b60405180910390fd5b60005b8151811015610f84576000600182610cf191906128f8565b905060005b6005600083815260200190815260200160002080549050811015610f6f57838381518110610d2757610d266125b3565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16600560008481526020019081526020016000208281548110610d6a57610d696125b3565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610f5c576000600560008481526020019081526020016000208281548110610dde57610ddd6125b3565b5b90600052602060002090600502016004015490506001600560008581526020019081526020016000208381548110610e1957610e186125b3565b5b906000526020600020906005020160030160006101000a81548160ff021916908315150217905550600560008481526020019081526020016000208281548110610e6657610e656125b3565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610edd573d6000803e3d6000fd5b5080600560008581526020019081526020016000208381548110610f0457610f036125b3565b5b906000526020600020906005020160020154610f2091906128f8565b600560008581526020019081526020016000208381548110610f4557610f446125b3565b5b906000526020600020906005020160020181905550505b8080610f6790612611565b915050610cf6565b50508080610f7c90612611565b915050610cd9565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1603610ff8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fef90612c84565b60405180910390fd5b6000339050600080600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060005b60056000838152602001908152602001600020805490508110156112f8578373ffffffffffffffffffffffffffffffffffffffff1660056000848152602001908152602001600020828154811061109f5761109e6125b3565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036112e55760001515600560008481526020019081526020016000208281548110611115576111146125b3565b5b906000526020600020906005020160030160009054906101000a900460ff161515036112e4576000600560008481526020019081526020016000208281548110611162576111616125b3565b5b9060005260206000209060050201600401549050600160056000858152602001908152602001600020838154811061119d5761119c6125b3565b5b906000526020600020906005020160030160006101000a81548160ff0219169083151502179055506005600084815260200190815260200160002082815481106111ea576111e96125b3565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611261573d6000803e3d6000fd5b5080600560008581526020019081526020016000208381548110611288576112876125b3565b5b9060005260206000209060050201600201546112a491906128f8565b6005600085815260200190815260200160002083815481106112c9576112c86125b3565b5b90600052602060002090600502016002018190555060019350505b5b80806112f090612611565b915050611045565b5081935050505090565b606061130c611a25565b6000600560008481526020019081526020016000208054905067ffffffffffffffff81111561133e5761133d61203c565b5b60405190808252806020026020018201604052801561136c5781602001602082028036833780820191505090505b50905060005b60056000858152602001908152602001600020805490508110156113f9576005600085815260200190815260200160002081815481106113b5576113b46125b3565b5b9060005260206000209060050201600201548282815181106113da576113d96125b3565b5b60200260200101818152505080806113f190612611565b915050611372565b5080915050919050565b61140b611a25565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361147a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147190612d16565b60405180910390fd5b61148381611b05565b50565b61148e611a25565b611496611c2c565b60006005600083815260200190815260200160002080549050036114ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e690612bf2565b60405180910390fd5b6003600082815260200190815260200160002054600260008381526020019081526020016000205410611557576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154e90612da8565b60405180910390fd5b60006003600083815260200190815260200160002054670de0b6b3a764000060016000858152602001908152602001600020546115949190612dc8565b61159e9190612e39565b905060005b600560008481526020019081526020016000208054905081101561187c5760006005600085815260200190815260200160002082815481106115e8576115e76125b3565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600061168184600560008881526020019081526020016000208581548110611647576116466125b3565b5b9060005260206000209060050201600101547f00000000000000000000000000000000000000000000000000000000000f42406002611c6d565b9050600115156005600087815260200190815260200160002084815481106116ac576116ab6125b3565b5b906000526020600020906005020160030160009054906101000a900460ff1615150361179a578173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611718573d6000803e3d6000fd5b508060056000878152602001908152602001600020848154811061173f5761173e6125b3565b5b90600052602060002090600502016002015461175b91906128f8565b6005600087815260200190815260200160002084815481106117805761177f6125b3565b5b906000526020600020906005020160020181905550611867565b600015156005600087815260200190815260200160002084815481106117c3576117c26125b3565b5b906000526020600020906005020160030160009054906101000a900460ff16151503611866578060056000878152602001908152602001600020848154811061180f5761180e6125b3565b5b90600052602060002090600502016004015461182b91906128f8565b6005600087815260200190815260200160002084815481106118505761184f6125b3565b5b9060005260206000209060050201600401819055505b5b5050808061187490612611565b9150506115a3565b506002600083815260200190815260200160002060008154809291906118a190612611565b91905055507fd403d21816f497db96eadddc73c53e00455176302bcd4f046ba25e996dac9e7760405160405180910390a15050565b60606118e0611a25565b6000600560008481526020019081526020016000208054905067ffffffffffffffff8111156119125761191161203c565b5b6040519080825280602002602001820160405280156119405781602001602082028036833780820191505090505b50905060005b6005600085815260200190815260200160002080549050811015611a1b57600560008581526020019081526020016000208181548110611989576119886125b3565b5b906000526020600020906005020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168282815181106119ce576119cd6125b3565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508080611a1390612611565b915050611946565b5080915050919050565b611a2d611cc4565b73ffffffffffffffffffffffffffffffffffffffff16611a4b610a29565b73ffffffffffffffffffffffffffffffffffffffff1614611aa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9890612eb6565b60405180910390fd5b565b611aab611ccc565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611aee611cc4565b604051611afb91906123c2565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611bd1611c2c565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c15611cc4565b604051611c2291906123c2565b60405180910390a1565b611c346109e5565b15611c6b576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600080611c7b868686611d0c565b9050611c8683611e13565b8015611ca3575060008480611c9e57611c9d612e0a565b5b868809115b15611cb857600181611cb591906128f8565b90505b80915050949350505050565b600033905090565b611cd46109e5565b611d0a576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6000808385029050600080198587098281108382030391505060008103611d4757838281611d3d57611d3c612e0a565b5b0492505050611e0c565b808411611d80576040517f227bc15300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084868809905082811182039150808303925060008560000386169050808604955080840493506001818260000304019050808302841793506000600287600302189050808702600203810290508087026002038102905080870260020381029050808702600203810290508087026002038102905080870260020381029050808502955050505050505b9392505050565b600060016002836003811115611e2c57611e2b612ed6565b5b611e369190612f12565b60ff16149050919050565b5080546000825560050290600052602060002090810190611e629190611e65565b50565b5b80821115611ecb57600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000905560028201600090556003820160006101000a81549060ff0219169055600482016000905550600501611e66565b5090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b611ef681611ee3565b8114611f0157600080fd5b50565b600081359050611f1381611eed565b92915050565b600060208284031215611f2f57611f2e611ed9565b5b6000611f3d84828501611f04565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b611f7b81611ee3565b82525050565b6000611f8d8383611f72565b60208301905092915050565b6000602082019050919050565b6000611fb182611f46565b611fbb8185611f51565b9350611fc683611f62565b8060005b83811015611ff7578151611fde8882611f81565b9750611fe983611f99565b925050600181019050611fca565b5085935050505092915050565b6000602082019050818103600083015261201e8184611fa6565b905092915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6120748261202b565b810181811067ffffffffffffffff821117156120935761209261203c565b5b80604052505050565b60006120a6611ecf565b90506120b2828261206b565b919050565b600067ffffffffffffffff8211156120d2576120d161203c565b5b602082029050602081019050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612113826120e8565b9050919050565b61212381612108565b811461212e57600080fd5b50565b6000813590506121408161211a565b92915050565b6000612159612154846120b7565b61209c565b9050808382526020820190506020840283018581111561217c5761217b6120e3565b5b835b818110156121a557806121918882612131565b84526020840193505060208101905061217e565b5050509392505050565b600082601f8301126121c4576121c3612026565b5b81356121d4848260208601612146565b91505092915050565b600067ffffffffffffffff8211156121f8576121f761203c565b5b602082029050602081019050919050565b600061221c612217846121dd565b61209c565b9050808382526020820190506020840283018581111561223f5761223e6120e3565b5b835b8181101561226857806122548882611f04565b845260208401935050602081019050612241565b5050509392505050565b600082601f83011261228757612286612026565b5b8135612297848260208601612209565b91505092915050565b600080600080600060a086880312156122bc576122bb611ed9565b5b600086013567ffffffffffffffff8111156122da576122d9611ede565b5b6122e6888289016121af565b955050602086013567ffffffffffffffff81111561230757612306611ede565b5b61231388828901612272565b945050604061232488828901611f04565b935050606061233588828901611f04565b925050608061234688828901611f04565b9150509295509295909350565b60008115159050919050565b61236881612353565b82525050565b6000602082019050612383600083018461235f565b92915050565b61239281611ee3565b82525050565b60006020820190506123ad6000830184612389565b92915050565b6123bc81612108565b82525050565b60006020820190506123d760008301846123b3565b92915050565b600080604083850312156123f4576123f3611ed9565b5b600061240285828601612131565b925050602061241385828601612131565b9150509250929050565b6000806040838503121561243457612433611ed9565b5b600061244285828601611f04565b925050602061245385828601611f04565b9150509250929050565b60006020828403121561247357612472611ed9565b5b600061248184828501612131565b91505092915050565b6000602082840312156124a05761249f611ed9565b5b600082013567ffffffffffffffff8111156124be576124bd611ede565b5b6124ca848285016121af565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61250881612108565b82525050565b600061251a83836124ff565b60208301905092915050565b6000602082019050919050565b600061253e826124d3565b61254881856124de565b9350612553836124ef565b8060005b8381101561258457815161256b888261250e565b975061257683612526565b925050600181019050612557565b5085935050505092915050565b600060208201905081810360008301526125ab8184612533565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061261c82611ee3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361264e5761264d6125e2565b5b600182019050919050565b600082825260208201905092915050565b7f4e756d626572206f662061646472657373657320616e642070657263656e746160008201527f6765732073686f756c64206d617463682e000000000000000000000000000000602082015250565b60006126c6603183612659565b91506126d18261266a565b604082019050919050565b600060208201905081810360008301526126f5816126b9565b9050919050565b7f546865726520617265206e6f20726563697069656e747320746f20757064617460008201527f652e000000000000000000000000000000000000000000000000000000000000602082015250565b6000612758602283612659565b9150612763826126fc565b604082019050919050565b600060208201905081810360008301526127878161274b565b9050919050565b7f496e76616c696420726563697069656e7420616464726573732e000000000000600082015250565b60006127c4601a83612659565b91506127cf8261278e565b602082019050919050565b600060208201905081810360008301526127f3816127b7565b9050919050565b7f50657263656e74616765206d7573742062652067726561746572207468616e2060008201527f302e000000000000000000000000000000000000000000000000000000000000602082015250565b6000612856602283612659565b9150612861826127fa565b604082019050919050565b6000602082019050818103600083015261288581612849565b9050919050565b7f50657263656e746167652063616e6e6f742065786365656420313030252e0000600082015250565b60006128c2601e83612659565b91506128cd8261288c565b602082019050919050565b600060208201905081810360008301526128f1816128b5565b9050919050565b600061290382611ee3565b915061290e83611ee3565b9250828201905080821115612926576129256125e2565b5b92915050565b7f546f74616c206f662050657263656e7461676573206d757374206265203c3d2060008201527f3130302500000000000000000000000000000000000000000000000000000000602082015250565b6000612988602483612659565b91506129938261292c565b604082019050919050565b600060208201905081810360008301526129b78161297b565b9050919050565b7f5a65726f2061646472657373206e6f742076616c696420746f6b656e2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000612a1a602483612659565b9150612a25826129be565b604082019050919050565b60006020820190508181036000830152612a4981612a0d565b9050919050565b600081519050612a5f81611eed565b92915050565b600060208284031215612a7b57612a7a611ed9565b5b6000612a8984828501612a50565b91505092915050565b7f4e6f20746f6b656e7320746f2077697468647261770000000000000000000000600082015250565b6000612ac8601583612659565b9150612ad382612a92565b602082019050919050565b60006020820190508181036000830152612af781612abb565b9050919050565b6000604082019050612b1360008301856123b3565b612b206020830184612389565b9392505050565b612b3081612353565b8114612b3b57600080fd5b50565b600081519050612b4d81612b27565b92915050565b600060208284031215612b6957612b68611ed9565b5b6000612b7784828501612b3e565b91505092915050565b7f4e6f20726563697069656e747320746f2061697264726f702047414e4720746f60008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000612bdc602183612659565b9150612be782612b80565b604082019050919050565b60006020820190508181036000830152612c0b81612bcf565b9050919050565b7f43616e206e6f7420696e746572616374207769746820746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612c6e602683612659565b9150612c7982612c12565b604082019050919050565b60006020820190508181036000830152612c9d81612c61565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612d00602683612659565b9150612d0b82612ca4565b604082019050919050565b60006020820190508181036000830152612d2f81612cf3565b9050919050565b7f416c6c2061697264726f70732068617665206265656e20636f6d706c6574656460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000612d92602183612659565b9150612d9d82612d36565b604082019050919050565b60006020820190508181036000830152612dc181612d85565b9050919050565b6000612dd382611ee3565b9150612dde83611ee3565b9250828202612dec81611ee3565b91508282048414831517612e0357612e026125e2565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612e4482611ee3565b9150612e4f83611ee3565b925082612e5f57612e5e612e0a565b5b828204905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612ea0602083612659565b9150612eab82612e6a565b602082019050919050565b60006020820190508181036000830152612ecf81612e93565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600060ff82169050919050565b6000612f1d82612f05565b9150612f2883612f05565b925082612f3857612f37612e0a565b5b82820690509291505056fea2646970667358221220dabecfe780a8c416de62911fb777921b20a9485103f47e245177c5160859bc9864736f6c63430008130033