Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
PublicSaleUpgradeable
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.7.6; import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol"; import "../lib/access/OwnableUpgradeable.sol"; contract PublicSaleUpgradeable is OwnableUpgradeable { using SafeERC20Upgradeable for IERC20Upgradeable; using SafeMathUpgradeable for uint256; uint256 public constant genesisSaleEndTime = 1630393200; uint256 public constant publicSupply = 1400000e18; // 5% uint256 private _publicEthCapacity; uint256 private _publicRate; uint256 public publicSaleBoughtEth; uint256 public publicSaleSoldToken; bool private _publicSaleFinished; /// @notice The address of the GridZone token IERC20Upgradeable public zoneToken; event SoldOnPublicSale(address indexed buyer, uint256 ethAmount, uint256 tokenAmount); event PublicSaleFinished(uint256 boughtEth, uint256 soldToken); event PublicSaleRateChanged(uint256 newRate); event PublicSaleEthCapacityChanged(uint256 newRate, uint256 newEthCapacity); function initialize( address _ownerAddress, address _zoneToken ) public initializer { require(_ownerAddress != address(0), "Owner address is invalid"); require(_zoneToken != address(0), "Owner address is invalid"); __Ownable_init(_ownerAddress); zoneToken = IERC20Upgradeable(_zoneToken); _publicEthCapacity = 300e18; // 300 ETH _publicRate = publicSupply.mul(10).div(_publicEthCapacity).div(12); // 2/12 is for bonuses } modifier onlyEndUser { require(msg.sender == tx.origin, "ZONE: Only end-user"); _; } function isCrowdsaleFinished() external view returns (bool) { if (_publicSaleFinished) return true; if (block.timestamp < genesisSaleEndTime) return true; return false; } function rate() public view returns (uint256) { return _publicRate; } function setRate(uint256 newRate) public onlyOwner { require(0 < newRate, "ZONE: The rate can't be 0."); _publicRate = newRate; emit PublicSaleRateChanged(_publicRate); } function getPublicSaleEthCapacity() external view returns(uint256) { return _publicEthCapacity; } function setPublicSaleEthCapacity(uint256 newEthCapacity) public onlyOwner { require(publicSaleBoughtEth < newEthCapacity, "ZONE: The capacity must be greater than the already bought amount in the public sale."); _publicRate = publicSupply.sub(publicSaleSoldToken).div(newEthCapacity.sub(publicSaleBoughtEth)); _publicEthCapacity = newEthCapacity; emit PublicSaleEthCapacityChanged(_publicRate, _publicEthCapacity); } function finishCrowdsale() external onlyOwner { require(genesisSaleEndTime <= block.timestamp, "Public sale is not started"); _finishPublicSale(); } function _finishPublicSale() private { if (_publicSaleFinished) return; _publicSaleFinished = true; uint256 leftOver = zoneToken.balanceOf(address(this)); if (leftOver > 0) { zoneToken.safeTransfer(owner(), leftOver); } emit PublicSaleFinished(publicSaleBoughtEth, publicSaleSoldToken); } function _sellOnPublicSale(address payable buyer, uint256 ethAmount) private { uint256 capacity = _publicEthCapacity.sub(publicSaleBoughtEth); uint256 _ethAmount = (ethAmount < capacity) ? ethAmount : capacity; uint256 refund = ethAmount - _ethAmount; require(0 < _ethAmount, "ZONE: The amount can't be 0."); uint256 amount = _ethAmount.mul(_publicRate); uint256 bonus = amount.div(10); // when buying during Public sale, 10% bonus uint256 purchaseBonus = 0; if (_ethAmount >= 10e18) { // when buying for over 10eth, 10% bonus purchaseBonus = amount.div(10); } // total token amount amount = amount.add(bonus).add(purchaseBonus); publicSaleBoughtEth = publicSaleBoughtEth.add(_ethAmount); publicSaleSoldToken = publicSaleSoldToken.add(amount); require(publicSaleSoldToken <= publicSupply, "ZONE: Public supply is insufficient."); zoneToken.safeTransfer(buyer, amount); address payable ownerAddress = address(uint160(owner())); ownerAddress.transfer(_ethAmount); emit SoldOnPublicSale(buyer, _ethAmount, amount); if (0 < refund) { buyer.transfer(refund); } if (_publicEthCapacity <= publicSaleBoughtEth) { _finishPublicSale(); } } // low level token purchase function function purchase() external payable onlyEndUser { require(genesisSaleEndTime <= block.timestamp, "Public sale is not started"); require(_publicSaleFinished == false, "Public sale is already finished"); require(msg.value >= 1e16, "The purchase minimum amount is 0.01 ETH"); _sellOnPublicSale(_msgSender(), msg.value); } receive() external payable { require(false, "Use the purchase function to buy the ZONE token."); } uint256[44] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMathUpgradeable { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20Upgradeable.sol"; import "../../math/SafeMathUpgradeable.sol"; import "../../utils/AddressUpgradeable.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 SafeERC20Upgradeable { using SafeMathUpgradeable for uint256; using AddressUpgradeable for address; function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20Upgradeable 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(IERC20Upgradeable 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' // solhint-disable-next-line max-line-length 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(IERC20Upgradeable token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20Upgradeable 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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; address private _pendingOwner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init(address _ownerAddress) internal initializer { __Context_init_unchained(); __Ownable_init_unchained(_ownerAddress); } function __Ownable_init_unchained(address _ownerAddress) internal initializer { _owner = _ownerAddress; emit OwnershipTransferred(address(0), _ownerAddress); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Returns the address of the pending owner. */ function pendingOwner() public view virtual returns (address) { return _pendingOwner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _pendingOwner = newOwner; } function acceptOwnership() external { require(msg.sender == _pendingOwner, "acceptOwnership: Call must come from pendingOwner."); emit OwnershipTransferred(_owner, _pendingOwner); _owner = _pendingOwner; } uint256[48] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // solhint-disable-next-line compiler-version pragma solidity >=0.4.24 <0.8.0; import "../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../proxy/Initializable.sol"; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } uint256[50] private __gap; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":false,"internalType":"uint256","name":"newRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newEthCapacity","type":"uint256"}],"name":"PublicSaleEthCapacityChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"boughtEth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"soldToken","type":"uint256"}],"name":"PublicSaleFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"PublicSaleRateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"SoldOnPublicSale","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finishCrowdsale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"genesisSaleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicSaleEthCapacity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_ownerAddress","type":"address"},{"internalType":"address","name":"_zoneToken","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isCrowdsaleFinished","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleBoughtEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleSoldToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"rate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newEthCapacity","type":"uint256"}],"name":"setPublicSaleEthCapacity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"setRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"zoneToken","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b50611857806100206000396000f3fe60806040526004361061010d5760003560e01c8063715018a611610095578063aa56c8e711610064578063aa56c8e7146102bd578063b80cdcf6146102e6578063db75e17c146102fb578063e30c397814610325578063f2fde38b1461033a5761014b565b8063715018a61461026957806379ba50971461027e5780638cfd91a6146102935780638da5cb5b146102a85761014b565b80633ad0e5e2116100dc5780633ad0e5e2146101cb578063485cc955146101fc57806351b2ea1f146102375780635e84d7231461024c57806364edfbf0146102615761014b565b8063067f45b91461015057806309f9b481146101775780632c4e722e1461018c57806334fcf437146101a15761014b565b3661014b5760405162461bcd60e51b81526004018080602001828103825260308152602001806116616030913960400191505060405180910390fd5b005b600080fd5b34801561015c57600080fd5b5061016561036d565b60408051918252519081900360200190f35b34801561018357600080fd5b50610165610373565b34801561019857600080fd5b50610165610379565b3480156101ad57600080fd5b50610149600480360360208110156101c457600080fd5b5035610380565b3480156101d757600080fd5b506101e0610472565b604080516001600160a01b039092168252519081900360200190f35b34801561020857600080fd5b506101496004803603604081101561021f57600080fd5b506001600160a01b0381358116916020013516610486565b34801561024357600080fd5b50610165610636565b34801561025857600080fd5b5061016561063c565b61014961064b565b34801561027557600080fd5b5061014961079f565b34801561028a57600080fd5b5061014961084b565b34801561029f57600080fd5b506101656108f7565b3480156102b457600080fd5b506101e06108ff565b3480156102c957600080fd5b506102d261090e565b604080519115158252519081900360200190f35b3480156102f257600080fd5b5061014961093e565b34801561030757600080fd5b506101496004803603602081101561031e57600080fd5b5035610a01565b34801561033157600080fd5b506101e0610b1b565b34801561034657600080fd5b506101496004803603602081101561035d57600080fd5b50356001600160a01b0316610b2a565b60685481565b60675481565b6066545b90565b610388610bf3565b6001600160a01b03166103996108ff565b6001600160a01b0316146103e2576040805162461bcd60e51b8152602060048201819052602482015260008051602061178d833981519152604482015290519081900360640190fd5b80600010610437576040805162461bcd60e51b815260206004820152601a60248201527f5a4f4e453a2054686520726174652063616e277420626520302e000000000000604482015290519081900360640190fd5b60668190556040805182815290517f79e6b4d7a5586ff3d8254c33e90330f31d37922340f0d818b65f50c7291ba5b79181900360200190a150565b60695461010090046001600160a01b031681565b600054610100900460ff168061049f575061049f610bf7565b806104ad575060005460ff16155b6104e85760405162461bcd60e51b815260040180806020018281038252602e81526020018061173e602e913960400191505060405180910390fd5b600054610100900460ff16158015610513576000805460ff1961ff0019909116610100171660011790555b6001600160a01b038316610569576040805162461bcd60e51b815260206004820152601860248201527713dddb995c881859191c995cdcc81a5cc81a5b9d985b1a5960421b604482015290519081900360640190fd5b6001600160a01b0382166105bf576040805162461bcd60e51b815260206004820152601860248201527713dddb995c881859191c995cdcc81a5cc81a5b9d985b1a5960421b604482015290519081900360640190fd5b6105c883610c08565b60698054610100600160a81b0319166101006001600160a01b03851602179055681043561a8829300000606581905561061c90600c9061061690816a01287626ee52197b000000600a610cbc565b90610d1e565b6066558015610631576000805461ff00191690555b505050565b60655490565b6a01287626ee52197b00000081565b333214610695576040805162461bcd60e51b81526020600482015260136024820152722d27a7229d1027b7363c9032b73216bab9b2b960691b604482015290519081900360640190fd5b4263612dd37011156106ee576040805162461bcd60e51b815260206004820152601a60248201527f5075626c69632073616c65206973206e6f742073746172746564000000000000604482015290519081900360640190fd5b60695460ff1615610746576040805162461bcd60e51b815260206004820152601f60248201527f5075626c69632073616c6520697320616c72656164792066696e697368656400604482015290519081900360640190fd5b662386f26fc1000034101561078c5760405162461bcd60e51b81526004018080602001828103825260278152602001806117ad6027913960400191505060405180910390fd5b61079d610797610bf3565b34610d85565b565b6107a7610bf3565b6001600160a01b03166107b86108ff565b6001600160a01b031614610801576040805162461bcd60e51b8152602060048201819052602482015260008051602061178d833981519152604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b6034546001600160a01b031633146108945760405162461bcd60e51b815260040180806020018281038252603281526020018061170c6032913960400191505060405180910390fd5b6034546033546040516001600160a01b0392831692909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603454603380546001600160a01b0319166001600160a01b03909216919091179055565b63612dd37081565b6033546001600160a01b031690565b60695460009060ff16156109245750600161037d565b63612dd3704210156109385750600161037d565b50600090565b610946610bf3565b6001600160a01b03166109576108ff565b6001600160a01b0316146109a0576040805162461bcd60e51b8152602060048201819052602482015260008051602061178d833981519152604482015290519081900360640190fd5b4263612dd37011156109f9576040805162461bcd60e51b815260206004820152601a60248201527f5075626c69632073616c65206973206e6f742073746172746564000000000000604482015290519081900360640190fd5b61079d610fd0565b610a09610bf3565b6001600160a01b0316610a1a6108ff565b6001600160a01b031614610a63576040805162461bcd60e51b8152602060048201819052602482015260008051602061178d833981519152604482015290519081900360640190fd5b8060675410610aa35760405162461bcd60e51b81526004018080602001828103825260558152602001806116916055913960600191505060405180910390fd5b610ad4610abb606754836110da90919063ffffffff16565b606854610616906a01287626ee52197b000000906110da565b60668190556065829055604080519182526020820183905280517fbd0d57d866d23c5e05fefb5a23f0f22a28efec80fa288d6ae00b47405d3ee8a89281900390910190a150565b6034546001600160a01b031690565b610b32610bf3565b6001600160a01b0316610b436108ff565b6001600160a01b031614610b8c576040805162461bcd60e51b8152602060048201819052602482015260008051602061178d833981519152604482015290519081900360640190fd5b6001600160a01b038116610bd15760405162461bcd60e51b815260040180806020018281038252602681526020018061163b6026913960400191505060405180910390fd5b603480546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b6000610c0230611137565b15905090565b600054610100900460ff1680610c215750610c21610bf7565b80610c2f575060005460ff16155b610c6a5760405162461bcd60e51b815260040180806020018281038252602e81526020018061173e602e913960400191505060405180910390fd5b600054610100900460ff16158015610c95576000805460ff1961ff0019909116610100171660011790555b610c9d61113d565b610ca6826111df565b8015610cb8576000805461ff00191690555b5050565b600082610ccb57506000610d18565b82820282848281610cd857fe5b0414610d155760405162461bcd60e51b815260040180806020018281038252602181526020018061176c6021913960400191505060405180910390fd5b90505b92915050565b6000808211610d74576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610d7d57fe5b049392505050565b6000610d9e6067546065546110da90919063ffffffff16565b90506000818310610daf5781610db1565b825b905080830381610e08576040805162461bcd60e51b815260206004820152601c60248201527f5a4f4e453a2054686520616d6f756e742063616e277420626520302e00000000604482015290519081900360640190fd5b6000610e1f60665484610cbc90919063ffffffff16565b90506000610e2e82600a610d1e565b90506000678ac7230489e800008510610e4f57610e4c83600a610d1e565b90505b610e6381610e5d85856112ca565b906112ca565b606754909350610e7390866112ca565b606755606854610e8390846112ca565b60688190556a01287626ee52197b0000001015610ed15760405162461bcd60e51b81526004018080602001828103825260248152602001806117fe6024913960400191505060405180910390fd5b606954610eed9061010090046001600160a01b03168985611324565b6000610ef76108ff565b6040519091506001600160a01b0382169087156108fc029088906000818181858888f19350505050158015610f30573d6000803e3d6000fd5b50604080518781526020810186905281516001600160a01b038c16927f3c924c24e32dc6d93bf4dc79a699da648d296aefdadcbaea23037dae46257b4a928290030190a28415610fb2576040516001600160a01b038a169086156108fc029087906000818181858888f19350505050158015610fb0573d6000803e3d6000fd5b505b60675460655411610fc557610fc5610fd0565b505050505050505050565b60695460ff1615610fe05761079d565b6069805460ff191660011790819055604080516370a0823160e01b815230600482015290516000926001600160a01b0361010090910416916370a08231916024808301926020929190829003018186803b15801561103d57600080fd5b505afa158015611051573d6000803e3d6000fd5b505050506040513d602081101561106757600080fd5b5051905080156110945761109461107c6108ff565b60695461010090046001600160a01b03169083611324565b7fb8855a603ac7881ae8282e6a1b39c138c12e785d66f8582ddacc16f0277613dd606754606854604051808381526020018281526020019250505060405180910390a150565b600082821115611131576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3b151590565b600054610100900460ff16806111565750611156610bf7565b80611164575060005460ff16155b61119f5760405162461bcd60e51b815260040180806020018281038252602e81526020018061173e602e913960400191505060405180910390fd5b600054610100900460ff161580156111ca576000805460ff1961ff0019909116610100171660011790555b80156111dc576000805461ff00191690555b50565b600054610100900460ff16806111f857506111f8610bf7565b80611206575060005460ff16155b6112415760405162461bcd60e51b815260040180806020018281038252602e81526020018061173e602e913960400191505060405180910390fd5b600054610100900460ff1615801561126c576000805460ff1961ff0019909116610100171660011790555b603380546001600160a01b0319166001600160a01b0384169081179091556040516000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a38015610cb8576000805461ff00191690555050565b600082820183811015610d15576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261063190849060006113c6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114229092919063ffffffff16565b805190915015610631578080602001905160208110156113e557600080fd5b50516106315760405162461bcd60e51b815260040180806020018281038252602a8152602001806117d4602a913960400191505060405180910390fd5b6060611431848460008561143b565b90505b9392505050565b60608247101561147c5760405162461bcd60e51b81526004018080602001828103825260268152602001806116e66026913960400191505060405180910390fd5b61148585611137565b6114d6576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106115145780518252601f1990920191602091820191016114f5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611576576040519150601f19603f3d011682016040523d82523d6000602084013e61157b565b606091505b509150915061158b828286611596565b979650505050505050565b606083156115a5575081611434565b8251156115b55782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115ff5781810151838201526020016115e7565b50505050905090810190601f16801561162c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373557365207468652070757263686173652066756e6374696f6e20746f2062757920746865205a4f4e4520746f6b656e2e5a4f4e453a20546865206361706163697479206d7573742062652067726561746572207468616e2074686520616c726561647920626f7567687420616d6f756e7420696e20746865207075626c69632073616c652e416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c6163636570744f776e6572736869703a2043616c6c206d75737420636f6d652066726f6d2070656e64696e674f776e65722e496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572546865207075726368617365206d696e696d756d20616d6f756e7420697320302e3031204554485361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645a4f4e453a205075626c696320737570706c7920697320696e73756666696369656e742ea26469706673582212205f8e80ca07efd282f3c9cf8914b2a78c3ab6e6d0f8662e6d55eaefdd43ef0afa64736f6c63430007060033
Deployed Bytecode
0x60806040526004361061010d5760003560e01c8063715018a611610095578063aa56c8e711610064578063aa56c8e7146102bd578063b80cdcf6146102e6578063db75e17c146102fb578063e30c397814610325578063f2fde38b1461033a5761014b565b8063715018a61461026957806379ba50971461027e5780638cfd91a6146102935780638da5cb5b146102a85761014b565b80633ad0e5e2116100dc5780633ad0e5e2146101cb578063485cc955146101fc57806351b2ea1f146102375780635e84d7231461024c57806364edfbf0146102615761014b565b8063067f45b91461015057806309f9b481146101775780632c4e722e1461018c57806334fcf437146101a15761014b565b3661014b5760405162461bcd60e51b81526004018080602001828103825260308152602001806116616030913960400191505060405180910390fd5b005b600080fd5b34801561015c57600080fd5b5061016561036d565b60408051918252519081900360200190f35b34801561018357600080fd5b50610165610373565b34801561019857600080fd5b50610165610379565b3480156101ad57600080fd5b50610149600480360360208110156101c457600080fd5b5035610380565b3480156101d757600080fd5b506101e0610472565b604080516001600160a01b039092168252519081900360200190f35b34801561020857600080fd5b506101496004803603604081101561021f57600080fd5b506001600160a01b0381358116916020013516610486565b34801561024357600080fd5b50610165610636565b34801561025857600080fd5b5061016561063c565b61014961064b565b34801561027557600080fd5b5061014961079f565b34801561028a57600080fd5b5061014961084b565b34801561029f57600080fd5b506101656108f7565b3480156102b457600080fd5b506101e06108ff565b3480156102c957600080fd5b506102d261090e565b604080519115158252519081900360200190f35b3480156102f257600080fd5b5061014961093e565b34801561030757600080fd5b506101496004803603602081101561031e57600080fd5b5035610a01565b34801561033157600080fd5b506101e0610b1b565b34801561034657600080fd5b506101496004803603602081101561035d57600080fd5b50356001600160a01b0316610b2a565b60685481565b60675481565b6066545b90565b610388610bf3565b6001600160a01b03166103996108ff565b6001600160a01b0316146103e2576040805162461bcd60e51b8152602060048201819052602482015260008051602061178d833981519152604482015290519081900360640190fd5b80600010610437576040805162461bcd60e51b815260206004820152601a60248201527f5a4f4e453a2054686520726174652063616e277420626520302e000000000000604482015290519081900360640190fd5b60668190556040805182815290517f79e6b4d7a5586ff3d8254c33e90330f31d37922340f0d818b65f50c7291ba5b79181900360200190a150565b60695461010090046001600160a01b031681565b600054610100900460ff168061049f575061049f610bf7565b806104ad575060005460ff16155b6104e85760405162461bcd60e51b815260040180806020018281038252602e81526020018061173e602e913960400191505060405180910390fd5b600054610100900460ff16158015610513576000805460ff1961ff0019909116610100171660011790555b6001600160a01b038316610569576040805162461bcd60e51b815260206004820152601860248201527713dddb995c881859191c995cdcc81a5cc81a5b9d985b1a5960421b604482015290519081900360640190fd5b6001600160a01b0382166105bf576040805162461bcd60e51b815260206004820152601860248201527713dddb995c881859191c995cdcc81a5cc81a5b9d985b1a5960421b604482015290519081900360640190fd5b6105c883610c08565b60698054610100600160a81b0319166101006001600160a01b03851602179055681043561a8829300000606581905561061c90600c9061061690816a01287626ee52197b000000600a610cbc565b90610d1e565b6066558015610631576000805461ff00191690555b505050565b60655490565b6a01287626ee52197b00000081565b333214610695576040805162461bcd60e51b81526020600482015260136024820152722d27a7229d1027b7363c9032b73216bab9b2b960691b604482015290519081900360640190fd5b4263612dd37011156106ee576040805162461bcd60e51b815260206004820152601a60248201527f5075626c69632073616c65206973206e6f742073746172746564000000000000604482015290519081900360640190fd5b60695460ff1615610746576040805162461bcd60e51b815260206004820152601f60248201527f5075626c69632073616c6520697320616c72656164792066696e697368656400604482015290519081900360640190fd5b662386f26fc1000034101561078c5760405162461bcd60e51b81526004018080602001828103825260278152602001806117ad6027913960400191505060405180910390fd5b61079d610797610bf3565b34610d85565b565b6107a7610bf3565b6001600160a01b03166107b86108ff565b6001600160a01b031614610801576040805162461bcd60e51b8152602060048201819052602482015260008051602061178d833981519152604482015290519081900360640190fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b6034546001600160a01b031633146108945760405162461bcd60e51b815260040180806020018281038252603281526020018061170c6032913960400191505060405180910390fd5b6034546033546040516001600160a01b0392831692909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603454603380546001600160a01b0319166001600160a01b03909216919091179055565b63612dd37081565b6033546001600160a01b031690565b60695460009060ff16156109245750600161037d565b63612dd3704210156109385750600161037d565b50600090565b610946610bf3565b6001600160a01b03166109576108ff565b6001600160a01b0316146109a0576040805162461bcd60e51b8152602060048201819052602482015260008051602061178d833981519152604482015290519081900360640190fd5b4263612dd37011156109f9576040805162461bcd60e51b815260206004820152601a60248201527f5075626c69632073616c65206973206e6f742073746172746564000000000000604482015290519081900360640190fd5b61079d610fd0565b610a09610bf3565b6001600160a01b0316610a1a6108ff565b6001600160a01b031614610a63576040805162461bcd60e51b8152602060048201819052602482015260008051602061178d833981519152604482015290519081900360640190fd5b8060675410610aa35760405162461bcd60e51b81526004018080602001828103825260558152602001806116916055913960600191505060405180910390fd5b610ad4610abb606754836110da90919063ffffffff16565b606854610616906a01287626ee52197b000000906110da565b60668190556065829055604080519182526020820183905280517fbd0d57d866d23c5e05fefb5a23f0f22a28efec80fa288d6ae00b47405d3ee8a89281900390910190a150565b6034546001600160a01b031690565b610b32610bf3565b6001600160a01b0316610b436108ff565b6001600160a01b031614610b8c576040805162461bcd60e51b8152602060048201819052602482015260008051602061178d833981519152604482015290519081900360640190fd5b6001600160a01b038116610bd15760405162461bcd60e51b815260040180806020018281038252602681526020018061163b6026913960400191505060405180910390fd5b603480546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b6000610c0230611137565b15905090565b600054610100900460ff1680610c215750610c21610bf7565b80610c2f575060005460ff16155b610c6a5760405162461bcd60e51b815260040180806020018281038252602e81526020018061173e602e913960400191505060405180910390fd5b600054610100900460ff16158015610c95576000805460ff1961ff0019909116610100171660011790555b610c9d61113d565b610ca6826111df565b8015610cb8576000805461ff00191690555b5050565b600082610ccb57506000610d18565b82820282848281610cd857fe5b0414610d155760405162461bcd60e51b815260040180806020018281038252602181526020018061176c6021913960400191505060405180910390fd5b90505b92915050565b6000808211610d74576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610d7d57fe5b049392505050565b6000610d9e6067546065546110da90919063ffffffff16565b90506000818310610daf5781610db1565b825b905080830381610e08576040805162461bcd60e51b815260206004820152601c60248201527f5a4f4e453a2054686520616d6f756e742063616e277420626520302e00000000604482015290519081900360640190fd5b6000610e1f60665484610cbc90919063ffffffff16565b90506000610e2e82600a610d1e565b90506000678ac7230489e800008510610e4f57610e4c83600a610d1e565b90505b610e6381610e5d85856112ca565b906112ca565b606754909350610e7390866112ca565b606755606854610e8390846112ca565b60688190556a01287626ee52197b0000001015610ed15760405162461bcd60e51b81526004018080602001828103825260248152602001806117fe6024913960400191505060405180910390fd5b606954610eed9061010090046001600160a01b03168985611324565b6000610ef76108ff565b6040519091506001600160a01b0382169087156108fc029088906000818181858888f19350505050158015610f30573d6000803e3d6000fd5b50604080518781526020810186905281516001600160a01b038c16927f3c924c24e32dc6d93bf4dc79a699da648d296aefdadcbaea23037dae46257b4a928290030190a28415610fb2576040516001600160a01b038a169086156108fc029087906000818181858888f19350505050158015610fb0573d6000803e3d6000fd5b505b60675460655411610fc557610fc5610fd0565b505050505050505050565b60695460ff1615610fe05761079d565b6069805460ff191660011790819055604080516370a0823160e01b815230600482015290516000926001600160a01b0361010090910416916370a08231916024808301926020929190829003018186803b15801561103d57600080fd5b505afa158015611051573d6000803e3d6000fd5b505050506040513d602081101561106757600080fd5b5051905080156110945761109461107c6108ff565b60695461010090046001600160a01b03169083611324565b7fb8855a603ac7881ae8282e6a1b39c138c12e785d66f8582ddacc16f0277613dd606754606854604051808381526020018281526020019250505060405180910390a150565b600082821115611131576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3b151590565b600054610100900460ff16806111565750611156610bf7565b80611164575060005460ff16155b61119f5760405162461bcd60e51b815260040180806020018281038252602e81526020018061173e602e913960400191505060405180910390fd5b600054610100900460ff161580156111ca576000805460ff1961ff0019909116610100171660011790555b80156111dc576000805461ff00191690555b50565b600054610100900460ff16806111f857506111f8610bf7565b80611206575060005460ff16155b6112415760405162461bcd60e51b815260040180806020018281038252602e81526020018061173e602e913960400191505060405180910390fd5b600054610100900460ff1615801561126c576000805460ff1961ff0019909116610100171660011790555b603380546001600160a01b0319166001600160a01b0384169081179091556040516000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a38015610cb8576000805461ff00191690555050565b600082820183811015610d15576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261063190849060006113c6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114229092919063ffffffff16565b805190915015610631578080602001905160208110156113e557600080fd5b50516106315760405162461bcd60e51b815260040180806020018281038252602a8152602001806117d4602a913960400191505060405180910390fd5b6060611431848460008561143b565b90505b9392505050565b60608247101561147c5760405162461bcd60e51b81526004018080602001828103825260268152602001806116e66026913960400191505060405180910390fd5b61148585611137565b6114d6576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106115145780518252601f1990920191602091820191016114f5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611576576040519150601f19603f3d011682016040523d82523d6000602084013e61157b565b606091505b509150915061158b828286611596565b979650505050505050565b606083156115a5575081611434565b8251156115b55782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115ff5781810151838201526020016115e7565b50505050905090810190601f16801561162c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373557365207468652070757263686173652066756e6374696f6e20746f2062757920746865205a4f4e4520746f6b656e2e5a4f4e453a20546865206361706163697479206d7573742062652067726561746572207468616e2074686520616c726561647920626f7567687420616d6f756e7420696e20746865207075626c69632073616c652e416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c6163636570744f776e6572736869703a2043616c6c206d75737420636f6d652066726f6d2070656e64696e674f776e65722e496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572546865207075726368617365206d696e696d756d20616d6f756e7420697320302e3031204554485361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645a4f4e453a205075626c696320737570706c7920697320696e73756666696369656e742ea26469706673582212205f8e80ca07efd282f3c9cf8914b2a78c3ab6e6d0f8662e6d55eaefdd43ef0afa64736f6c63430007060033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.