More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 471 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy Tokens | 19337536 | 417 days ago | IN | 0 ETH | 0.00105046 | ||||
End Sale | 19333414 | 418 days ago | IN | 0 ETH | 0.00361896 | ||||
Buy Tokens | 19333299 | 418 days ago | IN | 0.1313 ETH | 0.00833998 | ||||
Buy Tokens | 19332989 | 418 days ago | IN | 0.1212 ETH | 0.00956192 | ||||
Buy Tokens | 19332844 | 418 days ago | IN | 0.2929 ETH | 0.00760961 | ||||
Buy Tokens | 19332822 | 418 days ago | IN | 0.2727 ETH | 0.00791501 | ||||
Buy Tokens | 19332624 | 418 days ago | IN | 0.707 ETH | 0.01081148 | ||||
Buy Tokens | 19332612 | 418 days ago | IN | 0.09595 ETH | 0.01057016 | ||||
Buy Tokens | 19331829 | 418 days ago | IN | 0.01442165 ETH | 0.00581755 | ||||
Buy Tokens | 19330771 | 418 days ago | IN | 0.064236 ETH | 0.00485252 | ||||
Buy Tokens | 19330650 | 418 days ago | IN | 0 ETH | 0.00642639 | ||||
Buy Tokens | 19330496 | 418 days ago | IN | 0 ETH | 0.00521608 | ||||
Buy Tokens | 19329705 | 418 days ago | IN | 0 ETH | 0.00545474 | ||||
Buy Tokens | 19329523 | 418 days ago | IN | 0 ETH | 0.0064483 | ||||
Buy Tokens | 19328712 | 419 days ago | IN | 0 ETH | 0.00846865 | ||||
Buy Tokens | 19328469 | 419 days ago | IN | 0.0505 ETH | 0.00533083 | ||||
Buy Tokens | 19328453 | 419 days ago | IN | 0.1562066 ETH | 0.00616174 | ||||
Buy Tokens | 19328369 | 419 days ago | IN | 0.04175458 ETH | 0.0059035 | ||||
Buy Tokens | 19328047 | 419 days ago | IN | 0.16463 ETH | 0.0088848 | ||||
Buy Tokens | 19325189 | 419 days ago | IN | 0.4141 ETH | 0.00480191 | ||||
Buy Tokens | 19325112 | 419 days ago | IN | 0 ETH | 0.00650799 | ||||
Buy Tokens | 19324140 | 419 days ago | IN | 0.02780658 ETH | 0.00426318 | ||||
Buy Tokens | 19322856 | 419 days ago | IN | 0.0404 ETH | 0.00412803 | ||||
Buy Tokens | 19321636 | 420 days ago | IN | 0.101 ETH | 0.00496065 | ||||
Buy Tokens | 19320955 | 420 days ago | IN | 0.0303 ETH | 0.00701894 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
Transfer | 19333299 | 418 days ago | 0.0013066 ETH | ||||
Transfer | 19333299 | 418 days ago | 0.12999339 ETH | ||||
Transfer | 19332989 | 418 days ago | 0.00120648 ETH | ||||
Transfer | 19332989 | 418 days ago | 0.11999351 ETH | ||||
Transfer | 19332844 | 418 days ago | 0.00290708 ETH | ||||
Transfer | 19332844 | 418 days ago | 0.28999291 ETH | ||||
Transfer | 19332822 | 418 days ago | 0.00270927 ETH | ||||
Transfer | 19332822 | 418 days ago | 0.26999072 ETH | ||||
Transfer | 19332624 | 418 days ago | 0.00700823 ETH | ||||
Transfer | 19332624 | 418 days ago | 0.69999176 ETH | ||||
Transfer | 19332612 | 418 days ago | 0.00096253 ETH | ||||
Transfer | 19332612 | 418 days ago | 0.09498746 ETH | ||||
Transfer | 19331829 | 418 days ago | 0.00014278 ETH | ||||
Transfer | 19331829 | 418 days ago | 0.01427887 ETH | ||||
Transfer | 19330771 | 418 days ago | 0.00064513 ETH | ||||
Transfer | 19330771 | 418 days ago | 0.06359086 ETH | ||||
Transfer | 19328469 | 419 days ago | 0.00050517 ETH | ||||
Transfer | 19328469 | 419 days ago | 0.04999482 ETH | ||||
Transfer | 19328453 | 419 days ago | 0.00154882 ETH | ||||
Transfer | 19328453 | 419 days ago | 0.15465777 ETH | ||||
Transfer | 19328369 | 419 days ago | 0.00041341 ETH | ||||
Transfer | 19328369 | 419 days ago | 0.04134116 ETH | ||||
Transfer | 19328047 | 419 days ago | 0.00163344 ETH | ||||
Transfer | 19328047 | 419 days ago | 0.16299655 ETH | ||||
Transfer | 19325189 | 419 days ago | 0.00410979 ETH |
Loading...
Loading
Contract Name:
AIRBPresaleMainnet
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {Address} from "@openzeppelin/contracts/utils/Address.sol"; import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; import {IAIRBPresaleMainnet} from "./IAirBPresaleMainnet.sol"; /** * * _____ .___ __________ __________ * / _ \ | |\______ \\______ \ * / /_\ \ | | | _/ | | _/ * / | \| | | | \ | | \ * \____|__ /|___| |____|_ / |______ / * \/ \/ \/ * * @title AIRBPresale contract on Ethereum Mainnet * @author InnoPlatforms - BillionAir.com * @notice Presale contract for BillionAir $AIRB AIRB * @notice This contract collects payments for the presale * of $AIRB tokens that is also available on the BSC network * */ contract AIRBPresaleMainnet is Ownable, ReentrancyGuard, IAIRBPresaleMainnet { using SafeERC20 for IERC20; using Address for address payable; // ERC-20 address => AggregatorV3Interface mapping(address => AggregatorV3Interface) public paymentTokenToPriceFeed; // tokensBought[address] = number of tokens bought by address mapping(address => uint256) public tokensBought; uint256 public tokensSold; // Supported payment methods address[] public supportedPaymentMethods; // Is supported payment method mapping(address => bool) public isSupportedPaymentMethod; uint256 public tokenPrice; uint256 public startTime; uint256 public endTime; // Treasury address address public immutable treasury; // Events event TokensBought( address indexed buyer, address indexed paymentToken, uint256 numberOfTokens, address indexed referrer ); /* _______________ ___________________________________ _______ _____ .____ \_ _____/\ \/ /\__ ___/\_ _____/\______ \ \ \ / _ \ | | | __)_ \ / | | | __)_ | _/ / | \ / /_\ \| | | \ / \ | | | \ | | \/ | \/ | \ |___ /_______ //___/\ \ |____| /_______ / |____|_ /\____|__ /\____|__ /_______ \ \/ \_/ \/ \/ \/ \/ \/ */ /** * * @notice Throws if called when presale is not active * @param paymentToken the method of payment * @param numberOfTokens the number of tokens to buy * @param referrer the referrer address */ function buyTokens( IERC20 paymentToken, uint256 numberOfTokens, address referrer ) external payable whenSaleIsActive nonReentrant { if (msg.value > 0) { require( address(paymentToken) == address(0), "Cannot have both ETH and BEP-20 payment" ); // Payment is in ETH uint256 cost = getCost(paymentToken, numberOfTokens); require(msg.value >= cost, "Not enough ETH sent"); _buyTokens(numberOfTokens, referrer); (bool sent, ) = payable(treasury).call{value: cost}(""); require(sent, "Failed to send ETH"); uint256 remainder = msg.value - cost; if (remainder > 0) { (sent, ) = payable(msg.sender).call{value: remainder}(""); require(sent, "Failed to refund extra ETH"); } } else { // Payment is in BEP-20 uint256 cost = getCost(paymentToken, numberOfTokens); require( paymentToken.allowance(msg.sender, address(this)) >= cost / 1000000000000, "Not enough allowance" ); _buyTokens(numberOfTokens, referrer); paymentToken.safeTransferFrom(msg.sender, treasury, cost / 1000000000000); } // Emit event emit TokensBought( msg.sender, address(paymentToken), numberOfTokens, referrer ); } function _buyTokens(uint256 numberOfTokens, address referrer) internal { tokensBought[msg.sender] += numberOfTokens; tokensSold += numberOfTokens; // Check if we have to give a bonus to the referrer if (referrer != address(0)) { require(referrer != msg.sender, "You cannot refer yourself"); uint256 bonusTokens = (numberOfTokens * 5) / 100; tokensBought[referrer] += bonusTokens; tokensSold += bonusTokens; } } /** * @notice List all supported payment methods */ function listSupportedPaymentMethods() external view returns (address[] memory) { return supportedPaymentMethods; } /** * @notice Preview the estimated cost of buying a given number of tokens * with a given payment method * @param paymentToken the method of payment * @param numberOfTokens the number of tokens to buy */ function previewCost( IERC20 paymentToken, uint256 numberOfTokens ) external view returns (uint256) { return getCost(paymentToken, numberOfTokens); } /* __________________________________________.___ _______ ________ _________ / _____/\_ _____/\__ ___/\__ ___/| |\ \ / _____/ / _____/ \_____ \ | __)_ | | | | | |/ | \/ \ ___ \_____ \ / \ | \ | | | | | / | \ \_\ \/ \ /_______ //_______ / |____| |____| |___\____|__ /\______ /_______ / \/ \/ \/ \/ \/ */ /** * * @param _tokenPrice AIRB token price (in USD) * @param _treasury treasury address */ constructor(uint256 _tokenPrice, address _treasury) { tokenPrice = _tokenPrice; treasury = _treasury; startTime = block.timestamp; endTime = 0; tokensSold = 0; } /** * @notice Modifier to check if presale is active */ modifier whenSaleIsActive() { require( block.timestamp >= startTime && endTime == 0, "Presale is not active" ); _; } /** * Calculate the cost of buying a number of tokens (AIRB) * @param paymentToken method of payment * @param numberOfTokens number of tokens to buy */ function getCost( IERC20 paymentToken, uint256 numberOfTokens ) internal view returns (uint256) { AggregatorV3Interface dataFeed = paymentTokenToPriceFeed[ address(paymentToken) ]; require(address(dataFeed) != address(0), "Invalid data feed"); require( isSupportedPaymentMethod[address(dataFeed)], "Unsupported payment method" ); (, int256 answer, , , ) = dataFeed.latestRoundData(); require(answer > 0, "Answer cannot be <= 0"); require(dataFeed.decimals() == 8, "Unexpected decimals"); uint256 price = uint256(answer) * 10 ** 10; require(tokenPrice > 0, "Invalid token price"); uint256 cost = (numberOfTokens * tokenPrice) / price; require(cost > 0, "Cost cannot be zero"); return cost; } /** * @notice Set the current price of the token (in USD terms) * @param _tokenPrice new price of the token */ function setTokenPrice(uint256 _tokenPrice) external onlyOwner { require(tokenPrice > 0, "Invalid token price"); tokenPrice = _tokenPrice; } /** * @notice Set a price feed for a given payment method * @param paymentToken IERC20 token to set price feed for * @param dataFeed AggregatorV3Interface price feed for the token */ function setPriceFeed( address paymentToken, AggregatorV3Interface dataFeed ) external onlyOwner { if (!isSupportedPaymentMethod[address(dataFeed)]) { paymentTokenToPriceFeed[paymentToken] = dataFeed; supportedPaymentMethods.push(paymentToken); isSupportedPaymentMethod[address(dataFeed)] = true; } } /** * @notice Unset a price feed for a given payment method * @param paymentToken IERC20 token to set price feed for * @param dataFeed AggregatorV3Interface price feed for the token */ function unsetPriceFeed( address paymentToken, AggregatorV3Interface dataFeed ) external onlyOwner { isSupportedPaymentMethod[address(dataFeed)] = false; paymentTokenToPriceFeed[paymentToken] = AggregatorV3Interface( address(0) ); // Create new supported payment method array without the removed payment method address[] memory newSupportedPaymentMethods = new address[]( supportedPaymentMethods.length - 1 ); uint256 j = 0; for (uint256 i = 0; i < supportedPaymentMethods.length; ++i) { if (supportedPaymentMethods[i] != address(dataFeed)) { newSupportedPaymentMethods[j] = supportedPaymentMethods[i]; ++j; } } supportedPaymentMethods = newSupportedPaymentMethods; } /** * @notice End the presale */ function endSale() external onlyOwner { require(endTime == 0, "Presale has already ended"); endTime = block.timestamp; } /** * @notice Transfer ownership of the contract to a new owner after the presale ends * @param newOwner new owner of the contract */ function transferOwnership(address newOwner) public override onlyOwner { Ownable.transferOwnership(newOwner); } /** * Revert any ETH directly sent to the contract */ receive() external payable { revert(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IAIRBPresaleMainnet { function buyTokens( IERC20 paymentToken, uint256 numberOfTokens, address referrer ) external payable; function listSupportedPaymentMethods() external view returns (address[] memory); function previewCost( IERC20 paymentToken, uint256 numberOfTokens ) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); function getRoundData(uint80 _roundId) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/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; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ 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)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ 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"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ 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"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation 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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/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 (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; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"_tokenPrice","type":"uint256"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"buyer","type":"address"},{"indexed":true,"internalType":"address","name":"paymentToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"indexed":true,"internalType":"address","name":"referrer","type":"address"}],"name":"TokensBought","type":"event"},{"inputs":[{"internalType":"contract IERC20","name":"paymentToken","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"address","name":"referrer","type":"address"}],"name":"buyTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"endSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isSupportedPaymentMethod","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"listSupportedPaymentMethods","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"paymentTokenToPriceFeed","outputs":[{"internalType":"contract AggregatorV3Interface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"paymentToken","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"previewCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"paymentToken","type":"address"},{"internalType":"contract AggregatorV3Interface","name":"dataFeed","type":"address"}],"name":"setPriceFeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenPrice","type":"uint256"}],"name":"setTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supportedPaymentMethods","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokensBought","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"paymentToken","type":"address"},{"internalType":"contract AggregatorV3Interface","name":"dataFeed","type":"address"}],"name":"unsetPriceFeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a060405234801562000010575f80fd5b5060405162002efa38038062002efa83398181016040528101906200003691906200021a565b620000566200004a620000b560201b60201c565b620000bc60201b60201c565b60018081905550816007819055508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050426008819055505f6009819055505f60048190555050506200025f565b5f33905090565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f819050919050565b620001958162000181565b8114620001a0575f80fd5b50565b5f81519050620001b3816200018a565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620001e482620001b9565b9050919050565b620001f681620001d8565b811462000201575f80fd5b50565b5f815190506200021481620001eb565b92915050565b5f80604083850312156200023357620002326200017d565b5b5f6200024285828601620001a3565b9250506020620002558582860162000204565b9150509250929050565b608051612c74620002865f395f81816104f3015281816108420152610ab90152612c745ff3fe608060405260043610610117575f3560e01c806378e979251161009f5780639d8abadb116100635780639d8abadb1461035a578063da10f58914610396578063e05823c2146103d2578063f2fde38b1461040e578063feb82d7e1461043657610120565b806378e97925146102965780637ff9b596146102c0578063819512cd146102ea5780638424edfb146103065780638da5cb5b1461033057610120565b806356b602f6116100e657806356b602f6146101ca57806361d027b3146102065780636a61e5fc14610230578063715018a61461025857806376e112861461026e57610120565b8063264d7797146101245780633197cbb614610160578063380d831b1461018a578063518ab2a8146101a057610120565b36610120575f80fd5b5f80fd5b34801561012f575f80fd5b5061014a60048036038101906101459190611aa6565b61045e565b6040516101579190611ae9565b60405180910390f35b34801561016b575f80fd5b50610174610473565b6040516101819190611ae9565b60405180910390f35b348015610195575f80fd5b5061019e610479565b005b3480156101ab575f80fd5b506101b46104ce565b6040516101c19190611ae9565b60405180910390f35b3480156101d5575f80fd5b506101f060048036038101906101eb9190611aa6565b6104d4565b6040516101fd9190611b1c565b60405180910390f35b348015610211575f80fd5b5061021a6104f1565b6040516102279190611b44565b60405180910390f35b34801561023b575f80fd5b5061025660048036038101906102519190611b87565b610515565b005b348015610263575f80fd5b5061026c61056b565b005b348015610279575f80fd5b50610294600480360381019061028f9190611bed565b61057e565b005b3480156102a1575f80fd5b506102aa610709565b6040516102b79190611ae9565b60405180910390f35b3480156102cb575f80fd5b506102d461070f565b6040516102e19190611ae9565b60405180910390f35b61030460048036038101906102ff9190611c66565b610715565b005b348015610311575f80fd5b5061031a610b9b565b6040516103279190611d6d565b60405180910390f35b34801561033b575f80fd5b50610344610c26565b6040516103519190611b44565b60405180910390f35b348015610365575f80fd5b50610380600480360381019061037b9190611d8d565b610c4d565b60405161038d9190611ae9565b60405180910390f35b3480156103a1575f80fd5b506103bc60048036038101906103b79190611b87565b610c60565b6040516103c99190611b44565b60405180910390f35b3480156103dd575f80fd5b506103f860048036038101906103f39190611aa6565b610c9b565b6040516104059190611e26565b60405180910390f35b348015610419575f80fd5b50610434600480360381019061042f9190611aa6565b610ccb565b005b348015610441575f80fd5b5061045c60048036038101906104579190611bed565b610cdf565b005b6003602052805f5260405f205f915090505481565b60095481565b610481610f56565b5f600954146104c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104bc90611e99565b60405180910390fd5b42600981905550565b60045481565b6006602052805f5260405f205f915054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b61051d610f56565b5f60075411610561576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055890611f01565b60405180910390fd5b8060078190555050565b610573610f56565b61057c5f610fd4565b565b610586610f56565b60065f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610705578060025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600582908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505b5050565b60085481565b60075481565b600854421015801561072857505f600954145b610767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075e90611f69565b60405180910390fd5b61076f611095565b5f3411156109d0575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146107e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107dc90611ff7565b60405180910390fd5b5f6107f084846110e4565b905080341015610835576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082c9061205f565b60405180910390fd5b61083f8383611467565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1682604051610884906120aa565b5f6040518083038185875af1925050503d805f81146108be576040519150601f19603f3d011682016040523d82523d5f602084013e6108c3565b606091505b5050905080610907576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fe90612108565b60405180910390fd5b5f82346109149190612153565b90505f8111156109c8573373ffffffffffffffffffffffffffffffffffffffff1681604051610942906120aa565b5f6040518083038185875af1925050503d805f811461097c576040519150601f19603f3d011682016040523d82523d5f602084013e610981565b606091505b505080925050816109c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109be906121d0565b60405180910390fd5b5b505050610b12565b5f6109db84846110e4565b905064e8d4a51000816109ee919061221b565b8473ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e33306040518363ffffffff1660e01b8152600401610a2992919061224b565b602060405180830381865afa158015610a44573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a689190612286565b1015610aa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa0906122fb565b60405180910390fd5b610ab38383611467565b610b10337f000000000000000000000000000000000000000000000000000000000000000064e8d4a5100084610ae9919061221b565b8773ffffffffffffffffffffffffffffffffffffffff16611600909392919063ffffffff16565b505b8073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9a67f863a1a9b6409563dfc086b2a502825186b67c8b46a841d22be69e63bb8885604051610b869190611ae9565b60405180910390a4610b96611689565b505050565b60606005805480602002602001604051908101604052809291908181526020018280548015610c1c57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610bd3575b5050505050905090565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f610c5883836110e4565b905092915050565b60058181548110610c6f575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002602052805f5260405f205f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610cd3610f56565b610cdc81611692565b50565b610ce7610f56565b5f60065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f6001600580549050610dc99190612153565b67ffffffffffffffff811115610de257610de1612319565b5b604051908082528060200260200182016040528015610e105781602001602082028036833780820191505090505b5090505f805b600580549050811015610f38578373ffffffffffffffffffffffffffffffffffffffff1660058281548110610e4e57610e4d612346565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f275760058181548110610ea557610ea4612346565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838381518110610ee057610edf612346565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505081610f2490612373565b91505b80610f3190612373565b9050610e16565b508160059080519060200190610f4f9291906119a6565b5050505050565b610f5e611714565b73ffffffffffffffffffffffffffffffffffffffff16610f7c610c26565b73ffffffffffffffffffffffffffffffffffffffff1614610fd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc990612404565b60405180910390fd5b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6002600154036110da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d19061246c565b60405180910390fd5b6002600181905550565b5f8060025f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111aa906124d4565b60405180910390fd5b60065f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1661123c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112339061253c565b60405180910390fd5b5f8173ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611286573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112aa91906125cc565b5050509150505f81136112f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e99061268d565b60405180910390fd5b60088273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561133d573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061136191906126e1565b60ff16146113a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139b90612756565b60405180910390fd5b5f6402540be400826113b69190612774565b90505f600754116113fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f390611f01565b60405180910390fd5b5f816007548761140c9190612774565b611416919061221b565b90505f811161145a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611451906127ff565b60405180910390fd5b8094505050505092915050565b8160035f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546114b3919061281d565b925050819055508160045f8282546114cb919061281d565b925050819055505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115fc573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611573576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156a9061289a565b60405180910390fd5b5f60646005846115839190612774565b61158d919061221b565b90508060035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546115db919061281d565b925050819055508060045f8282546115f3919061281d565b92505081905550505b5050565b611683846323b872dd60e01b858585604051602401611621939291906128b8565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061171b565b50505050565b60018081905550565b61169a610f56565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611708576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ff9061295d565b60405180910390fd5b61171181610fd4565b50565b5f33905090565b5f61177c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166117e19092919063ffffffff16565b90505f8151148061179d57508080602001905181019061179c91906129a5565b5b6117dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d390612a40565b60405180910390fd5b505050565b60606117ef84845f856117f8565b90509392505050565b60608247101561183d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183490612ace565b60405180910390fd5b5f808673ffffffffffffffffffffffffffffffffffffffff1685876040516118659190612b4e565b5f6040518083038185875af1925050503d805f811461189f576040519150601f19603f3d011682016040523d82523d5f602084013e6118a4565b606091505b50915091506118b5878383876118c1565b92505050949350505050565b60608315611922575f83510361191a576118da85611935565b611919576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191090612bae565b60405180910390fd5b5b82905061192d565b61192c8383611957565b5b949350505050565b5f808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b5f825111156119695781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199d9190612c1e565b60405180910390fd5b828054828255905f5260205f20908101928215611a1c579160200282015b82811115611a1b578251825f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550916020019190600101906119c4565b5b509050611a299190611a2d565b5090565b5b80821115611a44575f815f905550600101611a2e565b5090565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611a7582611a4c565b9050919050565b611a8581611a6b565b8114611a8f575f80fd5b50565b5f81359050611aa081611a7c565b92915050565b5f60208284031215611abb57611aba611a48565b5b5f611ac884828501611a92565b91505092915050565b5f819050919050565b611ae381611ad1565b82525050565b5f602082019050611afc5f830184611ada565b92915050565b5f8115159050919050565b611b1681611b02565b82525050565b5f602082019050611b2f5f830184611b0d565b92915050565b611b3e81611a6b565b82525050565b5f602082019050611b575f830184611b35565b92915050565b611b6681611ad1565b8114611b70575f80fd5b50565b5f81359050611b8181611b5d565b92915050565b5f60208284031215611b9c57611b9b611a48565b5b5f611ba984828501611b73565b91505092915050565b5f611bbc82611a6b565b9050919050565b611bcc81611bb2565b8114611bd6575f80fd5b50565b5f81359050611be781611bc3565b92915050565b5f8060408385031215611c0357611c02611a48565b5b5f611c1085828601611a92565b9250506020611c2185828601611bd9565b9150509250929050565b5f611c3582611a6b565b9050919050565b611c4581611c2b565b8114611c4f575f80fd5b50565b5f81359050611c6081611c3c565b92915050565b5f805f60608486031215611c7d57611c7c611a48565b5b5f611c8a86828701611c52565b9350506020611c9b86828701611b73565b9250506040611cac86828701611a92565b9150509250925092565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b611ce881611a6b565b82525050565b5f611cf98383611cdf565b60208301905092915050565b5f602082019050919050565b5f611d1b82611cb6565b611d258185611cc0565b9350611d3083611cd0565b805f5b83811015611d60578151611d478882611cee565b9750611d5283611d05565b925050600181019050611d33565b5085935050505092915050565b5f6020820190508181035f830152611d858184611d11565b905092915050565b5f8060408385031215611da357611da2611a48565b5b5f611db085828601611c52565b9250506020611dc185828601611b73565b9150509250929050565b5f819050919050565b5f611dee611de9611de484611a4c565b611dcb565b611a4c565b9050919050565b5f611dff82611dd4565b9050919050565b5f611e1082611df5565b9050919050565b611e2081611e06565b82525050565b5f602082019050611e395f830184611e17565b92915050565b5f82825260208201905092915050565b7f50726573616c652068617320616c726561647920656e646564000000000000005f82015250565b5f611e83601983611e3f565b9150611e8e82611e4f565b602082019050919050565b5f6020820190508181035f830152611eb081611e77565b9050919050565b7f496e76616c696420746f6b656e207072696365000000000000000000000000005f82015250565b5f611eeb601383611e3f565b9150611ef682611eb7565b602082019050919050565b5f6020820190508181035f830152611f1881611edf565b9050919050565b7f50726573616c65206973206e6f742061637469766500000000000000000000005f82015250565b5f611f53601583611e3f565b9150611f5e82611f1f565b602082019050919050565b5f6020820190508181035f830152611f8081611f47565b9050919050565b7f43616e6e6f74206861766520626f74682045544820616e64204245502d3230205f8201527f7061796d656e7400000000000000000000000000000000000000000000000000602082015250565b5f611fe1602783611e3f565b9150611fec82611f87565b604082019050919050565b5f6020820190508181035f83015261200e81611fd5565b9050919050565b7f4e6f7420656e6f756768204554482073656e74000000000000000000000000005f82015250565b5f612049601383611e3f565b915061205482612015565b602082019050919050565b5f6020820190508181035f8301526120768161203d565b9050919050565b5f81905092915050565b50565b5f6120955f8361207d565b91506120a082612087565b5f82019050919050565b5f6120b48261208a565b9150819050919050565b7f4661696c656420746f2073656e642045544800000000000000000000000000005f82015250565b5f6120f2601283611e3f565b91506120fd826120be565b602082019050919050565b5f6020820190508181035f83015261211f816120e6565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61215d82611ad1565b915061216883611ad1565b92508282039050818111156121805761217f612126565b5b92915050565b7f4661696c656420746f20726566756e64206578747261204554480000000000005f82015250565b5f6121ba601a83611e3f565b91506121c582612186565b602082019050919050565b5f6020820190508181035f8301526121e7816121ae565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61222582611ad1565b915061223083611ad1565b9250826122405761223f6121ee565b5b828204905092915050565b5f60408201905061225e5f830185611b35565b61226b6020830184611b35565b9392505050565b5f8151905061228081611b5d565b92915050565b5f6020828403121561229b5761229a611a48565b5b5f6122a884828501612272565b91505092915050565b7f4e6f7420656e6f75676820616c6c6f77616e63650000000000000000000000005f82015250565b5f6122e5601483611e3f565b91506122f0826122b1565b602082019050919050565b5f6020820190508181035f830152612312816122d9565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f61237d82611ad1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036123af576123ae612126565b5b600182019050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6123ee602083611e3f565b91506123f9826123ba565b602082019050919050565b5f6020820190508181035f83015261241b816123e2565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f612456601f83611e3f565b915061246182612422565b602082019050919050565b5f6020820190508181035f8301526124838161244a565b9050919050565b7f496e76616c6964206461746120666565640000000000000000000000000000005f82015250565b5f6124be601183611e3f565b91506124c98261248a565b602082019050919050565b5f6020820190508181035f8301526124eb816124b2565b9050919050565b7f556e737570706f72746564207061796d656e74206d6574686f640000000000005f82015250565b5f612526601a83611e3f565b9150612531826124f2565b602082019050919050565b5f6020820190508181035f8301526125538161251a565b9050919050565b5f69ffffffffffffffffffff82169050919050565b6125788161255a565b8114612582575f80fd5b50565b5f815190506125938161256f565b92915050565b5f819050919050565b6125ab81612599565b81146125b5575f80fd5b50565b5f815190506125c6816125a2565b92915050565b5f805f805f60a086880312156125e5576125e4611a48565b5b5f6125f288828901612585565b9550506020612603888289016125b8565b945050604061261488828901612272565b935050606061262588828901612272565b925050608061263688828901612585565b9150509295509295909350565b7f416e737765722063616e6e6f74206265203c3d203000000000000000000000005f82015250565b5f612677601583611e3f565b915061268282612643565b602082019050919050565b5f6020820190508181035f8301526126a48161266b565b9050919050565b5f60ff82169050919050565b6126c0816126ab565b81146126ca575f80fd5b50565b5f815190506126db816126b7565b92915050565b5f602082840312156126f6576126f5611a48565b5b5f612703848285016126cd565b91505092915050565b7f556e657870656374656420646563696d616c73000000000000000000000000005f82015250565b5f612740601383611e3f565b915061274b8261270c565b602082019050919050565b5f6020820190508181035f83015261276d81612734565b9050919050565b5f61277e82611ad1565b915061278983611ad1565b925082820261279781611ad1565b915082820484148315176127ae576127ad612126565b5b5092915050565b7f436f73742063616e6e6f74206265207a65726f000000000000000000000000005f82015250565b5f6127e9601383611e3f565b91506127f4826127b5565b602082019050919050565b5f6020820190508181035f830152612816816127dd565b9050919050565b5f61282782611ad1565b915061283283611ad1565b925082820190508082111561284a57612849612126565b5b92915050565b7f596f752063616e6e6f7420726566657220796f757273656c66000000000000005f82015250565b5f612884601983611e3f565b915061288f82612850565b602082019050919050565b5f6020820190508181035f8301526128b181612878565b9050919050565b5f6060820190506128cb5f830186611b35565b6128d86020830185611b35565b6128e56040830184611ada565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f612947602683611e3f565b9150612952826128ed565b604082019050919050565b5f6020820190508181035f8301526129748161293b565b9050919050565b61298481611b02565b811461298e575f80fd5b50565b5f8151905061299f8161297b565b92915050565b5f602082840312156129ba576129b9611a48565b5b5f6129c784828501612991565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e5f8201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b5f612a2a602a83611e3f565b9150612a35826129d0565b604082019050919050565b5f6020820190508181035f830152612a5781612a1e565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f5f8201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b5f612ab8602683611e3f565b9150612ac382612a5e565b604082019050919050565b5f6020820190508181035f830152612ae581612aac565b9050919050565b5f81519050919050565b5f5b83811015612b13578082015181840152602081019050612af8565b5f8484015250505050565b5f612b2882612aec565b612b32818561207d565b9350612b42818560208601612af6565b80840191505092915050565b5f612b598284612b1e565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000005f82015250565b5f612b98601d83611e3f565b9150612ba382612b64565b602082019050919050565b5f6020820190508181035f830152612bc581612b8c565b9050919050565b5f81519050919050565b5f601f19601f8301169050919050565b5f612bf082612bcc565b612bfa8185611e3f565b9350612c0a818560208601612af6565b612c1381612bd6565b840191505092915050565b5f6020820190508181035f830152612c368184612be6565b90509291505056fea26469706673582212209536348beabaae99d00e360b515ad89838151ef5011425cb1bdb1d1f97c7f5da64736f6c63430008150033000000000000000000000000000000000000000000000000006a94d74f430000000000000000000000000000575567f04602f6b000040cc4b2242940fd75226d
Deployed Bytecode
0x608060405260043610610117575f3560e01c806378e979251161009f5780639d8abadb116100635780639d8abadb1461035a578063da10f58914610396578063e05823c2146103d2578063f2fde38b1461040e578063feb82d7e1461043657610120565b806378e97925146102965780637ff9b596146102c0578063819512cd146102ea5780638424edfb146103065780638da5cb5b1461033057610120565b806356b602f6116100e657806356b602f6146101ca57806361d027b3146102065780636a61e5fc14610230578063715018a61461025857806376e112861461026e57610120565b8063264d7797146101245780633197cbb614610160578063380d831b1461018a578063518ab2a8146101a057610120565b36610120575f80fd5b5f80fd5b34801561012f575f80fd5b5061014a60048036038101906101459190611aa6565b61045e565b6040516101579190611ae9565b60405180910390f35b34801561016b575f80fd5b50610174610473565b6040516101819190611ae9565b60405180910390f35b348015610195575f80fd5b5061019e610479565b005b3480156101ab575f80fd5b506101b46104ce565b6040516101c19190611ae9565b60405180910390f35b3480156101d5575f80fd5b506101f060048036038101906101eb9190611aa6565b6104d4565b6040516101fd9190611b1c565b60405180910390f35b348015610211575f80fd5b5061021a6104f1565b6040516102279190611b44565b60405180910390f35b34801561023b575f80fd5b5061025660048036038101906102519190611b87565b610515565b005b348015610263575f80fd5b5061026c61056b565b005b348015610279575f80fd5b50610294600480360381019061028f9190611bed565b61057e565b005b3480156102a1575f80fd5b506102aa610709565b6040516102b79190611ae9565b60405180910390f35b3480156102cb575f80fd5b506102d461070f565b6040516102e19190611ae9565b60405180910390f35b61030460048036038101906102ff9190611c66565b610715565b005b348015610311575f80fd5b5061031a610b9b565b6040516103279190611d6d565b60405180910390f35b34801561033b575f80fd5b50610344610c26565b6040516103519190611b44565b60405180910390f35b348015610365575f80fd5b50610380600480360381019061037b9190611d8d565b610c4d565b60405161038d9190611ae9565b60405180910390f35b3480156103a1575f80fd5b506103bc60048036038101906103b79190611b87565b610c60565b6040516103c99190611b44565b60405180910390f35b3480156103dd575f80fd5b506103f860048036038101906103f39190611aa6565b610c9b565b6040516104059190611e26565b60405180910390f35b348015610419575f80fd5b50610434600480360381019061042f9190611aa6565b610ccb565b005b348015610441575f80fd5b5061045c60048036038101906104579190611bed565b610cdf565b005b6003602052805f5260405f205f915090505481565b60095481565b610481610f56565b5f600954146104c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104bc90611e99565b60405180910390fd5b42600981905550565b60045481565b6006602052805f5260405f205f915054906101000a900460ff1681565b7f000000000000000000000000575567f04602f6b000040cc4b2242940fd75226d81565b61051d610f56565b5f60075411610561576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055890611f01565b60405180910390fd5b8060078190555050565b610573610f56565b61057c5f610fd4565b565b610586610f56565b60065f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610705578060025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600582908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505b5050565b60085481565b60075481565b600854421015801561072857505f600954145b610767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075e90611f69565b60405180910390fd5b61076f611095565b5f3411156109d0575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146107e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107dc90611ff7565b60405180910390fd5b5f6107f084846110e4565b905080341015610835576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082c9061205f565b60405180910390fd5b61083f8383611467565b5f7f000000000000000000000000575567f04602f6b000040cc4b2242940fd75226d73ffffffffffffffffffffffffffffffffffffffff1682604051610884906120aa565b5f6040518083038185875af1925050503d805f81146108be576040519150601f19603f3d011682016040523d82523d5f602084013e6108c3565b606091505b5050905080610907576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fe90612108565b60405180910390fd5b5f82346109149190612153565b90505f8111156109c8573373ffffffffffffffffffffffffffffffffffffffff1681604051610942906120aa565b5f6040518083038185875af1925050503d805f811461097c576040519150601f19603f3d011682016040523d82523d5f602084013e610981565b606091505b505080925050816109c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109be906121d0565b60405180910390fd5b5b505050610b12565b5f6109db84846110e4565b905064e8d4a51000816109ee919061221b565b8473ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e33306040518363ffffffff1660e01b8152600401610a2992919061224b565b602060405180830381865afa158015610a44573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a689190612286565b1015610aa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa0906122fb565b60405180910390fd5b610ab38383611467565b610b10337f000000000000000000000000575567f04602f6b000040cc4b2242940fd75226d64e8d4a5100084610ae9919061221b565b8773ffffffffffffffffffffffffffffffffffffffff16611600909392919063ffffffff16565b505b8073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9a67f863a1a9b6409563dfc086b2a502825186b67c8b46a841d22be69e63bb8885604051610b869190611ae9565b60405180910390a4610b96611689565b505050565b60606005805480602002602001604051908101604052809291908181526020018280548015610c1c57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610bd3575b5050505050905090565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f610c5883836110e4565b905092915050565b60058181548110610c6f575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002602052805f5260405f205f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610cd3610f56565b610cdc81611692565b50565b610ce7610f56565b5f60065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f6001600580549050610dc99190612153565b67ffffffffffffffff811115610de257610de1612319565b5b604051908082528060200260200182016040528015610e105781602001602082028036833780820191505090505b5090505f805b600580549050811015610f38578373ffffffffffffffffffffffffffffffffffffffff1660058281548110610e4e57610e4d612346565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f275760058181548110610ea557610ea4612346565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838381518110610ee057610edf612346565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505081610f2490612373565b91505b80610f3190612373565b9050610e16565b508160059080519060200190610f4f9291906119a6565b5050505050565b610f5e611714565b73ffffffffffffffffffffffffffffffffffffffff16610f7c610c26565b73ffffffffffffffffffffffffffffffffffffffff1614610fd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc990612404565b60405180910390fd5b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6002600154036110da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d19061246c565b60405180910390fd5b6002600181905550565b5f8060025f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111aa906124d4565b60405180910390fd5b60065f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1661123c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112339061253c565b60405180910390fd5b5f8173ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611286573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112aa91906125cc565b5050509150505f81136112f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e99061268d565b60405180910390fd5b60088273ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561133d573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061136191906126e1565b60ff16146113a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139b90612756565b60405180910390fd5b5f6402540be400826113b69190612774565b90505f600754116113fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f390611f01565b60405180910390fd5b5f816007548761140c9190612774565b611416919061221b565b90505f811161145a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611451906127ff565b60405180910390fd5b8094505050505092915050565b8160035f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546114b3919061281d565b925050819055508160045f8282546114cb919061281d565b925050819055505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115fc573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611573576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156a9061289a565b60405180910390fd5b5f60646005846115839190612774565b61158d919061221b565b90508060035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546115db919061281d565b925050819055508060045f8282546115f3919061281d565b92505081905550505b5050565b611683846323b872dd60e01b858585604051602401611621939291906128b8565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061171b565b50505050565b60018081905550565b61169a610f56565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611708576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ff9061295d565b60405180910390fd5b61171181610fd4565b50565b5f33905090565b5f61177c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166117e19092919063ffffffff16565b90505f8151148061179d57508080602001905181019061179c91906129a5565b5b6117dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d390612a40565b60405180910390fd5b505050565b60606117ef84845f856117f8565b90509392505050565b60608247101561183d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183490612ace565b60405180910390fd5b5f808673ffffffffffffffffffffffffffffffffffffffff1685876040516118659190612b4e565b5f6040518083038185875af1925050503d805f811461189f576040519150601f19603f3d011682016040523d82523d5f602084013e6118a4565b606091505b50915091506118b5878383876118c1565b92505050949350505050565b60608315611922575f83510361191a576118da85611935565b611919576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191090612bae565b60405180910390fd5b5b82905061192d565b61192c8383611957565b5b949350505050565b5f808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b5f825111156119695781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199d9190612c1e565b60405180910390fd5b828054828255905f5260205f20908101928215611a1c579160200282015b82811115611a1b578251825f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550916020019190600101906119c4565b5b509050611a299190611a2d565b5090565b5b80821115611a44575f815f905550600101611a2e565b5090565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611a7582611a4c565b9050919050565b611a8581611a6b565b8114611a8f575f80fd5b50565b5f81359050611aa081611a7c565b92915050565b5f60208284031215611abb57611aba611a48565b5b5f611ac884828501611a92565b91505092915050565b5f819050919050565b611ae381611ad1565b82525050565b5f602082019050611afc5f830184611ada565b92915050565b5f8115159050919050565b611b1681611b02565b82525050565b5f602082019050611b2f5f830184611b0d565b92915050565b611b3e81611a6b565b82525050565b5f602082019050611b575f830184611b35565b92915050565b611b6681611ad1565b8114611b70575f80fd5b50565b5f81359050611b8181611b5d565b92915050565b5f60208284031215611b9c57611b9b611a48565b5b5f611ba984828501611b73565b91505092915050565b5f611bbc82611a6b565b9050919050565b611bcc81611bb2565b8114611bd6575f80fd5b50565b5f81359050611be781611bc3565b92915050565b5f8060408385031215611c0357611c02611a48565b5b5f611c1085828601611a92565b9250506020611c2185828601611bd9565b9150509250929050565b5f611c3582611a6b565b9050919050565b611c4581611c2b565b8114611c4f575f80fd5b50565b5f81359050611c6081611c3c565b92915050565b5f805f60608486031215611c7d57611c7c611a48565b5b5f611c8a86828701611c52565b9350506020611c9b86828701611b73565b9250506040611cac86828701611a92565b9150509250925092565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b611ce881611a6b565b82525050565b5f611cf98383611cdf565b60208301905092915050565b5f602082019050919050565b5f611d1b82611cb6565b611d258185611cc0565b9350611d3083611cd0565b805f5b83811015611d60578151611d478882611cee565b9750611d5283611d05565b925050600181019050611d33565b5085935050505092915050565b5f6020820190508181035f830152611d858184611d11565b905092915050565b5f8060408385031215611da357611da2611a48565b5b5f611db085828601611c52565b9250506020611dc185828601611b73565b9150509250929050565b5f819050919050565b5f611dee611de9611de484611a4c565b611dcb565b611a4c565b9050919050565b5f611dff82611dd4565b9050919050565b5f611e1082611df5565b9050919050565b611e2081611e06565b82525050565b5f602082019050611e395f830184611e17565b92915050565b5f82825260208201905092915050565b7f50726573616c652068617320616c726561647920656e646564000000000000005f82015250565b5f611e83601983611e3f565b9150611e8e82611e4f565b602082019050919050565b5f6020820190508181035f830152611eb081611e77565b9050919050565b7f496e76616c696420746f6b656e207072696365000000000000000000000000005f82015250565b5f611eeb601383611e3f565b9150611ef682611eb7565b602082019050919050565b5f6020820190508181035f830152611f1881611edf565b9050919050565b7f50726573616c65206973206e6f742061637469766500000000000000000000005f82015250565b5f611f53601583611e3f565b9150611f5e82611f1f565b602082019050919050565b5f6020820190508181035f830152611f8081611f47565b9050919050565b7f43616e6e6f74206861766520626f74682045544820616e64204245502d3230205f8201527f7061796d656e7400000000000000000000000000000000000000000000000000602082015250565b5f611fe1602783611e3f565b9150611fec82611f87565b604082019050919050565b5f6020820190508181035f83015261200e81611fd5565b9050919050565b7f4e6f7420656e6f756768204554482073656e74000000000000000000000000005f82015250565b5f612049601383611e3f565b915061205482612015565b602082019050919050565b5f6020820190508181035f8301526120768161203d565b9050919050565b5f81905092915050565b50565b5f6120955f8361207d565b91506120a082612087565b5f82019050919050565b5f6120b48261208a565b9150819050919050565b7f4661696c656420746f2073656e642045544800000000000000000000000000005f82015250565b5f6120f2601283611e3f565b91506120fd826120be565b602082019050919050565b5f6020820190508181035f83015261211f816120e6565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61215d82611ad1565b915061216883611ad1565b92508282039050818111156121805761217f612126565b5b92915050565b7f4661696c656420746f20726566756e64206578747261204554480000000000005f82015250565b5f6121ba601a83611e3f565b91506121c582612186565b602082019050919050565b5f6020820190508181035f8301526121e7816121ae565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61222582611ad1565b915061223083611ad1565b9250826122405761223f6121ee565b5b828204905092915050565b5f60408201905061225e5f830185611b35565b61226b6020830184611b35565b9392505050565b5f8151905061228081611b5d565b92915050565b5f6020828403121561229b5761229a611a48565b5b5f6122a884828501612272565b91505092915050565b7f4e6f7420656e6f75676820616c6c6f77616e63650000000000000000000000005f82015250565b5f6122e5601483611e3f565b91506122f0826122b1565b602082019050919050565b5f6020820190508181035f830152612312816122d9565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f61237d82611ad1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036123af576123ae612126565b5b600182019050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6123ee602083611e3f565b91506123f9826123ba565b602082019050919050565b5f6020820190508181035f83015261241b816123e2565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f612456601f83611e3f565b915061246182612422565b602082019050919050565b5f6020820190508181035f8301526124838161244a565b9050919050565b7f496e76616c6964206461746120666565640000000000000000000000000000005f82015250565b5f6124be601183611e3f565b91506124c98261248a565b602082019050919050565b5f6020820190508181035f8301526124eb816124b2565b9050919050565b7f556e737570706f72746564207061796d656e74206d6574686f640000000000005f82015250565b5f612526601a83611e3f565b9150612531826124f2565b602082019050919050565b5f6020820190508181035f8301526125538161251a565b9050919050565b5f69ffffffffffffffffffff82169050919050565b6125788161255a565b8114612582575f80fd5b50565b5f815190506125938161256f565b92915050565b5f819050919050565b6125ab81612599565b81146125b5575f80fd5b50565b5f815190506125c6816125a2565b92915050565b5f805f805f60a086880312156125e5576125e4611a48565b5b5f6125f288828901612585565b9550506020612603888289016125b8565b945050604061261488828901612272565b935050606061262588828901612272565b925050608061263688828901612585565b9150509295509295909350565b7f416e737765722063616e6e6f74206265203c3d203000000000000000000000005f82015250565b5f612677601583611e3f565b915061268282612643565b602082019050919050565b5f6020820190508181035f8301526126a48161266b565b9050919050565b5f60ff82169050919050565b6126c0816126ab565b81146126ca575f80fd5b50565b5f815190506126db816126b7565b92915050565b5f602082840312156126f6576126f5611a48565b5b5f612703848285016126cd565b91505092915050565b7f556e657870656374656420646563696d616c73000000000000000000000000005f82015250565b5f612740601383611e3f565b915061274b8261270c565b602082019050919050565b5f6020820190508181035f83015261276d81612734565b9050919050565b5f61277e82611ad1565b915061278983611ad1565b925082820261279781611ad1565b915082820484148315176127ae576127ad612126565b5b5092915050565b7f436f73742063616e6e6f74206265207a65726f000000000000000000000000005f82015250565b5f6127e9601383611e3f565b91506127f4826127b5565b602082019050919050565b5f6020820190508181035f830152612816816127dd565b9050919050565b5f61282782611ad1565b915061283283611ad1565b925082820190508082111561284a57612849612126565b5b92915050565b7f596f752063616e6e6f7420726566657220796f757273656c66000000000000005f82015250565b5f612884601983611e3f565b915061288f82612850565b602082019050919050565b5f6020820190508181035f8301526128b181612878565b9050919050565b5f6060820190506128cb5f830186611b35565b6128d86020830185611b35565b6128e56040830184611ada565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f612947602683611e3f565b9150612952826128ed565b604082019050919050565b5f6020820190508181035f8301526129748161293b565b9050919050565b61298481611b02565b811461298e575f80fd5b50565b5f8151905061299f8161297b565b92915050565b5f602082840312156129ba576129b9611a48565b5b5f6129c784828501612991565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e5f8201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b5f612a2a602a83611e3f565b9150612a35826129d0565b604082019050919050565b5f6020820190508181035f830152612a5781612a1e565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f5f8201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b5f612ab8602683611e3f565b9150612ac382612a5e565b604082019050919050565b5f6020820190508181035f830152612ae581612aac565b9050919050565b5f81519050919050565b5f5b83811015612b13578082015181840152602081019050612af8565b5f8484015250505050565b5f612b2882612aec565b612b32818561207d565b9350612b42818560208601612af6565b80840191505092915050565b5f612b598284612b1e565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000005f82015250565b5f612b98601d83611e3f565b9150612ba382612b64565b602082019050919050565b5f6020820190508181035f830152612bc581612b8c565b9050919050565b5f81519050919050565b5f601f19601f8301169050919050565b5f612bf082612bcc565b612bfa8185611e3f565b9350612c0a818560208601612af6565b612c1381612bd6565b840191505092915050565b5f6020820190508181035f830152612c368184612be6565b90509291505056fea26469706673582212209536348beabaae99d00e360b515ad89838151ef5011425cb1bdb1d1f97c7f5da64736f6c63430008150033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000006a94d74f430000000000000000000000000000575567f04602f6b000040cc4b2242940fd75226d
-----Decoded View---------------
Arg [0] : _tokenPrice (uint256): 30000000000000000
Arg [1] : _treasury (address): 0x575567F04602f6b000040cC4b2242940fD75226D
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000006a94d74f430000
Arg [1] : 000000000000000000000000575567f04602f6b000040cc4b2242940fd75226d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.