Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been partially verified via Sourcify.
- Contract name:
- GDrop
- Optimization enabled
- true
- Compiler version
- v0.8.18+commit.87f61d96
- Optimization runs
- 1000000
- EVM Version
- default
- Verified at
- 2025-06-19T07:25:52.681349Z
Constructor Arguments
0x000000000000000000000000abccefb00528c9c792ac7c46997f0f6ee5dcdddd000000000000000000000000c1f2e2cbef8ac2082b785a35cf819dea9fab7f7b
Arg [0] (address) : 0xabccefb00528c9c792ac7c46997f0f6ee5dcdddd
Arg [1] (address) : 0xc1f2e2cbef8ac2082b785a35cf819dea9fab7f7b
contracts/factory/GDrop.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract GDrop is Ownable, ReentrancyGuard {
using SafeERC20 for IERC20;
// Base rate for percentage calculations (10000 = 100%)
uint256 public constant BASE_RATE = 10000;
// Maximum array length limit
uint256 public constant MAX_RECIPIENTS = 200;
// Fee token address (GD token)
IERC20 public immutable feeToken;
// Fee amount per address in GD tokens
uint256 public feePerAddress;
// Fee collector address
address public feeCollector;
// Fee switch (true=enabled, false=disabled)
bool public feeEnabled;
// GD token reward parameters
uint256 public minRewardAddresses; // Minimum addresses required for reward
uint256 public rewardPercentage; // Reward percentage in basis points
uint256 public maxRewardAmount; // Maximum reward amount per transaction
uint256 public cooldownBlocks; // Cooldown period in blocks between rewards
// User reward tracking
mapping(address => uint256) public lastRewardBlock; // Last reward block for each user
// Events
event EtherDispersed(address indexed sender, address[] recipients, uint256[] values, uint256 feeAmount);
event TokenDispersed(address indexed token, address indexed sender, address[] recipients, uint256[] values, uint256 feeAmount);
event GDTokenDispersed(address indexed sender, address[] recipients, uint256[] values, uint256 rewardAmount);
event FeeCollectorUpdated(address indexed oldCollector, address indexed newCollector);
event FeeStatusUpdated(bool enabled);
event FeePerAddressUpdated(uint256 oldAmount, uint256 newAmount);
event RewardParametersUpdated(uint256 minAddresses, uint256 percentage);
event MaxRewardAmountUpdated(uint256 oldAmount, uint256 newAmount);
event CooldownBlocksUpdated(uint256 oldBlocks, uint256 newBlocks);
event RewardPoolDeposited(address indexed depositor, uint256 amount);
event RewardPoolWithdrawn(address indexed recipient, uint256 amount);
// Custom errors
error ArrayLengthMismatch();
error TransferFailed();
error InvalidAddress();
error ValueMismatch();
error InsufficientAllowance();
error InsufficientFeeAllowance();
error ZeroLength();
error InvalidPercentage();
error UnequalAmounts();
error RewardCooldownActive();
error TooManyRecipients();
/**
* @dev Constructor
* @param _feeToken GD token address
* @param _feeCollector Fee collector address
*/
constructor(address _feeToken, address _feeCollector) {
if (_feeToken == address(0) || _feeCollector == address(0)) revert InvalidAddress();
feeToken = IERC20(_feeToken);
feeCollector = _feeCollector;
feeEnabled = true; // Fee enabled by default
feePerAddress = 10_000 * 10**18; // Default: 10K GD tokens per address
minRewardAddresses = 10; // Default: 10 addresses
rewardPercentage = 1000; // Default: 10% (1000/10000)
maxRewardAmount = 1_000_000 * 10**18; // Default: 1M GD tokens
cooldownBlocks = 43200; // Default: 43200 blocks (~1 day)
}
/**
* @dev Batch distribute ETH to multiple recipients
* @notice Users need to:
* 1. Send correct amount of ETH (msg.value = sum(values))
* 2. Pre-approve GD tokens to this contract as fee
* @param recipients Array of recipient addresses
* @param values Array of corresponding ETH amounts
*/
function gdropEther(address[] calldata recipients, uint256[] calldata values) external payable nonReentrant {
if (recipients.length == 0) revert ZeroLength();
if (recipients.length != values.length) revert ArrayLengthMismatch();
if (recipients.length > MAX_RECIPIENTS) revert TooManyRecipients();
// Check and charge fee (requires pre-approved GD tokens)
uint256 feeAmount_ = _chargeFee(recipients.length);
uint256 total;
for (uint256 i = 0; i < recipients.length; i++) {
if (recipients[i] == address(0)) revert InvalidAddress();
total += values[i];
}
// Ensure sent ETH amount equals total amount
if (msg.value != total) revert ValueMismatch();
// Distribute ETH
for (uint256 i = 0; i < recipients.length; i++) {
(bool success, ) = recipients[i].call{value: values[i]}("");
if (!success) revert TransferFailed();
}
emit EtherDispersed(msg.sender, recipients, values, feeAmount_);
}
/**
* @dev Batch distribute ERC20 tokens to multiple recipients
* @param token ERC20 token address
* @param recipients Array of recipient addresses
* @param values Array of corresponding token amounts
*/
function gdropToken(IERC20 token, address[] calldata recipients, uint256[] calldata values) external nonReentrant {
if (recipients.length == 0) revert ZeroLength();
if (recipients.length != values.length) revert ArrayLengthMismatch();
if (recipients.length > MAX_RECIPIENTS) revert TooManyRecipients();
if (address(token) == address(0)) revert InvalidAddress();
// Check and charge fee
uint256 feeAmount_ = _chargeFee(recipients.length);
uint256 total;
for (uint256 i = 0; i < recipients.length; i++) {
if (recipients[i] == address(0)) revert InvalidAddress();
total += values[i];
}
// Check allowance
if (token.allowance(msg.sender, address(this)) < total) revert InsufficientAllowance();
// Transfer tokens using SafeERC20
token.safeTransferFrom(msg.sender, address(this), total);
// Distribute tokens
for (uint256 i = 0; i < recipients.length; i++) {
token.safeTransfer(recipients[i], values[i]);
}
emit TokenDispersed(address(token), msg.sender, recipients, values, feeAmount_);
}
/**
* @dev Batch distribute GD tokens with reward mechanism
* @notice Reward conditions:
* 1. Send to more than {minRewardAddresses} unique addresses
* 2. Each address must receive the same amount
* 3. Meeting conditions grants {rewardPercentage}% reward
* 4. No fee charged for GD token distribution
* @param recipients Array of recipient addresses
* @param values Array of corresponding GD token amounts
*/
function gdropGD(address[] calldata recipients, uint256[] calldata values) external nonReentrant {
if (recipients.length == 0) revert ZeroLength();
if (recipients.length != values.length) revert ArrayLengthMismatch();
if (recipients.length > MAX_RECIPIENTS) revert TooManyRecipients();
// Validate addresses and calculate total amount
uint256 total;
for (uint256 i = 0; i < recipients.length; i++) {
if (recipients[i] == address(0)) revert InvalidAddress();
total += values[i];
}
// Check allowance
if (feeToken.allowance(msg.sender, address(this)) < total) revert InsufficientAllowance();
// Calculate reward using _calculateReward (handles cooldown internally)
uint256 rewardAmount = _calculateReward(recipients, values, total);
// Adjust reward amount based on available pool balance
if (rewardAmount > 0) {
uint256 contractBalance = feeToken.balanceOf(address(this));
if (contractBalance < rewardAmount) {
// If pool balance is insufficient, set reward to 0 to avoid state inconsistency
rewardAmount = 0;
}
}
// Transfer GD tokens to contract
feeToken.safeTransferFrom(msg.sender, address(this), total);
// Distribute GD tokens
for (uint256 i = 0; i < recipients.length; i++) {
feeToken.safeTransfer(recipients[i], values[i]);
}
// Grant reward and update state atomically
if (rewardAmount > 0) {
// Update cooldown timestamp before sending reward
lastRewardBlock[msg.sender] = block.number;
feeToken.safeTransfer(msg.sender, rewardAmount);
}
emit GDTokenDispersed(msg.sender, recipients, values, rewardAmount);
}
/**
* @dev Calculate GD token transfer reward (internal, no cooldown check)
* @param recipients Array of recipient addresses
* @param values Array of corresponding amounts
* @param total Total amount
* @return Reward amount
*/
function _calculateRewardInternal(
address[] calldata recipients,
uint256[] calldata values,
uint256 total
) internal view returns (uint256) {
// Basic validation
if (recipients.length == 0 || values.length == 0) return 0;
if (recipients.length != values.length) return 0;
if (total == 0) return 0;
// Check if all amounts are equal
if (recipients.length > 1) {
uint256 firstAmount = values[0];
for (uint256 i = 1; i < values.length; i++) {
if (values[i] != firstAmount) {
return 0; // Unequal amounts, no reward
}
}
}
// Count unique addresses
uint256 uniqueCount = _countUniqueAddresses(recipients);
// Check if minimum address requirement is met
if (uniqueCount >= minRewardAddresses) {
uint256 calculatedReward = (total * rewardPercentage) / BASE_RATE;
// Apply maximum reward limit
return calculatedReward > maxRewardAmount ? maxRewardAmount : calculatedReward;
}
return 0;
}
/**
* @dev Calculate GD token transfer reward (with cooldown check for external use)
* @param recipients Array of recipient addresses
* @param values Array of corresponding amounts
* @param total Total amount
* @return Reward amount
*/
function _calculateReward(
address[] calldata recipients,
uint256[] calldata values,
uint256 total
) internal view returns (uint256) {
// Check cooldown period
if (lastRewardBlock[msg.sender] + cooldownBlocks > block.number) {
return 0; // Still in cooldown period
}
return _calculateRewardInternal(recipients, values, total);
}
/**
* @dev Count unique addresses after deduplication
* @param recipients Array of addresses
* @return Number of unique addresses
*/
function _countUniqueAddresses(address[] calldata recipients) internal pure returns (uint256) {
if (recipients.length == 0) return 0;
if (recipients.length == 1) return 1;
uint256 uniqueCount = 0;
// Use O(n²) algorithm for exact counting - acceptable for max 200 addresses
for (uint256 i = 0; i < recipients.length; i++) {
bool isDuplicate = false;
// Check if current address appeared before
for (uint256 j = 0; j < i; j++) {
if (recipients[i] == recipients[j]) {
isDuplicate = true;
break;
}
}
if (!isDuplicate) {
uniqueCount++;
}
}
return uniqueCount;
}
/**
* @dev Internal function: charge fee
* @param recipientCount Number of recipients
* @return Actual fee amount charged
*/
function _chargeFee(uint256 recipientCount) internal returns (uint256) {
if (!feeEnabled) {
return 0; // Fee disabled
}
// Check if user has approved sufficient GD tokens as fee
if (feeToken.allowance(msg.sender, address(this)) < feePerAddress * recipientCount) {
revert InsufficientFeeAllowance();
}
// Transfer fee to fee collector
feeToken.safeTransferFrom(msg.sender, feeCollector, feePerAddress * recipientCount);
return feePerAddress * recipientCount;
}
/**
* @dev Set fee enabled status (owner only)
* @param _enabled Whether fee is enabled
*/
function setFeeEnabled(bool _enabled) external onlyOwner {
feeEnabled = _enabled;
emit FeeStatusUpdated(_enabled);
}
/**
* @dev Set fee amount per address (owner only)
* @param _feePerAddress New fee amount per address in GD tokens
*/
function setFeePerAddress(uint256 _feePerAddress) external onlyOwner {
uint256 oldAmount = feePerAddress;
feePerAddress = _feePerAddress;
emit FeePerAddressUpdated(oldAmount, _feePerAddress);
}
/**
* @dev Set reward parameters (owner only)
* @param _minAddresses Minimum addresses required for reward
* @param _percentage Reward percentage in basis points (10000 = 100%)
*/
function setRewardParameters(uint256 _minAddresses, uint256 _percentage) external onlyOwner {
if (_percentage > BASE_RATE) revert InvalidPercentage(); // Maximum 100%
minRewardAddresses = _minAddresses;
rewardPercentage = _percentage;
emit RewardParametersUpdated(_minAddresses, _percentage);
}
/**
* @dev Set max reward amount (owner only)
* @param _maxRewardAmount New max reward amount in GD tokens
*/
function setMaxRewardAmount(uint256 _maxRewardAmount) external onlyOwner {
uint256 oldAmount = maxRewardAmount;
maxRewardAmount = _maxRewardAmount;
emit MaxRewardAmountUpdated(oldAmount, _maxRewardAmount);
}
/**
* @dev Set cooldown blocks (owner only)
* @param _cooldownBlocks New cooldown blocks
*/
function setCooldownBlocks(uint256 _cooldownBlocks) external onlyOwner {
uint256 oldBlocks = cooldownBlocks;
cooldownBlocks = _cooldownBlocks;
emit CooldownBlocksUpdated(oldBlocks, _cooldownBlocks);
}
/**
* @dev Update fee collector address (owner only)
* @param _newCollector New fee collector address
*/
function updateFeeCollector(address _newCollector) external onlyOwner {
if (_newCollector == address(0)) revert InvalidAddress();
address oldCollector = feeCollector;
feeCollector = _newCollector;
emit FeeCollectorUpdated(oldCollector, _newCollector);
}
/**
* @dev Recover funds (owner only)
* @param _tokenAddress Token address (0 address means ETH)
* @param _amount Amount to recover (0 means all available balance)
*/
function recoverFunds(address _tokenAddress, uint256 _amount) external onlyOwner nonReentrant {
if (_tokenAddress == address(0)) {
// Recover ETH
uint256 balance = address(this).balance;
uint256 amountToRecover = _amount == 0 ? balance : (_amount < balance ? _amount : balance);
require(amountToRecover > 0, "No ETH to recover");
(bool success,) = payable(owner()).call{value: amountToRecover}("");
require(success, "ETH transfer failed");
} else {
// Recover other tokens
IERC20 token = IERC20(_tokenAddress);
uint256 balance = token.balanceOf(address(this));
uint256 amountToRecover = _amount == 0 ? balance : (_amount < balance ? _amount : balance);
require(amountToRecover > 0, "No tokens to recover");
token.safeTransfer(owner(), amountToRecover);
}
}
/**
* @dev Get detailed contract information
*/
function getContractInfo() external view returns (
address feeTokenAddress,
uint256 feePerAddress_,
address feeCollectorAddress,
bool isFeeEnabled,
uint256 minAddresses,
uint256 rewardPercentage_,
uint256 maxRewardAmount_,
uint256 cooldownBlocks_
) {
return (
address(feeToken),
feePerAddress,
feeCollector,
feeEnabled,
minRewardAddresses,
rewardPercentage,
maxRewardAmount,
cooldownBlocks
);
}
/**
* @dev Get fee information (backward compatibility)
*/
function getFeeInfo() external view returns (address, uint256, address) {
return (address(feeToken), feePerAddress, feeCollector);
}
/**
* @dev Calculate total fee for given recipient count
* @param recipientCount Number of recipients
* @return Total fee amount
*/
function calculateTotalFee(uint256 recipientCount) external view returns (uint256) {
if (!feeEnabled) {
return 0;
}
return feePerAddress * recipientCount;
}
/**
* @dev Deposit GD tokens to reward pool (anyone can deposit)
* @param amount Amount of GD tokens to deposit
*/
function depositRewardPool(uint256 amount) external nonReentrant {
if (amount == 0) revert ZeroLength();
// Transfer GD tokens from user to contract
feeToken.safeTransferFrom(msg.sender, address(this), amount);
emit RewardPoolDeposited(msg.sender, amount);
}
/**
* @dev Withdraw GD tokens from reward pool (owner only)
* @param amount Amount to withdraw (0 means all available balance)
*/
function withdrawRewardPool(uint256 amount) external onlyOwner nonReentrant {
uint256 balance = feeToken.balanceOf(address(this));
uint256 amountToWithdraw = amount == 0 ? balance : (amount < balance ? amount : balance);
if (amountToWithdraw == 0) revert ZeroLength();
feeToken.safeTransfer(owner(), amountToWithdraw);
emit RewardPoolWithdrawn(owner(), amountToWithdraw);
}
/**
* @dev Get reward pool balance
* @return Current GD token balance in the contract
*/
function getRewardPoolBalance() external view returns (uint256) {
return feeToken.balanceOf(address(this));
}
/**
* @dev Check if user is in cooldown period
* @param user User address to check
* @return inCooldown Whether user is in cooldown
* @return remainingBlocks Remaining blocks until cooldown ends (0 if not in cooldown)
*/
function getUserCooldownStatus(address user) external view returns (bool inCooldown, uint256 remainingBlocks) {
uint256 lastBlock = lastRewardBlock[user];
uint256 cooldownEndBlock = lastBlock + cooldownBlocks;
if (cooldownEndBlock > block.number) {
return (true, cooldownEndBlock - block.number);
} else {
return (false, 0);
}
}
/**
* @dev Estimate reward amount for given parameters (without executing)
* @param user User address
* @param recipients Array of recipient addresses
* @param values Array of corresponding amounts
* @return estimatedReward Estimated reward amount (0 if conditions not met)
* @return reason Reason if no reward (0: eligible, 1: cooldown, 2: unequal amounts, 3: insufficient addresses)
*/
function estimateReward(
address user,
address[] calldata recipients,
uint256[] calldata values
) external view returns (uint256 estimatedReward, uint8 reason) {
// Check cooldown period
if (lastRewardBlock[user] + cooldownBlocks > block.number) {
return (0, 1); // Cooldown active
}
// Check if all amounts are equal
if (recipients.length > 1) {
uint256 firstAmount = values[0];
for (uint256 i = 1; i < values.length; i++) {
if (values[i] != firstAmount) {
return (0, 2); // Unequal amounts
}
}
}
// Count unique addresses
uint256 uniqueCount = _countUniqueAddresses(recipients);
// Check if minimum address requirement is met
if (uniqueCount < minRewardAddresses) {
return (0, 3); // Insufficient addresses
}
// Calculate total
uint256 total = 0;
for (uint256 i = 0; i < values.length; i++) {
total += values[i];
}
// Use the same logic as gdropGD function
uint256 calculatedReward = (total * rewardPercentage) / BASE_RATE;
uint256 finalReward = calculatedReward > maxRewardAmount ? maxRewardAmount : calculatedReward;
return (finalReward, 0); // Eligible for reward
}
}
@openzeppelin/contracts/access/Ownable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @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() {
_setOwner(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_setOwner(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");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
@openzeppelin/contracts/security/ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and make it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}
@openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
@openzeppelin/contracts/utils/Address.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
@openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
Compiler Settings
{"viaIR":true,"outputSelection":{"*":{"*":["*"],"":["*"]}},"optimizer":{"runs":1000000,"enabled":true},"metadata":{"bytecodeHash":"none"},"libraries":{}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_feeToken","internalType":"address"},{"type":"address","name":"_feeCollector","internalType":"address"}]},{"type":"error","name":"ArrayLengthMismatch","inputs":[]},{"type":"error","name":"InsufficientAllowance","inputs":[]},{"type":"error","name":"InsufficientFeeAllowance","inputs":[]},{"type":"error","name":"InvalidAddress","inputs":[]},{"type":"error","name":"InvalidPercentage","inputs":[]},{"type":"error","name":"RewardCooldownActive","inputs":[]},{"type":"error","name":"TooManyRecipients","inputs":[]},{"type":"error","name":"TransferFailed","inputs":[]},{"type":"error","name":"UnequalAmounts","inputs":[]},{"type":"error","name":"ValueMismatch","inputs":[]},{"type":"error","name":"ZeroLength","inputs":[]},{"type":"event","name":"CooldownBlocksUpdated","inputs":[{"type":"uint256","name":"oldBlocks","internalType":"uint256","indexed":false},{"type":"uint256","name":"newBlocks","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"EtherDispersed","inputs":[{"type":"address","name":"sender","internalType":"address","indexed":true},{"type":"address[]","name":"recipients","internalType":"address[]","indexed":false},{"type":"uint256[]","name":"values","internalType":"uint256[]","indexed":false},{"type":"uint256","name":"feeAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"FeeCollectorUpdated","inputs":[{"type":"address","name":"oldCollector","internalType":"address","indexed":true},{"type":"address","name":"newCollector","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"FeePerAddressUpdated","inputs":[{"type":"uint256","name":"oldAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"newAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"FeeStatusUpdated","inputs":[{"type":"bool","name":"enabled","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"GDTokenDispersed","inputs":[{"type":"address","name":"sender","internalType":"address","indexed":true},{"type":"address[]","name":"recipients","internalType":"address[]","indexed":false},{"type":"uint256[]","name":"values","internalType":"uint256[]","indexed":false},{"type":"uint256","name":"rewardAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"MaxRewardAmountUpdated","inputs":[{"type":"uint256","name":"oldAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"newAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RewardParametersUpdated","inputs":[{"type":"uint256","name":"minAddresses","internalType":"uint256","indexed":false},{"type":"uint256","name":"percentage","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RewardPoolDeposited","inputs":[{"type":"address","name":"depositor","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RewardPoolWithdrawn","inputs":[{"type":"address","name":"recipient","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"TokenDispersed","inputs":[{"type":"address","name":"token","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true},{"type":"address[]","name":"recipients","internalType":"address[]","indexed":false},{"type":"uint256[]","name":"values","internalType":"uint256[]","indexed":false},{"type":"uint256","name":"feeAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"BASE_RATE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_RECIPIENTS","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"calculateTotalFee","inputs":[{"type":"uint256","name":"recipientCount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"cooldownBlocks","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"depositRewardPool","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"estimatedReward","internalType":"uint256"},{"type":"uint8","name":"reason","internalType":"uint8"}],"name":"estimateReward","inputs":[{"type":"address","name":"user","internalType":"address"},{"type":"address[]","name":"recipients","internalType":"address[]"},{"type":"uint256[]","name":"values","internalType":"uint256[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"feeCollector","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"feeEnabled","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"feePerAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"feeToken","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"gdropEther","inputs":[{"type":"address[]","name":"recipients","internalType":"address[]"},{"type":"uint256[]","name":"values","internalType":"uint256[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"gdropGD","inputs":[{"type":"address[]","name":"recipients","internalType":"address[]"},{"type":"uint256[]","name":"values","internalType":"uint256[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"gdropToken","inputs":[{"type":"address","name":"token","internalType":"contract IERC20"},{"type":"address[]","name":"recipients","internalType":"address[]"},{"type":"uint256[]","name":"values","internalType":"uint256[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"feeTokenAddress","internalType":"address"},{"type":"uint256","name":"feePerAddress_","internalType":"uint256"},{"type":"address","name":"feeCollectorAddress","internalType":"address"},{"type":"bool","name":"isFeeEnabled","internalType":"bool"},{"type":"uint256","name":"minAddresses","internalType":"uint256"},{"type":"uint256","name":"rewardPercentage_","internalType":"uint256"},{"type":"uint256","name":"maxRewardAmount_","internalType":"uint256"},{"type":"uint256","name":"cooldownBlocks_","internalType":"uint256"}],"name":"getContractInfo","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}],"name":"getFeeInfo","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getRewardPoolBalance","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"inCooldown","internalType":"bool"},{"type":"uint256","name":"remainingBlocks","internalType":"uint256"}],"name":"getUserCooldownStatus","inputs":[{"type":"address","name":"user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lastRewardBlock","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxRewardAmount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"minRewardAddresses","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"recoverFunds","inputs":[{"type":"address","name":"_tokenAddress","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"rewardPercentage","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setCooldownBlocks","inputs":[{"type":"uint256","name":"_cooldownBlocks","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFeeEnabled","inputs":[{"type":"bool","name":"_enabled","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFeePerAddress","inputs":[{"type":"uint256","name":"_feePerAddress","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMaxRewardAmount","inputs":[{"type":"uint256","name":"_maxRewardAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRewardParameters","inputs":[{"type":"uint256","name":"_minAddresses","internalType":"uint256"},{"type":"uint256","name":"_percentage","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateFeeCollector","inputs":[{"type":"address","name":"_newCollector","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawRewardPool","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]}]
Contract Creation Code
0x60a0346200016e57601f6200291738819003918201601f19168301916001600160401b03831184841017620001735780849260409485528339810103126200016e576200005a6020620000528362000189565b920162000189565b60008054336001600160a01b031982168117835560405193946001600160a01b03949385939192918416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36001805516908115801562000163575b620001545750608052600380546001600160a81b0319169190921617600160a01b17905569021e19e0c9bab2400000600255600a6004556103e860055569d3c21bcecceda100000060065561a8c060075560405161277890816200019f823960805181818161026c015281816107a801528181610b1b01528181610de701528181610f14015281816116b6015281816118dc01526123fb0152f35b63e6c4247b60e01b8152600490fd5b5082841615620000b9565b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036200016e5756fe6080604052600436101561001257600080fd5b60003560e01c806202eab714610216578063045e0c52146102115780630baa9ed61461020c5780630db474fa146102075780631154daa71461020257806311bc67ef146101fd57806314626dc6146101f85780633a51198d146101f357806341910f90146101ee57806341e47a83146101e95780634c15d259146101e45780634f115da5146101df57806352d472eb146101da57806358609754146101d5578063647846a5146101d0578063715018a6146101cb5780637cc1f867146101c6578063846141b3146101c15780638da5cb5b146101bc5780639236ade1146101b7578063a2b522fc146101b2578063a6980ce2146101ad578063a771ebc7146101a8578063aa1f79d0146101a3578063ae001f141461019e578063c415b95c14610199578063c74cab4914610194578063d2c35ce81461018f578063d854fb751461018a578063e558bad814610185578063e8c15329146101805763f2fde38b1461017b57600080fd5b611a0a565b6119ce565b611935565b611864565b6117a8565b611619565b6115c7565b6112c7565b611171565b61112d565b6110f3565b6110b7565b61101e565b610fcc565b610f63565b610eaf565b610e0b565b610d9c565b610c00565b610bc4565b610b71565b610ac7565b61072e565b61068a565b610646565b6105ad565b610517565b6103f2565b610321565b6102db565b61029f565b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57606060025473ffffffffffffffffffffffffffffffffffffffff90816003541690604051927f000000000000000000000000000000000000000000000000000000000000000016835260208301526040820152f35b600080fd5b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576020600254604051908152f35b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576020600754604051908152f35b8015150361029a57565b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a577f78b87335d0826fba9cf6ec712ed7df4946ed38764f50bf97477daa0255642c6a602060043561037f81610317565b6103a273ffffffffffffffffffffffffffffffffffffffff600054163314611afd565b15156003547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff74ff00000000000000000000000000000000000000008360a01b16911617600355604051908152a1005b3461029a5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a5760043560243561044a73ffffffffffffffffffffffffffffffffffffffff600054163314611afd565b612710811161049e57817ff3a6ee10a78fb7d212e87d9be970fb16bd7324e9dc9c38d21cd7ecde781a1d2a92600455816005556104996040519283928360209093929193604081019481520152565b0390a1005b60046040517f1f3b85d3000000000000000000000000000000000000000000000000000000008152fd5b73ffffffffffffffffffffffffffffffffffffffff81160361029a57565b9181601f8401121561029a5782359167ffffffffffffffff831161029a576020808501948460051b01011161029a57565b3461029a5760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57600435610552816104c8565b67ffffffffffffffff60243581811161029a576105739036906004016104e6565b919060443591821161029a5760409360ff9361059661059e9436906004016104e6565b939092612655565b83519182529091166020820152f35b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a577f7a90d974a042412816f99c7ae56a1b4a755495513468f4f062f51db220ddcff860043561062373ffffffffffffffffffffffffffffffffffffffff600054163314611afd565b600754816007556104996040519283928360209093929193604081019481520152565b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a5760206106826004356125e4565b604051908152f35b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a5760206040516127108152f35b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc82011261029a5767ffffffffffffffff9160043583811161029a5782610710916004016104e6565b9390939260243591821161029a5761072a916004016104e6565b9091565b3461029a5761073c366106c5565b929161074d60026001541415611bcf565b60026001558015610a9d57838103610a735760c88111610a4957600093845b8281106109cb57506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523360048201523060248201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff811696909160209081816044818c5afa801561097f5783916000916109ae575b50106109845761080f828588888b6121df565b97886108f1575b505061082490303384611f1a565b60005b8381106108ba57509461086e917f35cb1e8ebedf63f96996716b18289d7672267016d99bad216f45a459f97c56329596828061087c575b5050604051948594339886611de6565b0390a261087a60018055565b005b6108b391436108ab3373ffffffffffffffffffffffffffffffffffffffff166000526008602052604060002090565b553390611ea5565b388261085e565b806108e76108d46108cf6108ec94888b611ccd565b611cdd565b6108df83878a611ccd565b359085611ea5565b611c63565b610827565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152908290829060249082905afa90811561097f578992600092610952575b505010610949575b3880610816565b60009650610942565b6109719250803d10610978575b6109698183611d47565b810190611e8a565b388061093a565b503d61095f565b611e99565b60046040517f13be252b000000000000000000000000000000000000000000000000000000008152fd5b6109c59150833d8511610978576109698183611d47565b386107fc565b946109f66109dd6108cf888689611ccd565b73ffffffffffffffffffffffffffffffffffffffff1690565b15610a1f57610a14610a1a91610a0d888588611ccd565b3590611cea565b95611c63565b61076c565b60046040517fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b60046040517f5531b495000000000000000000000000000000000000000000000000000000008152fd5b60046040517fa24a13a6000000000000000000000000000000000000000000000000000000008152fd5b60046040517fbf557497000000000000000000000000000000000000000000000000000000008152fd5b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57600435610b0860026001541415611bcf565b60026001558015610a9d57610b3f8130337f0000000000000000000000000000000000000000000000000000000000000000611f1a565b6040519081527f9c6602842332d6edcad29df59103eb6576ed628c7b926ad150fa4759713ac50360203392a260018055005b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576040610bb6600435610bb1816104c8565b612604565b825191151582526020820152f35b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576020600554604051908152f35b3461029a5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57600435610c3b816104c8565b60243573ffffffffffffffffffffffffffffffffffffffff60009281849283541691610c68338414611afd565b610c7760026001541415611bcf565b6002600155169081610cfa575050808080610cd89447908015600014610ce457505b610ca481151561251a565b610cc86109dd6109dd845473ffffffffffffffffffffffffffffffffffffffff1690565b5af1610cd2611d88565b5061257f565b610ce160018055565b80f35b9080821015610cf35750610c99565b9050610c99565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529391925090602084602481865afa90811561097f57610d5f948692610d7c575b5080610d645750915b610d5a8315156124b5565b611ea5565b610cd8565b9080821015610d7557505b91610d4f565b9050610d6f565b610d9591925060203d8111610978576109698183611d47565b9038610d46565b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b3461029a576000807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610eac578080547fffffffffffffffffffffffff000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff821691610e82338414611afd565b1682557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576101006002546003546004546005546006549160ff600754946040519673ffffffffffffffffffffffffffffffffffffffff90817f000000000000000000000000000000000000000000000000000000000000000016895260208901528116604088015260a01c1615156060860152608085015260a084015260c083015260e0820152f35b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a5773ffffffffffffffffffffffffffffffffffffffff600435610fb3816104c8565b1660005260086020526020604060002054604051908152f35b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57602073ffffffffffffffffffffffffffffffffffffffff60005416604051908152f35b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a577f91a3b374b112c7dfef8265f9f8e6701291b7e7e12444c7112131b193284bbb9b60043561109473ffffffffffffffffffffffffffffffffffffffff600054163314611afd565b600254816002556104996040519283928360209093929193604081019481520152565b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576020600454604051908152f35b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57602060405160c88152f35b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57602060ff60035460a01c166040519015158152f35b61117a366106c5565b929161118b60026001541415611bcf565b60026001558015610a9d57838103610a735760c88111610a49576111ae816123a1565b936000805b838110611293575034036112695760005b82811061120157507f424efee6f5e0699d646d0f62a6dbba68a5a4091e8cfcb3d10e7e55b194340f5c939461086e91604051948594339886611de6565b60008080806112146108cf86898c611ccd565b61121f86888b611ccd565b35905af161122b611d88565b501561123f5761123a90611c63565b6111c4565b60046040517f90b8ec18000000000000000000000000000000000000000000000000000000008152fd5b60046040517fdd8e4af7000000000000000000000000000000000000000000000000000000008152fd5b906112a56109dd6108cf84878a611ccd565b15610a1f576112bc6112c291610a0d848689611ccd565b91611c63565b6111b3565b3461029a5760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a5760048035611303816104c8565b67ffffffffffffffff9160243583811161029a5761132490369083016104e6565b909360443590811161029a5761133d90369084016104e6565b61134f60026001959395541415611bcf565b6002600155821561159e578083036115755760c8831161154c5773ffffffffffffffffffffffffffffffffffffffff851694851561152357611390846123a1565b92600090815b868a8183106114c4575050604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815233848201908152306020828101919091529193509091839182910103818c5afa801561097f5783916000916114a6575b501061147e575061140b90303384611f1a565b60005b8481106114595750507ff321f5c810c29442075238937a731ba243af6790d2579aeda6ae7190535c79f993929161144d91604051948594339986611de6565b0390a361087a60018055565b806108e761146e6108cf61147994898d611ccd565b6108df83878b611ccd565b61140e565b6040517f13be252b000000000000000000000000000000000000000000000000000000008152fd5b6114be915060203d8111610978576109698183611d47565b386113f8565b6108cf836114d8936109dd93979597611ccd565b156114fa576114ef6114f591610a0d85888c611ccd565b92611c63565b611396565b506040517fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b826040517fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b506040517f5531b495000000000000000000000000000000000000000000000000000000008152fd5b506040517fa24a13a6000000000000000000000000000000000000000000000000000000008152fd5b506040517fbf557497000000000000000000000000000000000000000000000000000000008152fd5b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57602073ffffffffffffffffffffffffffffffffffffffff60035416604051908152f35b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a5760043573ffffffffffffffffffffffffffffffffffffffff906000918083541690611674338314611afd565b61168360026001541415611bcf565b60026001556040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f00000000000000000000000000000000000000000000000000000000000000009390916020908390602490829088165afa91821561097f578592611788575b50806117705750915b8215610a9d5761170e918391611ea5565b7fd64fd74db8f23bbb1e72895098d38c54d189117756b92af4f3efad317ef6f7e66117646117536109dd855473ffffffffffffffffffffffffffffffffffffffff1690565b604051938452929081906020820190565b0390a2610ce160018055565b908082101561178157505b916116fd565b905061177b565b6117a191925060203d8111610978576109698183611d47565b90386116f4565b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576004356117e3816104c8565b73ffffffffffffffffffffffffffffffffffffffff809161180982600054163314611afd565b16908115610a1f57600354827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600355167f5d16ad41baeb009cd23eb8f6c7cde5c2e0cd5acf4a33926ab488875c37c37f38600080a3005b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260208160248173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000165afa801561097f57602091600091611918575b50604051908152f35b61192f9150823d8111610978576109698183611d47565b3861190f565b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a577fc860e9cf94750cfe3154e38be1a4cfee0b59145e92ced3dfbb35c41a3fe6f2b26004356119ab73ffffffffffffffffffffffffffffffffffffffff600054163314611afd565b600654816006556104996040519283928360209093929193604081019481520152565b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576020600654604051908152f35b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57600435611a45816104c8565b73ffffffffffffffffffffffffffffffffffffffff611a6981600054163314611afd565b811615611a795761087a90611b62565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b15611b0457565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6000549073ffffffffffffffffffffffffffffffffffffffff80911691827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b15611bd657565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611c905760010190565b611c34565b9015611c9e5790565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9190811015611c9e5760051b0190565b35611ce7816104c8565b90565b91908201809211611c9057565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040810190811067ffffffffffffffff821117611d4257604052565b611cf7565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117611d4257604052565b3d15611de1573d9067ffffffffffffffff8211611d425760405191611dd560207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160184611d47565b82523d6000602084013e565b606090565b959493919290928060608801606089525260808701939060005b818110611e525750505085830360208701528183527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821161029a5760409260209260051b8092848301370101930152565b90919460019073ffffffffffffffffffffffffffffffffffffffff8735611e78816104c8565b16815260209081019601929101611e00565b9081602091031261029a575190565b6040513d6000823e3d90fd5b9173ffffffffffffffffffffffffffffffffffffffff604051927fa9059cbb000000000000000000000000000000000000000000000000000000006020850152166024830152604482015260448152608081019181831067ffffffffffffffff841117611d4257611f1892604052612036565b565b9290604051927f23b872dd00000000000000000000000000000000000000000000000000000000602085015273ffffffffffffffffffffffffffffffffffffffff809216602485015216604483015260648201526064815260a081019181831067ffffffffffffffff841117611d4257611f1892604052612036565b9081602091031261029a5751611ce781610317565b15611fb257565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b73ffffffffffffffffffffffffffffffffffffffff16906040519061205a82611d26565b6020928383527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656484840152803b156120d157600082819282876120ac9796519301915af16120a6611d88565b9061212f565b805190816120b957505050565b82611f18936120cc938301019101611f96565b611fab565b606484604051907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b9091901561213b575090565b81511561214b5750805190602001fd5b604051907f08c379a000000000000000000000000000000000000000000000000000000000825281602080600483015282519283602484015260005b8481106121c8575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f836000604480968601015201168101030190fd5b818101830151868201604401528593508201612187565b939291903360005260086020526040600020546007548101809111611c9057431061220d57611ce79461222a565b5050505050600090565b81810292918115918404141715611c9057565b919092831580156122e1575b61220d5780840361220d57841561220d5760018411612298575b50509061225c916122e9565b600454111561226b5750600090565b61227b6122839160055490612217565b612710900490565b6006549081811115612293575090565b905090565b6122a28183611c95565b359060015b8181106122b5575050612250565b826122c1828487611ccd565b35036122d5576122d090611c63565b6122a7565b50505050505050600090565b508015612236565b90801561239a57600180821461239457600092835b83811061230c575050505090565b6000805b828110612342575b501561232d575b61232890611c63565b6122fe565b9361233a61232891611c63565b94905061231f565b6123506108cf848887611ccd565b73ffffffffffffffffffffffffffffffffffffffff6123766109dd6108cf858b8a611ccd565b91161461238b5761238690611c63565b612310565b50508238612318565b91505090565b5050600090565b6003549060ff8260a01c161561239a576040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815233600482015230602482015273ffffffffffffffffffffffffffffffffffffffff927f00000000000000000000000000000000000000000000000000000000000000006020836044818885165afa92831561097f57600093612495575b50600254926124438585612217565b1161246b57611ce7946124598561246395612217565b9216903390611f1a565b600254612217565b60046040517ffa04601f000000000000000000000000000000000000000000000000000000008152fd5b6124ae91935060203d8111610978576109698183611d47565b9138612434565b156124bc57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f20746f6b656e7320746f207265636f7665720000000000000000000000006044820152fd5b1561252157565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4e6f2045544820746f207265636f7665720000000000000000000000000000006044820152fd5b1561258657565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f455448207472616e73666572206661696c6564000000000000000000000000006044820152fd5b60ff60035460a01c16156125fe57611ce790600254612217565b50600090565b73ffffffffffffffffffffffffffffffffffffffff166000526008602052604060002054906007548201809211611c90574382111561264d57438203918211611c905760019190565b600091508190565b61268261268c9173ffffffffffffffffffffffffffffffffffffffff166000526008602052604060002090565b5460075490611cea565b431061275f5760018211612715575b906126a5916122e9565b6004541161270b579060009182915b8083106126e95750505061227b6126ce9160055490612217565b60065490818111156126e257505b90600090565b90506126dc565b9091926126fe61270491610a0d868587611ccd565b93611c63565b91906126b4565b5050600090600390565b61271f8484611c95565b3560015b85811061273157505061269b565b8161273d828888611ccd565b35036127515761274c90611c63565b612723565b505050505050600090600290565b5050505060009060019056fea164736f6c6343000812000a000000000000000000000000abccefb00528c9c792ac7c46997f0f6ee5dcdddd000000000000000000000000c1f2e2cbef8ac2082b785a35cf819dea9fab7f7b
Deployed ByteCode
0x6080604052600436101561001257600080fd5b60003560e01c806202eab714610216578063045e0c52146102115780630baa9ed61461020c5780630db474fa146102075780631154daa71461020257806311bc67ef146101fd57806314626dc6146101f85780633a51198d146101f357806341910f90146101ee57806341e47a83146101e95780634c15d259146101e45780634f115da5146101df57806352d472eb146101da57806358609754146101d5578063647846a5146101d0578063715018a6146101cb5780637cc1f867146101c6578063846141b3146101c15780638da5cb5b146101bc5780639236ade1146101b7578063a2b522fc146101b2578063a6980ce2146101ad578063a771ebc7146101a8578063aa1f79d0146101a3578063ae001f141461019e578063c415b95c14610199578063c74cab4914610194578063d2c35ce81461018f578063d854fb751461018a578063e558bad814610185578063e8c15329146101805763f2fde38b1461017b57600080fd5b611a0a565b6119ce565b611935565b611864565b6117a8565b611619565b6115c7565b6112c7565b611171565b61112d565b6110f3565b6110b7565b61101e565b610fcc565b610f63565b610eaf565b610e0b565b610d9c565b610c00565b610bc4565b610b71565b610ac7565b61072e565b61068a565b610646565b6105ad565b610517565b6103f2565b610321565b6102db565b61029f565b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57606060025473ffffffffffffffffffffffffffffffffffffffff90816003541690604051927f000000000000000000000000abccefb00528c9c792ac7c46997f0f6ee5dcdddd16835260208301526040820152f35b600080fd5b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576020600254604051908152f35b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576020600754604051908152f35b8015150361029a57565b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a577f78b87335d0826fba9cf6ec712ed7df4946ed38764f50bf97477daa0255642c6a602060043561037f81610317565b6103a273ffffffffffffffffffffffffffffffffffffffff600054163314611afd565b15156003547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff74ff00000000000000000000000000000000000000008360a01b16911617600355604051908152a1005b3461029a5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a5760043560243561044a73ffffffffffffffffffffffffffffffffffffffff600054163314611afd565b612710811161049e57817ff3a6ee10a78fb7d212e87d9be970fb16bd7324e9dc9c38d21cd7ecde781a1d2a92600455816005556104996040519283928360209093929193604081019481520152565b0390a1005b60046040517f1f3b85d3000000000000000000000000000000000000000000000000000000008152fd5b73ffffffffffffffffffffffffffffffffffffffff81160361029a57565b9181601f8401121561029a5782359167ffffffffffffffff831161029a576020808501948460051b01011161029a57565b3461029a5760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57600435610552816104c8565b67ffffffffffffffff60243581811161029a576105739036906004016104e6565b919060443591821161029a5760409360ff9361059661059e9436906004016104e6565b939092612655565b83519182529091166020820152f35b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a577f7a90d974a042412816f99c7ae56a1b4a755495513468f4f062f51db220ddcff860043561062373ffffffffffffffffffffffffffffffffffffffff600054163314611afd565b600754816007556104996040519283928360209093929193604081019481520152565b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a5760206106826004356125e4565b604051908152f35b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a5760206040516127108152f35b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc82011261029a5767ffffffffffffffff9160043583811161029a5782610710916004016104e6565b9390939260243591821161029a5761072a916004016104e6565b9091565b3461029a5761073c366106c5565b929161074d60026001541415611bcf565b60026001558015610a9d57838103610a735760c88111610a4957600093845b8281106109cb57506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523360048201523060248201527f000000000000000000000000abccefb00528c9c792ac7c46997f0f6ee5dcdddd73ffffffffffffffffffffffffffffffffffffffff811696909160209081816044818c5afa801561097f5783916000916109ae575b50106109845761080f828588888b6121df565b97886108f1575b505061082490303384611f1a565b60005b8381106108ba57509461086e917f35cb1e8ebedf63f96996716b18289d7672267016d99bad216f45a459f97c56329596828061087c575b5050604051948594339886611de6565b0390a261087a60018055565b005b6108b391436108ab3373ffffffffffffffffffffffffffffffffffffffff166000526008602052604060002090565b553390611ea5565b388261085e565b806108e76108d46108cf6108ec94888b611ccd565b611cdd565b6108df83878a611ccd565b359085611ea5565b611c63565b610827565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152908290829060249082905afa90811561097f578992600092610952575b505010610949575b3880610816565b60009650610942565b6109719250803d10610978575b6109698183611d47565b810190611e8a565b388061093a565b503d61095f565b611e99565b60046040517f13be252b000000000000000000000000000000000000000000000000000000008152fd5b6109c59150833d8511610978576109698183611d47565b386107fc565b946109f66109dd6108cf888689611ccd565b73ffffffffffffffffffffffffffffffffffffffff1690565b15610a1f57610a14610a1a91610a0d888588611ccd565b3590611cea565b95611c63565b61076c565b60046040517fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b60046040517f5531b495000000000000000000000000000000000000000000000000000000008152fd5b60046040517fa24a13a6000000000000000000000000000000000000000000000000000000008152fd5b60046040517fbf557497000000000000000000000000000000000000000000000000000000008152fd5b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57600435610b0860026001541415611bcf565b60026001558015610a9d57610b3f8130337f000000000000000000000000abccefb00528c9c792ac7c46997f0f6ee5dcdddd611f1a565b6040519081527f9c6602842332d6edcad29df59103eb6576ed628c7b926ad150fa4759713ac50360203392a260018055005b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576040610bb6600435610bb1816104c8565b612604565b825191151582526020820152f35b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576020600554604051908152f35b3461029a5760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57600435610c3b816104c8565b60243573ffffffffffffffffffffffffffffffffffffffff60009281849283541691610c68338414611afd565b610c7760026001541415611bcf565b6002600155169081610cfa575050808080610cd89447908015600014610ce457505b610ca481151561251a565b610cc86109dd6109dd845473ffffffffffffffffffffffffffffffffffffffff1690565b5af1610cd2611d88565b5061257f565b610ce160018055565b80f35b9080821015610cf35750610c99565b9050610c99565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529391925090602084602481865afa90811561097f57610d5f948692610d7c575b5080610d645750915b610d5a8315156124b5565b611ea5565b610cd8565b9080821015610d7557505b91610d4f565b9050610d6f565b610d9591925060203d8111610978576109698183611d47565b9038610d46565b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57602060405173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000abccefb00528c9c792ac7c46997f0f6ee5dcdddd168152f35b3461029a576000807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610eac578080547fffffffffffffffffffffffff000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff821691610e82338414611afd565b1682557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576101006002546003546004546005546006549160ff600754946040519673ffffffffffffffffffffffffffffffffffffffff90817f000000000000000000000000abccefb00528c9c792ac7c46997f0f6ee5dcdddd16895260208901528116604088015260a01c1615156060860152608085015260a084015260c083015260e0820152f35b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a5773ffffffffffffffffffffffffffffffffffffffff600435610fb3816104c8565b1660005260086020526020604060002054604051908152f35b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57602073ffffffffffffffffffffffffffffffffffffffff60005416604051908152f35b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a577f91a3b374b112c7dfef8265f9f8e6701291b7e7e12444c7112131b193284bbb9b60043561109473ffffffffffffffffffffffffffffffffffffffff600054163314611afd565b600254816002556104996040519283928360209093929193604081019481520152565b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576020600454604051908152f35b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57602060405160c88152f35b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57602060ff60035460a01c166040519015158152f35b61117a366106c5565b929161118b60026001541415611bcf565b60026001558015610a9d57838103610a735760c88111610a49576111ae816123a1565b936000805b838110611293575034036112695760005b82811061120157507f424efee6f5e0699d646d0f62a6dbba68a5a4091e8cfcb3d10e7e55b194340f5c939461086e91604051948594339886611de6565b60008080806112146108cf86898c611ccd565b61121f86888b611ccd565b35905af161122b611d88565b501561123f5761123a90611c63565b6111c4565b60046040517f90b8ec18000000000000000000000000000000000000000000000000000000008152fd5b60046040517fdd8e4af7000000000000000000000000000000000000000000000000000000008152fd5b906112a56109dd6108cf84878a611ccd565b15610a1f576112bc6112c291610a0d848689611ccd565b91611c63565b6111b3565b3461029a5760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a5760048035611303816104c8565b67ffffffffffffffff9160243583811161029a5761132490369083016104e6565b909360443590811161029a5761133d90369084016104e6565b61134f60026001959395541415611bcf565b6002600155821561159e578083036115755760c8831161154c5773ffffffffffffffffffffffffffffffffffffffff851694851561152357611390846123a1565b92600090815b868a8183106114c4575050604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815233848201908152306020828101919091529193509091839182910103818c5afa801561097f5783916000916114a6575b501061147e575061140b90303384611f1a565b60005b8481106114595750507ff321f5c810c29442075238937a731ba243af6790d2579aeda6ae7190535c79f993929161144d91604051948594339986611de6565b0390a361087a60018055565b806108e761146e6108cf61147994898d611ccd565b6108df83878b611ccd565b61140e565b6040517f13be252b000000000000000000000000000000000000000000000000000000008152fd5b6114be915060203d8111610978576109698183611d47565b386113f8565b6108cf836114d8936109dd93979597611ccd565b156114fa576114ef6114f591610a0d85888c611ccd565b92611c63565b611396565b506040517fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b826040517fe6c4247b000000000000000000000000000000000000000000000000000000008152fd5b506040517f5531b495000000000000000000000000000000000000000000000000000000008152fd5b506040517fa24a13a6000000000000000000000000000000000000000000000000000000008152fd5b506040517fbf557497000000000000000000000000000000000000000000000000000000008152fd5b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57602073ffffffffffffffffffffffffffffffffffffffff60035416604051908152f35b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a5760043573ffffffffffffffffffffffffffffffffffffffff906000918083541690611674338314611afd565b61168360026001541415611bcf565b60026001556040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000abccefb00528c9c792ac7c46997f0f6ee5dcdddd9390916020908390602490829088165afa91821561097f578592611788575b50806117705750915b8215610a9d5761170e918391611ea5565b7fd64fd74db8f23bbb1e72895098d38c54d189117756b92af4f3efad317ef6f7e66117646117536109dd855473ffffffffffffffffffffffffffffffffffffffff1690565b604051938452929081906020820190565b0390a2610ce160018055565b908082101561178157505b916116fd565b905061177b565b6117a191925060203d8111610978576109698183611d47565b90386116f4565b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576004356117e3816104c8565b73ffffffffffffffffffffffffffffffffffffffff809161180982600054163314611afd565b16908115610a1f57600354827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600355167f5d16ad41baeb009cd23eb8f6c7cde5c2e0cd5acf4a33926ab488875c37c37f38600080a3005b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260208160248173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000abccefb00528c9c792ac7c46997f0f6ee5dcdddd165afa801561097f57602091600091611918575b50604051908152f35b61192f9150823d8111610978576109698183611d47565b3861190f565b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a577fc860e9cf94750cfe3154e38be1a4cfee0b59145e92ced3dfbb35c41a3fe6f2b26004356119ab73ffffffffffffffffffffffffffffffffffffffff600054163314611afd565b600654816006556104996040519283928360209093929193604081019481520152565b3461029a5760007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a576020600654604051908152f35b3461029a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261029a57600435611a45816104c8565b73ffffffffffffffffffffffffffffffffffffffff611a6981600054163314611afd565b811615611a795761087a90611b62565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b15611b0457565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6000549073ffffffffffffffffffffffffffffffffffffffff80911691827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b15611bd657565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611c905760010190565b611c34565b9015611c9e5790565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9190811015611c9e5760051b0190565b35611ce7816104c8565b90565b91908201809211611c9057565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040810190811067ffffffffffffffff821117611d4257604052565b611cf7565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff821117611d4257604052565b3d15611de1573d9067ffffffffffffffff8211611d425760405191611dd560207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160184611d47565b82523d6000602084013e565b606090565b959493919290928060608801606089525260808701939060005b818110611e525750505085830360208701528183527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821161029a5760409260209260051b8092848301370101930152565b90919460019073ffffffffffffffffffffffffffffffffffffffff8735611e78816104c8565b16815260209081019601929101611e00565b9081602091031261029a575190565b6040513d6000823e3d90fd5b9173ffffffffffffffffffffffffffffffffffffffff604051927fa9059cbb000000000000000000000000000000000000000000000000000000006020850152166024830152604482015260448152608081019181831067ffffffffffffffff841117611d4257611f1892604052612036565b565b9290604051927f23b872dd00000000000000000000000000000000000000000000000000000000602085015273ffffffffffffffffffffffffffffffffffffffff809216602485015216604483015260648201526064815260a081019181831067ffffffffffffffff841117611d4257611f1892604052612036565b9081602091031261029a5751611ce781610317565b15611fb257565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b73ffffffffffffffffffffffffffffffffffffffff16906040519061205a82611d26565b6020928383527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656484840152803b156120d157600082819282876120ac9796519301915af16120a6611d88565b9061212f565b805190816120b957505050565b82611f18936120cc938301019101611f96565b611fab565b606484604051907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152fd5b9091901561213b575090565b81511561214b5750805190602001fd5b604051907f08c379a000000000000000000000000000000000000000000000000000000000825281602080600483015282519283602484015260005b8481106121c8575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f836000604480968601015201168101030190fd5b818101830151868201604401528593508201612187565b939291903360005260086020526040600020546007548101809111611c9057431061220d57611ce79461222a565b5050505050600090565b81810292918115918404141715611c9057565b919092831580156122e1575b61220d5780840361220d57841561220d5760018411612298575b50509061225c916122e9565b600454111561226b5750600090565b61227b6122839160055490612217565b612710900490565b6006549081811115612293575090565b905090565b6122a28183611c95565b359060015b8181106122b5575050612250565b826122c1828487611ccd565b35036122d5576122d090611c63565b6122a7565b50505050505050600090565b508015612236565b90801561239a57600180821461239457600092835b83811061230c575050505090565b6000805b828110612342575b501561232d575b61232890611c63565b6122fe565b9361233a61232891611c63565b94905061231f565b6123506108cf848887611ccd565b73ffffffffffffffffffffffffffffffffffffffff6123766109dd6108cf858b8a611ccd565b91161461238b5761238690611c63565b612310565b50508238612318565b91505090565b5050600090565b6003549060ff8260a01c161561239a576040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815233600482015230602482015273ffffffffffffffffffffffffffffffffffffffff927f000000000000000000000000abccefb00528c9c792ac7c46997f0f6ee5dcdddd6020836044818885165afa92831561097f57600093612495575b50600254926124438585612217565b1161246b57611ce7946124598561246395612217565b9216903390611f1a565b600254612217565b60046040517ffa04601f000000000000000000000000000000000000000000000000000000008152fd5b6124ae91935060203d8111610978576109698183611d47565b9138612434565b156124bc57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f20746f6b656e7320746f207265636f7665720000000000000000000000006044820152fd5b1561252157565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4e6f2045544820746f207265636f7665720000000000000000000000000000006044820152fd5b1561258657565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f455448207472616e73666572206661696c6564000000000000000000000000006044820152fd5b60ff60035460a01c16156125fe57611ce790600254612217565b50600090565b73ffffffffffffffffffffffffffffffffffffffff166000526008602052604060002054906007548201809211611c90574382111561264d57438203918211611c905760019190565b600091508190565b61268261268c9173ffffffffffffffffffffffffffffffffffffffff166000526008602052604060002090565b5460075490611cea565b431061275f5760018211612715575b906126a5916122e9565b6004541161270b579060009182915b8083106126e95750505061227b6126ce9160055490612217565b60065490818111156126e257505b90600090565b90506126dc565b9091926126fe61270491610a0d868587611ccd565b93611c63565b91906126b4565b5050600090600390565b61271f8484611c95565b3560015b85811061273157505061269b565b8161273d828888611ccd565b35036127515761274c90611c63565b612723565b505050505050600090600290565b5050505060009060019056fea164736f6c6343000812000a