Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 5 from a total of 5 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Manual Update To... | 23436428 | 151 days ago | IN | 0 ETH | 0.00001454 | ||||
| Set Auto Distrib... | 23436428 | 151 days ago | IN | 0 ETH | 0.00001054 | ||||
| Set Max Top Hold... | 23436428 | 151 days ago | IN | 0 ETH | 0.0000105 | ||||
| Set Top Holders ... | 23436428 | 151 days ago | IN | 0 ETH | 0.00001054 | ||||
| Set Vault Addres... | 23436424 | 151 days ago | IN | 0 ETH | 0.00001814 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
HolderDistributor
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.25;
/**
* @title HolderDistributor - Fully Automated HYM Proportional Distribution
* @dev Distributes tokens proportionally with automatic update of top holders
* @notice Implemented features:
* - Distribution proportional to balance
* - Monthly distribution automation
* - Automatic daily update of the top holders list
* - Automatic holder tracking
* - Gas optimization with pagination
* - Ready for Gnosis Safe
*/
import '@openzeppelin/contracts/access/Ownable2Step.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
contract HolderDistributor is Ownable2Step, ReentrancyGuard {
// --- Timelock para Gnosis Safe ---
address public timelock;
event TimelockSet(address indexed oldTimelock, address indexed newTimelock);
modifier onlyGov() {
require(msg.sender == owner() || msg.sender == timelock, 'Only owner/timelock');
_;
}
function setTimelock(address newTimelock) public onlyOwner {
emit TimelockSet(timelock, newTimelock);
timelock = newTimelock;
}
// --- Main settings ---
IERC20 public hymToken;
address public vaultAddress;
uint256 public minHolding = 10_000 * 1e18;
uint256 public holdingPeriod = 90 days;
// --- Distribution automation ---
uint256 public lastDistribution;
uint256 public distributionInterval = 30 days;
bool public autoDistributionEnabled = true;
// --- Top holders automation ---
uint256 public lastTopHoldersUpdate;
uint256 public topHoldersUpdateInterval = 1 days;
bool public autoTopHoldersUpdateEnabled = true;
uint256 public maxTopHolders = 100;
// --- Gas tracking for top holders update ---
uint256 public lastUpdateGasUsed;
// --- Eligibility control ---
mapping(address => uint256) public firstReceivedTimestamp;
mapping(address => bool) public isTrustedCaller;
// --- Automatic holder tracking ---
address[] public allHolders; // Complete list of known holders
mapping(address => bool) public isKnownHolder;
mapping(address => uint256) public holderIndex; // Index in the allHolders list
// --- Top holders list (limited and optimized) ---
address[] public topHolders;
mapping(address => bool) public isTopHolder;
// --- Distribution control ---
struct DistributionRound {
uint256 timestamp;
uint256 totalDistributed;
uint256 totalEligibleHolders;
uint256 totalEligibleBalance;
}
DistributionRound[] public distributionHistory;
// --- Events ---
event HolderNotified(address indexed holder);
event HolderAdded(address indexed holder);
event HolderRemoved(address indexed holder);
event TokensDistributed(uint256 totalDistributed, uint256 totalHolders, uint256 totalBalance);
event ProportionalDistribution(address indexed user, uint256 amount, uint256 userBalance, uint256 totalBalance);
event TopHoldersUpdated(uint256 count, uint256 gasUsed);
event AutoTopHoldersUpdateToggled(bool enabled);
event TopHoldersUpdateIntervalUpdated(uint256 newInterval);
event MaxTopHoldersUpdated(uint256 newMax);
event MinHoldingUpdated(uint256 newAmount);
event HoldingPeriodUpdated(uint256 newPeriod);
event TokenUpdated(address indexed newToken);
event VaultUpdated(address indexed newVault);
event EmergencyWithdraw(address indexed vault, uint256 amount);
event AutoDistributionToggled(bool enabled);
event DistributionIntervalUpdated(uint256 newInterval);
/**
* @dev Constructor for the HolderDistributor contract.
* @param _token HYM token address.
*/
constructor(address _token) Ownable2Step() {
require(_token != address(0), 'Invalid token');
hymToken = IERC20(_token);
lastDistribution = block.timestamp;
lastTopHoldersUpdate = block.timestamp;
}
/**
* @notice Defines whether an address is a trusted caller for `notifyReceived`.
* @param caller The address to set as trusted.
* @param trusted True to trust, false to not trust.
*/
function setTrustedCaller(address caller, bool trusted) external onlyGov {
isTrustedCaller[caller] = trusted;
}
/**
* @notice Notifies that a holder has received tokens (AUTOMATED)
* @dev This function is called by the HYMToken contract automatically
* @param holder The address of the holder to be notified.
*/
function notifyReceived(address holder) external {
require(
msg.sender == address(hymToken) || isTrustedCaller[msg.sender],
'Only token or trusted caller can notify'
);
uint256 holderBalance = hymToken.balanceOf(holder);
// Adds to the known holders list if not already present
if (!isKnownHolder[holder] && holderBalance > 0) {
_addHolder(holder);
}
// Removes from the list if balance is zero
if (isKnownHolder[holder] && holderBalance == 0) {
_removeHolder(holder);
}
// Updates eligibility
if (holderBalance >= minHolding) {
if (
firstReceivedTimestamp[holder] == 0 ||
block.timestamp < firstReceivedTimestamp[holder] + holdingPeriod
) {
firstReceivedTimestamp[holder] = block.timestamp;
emit HolderNotified(holder);
}
} else {
firstReceivedTimestamp[holder] = 0;
}
}
/**
* @dev Adds a holder to the known holders list
* @param holder The address of the holder
*/
function _addHolder(address holder) internal {
if (!isKnownHolder[holder]) {
holderIndex[holder] = allHolders.length;
allHolders.push(holder);
isKnownHolder[holder] = true;
emit HolderAdded(holder);
}
}
/**
* @dev Removes a holder from the known holders list
* @param holder The address of the holder
*/
function _removeHolder(address holder) internal {
if (isKnownHolder[holder]) {
uint256 index = holderIndex[holder];
uint256 lastIndex = allHolders.length - 1;
// Move the last element to the position of the removed one
if (index != lastIndex) {
address lastHolder = allHolders[lastIndex];
allHolders[index] = lastHolder;
holderIndex[lastHolder] = index;
}
// Remove the last element
allHolders.pop();
delete holderIndex[holder];
isKnownHolder[holder] = false;
// Remove from the top holders list if present
if (isTopHolder[holder]) {
isTopHolder[holder] = false;
}
emit HolderRemoved(holder);
}
}
/**
* @notice Automatic update of the top holders list
* @dev Can be called by anyone, but respecting the interval
* MODIFIED FOR TESTING: Cooldown temporarily disabled
*/
function autoUpdateTopHolders() external {
require(autoTopHoldersUpdateEnabled, "Auto update disabled");
// require(
// block.timestamp >= lastTopHoldersUpdate + topHoldersUpdateInterval,
// "Update interval not reached"
// );
_updateTopHolders();
}
/**
* @notice Manual update of the top holders list
* @dev Allows manual update by the owner/timelock
*/
function manualUpdateTopHolders() external onlyGov {
_updateTopHolders();
}
/**
* @dev Executes the update of the top holders list
*/
function _updateTopHolders() internal {
uint256 gasStart = gasleft();
// Clears old markings
for (uint256 i = 0; i < topHolders.length; i++) {
isTopHolder[topHolders[i]] = false;
}
delete topHolders;
// Creates temporary arrays for sorting
address[] memory candidates = new address[](allHolders.length);
uint256[] memory balances = new uint256[](allHolders.length);
uint256 candidateCount = 0;
// Collects holders with minimum balance
for (uint256 i = 0; i < allHolders.length; i++) {
address holder = allHolders[i];
uint256 balance = hymToken.balanceOf(holder);
if (balance >= minHolding) {
candidates[candidateCount] = holder;
balances[candidateCount] = balance;
candidateCount++;
}
}
// Sorts by balance (bubble sort optimized for top N)
uint256 topCount = candidateCount > maxTopHolders ? maxTopHolders : candidateCount;
for (uint256 i = 0; i < topCount; i++) {
uint256 maxIndex = i;
for (uint256 j = i + 1; j < candidateCount; j++) {
if (balances[j] > balances[maxIndex]) {
maxIndex = j;
}
}
// Swap
if (maxIndex != i) {
(candidates[i], candidates[maxIndex]) = (candidates[maxIndex], candidates[i]);
(balances[i], balances[maxIndex]) = (balances[maxIndex], balances[i]);
}
// Adds to the top holders
topHolders.push(candidates[i]);
isTopHolder[candidates[i]] = true;
}
lastTopHoldersUpdate = block.timestamp;
uint256 gasUsed = gasStart - gasleft();
emit TopHoldersUpdated(topHolders.length, gasUsed);
}
/**
* @notice Automatic proportional distribution
* @dev Automatically sweeps the top holders and distributes proportionally
* MODIFIED FOR TESTING: Cooldown temporarily disabled
*/
function autoDistribute() external {
require(autoDistributionEnabled, "Auto distribution disabled");
// require(block.timestamp >= lastDistribution + distributionInterval, "Distribution interval not reached");
_executeProportionalDistribution();
}
/**
* @notice Manual proportional distribution for a specific list of holders
* @dev Allows manual distribution with a custom list
* @param holders List of addresses to consider in the distribution
*/
function distributeProportional(address[] calldata holders) external onlyGov nonReentrant {
require(holders.length > 0, "Empty holders list");
require(holders.length <= 200, "Too many holders");
_executeProportionalDistributionForList(holders);
}
/**
* @dev Executes automatic proportional distribution using top holders
*/
function _executeProportionalDistribution() internal nonReentrant {
require(topHolders.length > 0, "No top holders configured");
_executeProportionalDistributionForList(topHolders);
}
/**
* @dev Executes proportional distribution for a specific list
* @param holders List of holders for distribution
*/
function _executeProportionalDistributionForList(address[] memory holders) internal {
uint256 totalToDistribute = hymToken.balanceOf(address(this));
require(totalToDistribute > 0, "Nothing to distribute");
// First pass: calculate total eligible and total balance
uint256 totalEligibleBalance = 0;
uint256 eligibleCount = 0;
for (uint256 i = 0; i < holders.length; i++) {
address holder = holders[i];
if (isEligible(holder)) {
uint256 holderBalance = hymToken.balanceOf(holder);
totalEligibleBalance += holderBalance;
eligibleCount++;
}
}
require(eligibleCount > 0, "No eligible holders");
require(totalEligibleBalance > 0, "No eligible balance");
// Second pass: distribute proportionally
uint256 totalDistributed = 0;
for (uint256 i = 0; i < holders.length; i++) {
address holder = holders[i];
if (isEligible(holder)) {
uint256 holderBalance = hymToken.balanceOf(holder);
// Calculates proportional distribution
uint256 holderShare = (totalToDistribute * holderBalance) / totalEligibleBalance;
if (holderShare > 0) {
require(hymToken.transfer(holder, holderShare), "Transfer failed");
totalDistributed += holderShare;
emit ProportionalDistribution(holder, holderShare, holderBalance, totalEligibleBalance);
}
}
}
// Remainder (if any) goes to the vault
uint256 remainder = totalToDistribute - totalDistributed;
if (remainder > 0 && vaultAddress != address(0)) {
require(hymToken.transfer(vaultAddress, remainder), "Vault transfer failed");
}
// Updates history
lastDistribution = block.timestamp;
distributionHistory.push(DistributionRound({
timestamp: block.timestamp,
totalDistributed: totalDistributed,
totalEligibleHolders: eligibleCount,
totalEligibleBalance: totalEligibleBalance
}));
emit TokensDistributed(totalDistributed, eligibleCount, totalEligibleBalance);
}
/**
* @notice Top Holder Automation Settings
*/
function setAutoTopHoldersUpdateEnabled(bool enabled) external onlyGov {
autoTopHoldersUpdateEnabled = enabled;
emit AutoTopHoldersUpdateToggled(enabled);
}
function setTopHoldersUpdateInterval(uint256 intervalInSeconds) external onlyGov {
require(intervalInSeconds >= 1 hours, "Minimum interval: 1 hour");
require(intervalInSeconds <= 7 days, "Maximum interval: 7 days");
topHoldersUpdateInterval = intervalInSeconds;
emit TopHoldersUpdateIntervalUpdated(intervalInSeconds);
}
function setMaxTopHolders(uint256 newMax) external onlyGov {
require(newMax >= 10, "Minimum 10 holders");
require(newMax <= 500, "Maximum 500 holders");
maxTopHolders = newMax;
emit MaxTopHoldersUpdated(newMax);
}
/**
* @notice Sets the vault address where remaining tokens are sent.
* @param _vault The new vault address.
*/
function setVaultAddress(address _vault) external onlyGov {
require(_vault != address(0), "Invalid vault address");
vaultAddress = _vault;
emit VaultUpdated(_vault);
}
/**
* @notice Returns the complete list of top holders for the frontend
* @return Array with addresses of the top holders
*/
function getTopHolders() external view returns (address[] memory) {
return topHolders;
}
/**
* @notice Returns detailed information about the top holders for the frontend
* @return holders Array of addresses
* @return balances Array of corresponding balances
* @return eligibleStatus Array indicating if each holder is eligible
*/
function getTopHoldersDetails() external view returns (
address[] memory holders,
uint256[] memory balances,
bool[] memory eligibleStatus
) {
uint256 length = topHolders.length;
holders = new address[](length);
balances = new uint256[](length);
eligibleStatus = new bool[](length);
for (uint256 i = 0; i < length; i++) {
holders[i] = topHolders[i];
balances[i] = hymToken.balanceOf(topHolders[i]);
eligibleStatus[i] = isEligible(topHolders[i]);
}
}
/**
* @notice Returns statistics about known holders
* @return totalHolders Total known holders
* @return topHoldersCount NNumber of top holders
* @return eligibleHolders NNumber of eligible holders
*/
function getHolderStats() external view returns (
uint256 totalHolders,
uint256 topHoldersCount,
uint256 eligibleHolders
) {
totalHolders = allHolders.length;
topHoldersCount = topHolders.length;
for (uint256 i = 0; i < allHolders.length; i++) {
if (isEligible(allHolders[i])) {
eligibleHolders++;
}
}
}
/**
* @notice Returns information about the upcoming automatic updates
* @return canUpdateTopHolders If top holders can be updated now
* @return timeUntilTopHoldersUpdate Time until next top holders update
* @return canDistribute If distribution can be done now
* @return timeUntilDistribution Time until next distribution
*/
function getAutomationInfo() external view returns (
bool canUpdateTopHolders,
uint256 timeUntilTopHoldersUpdate,
bool canDistribute,
uint256 timeUntilDistribution
) {
uint256 nextTopHoldersUpdate = lastTopHoldersUpdate + topHoldersUpdateInterval;
uint256 nextDistribution = lastDistribution + distributionInterval;
if (block.timestamp >= nextTopHoldersUpdate) {
canUpdateTopHolders = autoTopHoldersUpdateEnabled;
timeUntilTopHoldersUpdate = 0;
} else {
canUpdateTopHolders = false;
timeUntilTopHoldersUpdate = nextTopHoldersUpdate - block.timestamp;
}
if (block.timestamp >= nextDistribution) {
canDistribute = autoDistributionEnabled && hymToken.balanceOf(address(this)) > 0;
timeUntilDistribution = 0;
} else {
canDistribute = false;
timeUntilDistribution = nextDistribution - block.timestamp;
}
}
/**
* @notice Checks if the holder is eligible for distribution.
* @param holder The holder's address.
* @return True if the holder is eligible, false otherwise.
*/
function isEligible(address holder) public view returns (bool) {
return
hymToken.balanceOf(holder) >= minHolding &&
firstReceivedTimestamp[holder] != 0 &&
block.timestamp >= firstReceivedTimestamp[holder] + holdingPeriod;
}
/**
* @notice Estimates the proportional distribution for a specific holder
* @param holder The holder's address
* @return The estimated amount of tokens for distribution
*/
function estimateDistribution(address holder) external view returns (uint256) {
if (!isEligible(holder)) {
return 0;
}
uint256 totalToDistribute = hymToken.balanceOf(address(this));
if (totalToDistribute == 0) {
return 0;
}
// Calculates total eligible balance of top holders
uint256 totalEligibleBalance = 0;
for (uint256 i = 0; i < topHolders.length; i++) {
if (isEligible(topHolders[i])) {
totalEligibleBalance += hymToken.balanceOf(topHolders[i]);
}
}
if (totalEligibleBalance == 0) {
return 0;
}
uint256 holderBalance = hymToken.balanceOf(holder);
return (totalToDistribute * holderBalance) / totalEligibleBalance;
}
/**
* @notice Distribution automation settings
*/
function setAutoDistributionEnabled(bool enabled) external onlyGov {
autoDistributionEnabled = enabled;
emit AutoDistributionToggled(enabled);
}
function setDistributionInterval(uint256 intervalInSeconds) external onlyGov {
require(intervalInSeconds >= 7 days, "Minimum interval: 7 days");
require(intervalInSeconds <= 90 days, "Maximum interval: 90 days");
distributionInterval = intervalInSeconds;
emit DistributionIntervalUpdated(intervalInSeconds);
}
/**
* @notice Updates the minimum amount required for a holder to be eligible.
* @param amount New minimum value (in wei).
*/
function setMinHolding(uint256 amount) external onlyGov {
require(amount > 0, "Minimum holding must be greater than zero");
minHolding = amount;
emit MinHoldingUpdated(amount);
}
/**
* @notice Updates the minimum holding period for eligibility.
* @param duration New period in seconds.
*/
function setHoldingPeriod(uint256 duration) external onlyGov {
require(duration >= 1 days, "Holding period must be at least 1 day");
require(duration <= 365 days, "Holding period too long");
holdingPeriod = duration;
emit HoldingPeriodUpdated(duration);
}
/**
* @notice Returns the distribution history
* @param limit Maximum number of records to return
* @return Array with distribution history
*/
function getDistributionHistory(uint256 limit) external view returns (DistributionRound[] memory) {
uint256 length = distributionHistory.length;
if (limit > length) limit = length;
DistributionRound[] memory result = new DistributionRound[](limit);
for (uint256 i = 0; i < limit; i++) {
result[i] = distributionHistory[length - 1 - i]; // Most recent first
}
return result;
}
/**
* @notice Allows the owner to withdraw all tokens from the contract in case of emergency.
*/
function emergencyWithdrawAll() external onlyOwner nonReentrant {
uint256 balance = hymToken.balanceOf(address(this));
require(balance > 0, "Nothing to withdraw");
require(vaultAddress != address(0), "Vault not set");
require(hymToken.transfer(vaultAddress, balance), "Transfer failed");
emit EmergencyWithdraw(vaultAddress, balance);
}
/**
* @notice Emergency function to recover accidentally sent ERC20 tokens
* @param token Address of the token to be recovered
* @param amount Amount to be recovered
*/
function emergencyRecoverToken(address token, uint256 amount) external onlyOwner {
require(token != address(hymToken), "Cannot recover HYM");
require(token != address(0), "Invalid token address");
IERC20(token).transfer(owner(), amount);
}
function updateTopHolders() external {
uint256 startGas = gasleft();
lastUpdateGasUsed = startGas - gasleft();
}
function getGasInfo() external view returns (uint256 lastUpdateGas, uint256 estimatedDailyCost) {
lastUpdateGas = lastUpdateGasUsed;
estimatedDailyCost = lastUpdateGasUsed; // Update once per day
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
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() {
_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);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)
pragma solidity ^0.8.0;
import "./Ownable.sol";
/**
* @dev Contract module which provides 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} and {acceptOwnership}.
*
* This module is used through inheritance. It will make available all functions
* from parent (Ownable).
*/
abstract contract Ownable2Step is Ownable {
address private _pendingOwner;
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
/**
* @dev Returns the address of the pending owner.
*/
function pendingOwner() public view virtual returns (address) {
return _pendingOwner;
}
/**
* @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual override onlyOwner {
_pendingOwner = newOwner;
emit OwnershipTransferStarted(owner(), newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual override {
delete _pendingOwner;
super._transferOwnership(newOwner);
}
/**
* @dev The new owner accepts the ownership transfer.
*/
function acceptOwnership() public virtual {
address sender = _msgSender();
require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
_transferOwnership(sender);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
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 making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"AutoDistributionToggled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"AutoTopHoldersUpdateToggled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newInterval","type":"uint256"}],"name":"DistributionIntervalUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"vault","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"holder","type":"address"}],"name":"HolderAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"holder","type":"address"}],"name":"HolderNotified","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"holder","type":"address"}],"name":"HolderRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newPeriod","type":"uint256"}],"name":"HoldingPeriodUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"MaxTopHoldersUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"MinHoldingUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"userBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBalance","type":"uint256"}],"name":"ProportionalDistribution","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldTimelock","type":"address"},{"indexed":true,"internalType":"address","name":"newTimelock","type":"address"}],"name":"TimelockSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newToken","type":"address"}],"name":"TokenUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalDistributed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalHolders","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBalance","type":"uint256"}],"name":"TokensDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newInterval","type":"uint256"}],"name":"TopHoldersUpdateIntervalUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"gasUsed","type":"uint256"}],"name":"TopHoldersUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newVault","type":"address"}],"name":"VaultUpdated","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allHolders","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"autoDistribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoDistributionEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"autoTopHoldersUpdateEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"autoUpdateTopHolders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"holders","type":"address[]"}],"name":"distributeProportional","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"distributionHistory","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"totalDistributed","type":"uint256"},{"internalType":"uint256","name":"totalEligibleHolders","type":"uint256"},{"internalType":"uint256","name":"totalEligibleBalance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributionInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyRecoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"estimateDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"firstReceivedTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAutomationInfo","outputs":[{"internalType":"bool","name":"canUpdateTopHolders","type":"bool"},{"internalType":"uint256","name":"timeUntilTopHoldersUpdate","type":"uint256"},{"internalType":"bool","name":"canDistribute","type":"bool"},{"internalType":"uint256","name":"timeUntilDistribution","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"getDistributionHistory","outputs":[{"components":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"totalDistributed","type":"uint256"},{"internalType":"uint256","name":"totalEligibleHolders","type":"uint256"},{"internalType":"uint256","name":"totalEligibleBalance","type":"uint256"}],"internalType":"struct HolderDistributor.DistributionRound[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGasInfo","outputs":[{"internalType":"uint256","name":"lastUpdateGas","type":"uint256"},{"internalType":"uint256","name":"estimatedDailyCost","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHolderStats","outputs":[{"internalType":"uint256","name":"totalHolders","type":"uint256"},{"internalType":"uint256","name":"topHoldersCount","type":"uint256"},{"internalType":"uint256","name":"eligibleHolders","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTopHolders","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTopHoldersDetails","outputs":[{"internalType":"address[]","name":"holders","type":"address[]"},{"internalType":"uint256[]","name":"balances","type":"uint256[]"},{"internalType":"bool[]","name":"eligibleStatus","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"holderIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"holdingPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hymToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"isEligible","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isKnownHolder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isTopHolder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isTrustedCaller","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTopHoldersUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateGasUsed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manualUpdateTopHolders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTopHolders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minHolding","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"notifyReceived","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setAutoDistributionEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setAutoTopHoldersUpdateEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"intervalInSeconds","type":"uint256"}],"name":"setDistributionInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"setHoldingPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"setMaxTopHolders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMinHolding","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTimelock","type":"address"}],"name":"setTimelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"intervalInSeconds","type":"uint256"}],"name":"setTopHoldersUpdateInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"caller","type":"address"},{"internalType":"bool","name":"trusted","type":"bool"}],"name":"setTrustedCaller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"setVaultAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"timelock","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"topHolders","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"topHoldersUpdateInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateTopHolders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608060405269021e19e0c9bab24000006006556276a70060075562278d00600955600a8054600160ff19918216811790925562015180600c55600d805490911690911790556064600e5534801561005557600080fd5b506040516134eb3803806134eb83398101604081905261007491610166565b61007d336100fa565b60016002556001600160a01b0381166100cc5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2103a37b5b2b760991b604482015260640160405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055426008819055600b55610196565b600180546001600160a01b031916905561011381610116565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561017857600080fd5b81516001600160a01b038116811461018f57600080fd5b9392505050565b613346806101a56000396000f3fe608060405234801561001057600080fd5b506004361061030c5760003560e01c806385535cc51161019d578063c6256292116100e9578063dda6be3f116100a2578063f0360bad1161007c578063f0360bad146106aa578063f2fde38b146106dd578063f9934466146106f0578063fa8e97231461071057600080fd5b8063dda6be3f14610670578063e30c397814610679578063e9bbb0401461068a57600080fd5b8063c62562921461061d578063c88036ee14610630578063d148288f14610639578063d33219b41461064c578063d9dae9771461065f578063dd1917191461066857600080fd5b8063a717639c11610156578063b9c7b17c11610130578063b9c7b17c146105f0578063bbed0e84146105f8578063bdacb30314610601578063c2650a421461061457600080fd5b8063a717639c146105ca578063a8273409146105d3578063a8f11eb9146105e857600080fd5b806385535cc51461055b578063869c96711461056e5780638da5cb5b1461057b5780638e8b51a11461058c57806397110964146105af578063a552243c146105b757600080fd5b80634af1094e1161025c578063715018a6116102155780637a16a49e116101ef5780637a16a49e146105155780637a2d7371146105285780637a53c01c1461053b578063801fdc771461054857600080fd5b8063715018a6146104f257806379020194146104fa57806379ba50971461050d57600080fd5b80634af1094e146104585780634e45feb214610488578063514e89771461049b57806355574dbe146104be57806366e305fd146104d657806371201a0e146104e957600080fd5b80632aebeb07116102c9578063430bf08a116102a3578063430bf08a146104085780634587d9c81461041b57806346fee28f14610432578063494fee7d1461044557600080fd5b80632aebeb07146103bf5780632ca6055f146103d2578063351a03cb146103f557600080fd5b8063045851531461031157806309692a83146103265780630c72dd5f14610346578063193d14be146103595780631ab1e009146103615780631fbd28221461038c575b600080fd5b61032461031f366004612f38565b610730565b005b61032e610842565b60405161033d93929190612f96565b60405180910390f35b610324610354366004613035565b610a94565b610324610b14565b600454610374906001600160a01b031681565b6040516001600160a01b03909116815260200161033d565b6103af61039a366004613075565b60116020526000908152604090205460ff1681565b604051901515815260200161033d565b6103246103cd366004613035565b610b67565b6103da610be7565b6040805193845260208401929092529082015260600161033d565b610324610403366004612f38565b610c32565b600554610374906001600160a01b031681565b610424600b5481565b60405190815260200161033d565b610374610440366004612f38565b610d4b565b610424610453366004613075565b610d75565b610460610f94565b604080519415158552602085019390935290151591830191909152606082015260800161033d565b610324610496366004612f38565b611097565b6103af6104a9366004613075565b60166020526000908152604090205460ff1681565b600f546040805182815260208101929092520161033d565b6103af6104e4366004613075565b61116d565b61042460095481565b610324611241565b610324610508366004613090565b611253565b610324611393565b610324610523366004612f38565b61140d565b610374610536366004612f38565b611527565b600d546103af9060ff1681565b610324610556366004613075565b611537565b610324610569366004613075565b611755565b600a546103af9060ff1681565b6000546001600160a01b0316610374565b6103af61059a366004613075565b60136020526000908152604090205460ff1681565b61032461182c565b6103246105c53660046130ba565b61186b565b61042460085481565b6105db61197e565b60405161033d919061312f565b6103246119e0565b610324611a3a565b61042460065481565b61032461060f366004613075565b611a50565b610424600c5481565b61032461062b366004613142565b611ab4565b610424600f5481565b610324610647366004612f38565b611b1e565b600354610374906001600160a01b031681565b610424600e5481565b610324611c47565b61042460075481565b6001546001600160a01b0316610374565b610424610698366004613075565b60146020526000908152604090205481565b6106bd6106b8366004612f38565b611e5f565b60408051948552602085019390935291830152606082015260800161033d565b6103246106eb366004613075565b611e99565b6107036106fe366004612f38565b611f0a565b60405161033d9190613179565b61042461071e366004613075565b60106020526000908152604090205481565b6000546001600160a01b031633148061075357506003546001600160a01b031633145b6107785760405162461bcd60e51b815260040161076f906131dd565b60405180910390fd5b600a8110156107be5760405162461bcd60e51b81526020600482015260126024820152714d696e696d756d20313020686f6c6465727360701b604482015260640161076f565b6101f48111156108065760405162461bcd60e51b81526020600482015260136024820152724d6178696d756d2035303020686f6c6465727360681b604482015260640161076f565b600e8190556040518181527fc05bc0ab7ac42bf6e33ef3b185143e1e0f992fa8668f57d950ef5b43c329ad20906020015b60405180910390a150565b601554606090819081908067ffffffffffffffff8111156108655761086561320a565b60405190808252806020026020018201604052801561088e578160200160208202803683370190505b5093508067ffffffffffffffff8111156108aa576108aa61320a565b6040519080825280602002602001820160405280156108d3578160200160208202803683370190505b5092508067ffffffffffffffff8111156108ef576108ef61320a565b604051908082528060200260200182016040528015610918578160200160208202803683370190505b50915060005b81811015610a8d576015818154811061093957610939613220565b9060005260206000200160009054906101000a90046001600160a01b031685828151811061096957610969613220565b6001600160a01b0392831660209182029290920101526004546015805491909216916370a0823191849081106109a1576109a1613220565b60009182526020909120015460405160e083901b6001600160e01b03191681526001600160a01b039091166004820152602401602060405180830381865afa1580156109f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a159190613236565b848281518110610a2757610a27613220565b602002602001018181525050610a6360158281548110610a4957610a49613220565b6000918252602090912001546001600160a01b031661116d565b838281518110610a7557610a75613220565b9115156020928302919091019091015260010161091e565b5050909192565b6000546001600160a01b0316331480610ab757506003546001600160a01b031633145b610ad35760405162461bcd60e51b815260040161076f906131dd565b600a805460ff19168215159081179091556040519081527fb55ef35ed987c15c854fa1ca3cc7c796cf6f2f32dc8e3349e6f03e3f7e3a11c990602001610837565b600d5460ff16610b5d5760405162461bcd60e51b8152602060048201526014602482015273105d5d1bc81d5c19185d1948191a5cd8589b195960621b604482015260640161076f565b610b65612037565b565b6000546001600160a01b0316331480610b8a57506003546001600160a01b031633145b610ba65760405162461bcd60e51b815260040161076f906131dd565b600d805460ff19168215159081179091556040519081527f514f4f7e4f57d178026306dc9229aac78c0e8473c734728783be60e1b5ec456690602001610837565b6012546015546000805b601254811015610c2c57610c1160128281548110610a4957610a49613220565b15610c245781610c2081613265565b9250505b600101610bf1565b50909192565b6000546001600160a01b0316331480610c5557506003546001600160a01b031633145b610c715760405162461bcd60e51b815260040161076f906131dd565b610e10811015610cc35760405162461bcd60e51b815260206004820152601860248201527f4d696e696d756d20696e74657276616c3a203120686f75720000000000000000604482015260640161076f565b62093a80811115610d165760405162461bcd60e51b815260206004820152601860248201527f4d6178696d756d20696e74657276616c3a203720646179730000000000000000604482015260640161076f565b600c8190556040518181527f7acfe97401938b0b7cd958bb5acb05f8ef7c785811244b7fa56def2c9f80c83a90602001610837565b60128181548110610d5b57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000610d808261116d565b610d8c57506000919050565b600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610dda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfe9190613236565b905080600003610e115750600092915050565b6000805b601554811015610eed57610e3560158281548110610a4957610a49613220565b15610ee557600454601580546001600160a01b03909216916370a08231919084908110610e6457610e64613220565b60009182526020909120015460405160e083901b6001600160e01b03191681526001600160a01b039091166004820152602401602060405180830381865afa158015610eb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed89190613236565b610ee2908361327e565b91505b600101610e15565b5080600003610f00575060009392505050565b600480546040516370a0823160e01b81526001600160a01b0387811693820193909352600092909116906370a0823190602401602060405180830381865afa158015610f50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f749190613236565b905081610f818285613291565b610f8b91906132a8565b95945050505050565b6000806000806000600c54600b54610fac919061327e565b90506000600954600854610fc0919061327e565b9050814210610fda57600d5460ff16955060009450610feb565b60009550610fe842836132ca565b94505b80421061107e57600a5460ff1680156110735750600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa15801561104d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110719190613236565b115b93506000925061108f565b6000935061108c42826132ca565b92505b505090919293565b6000546001600160a01b03163314806110ba57506003546001600160a01b031633145b6110d65760405162461bcd60e51b815260040161076f906131dd565b600081116111385760405162461bcd60e51b815260206004820152602960248201527f4d696e696d756d20686f6c64696e67206d7573742062652067726561746572206044820152687468616e207a65726f60b81b606482015260840161076f565b60068190556040518181527f492075cf9f1a88d35723df8fc0e5a53ec574e124397c11de1c601668fb54f28c90602001610837565b600654600480546040516370a0823160e01b81526001600160a01b038581169382019390935260009392909116906370a0823190602401602060405180830381865afa1580156111c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e59190613236565b1015801561120a57506001600160a01b03821660009081526010602052604090205415155b801561123b57506007546001600160a01b038316600090815260106020526040902054611237919061327e565b4210155b92915050565b6112496124c7565b610b656000612521565b61125b6124c7565b6004546001600160a01b03908116908316036112ae5760405162461bcd60e51b815260206004820152601260248201527143616e6e6f74207265636f7665722048594d60701b604482015260640161076f565b6001600160a01b0382166112fc5760405162461bcd60e51b8152602060048201526015602482015274496e76616c696420746f6b656e206164647265737360581b604482015260640161076f565b816001600160a01b031663a9059cbb61131d6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af115801561136a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138e91906132dd565b505050565b60015433906001600160a01b031681146114015760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b606482015260840161076f565b61140a81612521565b50565b6000546001600160a01b031633148061143057506003546001600160a01b031633145b61144c5760405162461bcd60e51b815260040161076f906131dd565b62093a8081101561149f5760405162461bcd60e51b815260206004820152601860248201527f4d696e696d756d20696e74657276616c3a203720646179730000000000000000604482015260640161076f565b6276a7008111156114f25760405162461bcd60e51b815260206004820152601960248201527f4d6178696d756d20696e74657276616c3a203930206461797300000000000000604482015260640161076f565b60098190556040518181527f696dabb82e6086f8ebde53aa0b343c575398976d5ebb1b06ddb45c849bd005e690602001610837565b60158181548110610d5b57600080fd5b6004546001600160a01b031633148061155f57503360009081526011602052604090205460ff165b6115bb5760405162461bcd60e51b815260206004820152602760248201527f4f6e6c7920746f6b656e206f7220747275737465642063616c6c65722063616e604482015266206e6f7469667960c81b606482015260840161076f565b600480546040516370a0823160e01b81526001600160a01b0384811693820193909352600092909116906370a0823190602401602060405180830381865afa15801561160b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061162f9190613236565b6001600160a01b03831660009081526013602052604090205490915060ff1615801561165b5750600081115b15611669576116698261253a565b6001600160a01b03821660009081526013602052604090205460ff16801561168f575080155b1561169d5761169d826125f5565b600654811061173a576001600160a01b03821660009081526010602052604090205415806116ef57506007546001600160a01b0383166000908152601060205260409020546116ec919061327e565b42105b15611736576001600160a01b038216600081815260106020526040808220429055517fe62ee443ea72273fa08cd6ba5b67373585772dd304f46ac02da0a5b95b7b197e9190a25b5050565b506001600160a01b0316600090815260106020526040812055565b6000546001600160a01b031633148061177857506003546001600160a01b031633145b6117945760405162461bcd60e51b815260040161076f906131dd565b6001600160a01b0381166117e25760405162461bcd60e51b8152602060048201526015602482015274496e76616c6964207661756c74206164647265737360581b604482015260640161076f565b600580546001600160a01b0319166001600160a01b0383169081179091556040517f161584aed96e7f34998117c9ad67e2d21ff46d2a42775c22b11ed282f3c7b2cd90600090a250565b6000546001600160a01b031633148061184f57506003546001600160a01b031633145b610b5d5760405162461bcd60e51b815260040161076f906131dd565b6000546001600160a01b031633148061188e57506003546001600160a01b031633145b6118aa5760405162461bcd60e51b815260040161076f906131dd565b6118b2612791565b806118f45760405162461bcd60e51b8152602060048201526012602482015271115b5c1d1e481a1bdb19195c9cc81b1a5cdd60721b604482015260640161076f565b60c88111156119385760405162461bcd60e51b815260206004820152601060248201526f546f6f206d616e7920686f6c6465727360801b604482015260640161076f565b6119748282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506127e892505050565b6117366001600255565b606060158054806020026020016040519081016040528092919081815260200182805480156119d657602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116119b8575b5050505050905090565b600a5460ff16611a325760405162461bcd60e51b815260206004820152601a60248201527f4175746f20646973747269627574696f6e2064697361626c6564000000000000604482015260640161076f565b610b65612df2565b60005a90505a611a4a90826132ca565b600f5550565b611a586124c7565b6003546040516001600160a01b038084169216907fb4fc4300b631bd1445d18184e73a1ecd94175d060825df1e146d0911c42acb0a90600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331480611ad757506003546001600160a01b031633145b611af35760405162461bcd60e51b815260040161076f906131dd565b6001600160a01b03919091166000908152601160205260409020805460ff1916911515919091179055565b6000546001600160a01b0316331480611b4157506003546001600160a01b031633145b611b5d5760405162461bcd60e51b815260040161076f906131dd565b62015180811015611bbe5760405162461bcd60e51b815260206004820152602560248201527f486f6c64696e6720706572696f64206d757374206265206174206c6561737420604482015264312064617960d81b606482015260840161076f565b6301e13380811115611c125760405162461bcd60e51b815260206004820152601760248201527f486f6c64696e6720706572696f6420746f6f206c6f6e67000000000000000000604482015260640161076f565b60078190556040518181527fc4199b1063ddc287299b827febcf79cb6e46cb21007e648c2db284160f7fca8c90602001610837565b611c4f6124c7565b611c57612791565b600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611ca5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cc99190613236565b905060008111611d115760405162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20776974686472617760681b604482015260640161076f565b6005546001600160a01b0316611d595760405162461bcd60e51b815260206004820152600d60248201526c15985d5b1d081b9bdd081cd95d609a1b604482015260640161076f565b6004805460055460405163a9059cbb60e01b81526001600160a01b039182169381019390935260248301849052169063a9059cbb906044016020604051808303816000875af1158015611db0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd491906132dd565b611e125760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161076f565b6005546040518281526001600160a01b03909116907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96959060200160405180910390a250610b656001600255565b60178181548110611e6f57600080fd5b60009182526020909120600490910201805460018201546002830154600390930154919350919084565b611ea16124c7565b600180546001600160a01b0383166001600160a01b03199091168117909155611ed26000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60175460609080831115611f1c578092505b60008367ffffffffffffffff811115611f3757611f3761320a565b604051908082528060200260200182016040528015611f9357816020015b611f806040518060800160405280600081526020016000815260200160008152602001600081525090565b815260200190600190039081611f555790505b50905060005b8481101561202f57601781611faf6001866132ca565b611fb991906132ca565b81548110611fc957611fc9613220565b906000526020600020906004020160405180608001604052908160008201548152602001600182015481526020016002820154815260200160038201548152505082828151811061201c5761201c613220565b6020908102919091010152600101611f99565b509392505050565b60005a905060005b60155481101561209e576000601660006015848154811061206257612062613220565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905560010161203f565b506120ab60156000612f06565b60125460009067ffffffffffffffff8111156120c9576120c961320a565b6040519080825280602002602001820160405280156120f2578160200160208202803683370190505b5060125490915060009067ffffffffffffffff8111156121145761211461320a565b60405190808252806020026020018201604052801561213d578160200160208202803683370190505b5090506000805b6012548110156122565760006012828154811061216357612163613220565b6000918252602082200154600480546040516370a0823160e01b81526001600160a01b0393841692810183905291945091909116906370a0823190602401602060405180830381865afa1580156121be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e29190613236565b9050600654811061224c578186858151811061220057612200613220565b60200260200101906001600160a01b031690816001600160a01b0316815250508085858151811061223357612233613220565b60209081029190910101528361224881613265565b9450505b5050600101612144565b506000600e548211612268578161226c565b600e545b905060005b8181101561246d5780600061228782600161327e565b90505b848110156122d8578582815181106122a4576122a4613220565b60200260200101518682815181106122be576122be613220565b602002602001015111156122d0578091505b60010161228a565b508181146123ca578581815181106122f2576122f2613220565b602002602001015186838151811061230c5761230c613220565b602002602001015187848151811061232657612326613220565b6020026020010188848151811061233f5761233f613220565b6001600160a01b03938416602091820292909201015291169052845185908290811061236d5761236d613220565b602002602001015185838151811061238757612387613220565b60200260200101518684815181106123a1576123a1613220565b602002602001018784815181106123ba576123ba613220565b6020908102919091010191909152525b60158683815181106123de576123de613220565b60209081029190910181015182546001808201855560009485529284200180546001600160a01b0319166001600160a01b039092169190911790558751909160169189908690811061243257612432613220565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905550600101612271565b5042600b5560005a61247f90876132ca565b60155460408051918252602082018390529192507f4331e182fd71ae0b6bc14178f10c1457cefd3717c51bbbdea70c18e809338f6f91015b60405180910390a1505050505050565b6000546001600160a01b03163314610b655760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161076f565b600180546001600160a01b031916905561140a81612eb6565b6001600160a01b03811660009081526013602052604090205460ff1661140a57601280546001600160a01b038316600081815260146020908152604080832085905560018086019096557fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344490940180546001600160a01b0319168417905560139052828120805460ff1916909417909355905190917f9894d458cf29e8bc4eb7e591bac54b31dc90125dfa852474419972ab4347dd1291a250565b6001600160a01b03811660009081526013602052604090205460ff161561140a576001600160a01b038116600090815260146020526040812054601254909190612641906001906132ca565b90508082146126c95760006012828154811061265f5761265f613220565b600091825260209091200154601280546001600160a01b03909216925082918590811061268e5761268e613220565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559290911681526014909152604090208290555b60128054806126da576126da6132fa565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b038516825260148152604080832083905560138252808320805460ff19169055601690915290205460ff1615612758576001600160a01b0383166000908152601660205260409020805460ff191690555b6040516001600160a01b038416907fd9bc583d1445615d8b795b7374f03ff79efa83b6359a91331efd95e4cf023ab690600090a2505050565b60028054036127e25760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161076f565b60028055565b600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015612836573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061285a9190613236565b9050600081116128a45760405162461bcd60e51b81526020600482015260156024820152744e6f7468696e6720746f206469737472696275746560581b604482015260640161076f565b60008060005b84518110156129795760008582815181106128c7576128c7613220565b602002602001015190506128da8161116d565b1561297057600480546040516370a0823160e01b81526001600160a01b0384811693820193909352600092909116906370a0823190602401602060405180830381865afa15801561292f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129539190613236565b905061295f818661327e565b94508361296b81613265565b945050505b506001016128aa565b50600081116129c05760405162461bcd60e51b81526020600482015260136024820152724e6f20656c696769626c6520686f6c6465727360681b604482015260640161076f565b60008211612a065760405162461bcd60e51b81526020600482015260136024820152724e6f20656c696769626c652062616c616e636560681b604482015260640161076f565b6000805b8551811015612bf1576000868281518110612a2757612a27613220565b60200260200101519050612a3a8161116d565b15612be857600480546040516370a0823160e01b81526001600160a01b0384811693820193909352600092909116906370a0823190602401602060405180830381865afa158015612a8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab39190613236565b9050600086612ac2838a613291565b612acc91906132a8565b90508015612be5576004805460405163a9059cbb60e01b81526001600160a01b03868116938201939093526024810184905291169063a9059cbb906044016020604051808303816000875af1158015612b29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b4d91906132dd565b612b8b5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161076f565b612b95818661327e565b60408051838152602081018590529081018990529095506001600160a01b038416907f5b0fcdc47159aa9efeb92e25a5569b782a00ba19a39ade84a2ae017bc8ce55c59060600160405180910390a25b50505b50600101612a0a565b506000612bfe82866132ca565b9050600081118015612c1a57506005546001600160a01b031615155b15612cde576004805460055460405163a9059cbb60e01b81526001600160a01b039182169381019390935260248301849052169063a9059cbb906044016020604051808303816000875af1158015612c76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c9a91906132dd565b612cde5760405162461bcd60e51b815260206004820152601560248201527415985d5b1d081d1c985b9cd9995c8819985a5b1959605a1b604482015260640161076f565b42600881905560408051608081018252918252602080830185815283830187815260608086018a81526017805460018101825560009190915296517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1560049098029788015592517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1687015590517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1786015590517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c189094019390935581518581529081018690529081018690527f8739ea584738c9982d7ea914ddf018402c622087a3ac9c4eddfdaafdefab134791016124b7565b612dfa612791565b601554612e495760405162461bcd60e51b815260206004820152601960248201527f4e6f20746f7020686f6c6465727320636f6e6669677572656400000000000000604482015260640161076f565b612eac6015805480602002602001604051908101604052809291908181526020018280548015612ea257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612e84575b50505050506127e8565b610b656001600255565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b508054600082559060005260206000209081019061140a91905b80821115612f345760008155600101612f20565b5090565b600060208284031215612f4a57600080fd5b5035919050565b60008151808452602080850194506020840160005b83811015612f8b5781516001600160a01b031687529582019590820190600101612f66565b509495945050505050565b606081526000612fa96060830186612f51565b82810360208481019190915285518083528682019282019060005b81811015612fe057845183529383019391830191600101612fc4565b50508481036040860152855180825290820192508186019060005b81811015613019578251151585529383019391830191600101612ffb565b509298975050505050505050565b801515811461140a57600080fd5b60006020828403121561304757600080fd5b813561305281613027565b9392505050565b80356001600160a01b038116811461307057600080fd5b919050565b60006020828403121561308757600080fd5b61305282613059565b600080604083850312156130a357600080fd5b6130ac83613059565b946020939093013593505050565b600080602083850312156130cd57600080fd5b823567ffffffffffffffff808211156130e557600080fd5b818501915085601f8301126130f957600080fd5b81358181111561310857600080fd5b8660208260051b850101111561311d57600080fd5b60209290920196919550909350505050565b6020815260006130526020830184612f51565b6000806040838503121561315557600080fd5b61315e83613059565b9150602083013561316e81613027565b809150509250929050565b602080825282518282018190526000919060409081850190868401855b828110156131d057815180518552868101518786015285810151868601526060908101519085015260809093019290850190600101613196565b5091979650505050505050565b6020808252601390820152724f6e6c79206f776e65722f74696d656c6f636b60681b604082015260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006020828403121561324857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000600182016132775761327761324f565b5060010190565b8082018082111561123b5761123b61324f565b808202811582820484141761123b5761123b61324f565b6000826132c557634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561123b5761123b61324f565b6000602082840312156132ef57600080fd5b815161305281613027565b634e487b7160e01b600052603160045260246000fdfea26469706673582212209d158d7369c22b3824eb5db74ab2ae061a7b698ba5685701532be7410f4b34a864736f6c634300081900330000000000000000000000001eebd99150bbbdadab8f55aeed07a9ce2ee78e2f
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061030c5760003560e01c806385535cc51161019d578063c6256292116100e9578063dda6be3f116100a2578063f0360bad1161007c578063f0360bad146106aa578063f2fde38b146106dd578063f9934466146106f0578063fa8e97231461071057600080fd5b8063dda6be3f14610670578063e30c397814610679578063e9bbb0401461068a57600080fd5b8063c62562921461061d578063c88036ee14610630578063d148288f14610639578063d33219b41461064c578063d9dae9771461065f578063dd1917191461066857600080fd5b8063a717639c11610156578063b9c7b17c11610130578063b9c7b17c146105f0578063bbed0e84146105f8578063bdacb30314610601578063c2650a421461061457600080fd5b8063a717639c146105ca578063a8273409146105d3578063a8f11eb9146105e857600080fd5b806385535cc51461055b578063869c96711461056e5780638da5cb5b1461057b5780638e8b51a11461058c57806397110964146105af578063a552243c146105b757600080fd5b80634af1094e1161025c578063715018a6116102155780637a16a49e116101ef5780637a16a49e146105155780637a2d7371146105285780637a53c01c1461053b578063801fdc771461054857600080fd5b8063715018a6146104f257806379020194146104fa57806379ba50971461050d57600080fd5b80634af1094e146104585780634e45feb214610488578063514e89771461049b57806355574dbe146104be57806366e305fd146104d657806371201a0e146104e957600080fd5b80632aebeb07116102c9578063430bf08a116102a3578063430bf08a146104085780634587d9c81461041b57806346fee28f14610432578063494fee7d1461044557600080fd5b80632aebeb07146103bf5780632ca6055f146103d2578063351a03cb146103f557600080fd5b8063045851531461031157806309692a83146103265780630c72dd5f14610346578063193d14be146103595780631ab1e009146103615780631fbd28221461038c575b600080fd5b61032461031f366004612f38565b610730565b005b61032e610842565b60405161033d93929190612f96565b60405180910390f35b610324610354366004613035565b610a94565b610324610b14565b600454610374906001600160a01b031681565b6040516001600160a01b03909116815260200161033d565b6103af61039a366004613075565b60116020526000908152604090205460ff1681565b604051901515815260200161033d565b6103246103cd366004613035565b610b67565b6103da610be7565b6040805193845260208401929092529082015260600161033d565b610324610403366004612f38565b610c32565b600554610374906001600160a01b031681565b610424600b5481565b60405190815260200161033d565b610374610440366004612f38565b610d4b565b610424610453366004613075565b610d75565b610460610f94565b604080519415158552602085019390935290151591830191909152606082015260800161033d565b610324610496366004612f38565b611097565b6103af6104a9366004613075565b60166020526000908152604090205460ff1681565b600f546040805182815260208101929092520161033d565b6103af6104e4366004613075565b61116d565b61042460095481565b610324611241565b610324610508366004613090565b611253565b610324611393565b610324610523366004612f38565b61140d565b610374610536366004612f38565b611527565b600d546103af9060ff1681565b610324610556366004613075565b611537565b610324610569366004613075565b611755565b600a546103af9060ff1681565b6000546001600160a01b0316610374565b6103af61059a366004613075565b60136020526000908152604090205460ff1681565b61032461182c565b6103246105c53660046130ba565b61186b565b61042460085481565b6105db61197e565b60405161033d919061312f565b6103246119e0565b610324611a3a565b61042460065481565b61032461060f366004613075565b611a50565b610424600c5481565b61032461062b366004613142565b611ab4565b610424600f5481565b610324610647366004612f38565b611b1e565b600354610374906001600160a01b031681565b610424600e5481565b610324611c47565b61042460075481565b6001546001600160a01b0316610374565b610424610698366004613075565b60146020526000908152604090205481565b6106bd6106b8366004612f38565b611e5f565b60408051948552602085019390935291830152606082015260800161033d565b6103246106eb366004613075565b611e99565b6107036106fe366004612f38565b611f0a565b60405161033d9190613179565b61042461071e366004613075565b60106020526000908152604090205481565b6000546001600160a01b031633148061075357506003546001600160a01b031633145b6107785760405162461bcd60e51b815260040161076f906131dd565b60405180910390fd5b600a8110156107be5760405162461bcd60e51b81526020600482015260126024820152714d696e696d756d20313020686f6c6465727360701b604482015260640161076f565b6101f48111156108065760405162461bcd60e51b81526020600482015260136024820152724d6178696d756d2035303020686f6c6465727360681b604482015260640161076f565b600e8190556040518181527fc05bc0ab7ac42bf6e33ef3b185143e1e0f992fa8668f57d950ef5b43c329ad20906020015b60405180910390a150565b601554606090819081908067ffffffffffffffff8111156108655761086561320a565b60405190808252806020026020018201604052801561088e578160200160208202803683370190505b5093508067ffffffffffffffff8111156108aa576108aa61320a565b6040519080825280602002602001820160405280156108d3578160200160208202803683370190505b5092508067ffffffffffffffff8111156108ef576108ef61320a565b604051908082528060200260200182016040528015610918578160200160208202803683370190505b50915060005b81811015610a8d576015818154811061093957610939613220565b9060005260206000200160009054906101000a90046001600160a01b031685828151811061096957610969613220565b6001600160a01b0392831660209182029290920101526004546015805491909216916370a0823191849081106109a1576109a1613220565b60009182526020909120015460405160e083901b6001600160e01b03191681526001600160a01b039091166004820152602401602060405180830381865afa1580156109f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a159190613236565b848281518110610a2757610a27613220565b602002602001018181525050610a6360158281548110610a4957610a49613220565b6000918252602090912001546001600160a01b031661116d565b838281518110610a7557610a75613220565b9115156020928302919091019091015260010161091e565b5050909192565b6000546001600160a01b0316331480610ab757506003546001600160a01b031633145b610ad35760405162461bcd60e51b815260040161076f906131dd565b600a805460ff19168215159081179091556040519081527fb55ef35ed987c15c854fa1ca3cc7c796cf6f2f32dc8e3349e6f03e3f7e3a11c990602001610837565b600d5460ff16610b5d5760405162461bcd60e51b8152602060048201526014602482015273105d5d1bc81d5c19185d1948191a5cd8589b195960621b604482015260640161076f565b610b65612037565b565b6000546001600160a01b0316331480610b8a57506003546001600160a01b031633145b610ba65760405162461bcd60e51b815260040161076f906131dd565b600d805460ff19168215159081179091556040519081527f514f4f7e4f57d178026306dc9229aac78c0e8473c734728783be60e1b5ec456690602001610837565b6012546015546000805b601254811015610c2c57610c1160128281548110610a4957610a49613220565b15610c245781610c2081613265565b9250505b600101610bf1565b50909192565b6000546001600160a01b0316331480610c5557506003546001600160a01b031633145b610c715760405162461bcd60e51b815260040161076f906131dd565b610e10811015610cc35760405162461bcd60e51b815260206004820152601860248201527f4d696e696d756d20696e74657276616c3a203120686f75720000000000000000604482015260640161076f565b62093a80811115610d165760405162461bcd60e51b815260206004820152601860248201527f4d6178696d756d20696e74657276616c3a203720646179730000000000000000604482015260640161076f565b600c8190556040518181527f7acfe97401938b0b7cd958bb5acb05f8ef7c785811244b7fa56def2c9f80c83a90602001610837565b60128181548110610d5b57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000610d808261116d565b610d8c57506000919050565b600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610dda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dfe9190613236565b905080600003610e115750600092915050565b6000805b601554811015610eed57610e3560158281548110610a4957610a49613220565b15610ee557600454601580546001600160a01b03909216916370a08231919084908110610e6457610e64613220565b60009182526020909120015460405160e083901b6001600160e01b03191681526001600160a01b039091166004820152602401602060405180830381865afa158015610eb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed89190613236565b610ee2908361327e565b91505b600101610e15565b5080600003610f00575060009392505050565b600480546040516370a0823160e01b81526001600160a01b0387811693820193909352600092909116906370a0823190602401602060405180830381865afa158015610f50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f749190613236565b905081610f818285613291565b610f8b91906132a8565b95945050505050565b6000806000806000600c54600b54610fac919061327e565b90506000600954600854610fc0919061327e565b9050814210610fda57600d5460ff16955060009450610feb565b60009550610fe842836132ca565b94505b80421061107e57600a5460ff1680156110735750600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa15801561104d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110719190613236565b115b93506000925061108f565b6000935061108c42826132ca565b92505b505090919293565b6000546001600160a01b03163314806110ba57506003546001600160a01b031633145b6110d65760405162461bcd60e51b815260040161076f906131dd565b600081116111385760405162461bcd60e51b815260206004820152602960248201527f4d696e696d756d20686f6c64696e67206d7573742062652067726561746572206044820152687468616e207a65726f60b81b606482015260840161076f565b60068190556040518181527f492075cf9f1a88d35723df8fc0e5a53ec574e124397c11de1c601668fb54f28c90602001610837565b600654600480546040516370a0823160e01b81526001600160a01b038581169382019390935260009392909116906370a0823190602401602060405180830381865afa1580156111c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e59190613236565b1015801561120a57506001600160a01b03821660009081526010602052604090205415155b801561123b57506007546001600160a01b038316600090815260106020526040902054611237919061327e565b4210155b92915050565b6112496124c7565b610b656000612521565b61125b6124c7565b6004546001600160a01b03908116908316036112ae5760405162461bcd60e51b815260206004820152601260248201527143616e6e6f74207265636f7665722048594d60701b604482015260640161076f565b6001600160a01b0382166112fc5760405162461bcd60e51b8152602060048201526015602482015274496e76616c696420746f6b656e206164647265737360581b604482015260640161076f565b816001600160a01b031663a9059cbb61131d6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af115801561136a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138e91906132dd565b505050565b60015433906001600160a01b031681146114015760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f7420746865206044820152683732bb9037bbb732b960b91b606482015260840161076f565b61140a81612521565b50565b6000546001600160a01b031633148061143057506003546001600160a01b031633145b61144c5760405162461bcd60e51b815260040161076f906131dd565b62093a8081101561149f5760405162461bcd60e51b815260206004820152601860248201527f4d696e696d756d20696e74657276616c3a203720646179730000000000000000604482015260640161076f565b6276a7008111156114f25760405162461bcd60e51b815260206004820152601960248201527f4d6178696d756d20696e74657276616c3a203930206461797300000000000000604482015260640161076f565b60098190556040518181527f696dabb82e6086f8ebde53aa0b343c575398976d5ebb1b06ddb45c849bd005e690602001610837565b60158181548110610d5b57600080fd5b6004546001600160a01b031633148061155f57503360009081526011602052604090205460ff165b6115bb5760405162461bcd60e51b815260206004820152602760248201527f4f6e6c7920746f6b656e206f7220747275737465642063616c6c65722063616e604482015266206e6f7469667960c81b606482015260840161076f565b600480546040516370a0823160e01b81526001600160a01b0384811693820193909352600092909116906370a0823190602401602060405180830381865afa15801561160b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061162f9190613236565b6001600160a01b03831660009081526013602052604090205490915060ff1615801561165b5750600081115b15611669576116698261253a565b6001600160a01b03821660009081526013602052604090205460ff16801561168f575080155b1561169d5761169d826125f5565b600654811061173a576001600160a01b03821660009081526010602052604090205415806116ef57506007546001600160a01b0383166000908152601060205260409020546116ec919061327e565b42105b15611736576001600160a01b038216600081815260106020526040808220429055517fe62ee443ea72273fa08cd6ba5b67373585772dd304f46ac02da0a5b95b7b197e9190a25b5050565b506001600160a01b0316600090815260106020526040812055565b6000546001600160a01b031633148061177857506003546001600160a01b031633145b6117945760405162461bcd60e51b815260040161076f906131dd565b6001600160a01b0381166117e25760405162461bcd60e51b8152602060048201526015602482015274496e76616c6964207661756c74206164647265737360581b604482015260640161076f565b600580546001600160a01b0319166001600160a01b0383169081179091556040517f161584aed96e7f34998117c9ad67e2d21ff46d2a42775c22b11ed282f3c7b2cd90600090a250565b6000546001600160a01b031633148061184f57506003546001600160a01b031633145b610b5d5760405162461bcd60e51b815260040161076f906131dd565b6000546001600160a01b031633148061188e57506003546001600160a01b031633145b6118aa5760405162461bcd60e51b815260040161076f906131dd565b6118b2612791565b806118f45760405162461bcd60e51b8152602060048201526012602482015271115b5c1d1e481a1bdb19195c9cc81b1a5cdd60721b604482015260640161076f565b60c88111156119385760405162461bcd60e51b815260206004820152601060248201526f546f6f206d616e7920686f6c6465727360801b604482015260640161076f565b6119748282808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506127e892505050565b6117366001600255565b606060158054806020026020016040519081016040528092919081815260200182805480156119d657602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116119b8575b5050505050905090565b600a5460ff16611a325760405162461bcd60e51b815260206004820152601a60248201527f4175746f20646973747269627574696f6e2064697361626c6564000000000000604482015260640161076f565b610b65612df2565b60005a90505a611a4a90826132ca565b600f5550565b611a586124c7565b6003546040516001600160a01b038084169216907fb4fc4300b631bd1445d18184e73a1ecd94175d060825df1e146d0911c42acb0a90600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331480611ad757506003546001600160a01b031633145b611af35760405162461bcd60e51b815260040161076f906131dd565b6001600160a01b03919091166000908152601160205260409020805460ff1916911515919091179055565b6000546001600160a01b0316331480611b4157506003546001600160a01b031633145b611b5d5760405162461bcd60e51b815260040161076f906131dd565b62015180811015611bbe5760405162461bcd60e51b815260206004820152602560248201527f486f6c64696e6720706572696f64206d757374206265206174206c6561737420604482015264312064617960d81b606482015260840161076f565b6301e13380811115611c125760405162461bcd60e51b815260206004820152601760248201527f486f6c64696e6720706572696f6420746f6f206c6f6e67000000000000000000604482015260640161076f565b60078190556040518181527fc4199b1063ddc287299b827febcf79cb6e46cb21007e648c2db284160f7fca8c90602001610837565b611c4f6124c7565b611c57612791565b600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611ca5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cc99190613236565b905060008111611d115760405162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20776974686472617760681b604482015260640161076f565b6005546001600160a01b0316611d595760405162461bcd60e51b815260206004820152600d60248201526c15985d5b1d081b9bdd081cd95d609a1b604482015260640161076f565b6004805460055460405163a9059cbb60e01b81526001600160a01b039182169381019390935260248301849052169063a9059cbb906044016020604051808303816000875af1158015611db0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd491906132dd565b611e125760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161076f565b6005546040518281526001600160a01b03909116907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd96959060200160405180910390a250610b656001600255565b60178181548110611e6f57600080fd5b60009182526020909120600490910201805460018201546002830154600390930154919350919084565b611ea16124c7565b600180546001600160a01b0383166001600160a01b03199091168117909155611ed26000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60175460609080831115611f1c578092505b60008367ffffffffffffffff811115611f3757611f3761320a565b604051908082528060200260200182016040528015611f9357816020015b611f806040518060800160405280600081526020016000815260200160008152602001600081525090565b815260200190600190039081611f555790505b50905060005b8481101561202f57601781611faf6001866132ca565b611fb991906132ca565b81548110611fc957611fc9613220565b906000526020600020906004020160405180608001604052908160008201548152602001600182015481526020016002820154815260200160038201548152505082828151811061201c5761201c613220565b6020908102919091010152600101611f99565b509392505050565b60005a905060005b60155481101561209e576000601660006015848154811061206257612062613220565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905560010161203f565b506120ab60156000612f06565b60125460009067ffffffffffffffff8111156120c9576120c961320a565b6040519080825280602002602001820160405280156120f2578160200160208202803683370190505b5060125490915060009067ffffffffffffffff8111156121145761211461320a565b60405190808252806020026020018201604052801561213d578160200160208202803683370190505b5090506000805b6012548110156122565760006012828154811061216357612163613220565b6000918252602082200154600480546040516370a0823160e01b81526001600160a01b0393841692810183905291945091909116906370a0823190602401602060405180830381865afa1580156121be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e29190613236565b9050600654811061224c578186858151811061220057612200613220565b60200260200101906001600160a01b031690816001600160a01b0316815250508085858151811061223357612233613220565b60209081029190910101528361224881613265565b9450505b5050600101612144565b506000600e548211612268578161226c565b600e545b905060005b8181101561246d5780600061228782600161327e565b90505b848110156122d8578582815181106122a4576122a4613220565b60200260200101518682815181106122be576122be613220565b602002602001015111156122d0578091505b60010161228a565b508181146123ca578581815181106122f2576122f2613220565b602002602001015186838151811061230c5761230c613220565b602002602001015187848151811061232657612326613220565b6020026020010188848151811061233f5761233f613220565b6001600160a01b03938416602091820292909201015291169052845185908290811061236d5761236d613220565b602002602001015185838151811061238757612387613220565b60200260200101518684815181106123a1576123a1613220565b602002602001018784815181106123ba576123ba613220565b6020908102919091010191909152525b60158683815181106123de576123de613220565b60209081029190910181015182546001808201855560009485529284200180546001600160a01b0319166001600160a01b039092169190911790558751909160169189908690811061243257612432613220565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905550600101612271565b5042600b5560005a61247f90876132ca565b60155460408051918252602082018390529192507f4331e182fd71ae0b6bc14178f10c1457cefd3717c51bbbdea70c18e809338f6f91015b60405180910390a1505050505050565b6000546001600160a01b03163314610b655760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161076f565b600180546001600160a01b031916905561140a81612eb6565b6001600160a01b03811660009081526013602052604090205460ff1661140a57601280546001600160a01b038316600081815260146020908152604080832085905560018086019096557fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344490940180546001600160a01b0319168417905560139052828120805460ff1916909417909355905190917f9894d458cf29e8bc4eb7e591bac54b31dc90125dfa852474419972ab4347dd1291a250565b6001600160a01b03811660009081526013602052604090205460ff161561140a576001600160a01b038116600090815260146020526040812054601254909190612641906001906132ca565b90508082146126c95760006012828154811061265f5761265f613220565b600091825260209091200154601280546001600160a01b03909216925082918590811061268e5761268e613220565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559290911681526014909152604090208290555b60128054806126da576126da6132fa565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b038516825260148152604080832083905560138252808320805460ff19169055601690915290205460ff1615612758576001600160a01b0383166000908152601660205260409020805460ff191690555b6040516001600160a01b038416907fd9bc583d1445615d8b795b7374f03ff79efa83b6359a91331efd95e4cf023ab690600090a2505050565b60028054036127e25760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161076f565b60028055565b600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015612836573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061285a9190613236565b9050600081116128a45760405162461bcd60e51b81526020600482015260156024820152744e6f7468696e6720746f206469737472696275746560581b604482015260640161076f565b60008060005b84518110156129795760008582815181106128c7576128c7613220565b602002602001015190506128da8161116d565b1561297057600480546040516370a0823160e01b81526001600160a01b0384811693820193909352600092909116906370a0823190602401602060405180830381865afa15801561292f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129539190613236565b905061295f818661327e565b94508361296b81613265565b945050505b506001016128aa565b50600081116129c05760405162461bcd60e51b81526020600482015260136024820152724e6f20656c696769626c6520686f6c6465727360681b604482015260640161076f565b60008211612a065760405162461bcd60e51b81526020600482015260136024820152724e6f20656c696769626c652062616c616e636560681b604482015260640161076f565b6000805b8551811015612bf1576000868281518110612a2757612a27613220565b60200260200101519050612a3a8161116d565b15612be857600480546040516370a0823160e01b81526001600160a01b0384811693820193909352600092909116906370a0823190602401602060405180830381865afa158015612a8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab39190613236565b9050600086612ac2838a613291565b612acc91906132a8565b90508015612be5576004805460405163a9059cbb60e01b81526001600160a01b03868116938201939093526024810184905291169063a9059cbb906044016020604051808303816000875af1158015612b29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b4d91906132dd565b612b8b5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015260640161076f565b612b95818661327e565b60408051838152602081018590529081018990529095506001600160a01b038416907f5b0fcdc47159aa9efeb92e25a5569b782a00ba19a39ade84a2ae017bc8ce55c59060600160405180910390a25b50505b50600101612a0a565b506000612bfe82866132ca565b9050600081118015612c1a57506005546001600160a01b031615155b15612cde576004805460055460405163a9059cbb60e01b81526001600160a01b039182169381019390935260248301849052169063a9059cbb906044016020604051808303816000875af1158015612c76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c9a91906132dd565b612cde5760405162461bcd60e51b815260206004820152601560248201527415985d5b1d081d1c985b9cd9995c8819985a5b1959605a1b604482015260640161076f565b42600881905560408051608081018252918252602080830185815283830187815260608086018a81526017805460018101825560009190915296517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1560049098029788015592517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1687015590517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1786015590517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c189094019390935581518581529081018690529081018690527f8739ea584738c9982d7ea914ddf018402c622087a3ac9c4eddfdaafdefab134791016124b7565b612dfa612791565b601554612e495760405162461bcd60e51b815260206004820152601960248201527f4e6f20746f7020686f6c6465727320636f6e6669677572656400000000000000604482015260640161076f565b612eac6015805480602002602001604051908101604052809291908181526020018280548015612ea257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612e84575b50505050506127e8565b610b656001600255565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b508054600082559060005260206000209081019061140a91905b80821115612f345760008155600101612f20565b5090565b600060208284031215612f4a57600080fd5b5035919050565b60008151808452602080850194506020840160005b83811015612f8b5781516001600160a01b031687529582019590820190600101612f66565b509495945050505050565b606081526000612fa96060830186612f51565b82810360208481019190915285518083528682019282019060005b81811015612fe057845183529383019391830191600101612fc4565b50508481036040860152855180825290820192508186019060005b81811015613019578251151585529383019391830191600101612ffb565b509298975050505050505050565b801515811461140a57600080fd5b60006020828403121561304757600080fd5b813561305281613027565b9392505050565b80356001600160a01b038116811461307057600080fd5b919050565b60006020828403121561308757600080fd5b61305282613059565b600080604083850312156130a357600080fd5b6130ac83613059565b946020939093013593505050565b600080602083850312156130cd57600080fd5b823567ffffffffffffffff808211156130e557600080fd5b818501915085601f8301126130f957600080fd5b81358181111561310857600080fd5b8660208260051b850101111561311d57600080fd5b60209290920196919550909350505050565b6020815260006130526020830184612f51565b6000806040838503121561315557600080fd5b61315e83613059565b9150602083013561316e81613027565b809150509250929050565b602080825282518282018190526000919060409081850190868401855b828110156131d057815180518552868101518786015285810151868601526060908101519085015260809093019290850190600101613196565b5091979650505050505050565b6020808252601390820152724f6e6c79206f776e65722f74696d656c6f636b60681b604082015260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006020828403121561324857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000600182016132775761327761324f565b5060010190565b8082018082111561123b5761123b61324f565b808202811582820484141761123b5761123b61324f565b6000826132c557634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561123b5761123b61324f565b6000602082840312156132ef57600080fd5b815161305281613027565b634e487b7160e01b600052603160045260246000fdfea26469706673582212209d158d7369c22b3824eb5db74ab2ae061a7b698ba5685701532be7410f4b34a864736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001eebd99150bbbdadab8f55aeed07a9ce2ee78e2f
-----Decoded View---------------
Arg [0] : _token (address): 0x1Eebd99150BBBdadAb8F55aEEd07A9cE2ee78e2F
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000001eebd99150bbbdadab8f55aeed07a9ce2ee78e2f
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.