ERC-20
Overview
Max Total Supply
10,000,000,000,000 TGXen
Holders
114
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TGXen
Compiler Version
v0.8.10+commit.fc410830
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.8.10; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/interfaces/IERC165.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./interfaces/IBurnRedeemable.sol"; import "./interfaces/IBurnableToken.sol"; import "./interfaces/ITGC.sol"; contract TGXen is ERC20, IERC165, IBurnRedeemable, Ownable { using SafeERC20 for IERC20; using SafeMath for uint256; IBurnableToken public constant XEN_ADDRESS = IBurnableToken(0x06450dEe7FD2Fb8E39061434BAbCFC05599a6Fb8); address public constant TGC_ADDRESS = address(0x5c7AD3EB8264eF91dD4d756Ef9759F7aa86744e7); address public constant BURN_ADDRESS = address(0x000000000000000000000000000000000000dEaD); uint256 public totalXENBurned; uint256 public totalTGCBurned; uint256 public totalTGXenMinted; uint256 public totalTGXenUnclaimed; uint256 public constant TGXen_PER_TGC = 40 * 10**18; uint256 public constant LAUNCH_TIME = 1689994800; uint256 internal currentDay; uint256 private constant MAX = ~uint256(0); uint256 private constant _tTotal = 10000000000000 * (10**18); uint256 private _rTotal = (MAX - (MAX % _tTotal)); uint256 private _tFeeTotal; uint256 private _reflectionFee; address[] private _excluded; struct TGXenClaim{ uint256 amount; uint256 bonus; bool hasCollected; } mapping (address => uint256) public totalSend; mapping (address => uint256) public totalReceived; mapping (address => mapping(uint256 => TGXenClaim)) public mapTGXenClaim; mapping (address => uint256) public claimCount; mapping (address => uint256[]) public claimDays; mapping (address => uint256) public _rOwned; mapping (address => uint256) public _tOwned; mapping (address => bool) public _isExcluded; event AccountExcludedFromReward(address account); event AccountIncludedInReward(address account); event AllocationClaimed(address account, uint256 targetday, uint256 amount); constructor() ERC20("The Grays Xen", "TGXen") { _rOwned[address(this)] = _rTotal; _excludeFromReward(address(this)); _excludeFromReward(BURN_ADDRESS); emit Transfer(address(0), address(this), _tTotal); } function _excludeFromReward(address account) internal { if(_rOwned[account] > 0) { _tOwned[account] = tokenFromReflection(_rOwned[account]); } _isExcluded[account] = true; _excluded.push(account); } function excludeAccount(address account) external onlyOwner() { require(!_isExcluded[account], "Account is already excluded"); _excludeFromReward(address(account)); emit AccountExcludedFromReward(address(account)); } function tokenFromReflection(uint256 rAmount) public view returns(uint256) { require(rAmount <= _rTotal, "Amount must be less than total reflections"); uint256 currentRate = _getRate(); return rAmount.div(currentRate); } function includeAccount(address account) external onlyOwner() { require(_isExcluded[account], "Account is already excluded"); for (uint256 i = 0; i < _excluded.length; i++) { if (_excluded[i] == account) { _excluded[i] = _excluded[_excluded.length - 1]; _tOwned[account] = 0; _isExcluded[account] = false; _excluded.pop(); break; } } emit AccountIncludedInReward(address(account)); } function balanceOf(address account) public view override returns (uint256) { if (_isExcluded[account]) return _tOwned[account]; return tokenFromReflection(_rOwned[account]); } function totalSupply() public override pure returns (uint256) { return _tTotal; } function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IBurnRedeemable).interfaceId; } function burnXEN(uint256 amount) external { _updateDaily(); uint256 bonus = currentDay.div(10).mul(10); bonus = amount.mul(bonus).div(100); require(balanceOf(address(this)) >= totalTGXenUnclaimed.add(amount.mul(2)).add(bonus), "TGXen: Supply not available to mint"); require(block.timestamp >= LAUNCH_TIME, "TGXen: Burning not start yet"); XEN_ADDRESS.burn(_msgSender(), amount); } function onTokenBurned(address user, uint256 amount) public { require(_msgSender() == address(XEN_ADDRESS), "TGXen: Caller must be XEN Crypto."); require(user != address(0), "TGXen: Address cannot be the 0 address."); uint256 bonus = (currentDay.div(10)).mul(10); bonus = (amount.mul(bonus)).div(100); if(currentDay == 0) { _transfer(address(this), address(user), amount, false); _transfer(address(this), address(user), amount, true); } else { uint256 allocationDay = currentDay.add(currentDay.mul(3)).add(1); if(mapTGXenClaim[address(user)][allocationDay].amount == 0) { claimCount[address(user)] += 1; claimDays[address(user)].push(allocationDay); } mapTGXenClaim[address(user)][allocationDay].amount += amount; mapTGXenClaim[address(user)][allocationDay].bonus += bonus; mapTGXenClaim[address(user)][allocationDay].hasCollected = false; totalTGXenUnclaimed += amount.mul(2).add(bonus); } totalXENBurned += amount; totalTGXenMinted += amount.mul(2).add(bonus); emit Redeemed(address(user), address(XEN_ADDRESS), address(this), amount, amount.mul(2).add(bonus)); } function burnTGC(uint256 amount) external { require(IERC20(TGC_ADDRESS).balanceOf(_msgSender()).sub(ITGC(TGC_ADDRESS).lockedAmount(_msgSender())) >= amount, "Balance not available for burn"); require(balanceOf(address(this)) >= totalTGXenUnclaimed + (amount.mul(TGXen_PER_TGC).mul(2).div(10**18)), "TGXen: Supply not available to mint"); require(block.timestamp >= LAUNCH_TIME, "TGXen: Burning not start yet"); require(block.timestamp <= (LAUNCH_TIME.add(43200)), "TGXen: Burn time is end for TGC"); _transfer(address(this), address(_msgSender()), amount.mul(TGXen_PER_TGC).div(10**18), false); _transfer(address(this), address(_msgSender()), amount.mul(TGXen_PER_TGC).div(10**18), true); totalTGCBurned += amount; totalTGXenMinted += amount.mul(TGXen_PER_TGC).mul(2).div(10**18); IERC20(TGC_ADDRESS).safeTransferFrom(address(_msgSender()), address(BURN_ADDRESS), amount); emit Redeemed(address(_msgSender()), address(TGC_ADDRESS), address(this), amount, amount.mul(TGXen_PER_TGC).mul(2).div(10**18)); } function claim(uint256 targetDay) external { require(mapTGXenClaim[_msgSender()][targetDay].hasCollected == false, "ERR: Already collected"); _updateDaily(); require(targetDay < currentDay, "current day is less target day"); _transfer(address(this), address(_msgSender()), mapTGXenClaim[_msgSender()][targetDay].amount.add(mapTGXenClaim[_msgSender()][targetDay].bonus), false); _transfer(address(this), address(_msgSender()), mapTGXenClaim[_msgSender()][targetDay].amount, true); totalTGXenUnclaimed -= mapTGXenClaim[_msgSender()][targetDay].amount * 2; totalTGXenUnclaimed -= mapTGXenClaim[_msgSender()][targetDay].bonus; mapTGXenClaim[_msgSender()][targetDay].hasCollected = true; emit AllocationClaimed(address(_msgSender()), targetDay, (mapTGXenClaim[_msgSender()][targetDay].amount + mapTGXenClaim[_msgSender()][targetDay].bonus)); } function _clcDay() public view returns (uint256) { return (block.timestamp - LAUNCH_TIME) / 1 days; } function _updateDaily() public { if (currentDay != _clcDay()) { currentDay = _clcDay(); } } function transfer(address recipient, uint256 amount) public override returns (bool) { _transfer(_msgSender(), recipient, amount, false); return true; } function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) { _transfer(sender, recipient, amount, false); _approve(sender, _msgSender(), allowance(address(sender), address(_msgSender())).sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } function _transfer(address sender, address recipient, uint256 amount, bool airdrop) private { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Transfer amount must be greater than zero"); _updateDaily(); totalSend[sender] += amount; if(airdrop) { _reflectionFee = 100; } else { _reflectionFee = 0; totalReceived[recipient] += amount; } if (_isExcluded[sender] && !_isExcluded[recipient]) { _transferFromExcluded(sender, recipient, amount); } else if (!_isExcluded[sender] && _isExcluded[recipient]) { _transferToExcluded(sender, recipient, amount); } else if (!_isExcluded[sender] && !_isExcluded[recipient]) { _transferStandard(sender, recipient, amount); } else if (_isExcluded[sender] && _isExcluded[recipient]) { _transferBothExcluded(sender, recipient, amount); } else { _transferStandard(sender, recipient, amount); } } function _transferStandard(address sender, address recipient, uint256 tAmount) private { (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee) = _getValues(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } function _transferToExcluded(address sender, address recipient, uint256 tAmount) private { (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee) = _getValues(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } function _transferFromExcluded(address sender, address recipient, uint256 tAmount) private { (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee) = _getValues(tAmount); _tOwned[sender] = _tOwned[sender].sub(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } function _transferBothExcluded(address sender, address recipient, uint256 tAmount) private { (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee) = _getValues(tAmount); _tOwned[sender] = _tOwned[sender].sub(tAmount); _rOwned[sender] = _rOwned[sender].sub(rAmount); _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount); _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount); _reflectFee(rFee, tFee); emit Transfer(sender, recipient, tTransferAmount); } function _reflectFee(uint256 rFee, uint256 tFee) private { _rTotal = _rTotal.sub(rFee); _tFeeTotal = _tFeeTotal.add(tFee); } function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256) { (uint256 tTransferAmount, uint256 tFee) = _getTValues(tAmount); uint256 currentRate = _getRate(); (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, currentRate); return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee); } function _getTValues(uint256 tAmount) private view returns (uint256, uint256) { uint256 tFee = calculateReflectionFee(tAmount); uint256 tTransferAmount = tAmount.sub(tFee); return (tTransferAmount, tFee); } function calculateReflectionFee(uint256 _amount) private view returns (uint256) { return _amount.mul(_reflectionFee).div(100); } function _getRValues(uint256 tAmount, uint256 tFee, uint256 currentRate) private pure returns (uint256, uint256, uint256) { uint256 rAmount = tAmount.mul(currentRate); uint256 rFee = tFee.mul(currentRate); uint256 rTransferAmount = rAmount.sub(rFee); return (rAmount, rTransferAmount, rFee); } function _getRate() private view returns(uint256) { (uint256 rSupply, uint256 tSupply) = _getCurrentSupply(); return rSupply.div(tSupply); } function _getCurrentSupply() private view returns(uint256, uint256) { uint256 rSupply = _rTotal; uint256 tSupply = _tTotal; for (uint256 i = 0; i < _excluded.length; i++) { if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) return (_rTotal, _tTotal); rSupply = rSupply.sub(_rOwned[_excluded[i]]); tSupply = tSupply.sub(_tOwned[_excluded[i]]); } if (rSupply < _rTotal.div(_tTotal)) return (_rTotal, _tTotal); return (rSupply, tSupply); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; interface IBurnRedeemable { event Redeemed(address indexed user, address indexed xenContract, address indexed tokenContract, uint256 xenAmount, uint256 tokenAmount); function onTokenBurned(address user, uint256 amount) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; interface ITGC { function lockedAmount(address account) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; interface IBurnableToken { function burn(address user, uint256 amount) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions 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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ 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) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the 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) { return a + b; } /** * @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) { 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) { return a * b; } /** * @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. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { 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) { 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) { unchecked { 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. * * 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) { unchecked { 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) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.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 Contracts guidelines: functions revert * instead 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, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 this function is * overridden; * * 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 override returns (uint8) { return 18; } /** * @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: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, 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}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, 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}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); 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) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + 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) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This 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: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, 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: * * - `account` 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 += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(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); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(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 Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @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 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
{ "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":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"AccountExcludedFromReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"AccountIncludedInReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"targetday","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AllocationClaimed","type":"event"},{"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"xenContract","type":"address"},{"indexed":true,"internalType":"address","name":"tokenContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"xenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"Redeemed","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"},{"inputs":[],"name":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LAUNCH_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TGC_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TGXen_PER_TGC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"XEN_ADDRESS","outputs":[{"internalType":"contract IBurnableToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_clcDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_rOwned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_tOwned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_updateDaily","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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnTGC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnXEN","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"targetDay","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimDays","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":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeAccount","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":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"mapTGXenClaim","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"bonus","type":"uint256"},{"internalType":"bool","name":"hasCollected","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"onTokenBurned","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rAmount","type":"uint256"}],"name":"tokenFromReflection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalReceived","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalSend","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalTGCBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTGXenMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTGXenUnclaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalXENBurned","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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526200001f6c7e37be2022c0914b2680000000600019620005e5565b6200002d9060001962000612565b600b553480156200003d57600080fd5b50604080518082018252600d81526c2a34329023b930bcb9902c32b760991b6020808301918252835180850190945260058452642a23ac32b760d91b908401528151919291620000909160039162000529565b508051620000a690600490602084019062000529565b505050620000c3620000bd6200013c60201b60201c565b62000140565b600b5430600081815260146020526040902091909155620000e49062000192565b620000f161dead62000192565b6040516c7e37be2022c0914b2680000000815230906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3620006b4565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03811660009081526014602052604090205415620001ef576001600160a01b038116600090815260146020526040902054620001d59062000255565b6001600160a01b0382166000908152601560205260409020555b6001600160a01b03166000818152601660205260408120805460ff19166001908117909155600e805491820181559091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b0319169091179055565b6000600b54821115620002c15760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b606482015260840160405180910390fd5b6000620002cd620002f0565b9050620002e981846200032360201b620016ad1790919060201c565b9392505050565b60008080620002fe62000331565b915091506200031c81836200032360201b620016ad1790919060201c565b9250505090565b6000620002e982846200062c565b600b5460009081906c7e37be2022c0914b2680000000825b600e54811015620004c6578260146000600e84815481106200036f576200036f62000643565b60009182526020808320909101546001600160a01b031683528201929092526040019020541180620003de57508160156000600e8481548110620003b757620003b762000643565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b15620003ff575050600b54936c7e37be2022c0914b26800000009350915050565b6200045660146000600e84815481106200041d576200041d62000643565b60009182526020808320909101546001600160a01b031683528281019390935260409091019020548591620016b96200051b821b17901c565b9250620004af60156000600e848154811062000476576200047662000643565b60009182526020808320909101546001600160a01b031683528281019390935260409091019020548491620016b96200051b821b17901c565b915080620004bd8162000659565b91505062000349565b50620004f06c7e37be2022c0914b2680000000600b546200032360201b620016ad1790919060201c565b82101562000512575050600b54926c7e37be2022c0914b268000000092509050565b90939092509050565b6000620002e9828462000612565b828054620005379062000677565b90600052602060002090601f0160209004810192826200055b5760008555620005a6565b82601f106200057657805160ff1916838001178555620005a6565b82800160010185558215620005a6579182015b82811115620005a657825182559160200191906001019062000589565b50620005b4929150620005b8565b5090565b5b80821115620005b45760008155600101620005b9565b634e487b7160e01b600052601260045260246000fd5b600082620005f757620005f7620005cf565b500690565b634e487b7160e01b600052601160045260246000fd5b600082821015620006275762000627620005fc565b500390565b6000826200063e576200063e620005cf565b500490565b634e487b7160e01b600052603260045260246000fd5b6000600019821415620006705762000670620005fc565b5060010190565b600181811c908216806200068c57607f821691505b60208210811415620006ae57634e487b7160e01b600052602260045260246000fd5b50919050565b6127e480620006c46000396000f3fe608060405234801561001057600080fd5b50600436106102535760003560e01c806369c12cb711610146578063a9059cbb116100c3578063e760e94711610087578063e760e94714610583578063e95b385b1461059e578063f2cc0c18146105a6578063f2fde38b146105b9578063f84354f1146105cc578063fccc2813146105df57600080fd5b8063a9059cbb1461050f578063bc1d089a14610522578063c64a041b1461053d578063db8d13131461055d578063dd62ed3e1461057057600080fd5b80638cefddc21161010a5780638cefddc2146104be5780638da5cb5b146104c757806391dbf26a146104ec57806395d89b41146104f4578063a457c2d7146104fc57600080fd5b806369c12cb71461046a57806370a082311461048a578063715018a61461049d57806371634fe6146104a55780637ee6b254146104b557600080fd5b80632d838119116101d45780633f5226fb116101985780633f5226fb146103c15780634df9cfb31461041b578063543746b11461043b578063640cb8851461044e5780636630a05e1461045757600080fd5b80632d83811914610357578063313ce5671461036a578063379607f514610379578063395093511461038e5780633b7e6d4a146103a157600080fd5b80630cfc15f91161021b5780630cfc15f9146102f557806318160ddd146103155780631f0904e21461032857806323b872dd1461033b5780632ac0cca31461034e57600080fd5b806301ffc9a714610258578063022466b51461029157806306fdde03146102aa578063095ea7b3146102bf5780630b285b1f146102d2575b600080fd5b61027c610266366004612472565b6001600160e01b03191663543746b160e01b1490565b60405190151581526020015b60405180910390f35b61029c6364bb463081565b604051908152602001610288565b6102b26105e8565b60405161028891906124c8565b61027c6102cd366004612517565b61067a565b61027c6102e0366004612541565b60166020526000908152604090205460ff1681565b61029c610303366004612541565b60146020526000908152604090205481565b6c7e37be2022c0914b268000000061029c565b61029c610336366004612517565b610692565b61027c61034936600461255c565b6106c3565b61029c60075481565b61029c610365366004612598565b610711565b60405160128152602001610288565b61038c610387366004612598565b610793565b005b61027c61039c366004612517565b6109b2565b61029c6103af366004612541565b60156020526000908152604090205481565b6103fe6103cf366004612517565b601160209081526000928352604080842090915290825290208054600182015460029092015490919060ff1683565b604080519384526020840192909252151590820152606001610288565b61029c610429366004612541565b60106020526000908152604090205481565b61038c610449366004612517565b6109cf565b61029c60085481565b61038c610465366004612598565b610d33565b61029c610478366004612541565b60126020526000908152604090205481565b61029c610498366004612541565b610e7f565b61038c610ee4565b61029c68022b1c8c1227a0000081565b61029c60065481565b61029c60095481565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610288565b61029c610ef8565b6102b2610f1b565b61027c61050a366004612517565b610f2a565b61027c61051d366004612517565b610fb0565b6104d47306450dee7fd2fb8e39061434babcfc05599a6fb881565b61029c61054b366004612541565b600f6020526000908152604090205481565b61038c61056b366004612598565b610fc8565b61029c61057e3660046125b1565b61136d565b6104d4735c7ad3eb8264ef91dd4d756ef9759f7aa86744e781565b61038c611398565b61038c6105b4366004612541565b6113b5565b61038c6105c7366004612541565b611468565b61038c6105da366004612541565b6114e1565b6104d461dead81565b6060600380546105f7906125e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610623906125e4565b80156106705780601f1061064557610100808354040283529160200191610670565b820191906000526020600020905b81548152906001019060200180831161065357829003601f168201915b5050505050905090565b6000336106888185856116c5565b5060019392505050565b601360205281600052604060002081815481106106ae57600080fd5b90600052602060002001600091509150505481565b60006106d284848460006117e9565b610688843361070585604051806060016040528060288152602001612787602891396106fe8a3361136d565b9190611ae2565b6116c5565b9392505050565b6000600b5482111561077d5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084015b60405180910390fd5b6000610787611b0e565b905061070a83826116ad565b33600090815260116020908152604080832084845290915290206002015460ff16156107fa5760405162461bcd60e51b81526020600482015260166024820152751154948e88105b1c9958591e4818dbdb1b1958dd195960521b6044820152606401610774565b610802611398565b600a5481106108535760405162461bcd60e51b815260206004820152601e60248201527f63757272656e7420646179206973206c657373207461726765742064617900006044820152606401610774565b33600081815260116020908152604080832085845290915290206001810154905461088c923092909161088591611b31565b60006117e9565b3360008181526011602090815260408083208584529091529020546108b491309160016117e9565b3360009081526011602090815260408083208484529091529020546108da906002612635565b600960008282546108eb9190612654565b90915550503360009081526011602090815260408083208484529091528120600101546009805491929091610921908490612654565b9091555050336000818152601160209081526040808320858452909152902060028101805460ff1916600190811790915581015490547f2ab4392cda0fd42f52cf96615f7267094b2da30a49c57e995b59317097bc463e92918491610986919061266b565b604080516001600160a01b0390941684526020840192909252908201526060015b60405180910390a150565b6000336106888185856109c5838361136d565b610705919061266b565b337306450dee7fd2fb8e39061434babcfc05599a6fb814610a3c5760405162461bcd60e51b815260206004820152602160248201527f544758656e3a2043616c6c6572206d7573742062652058454e2043727970746f6044820152601760f91b6064820152608401610774565b6001600160a01b038216610aa25760405162461bcd60e51b815260206004820152602760248201527f544758656e3a20416464726573732063616e6e6f74206265207468652030206160448201526632323932b9b99760c91b6064820152608401610774565b6000610ac4600a610abe600a80546116ad90919063ffffffff16565b90611b3d565b9050610adb6064610ad58484611b3d565b906116ad565b9050600a5460001415610b0757610af530848460006117e9565b610b0230848460016117e9565b610c87565b6000610b366001610b30610b276003600a54611b3d90919063ffffffff16565b600a5490611b31565b90611b31565b6001600160a01b0385166000908152601160209081526040808320848452909152902054909150610bbb576001600160a01b0384166000908152601260205260408120805460019290610b8a90849061266b565b90915550506001600160a01b0384166000908152601360209081526040822080546001810182559083529120018190555b6001600160a01b038416600090815260116020908152604080832084845290915281208054859290610bee90849061266b565b90915550506001600160a01b038416600090815260116020908152604080832084845290915281206001018054849290610c2990849061266b565b90915550506001600160a01b038416600090815260116020908152604080832084845290915290206002908101805460ff19169055610c6f908390610b30908690611b3d565b60096000828254610c80919061266b565b9091555050505b8160066000828254610c99919061266b565b90915550610cae905081610b30846002611b3d565b60086000828254610cbf919061266b565b909155503090507306450dee7fd2fb8e39061434babcfc05599a6fb86001600160a01b0385167fda4c370e4f539b8e19d66144cad73d70fbf440a544e56ff38e28e38ed47801a885610d1686610b30836002611b3d565b6040805192835260208301919091520160405180910390a4505050565b610d3b611398565b6000610d57600a610abe600a80546116ad90919063ffffffff16565b9050610d686064610ad58484611b3d565b9050610d8581610b30610d7c856002611b3d565b60095490611b31565b610d8e30610e7f565b1015610dac5760405162461bcd60e51b815260040161077490612683565b6364bb4630421015610e005760405162461bcd60e51b815260206004820152601c60248201527f544758656e3a204275726e696e67206e6f7420737461727420796574000000006044820152606401610774565b7306450dee7fd2fb8e39061434babcfc05599a6fb8639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101859052604401600060405180830381600087803b158015610e6357600080fd5b505af1158015610e77573d6000803e3d6000fd5b505050505050565b6001600160a01b03811660009081526016602052604081205460ff1615610ebc57506001600160a01b031660009081526015602052604090205490565b6001600160a01b038216600090815260146020526040902054610ede90610711565b92915050565b610eec611b49565b610ef66000611ba3565b565b600062015180610f0c6364bb463042612654565b610f1691906126c6565b905090565b6060600480546105f7906125e4565b60003381610f38828661136d565b905083811015610f985760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610774565b610fa582868684036116c5565b506001949350505050565b6000610fbf33848460006117e9565b50600192915050565b806110d8735c7ad3eb8264ef91dd4d756ef9759f7aa86744e763a153e708336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa15801561102b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104f91906126e8565b735c7ad3eb8264ef91dd4d756ef9759f7aa86744e76370a08231336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156110ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d291906126e8565b906116b9565b10156111265760405162461bcd60e51b815260206004820152601e60248201527f42616c616e6365206e6f7420617661696c61626c6520666f72206275726e00006044820152606401610774565b61114a670de0b6b3a7640000610ad56002610abe8568022b1c8c1227a00000611b3d565b600954611157919061266b565b61116030610e7f565b101561117e5760405162461bcd60e51b815260040161077490612683565b6364bb46304210156111d25760405162461bcd60e51b815260206004820152601c60248201527f544758656e3a204275726e696e67206e6f7420737461727420796574000000006044820152606401610774565b6111e26364bb463061a8c0611b31565b4211156112315760405162461bcd60e51b815260206004820152601f60248201527f544758656e3a204275726e2074696d6520697320656e6420666f7220544743006044820152606401610774565b6112553033610885670de0b6b3a7640000610ad58668022b1c8c1227a00000611b3d565b6112803033611279670de0b6b3a7640000610ad58668022b1c8c1227a00000611b3d565b60016117e9565b8060076000828254611292919061266b565b909155506112bc9050670de0b6b3a7640000610ad56002610abe8568022b1c8c1227a00000611b3d565b600860008282546112cd919061266b565b909155506112f59050735c7ad3eb8264ef91dd4d756ef9759f7aa86744e73361dead84611bf5565b30735c7ad3eb8264ef91dd4d756ef9759f7aa86744e7337fda4c370e4f539b8e19d66144cad73d70fbf440a544e56ff38e28e38ed47801a884611352670de0b6b3a7640000610ad56002610abe8568022b1c8c1227a00000611b3d565b6040805192835260208301919091520160405180910390a450565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6113a0610ef8565b600a5414610ef6576113b0610ef8565b600a55565b6113bd611b49565b6001600160a01b03811660009081526016602052604090205460ff16156114265760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610774565b61142f81611c4f565b6040516001600160a01b03821681527f154a054680b336f8c43b54d794f74daccc32ad0ca8f84276e380df04c346e39b906020016109a7565b611470611b49565b6001600160a01b0381166114d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610774565b6114de81611ba3565b50565b6114e9611b49565b6001600160a01b03811660009081526016602052604090205460ff166115515760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610774565b60005b600e5481101561167357816001600160a01b0316600e828154811061157b5761157b612701565b6000918252602090912001546001600160a01b0316141561166157600e80546115a690600190612654565b815481106115b6576115b6612701565b600091825260209091200154600e80546001600160a01b0390921691839081106115e2576115e2612701565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152601582526040808220829055601690925220805460ff19169055600e80548061163a5761163a612717565b600082815260209020810160001990810180546001600160a01b0319169055019055611673565b8061166b8161272d565b915050611554565b506040516001600160a01b03821681527f377bba5bc90f7a3c8191dc9a8a6add02bcd333157cee214568366c85737cb771906020016109a7565b600061070a82846126c6565b600061070a8284612654565b6001600160a01b0383166117275760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610774565b6001600160a01b0382166117885760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610774565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03841661184d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610774565b6001600160a01b0383166118af5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610774565b600082116119115760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610774565b611919611398565b6001600160a01b0384166000908152600f60205260408120805484929061194190849061266b565b90915550508015611956576064600d55611988565b6000600d8190556001600160a01b0384168152601060205260408120805484929061198290849061266b565b90915550505b6001600160a01b03841660009081526016602052604090205460ff1680156119c957506001600160a01b03831660009081526016602052604090205460ff16155b156119de576119d9848484611d0f565b611adc565b6001600160a01b03841660009081526016602052604090205460ff16158015611a1f57506001600160a01b03831660009081526016602052604090205460ff165b15611a2f576119d9848484611e28565b6001600160a01b03841660009081526016602052604090205460ff16158015611a7157506001600160a01b03831660009081526016602052604090205460ff16155b15611a81576119d9848484611ece565b6001600160a01b03841660009081526016602052604090205460ff168015611ac157506001600160a01b03831660009081526016602052604090205460ff165b15611ad1576119d9848484611f0f565b611adc848484611ece565b50505050565b60008184841115611b065760405162461bcd60e51b815260040161077491906124c8565b505050900390565b6000806000611b1b611f7f565b9092509050611b2a82826116ad565b9250505090565b600061070a828461266b565b600061070a8284612635565b6005546001600160a01b03163314610ef65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610774565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611adc90859061212b565b6001600160a01b03811660009081526014602052604090205415611ca9576001600160a01b038116600090815260146020526040902054611c8f90610711565b6001600160a01b0382166000908152601560205260409020555b6001600160a01b03166000818152601660205260408120805460ff19166001908117909155600e805491820181559091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b0319169091179055565b6000806000806000611d2086612202565b6001600160a01b038d1660009081526015602052604090205494995092975090955093509150611d5090876116b9565b6001600160a01b038916600090815260156020908152604080832093909355601490522054611d7f90866116b9565b6001600160a01b03808a166000908152601460205260408082209390935590891681522054611dae9085611b31565b6001600160a01b038816600090815260146020526040902055611dd1838261224e565b866001600160a01b0316886001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611e1691815260200190565b60405180910390a35050505050505050565b6000806000806000611e3986612202565b6001600160a01b038d1660009081526014602052604090205494995092975090955093509150611e6990866116b9565b6001600160a01b03808a16600090815260146020908152604080832094909455918a16815260159091522054611e9f9083611b31565b6001600160a01b038816600090815260156020908152604080832093909355601490522054611dae9085611b31565b6000806000806000611edf86612202565b6001600160a01b038d1660009081526014602052604090205494995092975090955093509150611d7f90866116b9565b6000806000806000611f2086612202565b6001600160a01b038d1660009081526015602052604090205494995092975090955093509150611f5090876116b9565b6001600160a01b038916600090815260156020908152604080832093909355601490522054611e6990866116b9565b600b5460009081906c7e37be2022c0914b2680000000825b600e548110156120e6578260146000600e8481548110611fb957611fb9612701565b60009182526020808320909101546001600160a01b03168352820192909252604001902054118061202457508160156000600e8481548110611ffd57611ffd612701565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b15612044575050600b54936c7e37be2022c0914b26800000009350915050565b61208a60146000600e848154811061205e5761205e612701565b60009182526020808320909101546001600160a01b0316835282019290925260400190205484906116b9565b92506120d260156000600e84815481106120a6576120a6612701565b60009182526020808320909101546001600160a01b0316835282019290925260400190205483906116b9565b9150806120de8161272d565b915050611f97565b50600b54612101906c7e37be2022c0914b26800000006116ad565b821015612122575050600b54926c7e37be2022c0914b268000000092509050565b90939092509050565b6000612180826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122729092919063ffffffff16565b8051909150156121fd578080602001905181019061219e9190612748565b6121fd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610774565b505050565b600080600080600080600061221688612289565b915091506000612224611b0e565b905060008060006122368c86866122b0565b919e909d50909b509599509397509395505050505050565b600b5461225b90836116b9565b600b55600c5461226b9082611b31565b600c555050565b606061228184846000856122ec565b949350505050565b60008060006122978461241d565b905060006122a585836116b9565b959194509092505050565b60008080806122bf8786611b3d565b905060006122cd8787611b3d565b905060006122db83836116b9565b929992985090965090945050505050565b60608247101561234d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610774565b6001600160a01b0385163b6123a45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610774565b600080866001600160a01b031685876040516123c0919061276a565b60006040518083038185875af1925050503d80600081146123fd576040519150601f19603f3d011682016040523d82523d6000602084013e612402565b606091505b5091509150612412828286612439565b979650505050505050565b6000610ede6064610ad5600d5485611b3d90919063ffffffff16565b6060831561244857508161070a565b8251156124585782518084602001fd5b8160405162461bcd60e51b815260040161077491906124c8565b60006020828403121561248457600080fd5b81356001600160e01b03198116811461070a57600080fd5b60005b838110156124b757818101518382015260200161249f565b83811115611adc5750506000910152565b60208152600082518060208401526124e781604085016020870161249c565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461251257600080fd5b919050565b6000806040838503121561252a57600080fd5b612533836124fb565b946020939093013593505050565b60006020828403121561255357600080fd5b61070a826124fb565b60008060006060848603121561257157600080fd5b61257a846124fb565b9250612588602085016124fb565b9150604084013590509250925092565b6000602082840312156125aa57600080fd5b5035919050565b600080604083850312156125c457600080fd5b6125cd836124fb565b91506125db602084016124fb565b90509250929050565b600181811c908216806125f857607f821691505b6020821081141561261957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561264f5761264f61261f565b500290565b6000828210156126665761266661261f565b500390565b6000821982111561267e5761267e61261f565b500190565b60208082526023908201527f544758656e3a20537570706c79206e6f7420617661696c61626c6520746f206d6040820152621a5b9d60ea1b606082015260800190565b6000826126e357634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156126fa57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60006000198214156127415761274161261f565b5060010190565b60006020828403121561275a57600080fd5b8151801515811461070a57600080fd5b6000825161277c81846020870161249c565b919091019291505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a26469706673582212203ec80cec4d40d263c1442f62fc400c392c2ef8cbcc749605ffdb8518af59bdfb64736f6c634300080a0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102535760003560e01c806369c12cb711610146578063a9059cbb116100c3578063e760e94711610087578063e760e94714610583578063e95b385b1461059e578063f2cc0c18146105a6578063f2fde38b146105b9578063f84354f1146105cc578063fccc2813146105df57600080fd5b8063a9059cbb1461050f578063bc1d089a14610522578063c64a041b1461053d578063db8d13131461055d578063dd62ed3e1461057057600080fd5b80638cefddc21161010a5780638cefddc2146104be5780638da5cb5b146104c757806391dbf26a146104ec57806395d89b41146104f4578063a457c2d7146104fc57600080fd5b806369c12cb71461046a57806370a082311461048a578063715018a61461049d57806371634fe6146104a55780637ee6b254146104b557600080fd5b80632d838119116101d45780633f5226fb116101985780633f5226fb146103c15780634df9cfb31461041b578063543746b11461043b578063640cb8851461044e5780636630a05e1461045757600080fd5b80632d83811914610357578063313ce5671461036a578063379607f514610379578063395093511461038e5780633b7e6d4a146103a157600080fd5b80630cfc15f91161021b5780630cfc15f9146102f557806318160ddd146103155780631f0904e21461032857806323b872dd1461033b5780632ac0cca31461034e57600080fd5b806301ffc9a714610258578063022466b51461029157806306fdde03146102aa578063095ea7b3146102bf5780630b285b1f146102d2575b600080fd5b61027c610266366004612472565b6001600160e01b03191663543746b160e01b1490565b60405190151581526020015b60405180910390f35b61029c6364bb463081565b604051908152602001610288565b6102b26105e8565b60405161028891906124c8565b61027c6102cd366004612517565b61067a565b61027c6102e0366004612541565b60166020526000908152604090205460ff1681565b61029c610303366004612541565b60146020526000908152604090205481565b6c7e37be2022c0914b268000000061029c565b61029c610336366004612517565b610692565b61027c61034936600461255c565b6106c3565b61029c60075481565b61029c610365366004612598565b610711565b60405160128152602001610288565b61038c610387366004612598565b610793565b005b61027c61039c366004612517565b6109b2565b61029c6103af366004612541565b60156020526000908152604090205481565b6103fe6103cf366004612517565b601160209081526000928352604080842090915290825290208054600182015460029092015490919060ff1683565b604080519384526020840192909252151590820152606001610288565b61029c610429366004612541565b60106020526000908152604090205481565b61038c610449366004612517565b6109cf565b61029c60085481565b61038c610465366004612598565b610d33565b61029c610478366004612541565b60126020526000908152604090205481565b61029c610498366004612541565b610e7f565b61038c610ee4565b61029c68022b1c8c1227a0000081565b61029c60065481565b61029c60095481565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610288565b61029c610ef8565b6102b2610f1b565b61027c61050a366004612517565b610f2a565b61027c61051d366004612517565b610fb0565b6104d47306450dee7fd2fb8e39061434babcfc05599a6fb881565b61029c61054b366004612541565b600f6020526000908152604090205481565b61038c61056b366004612598565b610fc8565b61029c61057e3660046125b1565b61136d565b6104d4735c7ad3eb8264ef91dd4d756ef9759f7aa86744e781565b61038c611398565b61038c6105b4366004612541565b6113b5565b61038c6105c7366004612541565b611468565b61038c6105da366004612541565b6114e1565b6104d461dead81565b6060600380546105f7906125e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610623906125e4565b80156106705780601f1061064557610100808354040283529160200191610670565b820191906000526020600020905b81548152906001019060200180831161065357829003601f168201915b5050505050905090565b6000336106888185856116c5565b5060019392505050565b601360205281600052604060002081815481106106ae57600080fd5b90600052602060002001600091509150505481565b60006106d284848460006117e9565b610688843361070585604051806060016040528060288152602001612787602891396106fe8a3361136d565b9190611ae2565b6116c5565b9392505050565b6000600b5482111561077d5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084015b60405180910390fd5b6000610787611b0e565b905061070a83826116ad565b33600090815260116020908152604080832084845290915290206002015460ff16156107fa5760405162461bcd60e51b81526020600482015260166024820152751154948e88105b1c9958591e4818dbdb1b1958dd195960521b6044820152606401610774565b610802611398565b600a5481106108535760405162461bcd60e51b815260206004820152601e60248201527f63757272656e7420646179206973206c657373207461726765742064617900006044820152606401610774565b33600081815260116020908152604080832085845290915290206001810154905461088c923092909161088591611b31565b60006117e9565b3360008181526011602090815260408083208584529091529020546108b491309160016117e9565b3360009081526011602090815260408083208484529091529020546108da906002612635565b600960008282546108eb9190612654565b90915550503360009081526011602090815260408083208484529091528120600101546009805491929091610921908490612654565b9091555050336000818152601160209081526040808320858452909152902060028101805460ff1916600190811790915581015490547f2ab4392cda0fd42f52cf96615f7267094b2da30a49c57e995b59317097bc463e92918491610986919061266b565b604080516001600160a01b0390941684526020840192909252908201526060015b60405180910390a150565b6000336106888185856109c5838361136d565b610705919061266b565b337306450dee7fd2fb8e39061434babcfc05599a6fb814610a3c5760405162461bcd60e51b815260206004820152602160248201527f544758656e3a2043616c6c6572206d7573742062652058454e2043727970746f6044820152601760f91b6064820152608401610774565b6001600160a01b038216610aa25760405162461bcd60e51b815260206004820152602760248201527f544758656e3a20416464726573732063616e6e6f74206265207468652030206160448201526632323932b9b99760c91b6064820152608401610774565b6000610ac4600a610abe600a80546116ad90919063ffffffff16565b90611b3d565b9050610adb6064610ad58484611b3d565b906116ad565b9050600a5460001415610b0757610af530848460006117e9565b610b0230848460016117e9565b610c87565b6000610b366001610b30610b276003600a54611b3d90919063ffffffff16565b600a5490611b31565b90611b31565b6001600160a01b0385166000908152601160209081526040808320848452909152902054909150610bbb576001600160a01b0384166000908152601260205260408120805460019290610b8a90849061266b565b90915550506001600160a01b0384166000908152601360209081526040822080546001810182559083529120018190555b6001600160a01b038416600090815260116020908152604080832084845290915281208054859290610bee90849061266b565b90915550506001600160a01b038416600090815260116020908152604080832084845290915281206001018054849290610c2990849061266b565b90915550506001600160a01b038416600090815260116020908152604080832084845290915290206002908101805460ff19169055610c6f908390610b30908690611b3d565b60096000828254610c80919061266b565b9091555050505b8160066000828254610c99919061266b565b90915550610cae905081610b30846002611b3d565b60086000828254610cbf919061266b565b909155503090507306450dee7fd2fb8e39061434babcfc05599a6fb86001600160a01b0385167fda4c370e4f539b8e19d66144cad73d70fbf440a544e56ff38e28e38ed47801a885610d1686610b30836002611b3d565b6040805192835260208301919091520160405180910390a4505050565b610d3b611398565b6000610d57600a610abe600a80546116ad90919063ffffffff16565b9050610d686064610ad58484611b3d565b9050610d8581610b30610d7c856002611b3d565b60095490611b31565b610d8e30610e7f565b1015610dac5760405162461bcd60e51b815260040161077490612683565b6364bb4630421015610e005760405162461bcd60e51b815260206004820152601c60248201527f544758656e3a204275726e696e67206e6f7420737461727420796574000000006044820152606401610774565b7306450dee7fd2fb8e39061434babcfc05599a6fb8639dc29fac336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101859052604401600060405180830381600087803b158015610e6357600080fd5b505af1158015610e77573d6000803e3d6000fd5b505050505050565b6001600160a01b03811660009081526016602052604081205460ff1615610ebc57506001600160a01b031660009081526015602052604090205490565b6001600160a01b038216600090815260146020526040902054610ede90610711565b92915050565b610eec611b49565b610ef66000611ba3565b565b600062015180610f0c6364bb463042612654565b610f1691906126c6565b905090565b6060600480546105f7906125e4565b60003381610f38828661136d565b905083811015610f985760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610774565b610fa582868684036116c5565b506001949350505050565b6000610fbf33848460006117e9565b50600192915050565b806110d8735c7ad3eb8264ef91dd4d756ef9759f7aa86744e763a153e708336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa15801561102b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104f91906126e8565b735c7ad3eb8264ef91dd4d756ef9759f7aa86744e76370a08231336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156110ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d291906126e8565b906116b9565b10156111265760405162461bcd60e51b815260206004820152601e60248201527f42616c616e6365206e6f7420617661696c61626c6520666f72206275726e00006044820152606401610774565b61114a670de0b6b3a7640000610ad56002610abe8568022b1c8c1227a00000611b3d565b600954611157919061266b565b61116030610e7f565b101561117e5760405162461bcd60e51b815260040161077490612683565b6364bb46304210156111d25760405162461bcd60e51b815260206004820152601c60248201527f544758656e3a204275726e696e67206e6f7420737461727420796574000000006044820152606401610774565b6111e26364bb463061a8c0611b31565b4211156112315760405162461bcd60e51b815260206004820152601f60248201527f544758656e3a204275726e2074696d6520697320656e6420666f7220544743006044820152606401610774565b6112553033610885670de0b6b3a7640000610ad58668022b1c8c1227a00000611b3d565b6112803033611279670de0b6b3a7640000610ad58668022b1c8c1227a00000611b3d565b60016117e9565b8060076000828254611292919061266b565b909155506112bc9050670de0b6b3a7640000610ad56002610abe8568022b1c8c1227a00000611b3d565b600860008282546112cd919061266b565b909155506112f59050735c7ad3eb8264ef91dd4d756ef9759f7aa86744e73361dead84611bf5565b30735c7ad3eb8264ef91dd4d756ef9759f7aa86744e7337fda4c370e4f539b8e19d66144cad73d70fbf440a544e56ff38e28e38ed47801a884611352670de0b6b3a7640000610ad56002610abe8568022b1c8c1227a00000611b3d565b6040805192835260208301919091520160405180910390a450565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6113a0610ef8565b600a5414610ef6576113b0610ef8565b600a55565b6113bd611b49565b6001600160a01b03811660009081526016602052604090205460ff16156114265760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610774565b61142f81611c4f565b6040516001600160a01b03821681527f154a054680b336f8c43b54d794f74daccc32ad0ca8f84276e380df04c346e39b906020016109a7565b611470611b49565b6001600160a01b0381166114d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610774565b6114de81611ba3565b50565b6114e9611b49565b6001600160a01b03811660009081526016602052604090205460ff166115515760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610774565b60005b600e5481101561167357816001600160a01b0316600e828154811061157b5761157b612701565b6000918252602090912001546001600160a01b0316141561166157600e80546115a690600190612654565b815481106115b6576115b6612701565b600091825260209091200154600e80546001600160a01b0390921691839081106115e2576115e2612701565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152601582526040808220829055601690925220805460ff19169055600e80548061163a5761163a612717565b600082815260209020810160001990810180546001600160a01b0319169055019055611673565b8061166b8161272d565b915050611554565b506040516001600160a01b03821681527f377bba5bc90f7a3c8191dc9a8a6add02bcd333157cee214568366c85737cb771906020016109a7565b600061070a82846126c6565b600061070a8284612654565b6001600160a01b0383166117275760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610774565b6001600160a01b0382166117885760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610774565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03841661184d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610774565b6001600160a01b0383166118af5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610774565b600082116119115760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610774565b611919611398565b6001600160a01b0384166000908152600f60205260408120805484929061194190849061266b565b90915550508015611956576064600d55611988565b6000600d8190556001600160a01b0384168152601060205260408120805484929061198290849061266b565b90915550505b6001600160a01b03841660009081526016602052604090205460ff1680156119c957506001600160a01b03831660009081526016602052604090205460ff16155b156119de576119d9848484611d0f565b611adc565b6001600160a01b03841660009081526016602052604090205460ff16158015611a1f57506001600160a01b03831660009081526016602052604090205460ff165b15611a2f576119d9848484611e28565b6001600160a01b03841660009081526016602052604090205460ff16158015611a7157506001600160a01b03831660009081526016602052604090205460ff16155b15611a81576119d9848484611ece565b6001600160a01b03841660009081526016602052604090205460ff168015611ac157506001600160a01b03831660009081526016602052604090205460ff165b15611ad1576119d9848484611f0f565b611adc848484611ece565b50505050565b60008184841115611b065760405162461bcd60e51b815260040161077491906124c8565b505050900390565b6000806000611b1b611f7f565b9092509050611b2a82826116ad565b9250505090565b600061070a828461266b565b600061070a8284612635565b6005546001600160a01b03163314610ef65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610774565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611adc90859061212b565b6001600160a01b03811660009081526014602052604090205415611ca9576001600160a01b038116600090815260146020526040902054611c8f90610711565b6001600160a01b0382166000908152601560205260409020555b6001600160a01b03166000818152601660205260408120805460ff19166001908117909155600e805491820181559091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b0319169091179055565b6000806000806000611d2086612202565b6001600160a01b038d1660009081526015602052604090205494995092975090955093509150611d5090876116b9565b6001600160a01b038916600090815260156020908152604080832093909355601490522054611d7f90866116b9565b6001600160a01b03808a166000908152601460205260408082209390935590891681522054611dae9085611b31565b6001600160a01b038816600090815260146020526040902055611dd1838261224e565b866001600160a01b0316886001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611e1691815260200190565b60405180910390a35050505050505050565b6000806000806000611e3986612202565b6001600160a01b038d1660009081526014602052604090205494995092975090955093509150611e6990866116b9565b6001600160a01b03808a16600090815260146020908152604080832094909455918a16815260159091522054611e9f9083611b31565b6001600160a01b038816600090815260156020908152604080832093909355601490522054611dae9085611b31565b6000806000806000611edf86612202565b6001600160a01b038d1660009081526014602052604090205494995092975090955093509150611d7f90866116b9565b6000806000806000611f2086612202565b6001600160a01b038d1660009081526015602052604090205494995092975090955093509150611f5090876116b9565b6001600160a01b038916600090815260156020908152604080832093909355601490522054611e6990866116b9565b600b5460009081906c7e37be2022c0914b2680000000825b600e548110156120e6578260146000600e8481548110611fb957611fb9612701565b60009182526020808320909101546001600160a01b03168352820192909252604001902054118061202457508160156000600e8481548110611ffd57611ffd612701565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b15612044575050600b54936c7e37be2022c0914b26800000009350915050565b61208a60146000600e848154811061205e5761205e612701565b60009182526020808320909101546001600160a01b0316835282019290925260400190205484906116b9565b92506120d260156000600e84815481106120a6576120a6612701565b60009182526020808320909101546001600160a01b0316835282019290925260400190205483906116b9565b9150806120de8161272d565b915050611f97565b50600b54612101906c7e37be2022c0914b26800000006116ad565b821015612122575050600b54926c7e37be2022c0914b268000000092509050565b90939092509050565b6000612180826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122729092919063ffffffff16565b8051909150156121fd578080602001905181019061219e9190612748565b6121fd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610774565b505050565b600080600080600080600061221688612289565b915091506000612224611b0e565b905060008060006122368c86866122b0565b919e909d50909b509599509397509395505050505050565b600b5461225b90836116b9565b600b55600c5461226b9082611b31565b600c555050565b606061228184846000856122ec565b949350505050565b60008060006122978461241d565b905060006122a585836116b9565b959194509092505050565b60008080806122bf8786611b3d565b905060006122cd8787611b3d565b905060006122db83836116b9565b929992985090965090945050505050565b60608247101561234d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610774565b6001600160a01b0385163b6123a45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610774565b600080866001600160a01b031685876040516123c0919061276a565b60006040518083038185875af1925050503d80600081146123fd576040519150601f19603f3d011682016040523d82523d6000602084013e612402565b606091505b5091509150612412828286612439565b979650505050505050565b6000610ede6064610ad5600d5485611b3d90919063ffffffff16565b6060831561244857508161070a565b8251156124585782518084602001fd5b8160405162461bcd60e51b815260040161077491906124c8565b60006020828403121561248457600080fd5b81356001600160e01b03198116811461070a57600080fd5b60005b838110156124b757818101518382015260200161249f565b83811115611adc5750506000910152565b60208152600082518060208401526124e781604085016020870161249c565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461251257600080fd5b919050565b6000806040838503121561252a57600080fd5b612533836124fb565b946020939093013593505050565b60006020828403121561255357600080fd5b61070a826124fb565b60008060006060848603121561257157600080fd5b61257a846124fb565b9250612588602085016124fb565b9150604084013590509250925092565b6000602082840312156125aa57600080fd5b5035919050565b600080604083850312156125c457600080fd5b6125cd836124fb565b91506125db602084016124fb565b90509250929050565b600181811c908216806125f857607f821691505b6020821081141561261957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561264f5761264f61261f565b500290565b6000828210156126665761266661261f565b500390565b6000821982111561267e5761267e61261f565b500190565b60208082526023908201527f544758656e3a20537570706c79206e6f7420617661696c61626c6520746f206d6040820152621a5b9d60ea1b606082015260800190565b6000826126e357634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156126fa57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60006000198214156127415761274161261f565b5060010190565b60006020828403121561275a57600080fd5b8151801515811461070a57600080fd5b6000825161277c81846020870161249c565b919091019291505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a26469706673582212203ec80cec4d40d263c1442f62fc400c392c2ef8cbcc749605ffdb8518af59bdfb64736f6c634300080a0033
Loading...
Loading
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.