ERC-20
Overview
Max Total Supply
363,433.66998281 Game Theory (gametheory.tech): THEORY Token
Holders
231
Market
Price
$0.00 @ 0.000000 FTM
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000166905260948096 Game Theory (gametheory.tech): THEORY TokenValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
Theory
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol"; import "./Authorizable.sol"; import "./interfaces/IDistributable.sol"; contract Theory is ERC20Burnable, Authorizable { using SafeMath for uint256; // TOTAL MAX SUPPLY = farming allocation + 9.24369748% + 8.40336134% THEORYs. This is percentage of the allocations to the farming supply for Tomb Finance (59500 for Tomb, about 308917 for us). This comes out to about 363,431. // INITIAL PRICE SHOULD BE LIKE 3SHARES: $26000000/TOTAL_MAX_SUPPLY = $26000000/363432 = approximately $71.54 uint256 public constant COMMUNITY_FUND_POOL_ALLOCATION = 28555.3529 ether; uint256 public constant DEV_FUND_POOL_ALLOCATION = 25959.4118 ether; uint256 public constant VESTING_DURATION = 365 days; uint256 public startTime; uint256 public endTime; uint256 public communityFundRewardRate; uint256 public devFundRewardRate; address public communityFund; address public devFund; address public distributed; uint256 public communityFundLastClaimed; uint256 public devFundLastClaimed; bool public rewardPoolDistributed = false; uint256 private _totalLock; uint256 public lockFromTime; uint256 public lockToTime; mapping(address => bool) public noUnlockBeforeTransfer; mapping(address => uint256) private _locks; mapping(address => uint256) private _lastUnlockTime; // Events. event Lock(address indexed to, uint256 value); event Unlock(address indexed to, uint256 value); constructor(uint256 _startTime, address _communityFund, address _devFund, uint256 _lockFromTime, uint256 _lockToTime) public ERC20("THEORY", "Game Theory (gametheory.tech): THEORY Token") { _mint(msg.sender, 1 ether); // mint 1 share for initial liquidity pool deployment _mint(address(this), COMMUNITY_FUND_POOL_ALLOCATION); // Lock up allocation for community fund. We do this initially so that supply never increases for THEORY, only GAME. _mint(address(this), DEV_FUND_POOL_ALLOCATION); // Lock up allocation for dev fund. We do this initially so that supply never increases for THEORY, only GAME. startTime = _startTime; endTime = startTime + VESTING_DURATION; communityFundLastClaimed = startTime; devFundLastClaimed = startTime; communityFundRewardRate = COMMUNITY_FUND_POOL_ALLOCATION.div(VESTING_DURATION); devFundRewardRate = DEV_FUND_POOL_ALLOCATION.div(VESTING_DURATION); require(_devFund != address(0), "Address cannot be 0"); devFund = _devFund; //require(_communityFund != address(0), "Address cannot be 0"); communityFund = _communityFund; lockFromTime = _lockFromTime; lockToTime = _lockToTime; } modifier onlyAuthorizedOrDistributed() { require(authorized[msg.sender] || owner() == msg.sender || operator() == msg.sender || distributed == msg.sender, "caller is not authorized"); _; } function setTreasuryFund(address _communityFund) external { require(msg.sender == devFund, "!dev"); communityFund = _communityFund; } function setDevFund(address _devFund) external { require(msg.sender == devFund, "!dev"); require(_devFund != address(0), "zero"); devFund = _devFund; } function setNoUnlockBeforeTransfer(bool _noUnlockBeforeTransfer) public { noUnlockBeforeTransfer[msg.sender] = _noUnlockBeforeTransfer; } // If for some reason it is causing problems for a specific user, they can turn it off themselves. function _transfer(address sender, address recipient, uint256 amount) internal override { if(!noUnlockBeforeTransfer[sender] && _locks[sender] > 0) { uint256 amountToUnlock = canUnlockAmount(sender); _unlock(sender, amountToUnlock); } super._transfer(sender, recipient, amount); } function unclaimedTreasuryFund() public view returns (uint256 _pending) { uint256 _now = block.timestamp; if (_now > endTime) _now = endTime; if (communityFundLastClaimed >= _now) return 0; _pending = _now.sub(communityFundLastClaimed).mul(communityFundRewardRate); } function unclaimedDevFund() public view returns (uint256 _pending) { uint256 _now = block.timestamp; if (_now > endTime) _now = endTime; if (devFundLastClaimed >= _now) return 0; _pending = _now.sub(devFundLastClaimed).mul(devFundRewardRate); } /** * @dev Claim pending rewards to community and dev fund */ function claimRewards() external { uint256 _pending = unclaimedTreasuryFund(); if (_pending > 0 && communityFund != address(0)) { _transfer(address(this), communityFund, _pending); communityFundLastClaimed = block.timestamp; } _pending = unclaimedDevFund(); if (_pending > 0 && devFund != address(0)) { _transfer(address(this), devFund, _pending); devFundLastClaimed = block.timestamp; } } /** * @notice distribute to reward pool (only once) */ function distributeReward(address _farmingIncentiveFund) external onlyAuthorized { // Can only do this once, so no point in having it be only operator. We can switch to treasury operator before even distributing the reward! require(!rewardPoolDistributed, "only can distribute once"); require(_farmingIncentiveFund != address(0), "!_farmingIncentiveFund"); rewardPoolDistributed = true; distributed = _farmingIncentiveFund; _mint(_farmingIncentiveFund, IDistributable(_farmingIncentiveFund).getRequiredAllocation()); } function burn(uint256 amount) public override { super.burn(amount); } function governanceRecoverUnsupported( IERC20 _token, uint256 _amount, address _to ) external onlyAuthorized { require(msg.sender == operator() || _token != IERC20(this), "Invalid permissions."); // Only the operator can transfer this (though this will probably never be used as the treasury can't call this). We can now recover any tokens accidentally sent to this address. _token.transfer(_to, _amount); } // Update the lockFromTime function lockFromUpdate(uint256 _newLockFrom) public onlyAuthorized { uint256 lockTime = lockToTime - lockFromTime; lockFromTime = _newLockFrom; lockToTime = _newLockFrom.add(lockTime); //To respect the 365 day limit, we also change the destination time at the same moment. } // Update the lockToTime function lockToUpdate(uint256 _newLockTo) public onlyAuthorized { require(_newLockTo > lockFromTime, "Lock to must be greater than lock from."); uint256 lockTime = _newLockTo - lockFromTime; require(lockTime <= 365 days, "Lock time must not be greater than 365 days."); lockToTime = _newLockTo; } function totalBalanceOf(address _holder) public view returns (uint256) { return _locks[_holder].add(balanceOf(_holder)); } function lockOf(address _holder) public view returns (uint256) { return _locks[_holder]; } function lastUnlockTime(address _holder) public view returns (uint256) { return _lastUnlockTime[_holder]; } function totalLock() public view returns (uint256) { return _totalLock; } function unlockedSupply() public view returns (uint256) { return totalSupply().sub(_totalLock); } function lockedSupply() public view returns (uint256) { return totalLock(); } function circulatingSupply() public view returns (uint256) { return totalSupply().sub(balanceOf(distributed)); } function lock(address _holder, uint256 _amount) public onlyAuthorizedOrDistributed { require(_holder != address(0), "Cannot lock to the zero address"); require(_amount <= balanceOf(_holder), "Lock amount over balance"); require(msg.sender == operator() || msg.sender == distributed || _locks[_holder].add(_amount) <= totalBalanceOf(_holder).mul(95).div(100), "Lock amount over 95% of total balance"); if(noUnlockBeforeTransfer[_holder] && _locks[_holder] > 0) //Before we lock more, make sure we unlock everything we can, even if noUnlockBeforeTransfer is set. { uint256 amount = canUnlockAmount(_holder); _unlock(_holder, amount); } _transfer(_holder, address(this), _amount); _locks[_holder] = _locks[_holder].add(_amount); _totalLock = _totalLock.add(_amount); if (_lastUnlockTime[_holder] < lockFromTime) { _lastUnlockTime[_holder] = lockFromTime; } emit Lock(_holder, _amount); } function canUnlockAmount(address _holder) public view returns (uint256) { if (block.timestamp <= lockFromTime) { return 0; } else if (block.timestamp >= lockToTime) { return _locks[_holder]; } else { uint256 releaseTime = block.timestamp.sub(_lastUnlockTime[_holder]); uint256 numberLockTime = lockToTime.sub(_lastUnlockTime[_holder]); return _locks[_holder].mul(releaseTime).div(numberLockTime); } } // Unlocks some locked tokens immediately. function unlockForUser(address account, uint256 amount) public onlyAuthorized { // First we need to unlock all tokens the address is eligible for. uint256 pendingLocked = canUnlockAmount(account); if (pendingLocked > 0) { _unlock(account, pendingLocked); } // Now that that's done, we can unlock the extra amount passed in. _unlock(account, amount); } function unlock() public { uint256 amount = canUnlockAmount(msg.sender); _unlock(msg.sender, amount); } function _unlock(address holder, uint256 amount) internal { require(_locks[holder] > 0, "Insufficient locked tokens"); // Make sure they aren't trying to unlock more than they have locked. if (amount > _locks[holder]) { amount = _locks[holder]; } // If the amount is greater than the total balance, set it to max. if (amount > balanceOf(address(this))) { amount = balanceOf(address(this)); } _transfer(address(this), holder, amount); _locks[holder] = _locks[holder].sub(amount); _lastUnlockTime[holder] = block.timestamp; _totalLock = _totalLock.sub(amount); emit Unlock(holder, amount); } // This function is for dev address migrate all balance to a multi sig address // function transferAll(address _to) public onlyAuthorized { // _locks[_to] = _locks[_to].add(_locks[msg.sender]); // // if (_lastUnlockTime[_to] < lockFromTime) { // _lastUnlockTime[_to] = lockFromTime; // } // // if (_lastUnlockTime[_to] < _lastUnlockTime[msg.sender]) { // _lastUnlockTime[_to] = _lastUnlockTime[msg.sender]; // } // // _locks[msg.sender] = 0; // _lastUnlockTime[msg.sender] = 0; // // _transfer(msg.sender, _to, balanceOf(msg.sender)); // } // Actually, we don't need this anymore. We're vested but the vested amount isn't locked in the same way as DeFi Kingdoms. }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../utils/Context.sol"; import "./ERC20.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { using SafeMath for uint256; /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), decreasedAllowance); _burn(account, amount); } }
pragma solidity 0.6.12; import "./owner/Operator.sol"; contract Authorizable is Operator { mapping(address => bool) public authorized; modifier onlyAuthorized() { require(authorized[msg.sender] || owner() == msg.sender || operator() == msg.sender, "caller is not authorized"); _; } function addAuthorized(address _toAdd) public onlyOwner { authorized[_toAdd] = true; } function removeAuthorized(address _toRemove) public onlyOwner { require(_toRemove != msg.sender); authorized[_toRemove] = false; } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; interface IDistributable { function getRequiredAllocation() external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../utils/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts/GSN/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Operator is Context, Ownable { address private _operator; event OperatorTransferred(address indexed previousOperator, address indexed newOperator); constructor() internal { _operator = _msgSender(); emit OperatorTransferred(address(0), _operator); } function operator() public view returns (address) { return _operator; } modifier onlyOperator() { require(_operator == msg.sender, "operator: caller is not the operator"); _; } function isOperator() public view returns (bool) { return _msgSender() == _operator; } function transferOperator(address newOperator_) public onlyOperator { // Not sure why owner is allowed to change operator. For security reasons, the operator will be the only one allowed to do this. This way we can change parameters without being able to do many scary things. _transferOperator(newOperator_); } function _transferOperator(address newOperator_) internal { require(newOperator_ != address(0), "operator: zero address given for new operator"); emit OperatorTransferred(address(0), newOperator_); _operator = newOperator_; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/Context.sol";
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"address","name":"_communityFund","type":"address"},{"internalType":"address","name":"_devFund","type":"address"},{"internalType":"uint256","name":"_lockFromTime","type":"uint256"},{"internalType":"uint256","name":"_lockToTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Lock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Unlock","type":"event"},{"inputs":[],"name":"COMMUNITY_FUND_POOL_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEV_FUND_POOL_ALLOCATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VESTING_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_toAdd","type":"address"}],"name":"addAuthorized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"}],"name":"canUnlockAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"communityFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityFundLastClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityFundRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFundLastClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFundRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_farmingIncentiveFund","type":"address"}],"name":"distributeReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributed","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"}],"name":"lastUnlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockFromTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLockFrom","type":"uint256"}],"name":"lockFromUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"}],"name":"lockOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockToTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLockTo","type":"uint256"}],"name":"lockToUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"noUnlockBeforeTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_toRemove","type":"address"}],"name":"removeAuthorized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPoolDistributed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_devFund","type":"address"}],"name":"setDevFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_noUnlockBeforeTransfer","type":"bool"}],"name":"setNoUnlockBeforeTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_communityFund","type":"address"}],"name":"setTreasuryFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"}],"name":"totalBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unclaimedDevFund","outputs":[{"internalType":"uint256","name":"_pending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unclaimedTreasuryFund","outputs":[{"internalType":"uint256","name":"_pending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unlockForUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526011805460ff191690553480156200001b57600080fd5b5060405162002f1738038062002f17833981810160405260a08110156200004157600080fd5b5080516020808301516040808501516060808701516080909701518351808501855260068152655448454f525960d01b818801528451928301909452602b8083529697949692959093929062002eec908301398151620000a9906003906020850190620004ac565b508051620000bf906004906020840190620004ac565b50506005805460ff19166012179055506000620000db620002c9565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200013b620002c9565b600680546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a36200019b33670de0b6b3a7640000620002cd565b620001b13069060bfd20d9ce64884000620002cd565b620001c73069057f4335653ddbbd8000620002cd565b60088590556301e13380808601600955600f8690556010869055620002049069060bfd20d9ce6488400090620003dc602090811b62001dde17901c565b600a556200022d69057f4335653ddbbd80006301e13380620003dc602090811b62001dde17901c565b600b556001600160a01b0383166200028c576040805162461bcd60e51b815260206004820152601360248201527f416464726573732063616e6e6f74206265203000000000000000000000000000604482015290519081900360640190fd5b600d80546001600160a01b039485166001600160a01b031991821617909155600c8054959094169416939093179091556013556014555062000548565b3390565b6001600160a01b03821662000329576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620003376000838362000445565b62000353816002546200044a60201b62001e451790919060201c565b6002556001600160a01b038216600090815260208181526040909120546200038691839062001e456200044a821b17901c565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600080821162000433576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816200043d57fe5b049392505050565b505050565b600082820183811015620004a5576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004ef57805160ff19168380011785556200051f565b828001600101855582156200051f579182015b828111156200051f57825182559160200191906001019062000502565b506200052d92915062000531565b5090565b5b808211156200052d576000815560010162000532565b61299480620005586000396000f3fe608060405234801561001057600080fd5b50600436106103985760003560e01c80634cfc4d30116101e9578063a69df4b51161010f578063ca5c7b91116100ad578063f2fde38b1161007c578063f2fde38b14610960578063f746b71814610986578063f84b903e146109ac578063fd3d27b8146109b457610398565b8063ca5c7b91146108de578063cf1c316a146108e6578063dc7887a41461090c578063dd62ed3e1461093257610398565b8063ae4db919116100e9578063ae4db91914610849578063af2b0f661461086f578063b91816111461089b578063c38533c6146108c157610398565b8063a69df4b51461080d578063a9059cbb14610815578063abb4b1be1461084157610398565b806378e97925116101875780639358928b116101565780639358928b146107c957806395d89b41146107d15780639662676c146107d9578063a457c2d7146107e157610398565b806378e979251461078557806379cc67901461078d5780638da5cb5b146107b95780639262c5b7146107c157610398565b8063570ca735116101c3578063570ca735146107295780635a46d3b51461073157806370a0823114610757578063715018a61461077d57610398565b80634cfc4d30146106e35780634f337dd5146106eb57806354575af4146106f357610398565b80632c07a624116102ce5780633bba8eed1161026c57806344cdc4541161023b57806344cdc45414610669578063485d7d94146106715780634a4548ef146106975780634b0ee02a146106bd57610398565b80633bba8eed1461063457806342966c681461063c5780634390d2a8146106595780634456eda21461066157610398565b80633197cbb6116102a85780633197cbb6146105f0578063372500ab146105f857806339509351146106005780633a1aae351461062c57610398565b80632c07a624146105c25780632e3367ce146105ca578063313ce567146105d257610398565b8063177647821161033b578063202b176011610315578063202b17601461051457806323b872dd1461053a578063282d3fdf1461057057806329605e771461059c57610398565b806317764782146104e557806318160ddd146104ed5780631a19920d146104f557610398565b8063092193ab11610377578063092193ab14610458578063095ea7b3146104805780630cb285e2146104c057806314a8cea3146104dd57610398565b8062f380f41461039d57806304017315146103c157806306fdde03146103db575b600080fd5b6103a56109bc565b604080516001600160a01b039092168252519081900360200190f35b6103c96109cb565b60408051918252519081900360200190f35b6103e36109d1565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561041d578181015183820152602001610405565b50505050905090810190601f16801561044a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61047e6004803603602081101561046e57600080fd5b50356001600160a01b0316610a68565b005b6104ac6004803603604081101561049657600080fd5b506001600160a01b038135169060200135610c38565b604080519115158252519081900360200190f35b61047e600480360360208110156104d657600080fd5b5035610c56565b6103c9610d6a565b6103c9610d70565b6103c9610dbe565b61047e6004803603602081101561050b57600080fd5b50351515610dc4565b6103c96004803603602081101561052a57600080fd5b50356001600160a01b0316610de4565b6104ac6004803603606081101561055057600080fd5b506001600160a01b03813581169160208101359091169060400135610ea9565b61047e6004803603604081101561058657600080fd5b506001600160a01b038135169060200135610f30565b61047e600480360360208110156105b257600080fd5b50356001600160a01b0316611264565b6103c96112b6565b6103c96112f8565b6105da6112fe565b6040805160ff9092168252519081900360200190f35b6103c9611307565b61047e61130d565b6104ac6004803603604081101561061657600080fd5b506001600160a01b03813516906020013561139d565b6103c96113eb565b6103c96113f1565b61047e6004803603602081101561065257600080fd5b50356113ff565b6103a5611408565b6104ac611417565b6103c961143d565b61047e6004803603602081101561068757600080fd5b50356001600160a01b0316611443565b6104ac600480360360208110156106ad57600080fd5b50356001600160a01b03166114dc565b6103c9600480360360208110156106d357600080fd5b50356001600160a01b03166114f1565b6103c961151e565b6103c9611526565b61047e6004803603606081101561070957600080fd5b506001600160a01b03813581169160208101359160409091013516611534565b6103a56116ba565b6103c96004803603602081101561074757600080fd5b50356001600160a01b03166116c9565b6103c96004803603602081101561076d57600080fd5b50356001600160a01b03166116e4565b61047e6116ff565b6103c96117b1565b61047e600480360360408110156107a357600080fd5b506001600160a01b0381351690602001356117b7565b6103a5611811565b6103c9611825565b6103c961182b565b6103e361185a565b6104ac6118bb565b6104ac600480360360408110156107f757600080fd5b506001600160a01b0381351690602001356118c4565b61047e61192c565b6104ac6004803603604081101561082b57600080fd5b506001600160a01b038135169060200135611943565b6103c9611957565b61047e6004803603602081101561085f57600080fd5b50356001600160a01b031661195d565b61047e6004803603604081101561088557600080fd5b506001600160a01b038135169060200135611a0b565b6104ac600480360360208110156108b157600080fd5b50356001600160a01b0316611ab8565b61047e600480360360208110156108d757600080fd5b5035611acd565b6103c9611b71565b61047e600480360360208110156108fc57600080fd5b50356001600160a01b0316611b7b565b6103c96004803603602081101561092257600080fd5b50356001600160a01b0316611c01565b6103c96004803603604081101561094857600080fd5b506001600160a01b0381358116916020013516611c1c565b61047e6004803603602081101561097657600080fd5b50356001600160a01b0316611c47565b61047e6004803603602081101561099c57600080fd5b50356001600160a01b0316611d55565b6103a5611dbf565b6103c9611dce565b600c546001600160a01b031681565b60105481565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a5d5780601f10610a3257610100808354040283529160200191610a5d565b820191906000526020600020905b815481529060010190602001808311610a4057829003601f168201915b505050505090505b90565b3360009081526007602052604090205460ff1680610a95575033610a8a611811565b6001600160a01b0316145b80610aaf575033610aa46116ba565b6001600160a01b0316145b610aee576040805162461bcd60e51b81526020600482015260186024820152600080516020612843833981519152604482015290519081900360640190fd5b60115460ff1615610b46576040805162461bcd60e51b815260206004820152601860248201527f6f6e6c792063616e2064697374726962757465206f6e63650000000000000000604482015290519081900360640190fd5b6001600160a01b038116610b9a576040805162461bcd60e51b81526020600482015260166024820152750857d9985c9b5a5b99d25b98d95b9d1a5d99519d5b9960521b604482015290519081900360640190fd5b6011805460ff19166001179055600e80546001600160a01b0383166001600160a01b03199091168117909155604080516356302ba760e11b81529051610c35928492909163ac60574e91600480820192602092909190829003018186803b158015610c0457600080fd5b505afa158015610c18573d6000803e3d6000fd5b505050506040513d6020811015610c2e57600080fd5b5051611ea6565b50565b6000610c4c610c45611f96565b8484611f9a565b5060015b92915050565b3360009081526007602052604090205460ff1680610c83575033610c78611811565b6001600160a01b0316145b80610c9d575033610c926116ba565b6001600160a01b0316145b610cdc576040805162461bcd60e51b81526020600482015260186024820152600080516020612843833981519152604482015290519081900360640190fd5b6013548111610d1c5760405162461bcd60e51b81526004018080602001828103825260278152602001806127866027913960400191505060405180910390fd5b60135481036301e13380811115610d645760405162461bcd60e51b815260040180806020018281038252602c815260200180612734602c913960400191505060405180910390fd5b50601455565b60135481565b6009546000904290811115610d8457506009545b80600f5410610d97576000915050610a65565b610db8600a54610db2600f548461208690919063ffffffff16565b906120e3565b91505090565b60025490565b336000908152601560205260409020805460ff1916911515919091179055565b60006013544211610df757506000610ea4565b6014544210610e1f57506001600160a01b038116600090815260166020526040902054610ea4565b6001600160a01b038216600090815260176020526040812054610e43904290612086565b6001600160a01b0384166000908152601760205260408120546014549293509091610e6d91612086565b6001600160a01b038516600090815260166020526040902054909150610e9f908290610e9990856120e3565b90611dde565b925050505b919050565b6000610eb684848461213c565b610f2684610ec2611f96565b610f21856040518060600160405280602881526020016127fb602891396001600160a01b038a16600090815260016020526040812090610f00611f96565b6001600160a01b0316815260208101919091526040016000205491906121a5565b611f9a565b5060019392505050565b3360009081526007602052604090205460ff1680610f5d575033610f52611811565b6001600160a01b0316145b80610f77575033610f6c6116ba565b6001600160a01b0316145b80610f8c5750600e546001600160a01b031633145b610fcb576040805162461bcd60e51b81526020600482015260186024820152600080516020612843833981519152604482015290519081900360640190fd5b6001600160a01b038216611026576040805162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74206c6f636b20746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61102f826116e4565b811115611083576040805162461bcd60e51b815260206004820152601860248201527f4c6f636b20616d6f756e74206f7665722062616c616e63650000000000000000604482015290519081900360640190fd5b61108b6116ba565b6001600160a01b0316336001600160a01b031614806110b45750600e546001600160a01b031633145b806110f357506110cd6064610e99605f610db2866114f1565b6001600160a01b0383166000908152601660205260409020546110f09083611e45565b11155b61112e5760405162461bcd60e51b81526004018080602001828103825260258152602001806128f16025913960400191505060405180910390fd5b6001600160a01b03821660009081526015602052604090205460ff16801561116d57506001600160a01b03821660009081526016602052604090205415155b1561118b57600061117d83610de4565b9050611189838261223c565b505b61119682308361213c565b6001600160a01b0382166000908152601660205260409020546111b99082611e45565b6001600160a01b0383166000908152601660205260409020556012546111df9082611e45565b6012556013546001600160a01b0383166000908152601760205260409020541015611221576013546001600160a01b0383166000908152601760205260409020555b6040805182815290516001600160a01b038416917f625fed9875dada8643f2418b838ae0bc78d9a148a18eee4ee1979ff0f3f5d427919081900360200190a25050565b6006546001600160a01b031633146112ad5760405162461bcd60e51b81526004018080602001828103825260248152602001806128876024913960400191505060405180910390fd5b610c35816123a5565b60095460009042908111156112ca57506009545b80601054106112dd576000915050610a65565b610db8600b54610db26010548461208690919063ffffffff16565b600b5481565b60055460ff1690565b60095481565b6000611317610d70565b90506000811180156113335750600c546001600160a01b031615155b1561135557600c546113509030906001600160a01b03168361213c565b42600f555b61135d6112b6565b90506000811180156113795750600d546001600160a01b031615155b15610c3557600d546113969030906001600160a01b03168361213c565b4260105550565b6000610c4c6113aa611f96565b84610f2185600160006113bb611f96565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611e45565b60125490565b69060bfd20d9ce6488400081565b610c3581612442565b600d546001600160a01b031681565b6006546000906001600160a01b031661142e611f96565b6001600160a01b031614905090565b600a5481565b61144b611f96565b6001600160a01b031661145c611811565b6001600160a01b0316146114a5576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b6001600160a01b0381163314156114bb57600080fd5b6001600160a01b03166000908152600760205260409020805460ff19169055565b60156020526000908152604090205460ff1681565b6000610c506114ff836116e4565b6001600160a01b03841660009081526016602052604090205490611e45565b6301e1338081565b69057f4335653ddbbd800081565b3360009081526007602052604090205460ff1680611561575033611556611811565b6001600160a01b0316145b8061157b5750336115706116ba565b6001600160a01b0316145b6115ba576040805162461bcd60e51b81526020600482015260186024820152600080516020612843833981519152604482015290519081900360640190fd5b6115c26116ba565b6001600160a01b0316336001600160a01b031614806115ea57506001600160a01b0383163014155b611632576040805162461bcd60e51b815260206004820152601460248201527324b73b30b634b2103832b936b4b9b9b4b7b7399760611b604482015290519081900360640190fd5b826001600160a01b031663a9059cbb82846040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561168957600080fd5b505af115801561169d573d6000803e3d6000fd5b505050506040513d60208110156116b357600080fd5b5050505050565b6006546001600160a01b031690565b6001600160a01b031660009081526016602052604090205490565b6001600160a01b031660009081526020819052604090205490565b611707611f96565b6001600160a01b0316611718611811565b6001600160a01b031614611761576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60085481565b60006117ee82604051806060016040528060248152602001612863602491396117e7866117e2611f96565b611c1c565b91906121a5565b9050611802836117fc611f96565b83611f9a565b61180c838361244f565b505050565b60055461010090046001600160a01b031690565b60145481565b600e5460009061185590611847906001600160a01b03166116e4565b61184f610dbe565b90612086565b905090565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a5d5780601f10610a3257610100808354040283529160200191610a5d565b60115460ff1681565b6000610c4c6118d1611f96565b84610f218560405180606001604052806025815260200161293a60259139600160006118fb611f96565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906121a5565b600061193733610de4565b9050610c35338261223c565b6000610c4c611950611f96565b848461213c565b600f5481565b600d546001600160a01b031633146119a5576040805162461bcd60e51b8152602060048083019190915260248201526310b232bb60e11b604482015290519081900360640190fd5b6001600160a01b0381166119e9576040805162461bcd60e51b815260206004808301919091526024820152637a65726f60e01b604482015290519081900360640190fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526007602052604090205460ff1680611a38575033611a2d611811565b6001600160a01b0316145b80611a52575033611a476116ba565b6001600160a01b0316145b611a91576040805162461bcd60e51b81526020600482015260186024820152600080516020612843833981519152604482015290519081900360640190fd5b6000611a9c83610de4565b90508015611aae57611aae838261223c565b61180c838361223c565b60076020526000908152604090205460ff1681565b3360009081526007602052604090205460ff1680611afa575033611aef611811565b6001600160a01b0316145b80611b14575033611b096116ba565b6001600160a01b0316145b611b53576040805162461bcd60e51b81526020600482015260186024820152600080516020612843833981519152604482015290519081900360640190fd5b60138054601454918390559003611b6a8282611e45565b6014555050565b60006118556113eb565b611b83611f96565b6001600160a01b0316611b94611811565b6001600160a01b031614611bdd576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6001600160a01b031660009081526017602052604090205490565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611c4f611f96565b6001600160a01b0316611c60611811565b6001600160a01b031614611ca9576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b6001600160a01b038116611cee5760405162461bcd60e51b81526004018080602001828103825260268152602001806126ec6026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600d546001600160a01b03163314611d9d576040805162461bcd60e51b8152602060048083019190915260248201526310b232bb60e11b604482015290519081900360640190fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600e546001600160a01b031681565b600061185560125461184f610dbe565b6000808211611e34576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611e3d57fe5b049392505050565b600082820183811015611e9f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216611f01576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611f0d6000838361180c565b600254611f1a9082611e45565b6002556001600160a01b038216600090815260208190526040902054611f409082611e45565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b3390565b6001600160a01b038316611fdf5760405162461bcd60e51b81526004018080602001828103825260248152602001806129166024913960400191505060405180910390fd5b6001600160a01b0382166120245760405162461bcd60e51b81526004018080602001828103825260228152602001806127126022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000828211156120dd576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000826120f257506000610c50565b828202828482816120ff57fe5b0414611e9f5760405162461bcd60e51b81526004018080602001828103825260218152602001806127da6021913960400191505060405180910390fd5b6001600160a01b03831660009081526015602052604090205460ff1615801561217c57506001600160a01b03831660009081526016602052604090205415155b1561219a57600061218c84610de4565b9050612198848261223c565b505b61180c83838361254b565b600081848411156122345760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156121f95781810151838201526020016121e1565b50505050905090810190601f1680156122265780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166000908152601660205260409020546122a6576040805162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e74206c6f636b656420746f6b656e73000000000000604482015290519081900360640190fd5b6001600160a01b0382166000908152601660205260409020548111156122e157506001600160a01b0381166000908152601660205260409020545b6122ea306116e4565b8111156122fd576122fa306116e4565b90505b61230830838361213c565b6001600160a01b03821660009081526016602052604090205461232b9082612086565b6001600160a01b038316600090815260166020908152604080832093909355601790522042905560125461235f9082612086565b6012556040805182815290516001600160a01b038416917f6381d9813cabeb57471b5a7e05078e64845ccdb563146a6911d536f24ce960f1919081900360200190a25050565b6001600160a01b0381166123ea5760405162461bcd60e51b815260040180806020018281038252602d8152602001806127ad602d913960400191505060405180910390fd5b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b610c3561244d611f96565b825b6001600160a01b0382166124945760405162461bcd60e51b81526004018080602001828103825260218152602001806128ab6021913960400191505060405180910390fd5b6124a08260008361180c565b6124dd816040518060600160405280602281526020016126ca602291396001600160a01b03851660009081526020819052604090205491906121a5565b6001600160a01b0383166000908152602081905260409020556002546125039082612086565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b0383166125905760405162461bcd60e51b81526004018080602001828103825260258152602001806128cc6025913960400191505060405180910390fd5b6001600160a01b0382166125d55760405162461bcd60e51b81526004018080602001828103825260238152602001806126a76023913960400191505060405180910390fd5b6125e083838361180c565b61261d81604051806060016040528060268152602001612760602691396001600160a01b03861660009081526020819052604090205491906121a5565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461264c9082611e45565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f20616464726573734c6f636b2074696d65206d757374206e6f742062652067726561746572207468616e2033363520646179732e45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654c6f636b20746f206d7573742062652067726561746572207468616e206c6f636b2066726f6d2e6f70657261746f723a207a65726f206164647265737320676976656e20666f72206e6577206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657263616c6c6572206973206e6f7420617574686f72697a6564000000000000000045524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e63656f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f7245524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f20616464726573734c6f636b20616d6f756e74206f76657220393525206f6620746f74616c2062616c616e636545524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212205536432bd73ca21e89969bf422daa77d4448bd96dd2c2c50bb8730d20874b22164736f6c634300060c003347616d65205468656f7279202867616d657468656f72792e74656368293a205448454f525920546f6b656e00000000000000000000000000000000000000000000000000000000623daec000000000000000000000000090ded1c9c35f06b7239429939832f7ab896d0e0600000000000000000000000029a92c81795d589b32e98fd119568e738ae5952b00000000000000000000000000000000000000000000000000000000641ee24000000000000000000000000000000000000000000000000000000000660015c0
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103985760003560e01c80634cfc4d30116101e9578063a69df4b51161010f578063ca5c7b91116100ad578063f2fde38b1161007c578063f2fde38b14610960578063f746b71814610986578063f84b903e146109ac578063fd3d27b8146109b457610398565b8063ca5c7b91146108de578063cf1c316a146108e6578063dc7887a41461090c578063dd62ed3e1461093257610398565b8063ae4db919116100e9578063ae4db91914610849578063af2b0f661461086f578063b91816111461089b578063c38533c6146108c157610398565b8063a69df4b51461080d578063a9059cbb14610815578063abb4b1be1461084157610398565b806378e97925116101875780639358928b116101565780639358928b146107c957806395d89b41146107d15780639662676c146107d9578063a457c2d7146107e157610398565b806378e979251461078557806379cc67901461078d5780638da5cb5b146107b95780639262c5b7146107c157610398565b8063570ca735116101c3578063570ca735146107295780635a46d3b51461073157806370a0823114610757578063715018a61461077d57610398565b80634cfc4d30146106e35780634f337dd5146106eb57806354575af4146106f357610398565b80632c07a624116102ce5780633bba8eed1161026c57806344cdc4541161023b57806344cdc45414610669578063485d7d94146106715780634a4548ef146106975780634b0ee02a146106bd57610398565b80633bba8eed1461063457806342966c681461063c5780634390d2a8146106595780634456eda21461066157610398565b80633197cbb6116102a85780633197cbb6146105f0578063372500ab146105f857806339509351146106005780633a1aae351461062c57610398565b80632c07a624146105c25780632e3367ce146105ca578063313ce567146105d257610398565b8063177647821161033b578063202b176011610315578063202b17601461051457806323b872dd1461053a578063282d3fdf1461057057806329605e771461059c57610398565b806317764782146104e557806318160ddd146104ed5780631a19920d146104f557610398565b8063092193ab11610377578063092193ab14610458578063095ea7b3146104805780630cb285e2146104c057806314a8cea3146104dd57610398565b8062f380f41461039d57806304017315146103c157806306fdde03146103db575b600080fd5b6103a56109bc565b604080516001600160a01b039092168252519081900360200190f35b6103c96109cb565b60408051918252519081900360200190f35b6103e36109d1565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561041d578181015183820152602001610405565b50505050905090810190601f16801561044a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61047e6004803603602081101561046e57600080fd5b50356001600160a01b0316610a68565b005b6104ac6004803603604081101561049657600080fd5b506001600160a01b038135169060200135610c38565b604080519115158252519081900360200190f35b61047e600480360360208110156104d657600080fd5b5035610c56565b6103c9610d6a565b6103c9610d70565b6103c9610dbe565b61047e6004803603602081101561050b57600080fd5b50351515610dc4565b6103c96004803603602081101561052a57600080fd5b50356001600160a01b0316610de4565b6104ac6004803603606081101561055057600080fd5b506001600160a01b03813581169160208101359091169060400135610ea9565b61047e6004803603604081101561058657600080fd5b506001600160a01b038135169060200135610f30565b61047e600480360360208110156105b257600080fd5b50356001600160a01b0316611264565b6103c96112b6565b6103c96112f8565b6105da6112fe565b6040805160ff9092168252519081900360200190f35b6103c9611307565b61047e61130d565b6104ac6004803603604081101561061657600080fd5b506001600160a01b03813516906020013561139d565b6103c96113eb565b6103c96113f1565b61047e6004803603602081101561065257600080fd5b50356113ff565b6103a5611408565b6104ac611417565b6103c961143d565b61047e6004803603602081101561068757600080fd5b50356001600160a01b0316611443565b6104ac600480360360208110156106ad57600080fd5b50356001600160a01b03166114dc565b6103c9600480360360208110156106d357600080fd5b50356001600160a01b03166114f1565b6103c961151e565b6103c9611526565b61047e6004803603606081101561070957600080fd5b506001600160a01b03813581169160208101359160409091013516611534565b6103a56116ba565b6103c96004803603602081101561074757600080fd5b50356001600160a01b03166116c9565b6103c96004803603602081101561076d57600080fd5b50356001600160a01b03166116e4565b61047e6116ff565b6103c96117b1565b61047e600480360360408110156107a357600080fd5b506001600160a01b0381351690602001356117b7565b6103a5611811565b6103c9611825565b6103c961182b565b6103e361185a565b6104ac6118bb565b6104ac600480360360408110156107f757600080fd5b506001600160a01b0381351690602001356118c4565b61047e61192c565b6104ac6004803603604081101561082b57600080fd5b506001600160a01b038135169060200135611943565b6103c9611957565b61047e6004803603602081101561085f57600080fd5b50356001600160a01b031661195d565b61047e6004803603604081101561088557600080fd5b506001600160a01b038135169060200135611a0b565b6104ac600480360360208110156108b157600080fd5b50356001600160a01b0316611ab8565b61047e600480360360208110156108d757600080fd5b5035611acd565b6103c9611b71565b61047e600480360360208110156108fc57600080fd5b50356001600160a01b0316611b7b565b6103c96004803603602081101561092257600080fd5b50356001600160a01b0316611c01565b6103c96004803603604081101561094857600080fd5b506001600160a01b0381358116916020013516611c1c565b61047e6004803603602081101561097657600080fd5b50356001600160a01b0316611c47565b61047e6004803603602081101561099c57600080fd5b50356001600160a01b0316611d55565b6103a5611dbf565b6103c9611dce565b600c546001600160a01b031681565b60105481565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a5d5780601f10610a3257610100808354040283529160200191610a5d565b820191906000526020600020905b815481529060010190602001808311610a4057829003601f168201915b505050505090505b90565b3360009081526007602052604090205460ff1680610a95575033610a8a611811565b6001600160a01b0316145b80610aaf575033610aa46116ba565b6001600160a01b0316145b610aee576040805162461bcd60e51b81526020600482015260186024820152600080516020612843833981519152604482015290519081900360640190fd5b60115460ff1615610b46576040805162461bcd60e51b815260206004820152601860248201527f6f6e6c792063616e2064697374726962757465206f6e63650000000000000000604482015290519081900360640190fd5b6001600160a01b038116610b9a576040805162461bcd60e51b81526020600482015260166024820152750857d9985c9b5a5b99d25b98d95b9d1a5d99519d5b9960521b604482015290519081900360640190fd5b6011805460ff19166001179055600e80546001600160a01b0383166001600160a01b03199091168117909155604080516356302ba760e11b81529051610c35928492909163ac60574e91600480820192602092909190829003018186803b158015610c0457600080fd5b505afa158015610c18573d6000803e3d6000fd5b505050506040513d6020811015610c2e57600080fd5b5051611ea6565b50565b6000610c4c610c45611f96565b8484611f9a565b5060015b92915050565b3360009081526007602052604090205460ff1680610c83575033610c78611811565b6001600160a01b0316145b80610c9d575033610c926116ba565b6001600160a01b0316145b610cdc576040805162461bcd60e51b81526020600482015260186024820152600080516020612843833981519152604482015290519081900360640190fd5b6013548111610d1c5760405162461bcd60e51b81526004018080602001828103825260278152602001806127866027913960400191505060405180910390fd5b60135481036301e13380811115610d645760405162461bcd60e51b815260040180806020018281038252602c815260200180612734602c913960400191505060405180910390fd5b50601455565b60135481565b6009546000904290811115610d8457506009545b80600f5410610d97576000915050610a65565b610db8600a54610db2600f548461208690919063ffffffff16565b906120e3565b91505090565b60025490565b336000908152601560205260409020805460ff1916911515919091179055565b60006013544211610df757506000610ea4565b6014544210610e1f57506001600160a01b038116600090815260166020526040902054610ea4565b6001600160a01b038216600090815260176020526040812054610e43904290612086565b6001600160a01b0384166000908152601760205260408120546014549293509091610e6d91612086565b6001600160a01b038516600090815260166020526040902054909150610e9f908290610e9990856120e3565b90611dde565b925050505b919050565b6000610eb684848461213c565b610f2684610ec2611f96565b610f21856040518060600160405280602881526020016127fb602891396001600160a01b038a16600090815260016020526040812090610f00611f96565b6001600160a01b0316815260208101919091526040016000205491906121a5565b611f9a565b5060019392505050565b3360009081526007602052604090205460ff1680610f5d575033610f52611811565b6001600160a01b0316145b80610f77575033610f6c6116ba565b6001600160a01b0316145b80610f8c5750600e546001600160a01b031633145b610fcb576040805162461bcd60e51b81526020600482015260186024820152600080516020612843833981519152604482015290519081900360640190fd5b6001600160a01b038216611026576040805162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74206c6f636b20746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61102f826116e4565b811115611083576040805162461bcd60e51b815260206004820152601860248201527f4c6f636b20616d6f756e74206f7665722062616c616e63650000000000000000604482015290519081900360640190fd5b61108b6116ba565b6001600160a01b0316336001600160a01b031614806110b45750600e546001600160a01b031633145b806110f357506110cd6064610e99605f610db2866114f1565b6001600160a01b0383166000908152601660205260409020546110f09083611e45565b11155b61112e5760405162461bcd60e51b81526004018080602001828103825260258152602001806128f16025913960400191505060405180910390fd5b6001600160a01b03821660009081526015602052604090205460ff16801561116d57506001600160a01b03821660009081526016602052604090205415155b1561118b57600061117d83610de4565b9050611189838261223c565b505b61119682308361213c565b6001600160a01b0382166000908152601660205260409020546111b99082611e45565b6001600160a01b0383166000908152601660205260409020556012546111df9082611e45565b6012556013546001600160a01b0383166000908152601760205260409020541015611221576013546001600160a01b0383166000908152601760205260409020555b6040805182815290516001600160a01b038416917f625fed9875dada8643f2418b838ae0bc78d9a148a18eee4ee1979ff0f3f5d427919081900360200190a25050565b6006546001600160a01b031633146112ad5760405162461bcd60e51b81526004018080602001828103825260248152602001806128876024913960400191505060405180910390fd5b610c35816123a5565b60095460009042908111156112ca57506009545b80601054106112dd576000915050610a65565b610db8600b54610db26010548461208690919063ffffffff16565b600b5481565b60055460ff1690565b60095481565b6000611317610d70565b90506000811180156113335750600c546001600160a01b031615155b1561135557600c546113509030906001600160a01b03168361213c565b42600f555b61135d6112b6565b90506000811180156113795750600d546001600160a01b031615155b15610c3557600d546113969030906001600160a01b03168361213c565b4260105550565b6000610c4c6113aa611f96565b84610f2185600160006113bb611f96565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611e45565b60125490565b69060bfd20d9ce6488400081565b610c3581612442565b600d546001600160a01b031681565b6006546000906001600160a01b031661142e611f96565b6001600160a01b031614905090565b600a5481565b61144b611f96565b6001600160a01b031661145c611811565b6001600160a01b0316146114a5576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b6001600160a01b0381163314156114bb57600080fd5b6001600160a01b03166000908152600760205260409020805460ff19169055565b60156020526000908152604090205460ff1681565b6000610c506114ff836116e4565b6001600160a01b03841660009081526016602052604090205490611e45565b6301e1338081565b69057f4335653ddbbd800081565b3360009081526007602052604090205460ff1680611561575033611556611811565b6001600160a01b0316145b8061157b5750336115706116ba565b6001600160a01b0316145b6115ba576040805162461bcd60e51b81526020600482015260186024820152600080516020612843833981519152604482015290519081900360640190fd5b6115c26116ba565b6001600160a01b0316336001600160a01b031614806115ea57506001600160a01b0383163014155b611632576040805162461bcd60e51b815260206004820152601460248201527324b73b30b634b2103832b936b4b9b9b4b7b7399760611b604482015290519081900360640190fd5b826001600160a01b031663a9059cbb82846040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561168957600080fd5b505af115801561169d573d6000803e3d6000fd5b505050506040513d60208110156116b357600080fd5b5050505050565b6006546001600160a01b031690565b6001600160a01b031660009081526016602052604090205490565b6001600160a01b031660009081526020819052604090205490565b611707611f96565b6001600160a01b0316611718611811565b6001600160a01b031614611761576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b60085481565b60006117ee82604051806060016040528060248152602001612863602491396117e7866117e2611f96565b611c1c565b91906121a5565b9050611802836117fc611f96565b83611f9a565b61180c838361244f565b505050565b60055461010090046001600160a01b031690565b60145481565b600e5460009061185590611847906001600160a01b03166116e4565b61184f610dbe565b90612086565b905090565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a5d5780601f10610a3257610100808354040283529160200191610a5d565b60115460ff1681565b6000610c4c6118d1611f96565b84610f218560405180606001604052806025815260200161293a60259139600160006118fb611f96565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906121a5565b600061193733610de4565b9050610c35338261223c565b6000610c4c611950611f96565b848461213c565b600f5481565b600d546001600160a01b031633146119a5576040805162461bcd60e51b8152602060048083019190915260248201526310b232bb60e11b604482015290519081900360640190fd5b6001600160a01b0381166119e9576040805162461bcd60e51b815260206004808301919091526024820152637a65726f60e01b604482015290519081900360640190fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526007602052604090205460ff1680611a38575033611a2d611811565b6001600160a01b0316145b80611a52575033611a476116ba565b6001600160a01b0316145b611a91576040805162461bcd60e51b81526020600482015260186024820152600080516020612843833981519152604482015290519081900360640190fd5b6000611a9c83610de4565b90508015611aae57611aae838261223c565b61180c838361223c565b60076020526000908152604090205460ff1681565b3360009081526007602052604090205460ff1680611afa575033611aef611811565b6001600160a01b0316145b80611b14575033611b096116ba565b6001600160a01b0316145b611b53576040805162461bcd60e51b81526020600482015260186024820152600080516020612843833981519152604482015290519081900360640190fd5b60138054601454918390559003611b6a8282611e45565b6014555050565b60006118556113eb565b611b83611f96565b6001600160a01b0316611b94611811565b6001600160a01b031614611bdd576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6001600160a01b031660009081526017602052604090205490565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b611c4f611f96565b6001600160a01b0316611c60611811565b6001600160a01b031614611ca9576040805162461bcd60e51b81526020600482018190526024820152600080516020612823833981519152604482015290519081900360640190fd5b6001600160a01b038116611cee5760405162461bcd60e51b81526004018080602001828103825260268152602001806126ec6026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600d546001600160a01b03163314611d9d576040805162461bcd60e51b8152602060048083019190915260248201526310b232bb60e11b604482015290519081900360640190fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600e546001600160a01b031681565b600061185560125461184f610dbe565b6000808211611e34576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611e3d57fe5b049392505050565b600082820183811015611e9f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038216611f01576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611f0d6000838361180c565b600254611f1a9082611e45565b6002556001600160a01b038216600090815260208190526040902054611f409082611e45565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b3390565b6001600160a01b038316611fdf5760405162461bcd60e51b81526004018080602001828103825260248152602001806129166024913960400191505060405180910390fd5b6001600160a01b0382166120245760405162461bcd60e51b81526004018080602001828103825260228152602001806127126022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000828211156120dd576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000826120f257506000610c50565b828202828482816120ff57fe5b0414611e9f5760405162461bcd60e51b81526004018080602001828103825260218152602001806127da6021913960400191505060405180910390fd5b6001600160a01b03831660009081526015602052604090205460ff1615801561217c57506001600160a01b03831660009081526016602052604090205415155b1561219a57600061218c84610de4565b9050612198848261223c565b505b61180c83838361254b565b600081848411156122345760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156121f95781810151838201526020016121e1565b50505050905090810190601f1680156122265780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166000908152601660205260409020546122a6576040805162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e74206c6f636b656420746f6b656e73000000000000604482015290519081900360640190fd5b6001600160a01b0382166000908152601660205260409020548111156122e157506001600160a01b0381166000908152601660205260409020545b6122ea306116e4565b8111156122fd576122fa306116e4565b90505b61230830838361213c565b6001600160a01b03821660009081526016602052604090205461232b9082612086565b6001600160a01b038316600090815260166020908152604080832093909355601790522042905560125461235f9082612086565b6012556040805182815290516001600160a01b038416917f6381d9813cabeb57471b5a7e05078e64845ccdb563146a6911d536f24ce960f1919081900360200190a25050565b6001600160a01b0381166123ea5760405162461bcd60e51b815260040180806020018281038252602d8152602001806127ad602d913960400191505060405180910390fd5b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b610c3561244d611f96565b825b6001600160a01b0382166124945760405162461bcd60e51b81526004018080602001828103825260218152602001806128ab6021913960400191505060405180910390fd5b6124a08260008361180c565b6124dd816040518060600160405280602281526020016126ca602291396001600160a01b03851660009081526020819052604090205491906121a5565b6001600160a01b0383166000908152602081905260409020556002546125039082612086565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b0383166125905760405162461bcd60e51b81526004018080602001828103825260258152602001806128cc6025913960400191505060405180910390fd5b6001600160a01b0382166125d55760405162461bcd60e51b81526004018080602001828103825260238152602001806126a76023913960400191505060405180910390fd5b6125e083838361180c565b61261d81604051806060016040528060268152602001612760602691396001600160a01b03861660009081526020819052604090205491906121a5565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461264c9082611e45565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a350505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f20616464726573734c6f636b2074696d65206d757374206e6f742062652067726561746572207468616e2033363520646179732e45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654c6f636b20746f206d7573742062652067726561746572207468616e206c6f636b2066726f6d2e6f70657261746f723a207a65726f206164647265737320676976656e20666f72206e6577206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657263616c6c6572206973206e6f7420617574686f72697a6564000000000000000045524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e63656f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f7245524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f20616464726573734c6f636b20616d6f756e74206f76657220393525206f6620746f74616c2062616c616e636545524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212205536432bd73ca21e89969bf422daa77d4448bd96dd2c2c50bb8730d20874b22164736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000623daec000000000000000000000000090ded1c9c35f06b7239429939832f7ab896d0e0600000000000000000000000029a92c81795d589b32e98fd119568e738ae5952b00000000000000000000000000000000000000000000000000000000641ee24000000000000000000000000000000000000000000000000000000000660015c0
-----Decoded View---------------
Arg [0] : _startTime (uint256): 1648209600
Arg [1] : _communityFund (address): 0x90dED1c9c35f06b7239429939832f7Ab896D0E06
Arg [2] : _devFund (address): 0x29a92c81795D589B32E98Fd119568e738aE5952b
Arg [3] : _lockFromTime (uint256): 1679745600
Arg [4] : _lockToTime (uint256): 1711281600
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000623daec0
Arg [1] : 00000000000000000000000090ded1c9c35f06b7239429939832f7ab896d0e06
Arg [2] : 00000000000000000000000029a92c81795d589b32e98fd119568e738ae5952b
Arg [3] : 00000000000000000000000000000000000000000000000000000000641ee240
Arg [4] : 00000000000000000000000000000000000000000000000000000000660015c0
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.