Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 78 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw CRB Tok... | 12762391 | 1271 days ago | IN | 0 ETH | 0.0004698 | ||||
Buy With ETH | 12750177 | 1272 days ago | IN | 0.034 ETH | 0.00126228 | ||||
Buy With ETH | 12735109 | 1275 days ago | IN | 0.08 ETH | 0.0012333 | ||||
Buy With ETH | 12679569 | 1283 days ago | IN | 0.037 ETH | 0.00267215 | ||||
Buy With ETH | 12678834 | 1284 days ago | IN | 0.20001 ETH | 0.00513875 | ||||
Buy With ETH | 12673360 | 1284 days ago | IN | 0.24 ETH | 0.00394961 | ||||
Buy With ETH | 12664922 | 1286 days ago | IN | 0.04 ETH | 0.00102775 | ||||
Buy With ETH | 12615002 | 1293 days ago | IN | 0.095 ETH | 0.00256937 | ||||
Buy With ETH | 12601959 | 1295 days ago | IN | 0.08 ETH | 0.00231657 | ||||
Buy With ETH | 12599824 | 1296 days ago | IN | 0.0285 ETH | 0.00126228 | ||||
Buy With ETH | 12599249 | 1296 days ago | IN | 0.031 ETH | 0.00126228 | ||||
Buy With ETH | 12579435 | 1299 days ago | IN | 0.489 ETH | 0.00114753 | ||||
Buy With ETH | 12574234 | 1300 days ago | IN | 0.0312 ETH | 0.00143885 | ||||
Buy With ETH | 12557264 | 1302 days ago | IN | 0.03 ETH | 0.00175775 | ||||
Buy With ETH | 12557128 | 1302 days ago | IN | 0.05 ETH | 0.00229506 | ||||
Buy With ETH | 12543269 | 1305 days ago | IN | 0.0035 ETH | 0.00429673 | ||||
Buy With ETH | 12543160 | 1305 days ago | IN | 0.49 ETH | 0.00424586 | ||||
Buy With ETH | 12542780 | 1305 days ago | IN | 0.05001 ETH | 0.00350462 | ||||
Buy With ETH | 12528609 | 1307 days ago | IN | 0.005 ETH | 0.00195272 | ||||
Buy With ETH | 12509431 | 1310 days ago | IN | 0.43 ETH | 0.00361316 | ||||
Buy With ETH | 12498852 | 1311 days ago | IN | 0.42 ETH | 0.00963925 | ||||
Buy With ETH | 12498326 | 1312 days ago | IN | 2.1 ETH | 0.00539339 | ||||
Buy With ETH | 12497865 | 1312 days ago | IN | 1.34 ETH | 0.00883598 | ||||
Buy With ETH | 12497390 | 1312 days ago | IN | 0.0500001 ETH | 0.00734419 | ||||
Buy With ETH | 12496504 | 1312 days ago | IN | 3.51 ETH | 0.00470487 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
12750177 | 1272 days ago | 0.017 ETH | ||||
12750177 | 1272 days ago | 0.017 ETH | ||||
12735109 | 1275 days ago | 0.04 ETH | ||||
12735109 | 1275 days ago | 0.04 ETH | ||||
12679569 | 1283 days ago | 0.0185 ETH | ||||
12679569 | 1283 days ago | 0.0185 ETH | ||||
12678834 | 1284 days ago | 0.100005 ETH | ||||
12678834 | 1284 days ago | 0.100005 ETH | ||||
12673360 | 1284 days ago | 0.12 ETH | ||||
12673360 | 1284 days ago | 0.12 ETH | ||||
12664922 | 1286 days ago | 0.02 ETH | ||||
12664922 | 1286 days ago | 0.02 ETH | ||||
12615002 | 1293 days ago | 0.0475 ETH | ||||
12615002 | 1293 days ago | 0.0475 ETH | ||||
12601959 | 1295 days ago | 0.04 ETH | ||||
12601959 | 1295 days ago | 0.04 ETH | ||||
12599824 | 1296 days ago | 0.01425 ETH | ||||
12599824 | 1296 days ago | 0.01425 ETH | ||||
12599249 | 1296 days ago | 0.0155 ETH | ||||
12599249 | 1296 days ago | 0.0155 ETH | ||||
12579435 | 1299 days ago | 0.2445 ETH | ||||
12579435 | 1299 days ago | 0.2445 ETH | ||||
12574234 | 1300 days ago | 0.0156 ETH | ||||
12574234 | 1300 days ago | 0.0156 ETH | ||||
12557264 | 1302 days ago | 0.015 ETH |
Loading...
Loading
Contract Name:
CRBPresale
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-05-14 */ // SPDX-License-Identifier: MIT pragma solidity ^0.7.6; // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4-solc-0.7/contracts/utils/Context.sol pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4-solc-0.7/contracts/access/Ownable.sol pragma solidity ^0.7.0; /** * @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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4-solc-0.7/contracts/utils/ReentrancyGuard.sol pragma solidity ^0.7.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 make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4-solc-0.7/contracts/utils/Address.sol pragma solidity ^0.7.0; /** * @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 * ==== */ 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); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(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); } } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4-solc-0.7/contracts/token/ERC20/SafeERC20.sol pragma solidity ^0.7.0; /** * @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 SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // 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(IERC20 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(IERC20 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(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4-solc-0.7/contracts/token/ERC20/IERC20.sol pragma solidity ^0.7.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4-solc-0.7/contracts/math/SafeMath.sol pragma solidity ^0.7.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } // File: CRBPresale.sol pragma solidity ^0.7.0; // import "hardhat/console.sol"; contract CRBPresale is Context, Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; /* ---------- VARIABLES ---------- */ // The token being sold IERC20 public token; // USDT instance IERC20 public usdt; // Addresses where funds are collected address public firstWallet; address public secondWallet; // How many token units a buyer gets per wei uint256 public ethRate; uint256 public usdtRate; // Duration of Presale uint256 public duration; // Starting date of Presale uint256 public startDate; // Ending date of Presale uint256 public endDate; // Minimum amount of investment a user can make uint256 public minEthInvestment; uint256 public minUsdtInvestment; // Total amount raised uint256 public weiRaised; // Buy type enum BuyType { ETH, USDT } /* ---------- EVENTS ---------- */ /** * Event for token purchase logging * @param beneficiary who got the tokens * @param value weis paid for purchase * @param amount amount of tokens purchased */ event TokensPurchased( address indexed beneficiary, uint256 value, uint256 amount ); /** * Event for bonus of referral address * @param beneficiary who got the tokens * @param amount amount of tokens purchased */ event TokenBonus( address indexed beneficiary, uint256 amount ); /** * Event for withdraw of all tokens * @param beneficiary who got the tokens (owner) * @param amount amount of tokens purchased */ event TokensWithdrawn( address indexed beneficiary, uint256 amount ); /** * Event for withdraw of all tokens * @param walletAddress who got the tokens (owner) * @param amount amount of tokens purchased */ event FundsForward( address indexed walletAddress, uint256 amount ); /** * Event when owner changes eth rate * @param prevRate previous rate of usdt * @param newRate new rate of usdt */ event ETHRateChanged( uint256 prevRate, uint256 newRate ); /** * Event when owner changes usdt rate * @param prevRate previous rate of usdt * @param newRate new rate of usdt */ event USDTRateChanged( uint256 prevRate, uint256 newRate ); /* ---------- CONSTRUCTOR ---------- */ /** * @param _firstWallet Address where half funds are collected * @param _secondWallet Address where half funds are collected * @param _usdt Address of USDT * @param _token Address of the token being sold */ constructor ( address _firstWallet, address _secondWallet, IERC20 _usdt, IERC20 _token, uint256 _ethRate, uint256 _usdtRate, uint256 _duration, uint256 _startDate, uint256 _minEthInvestment, uint256 _minUsdtInvestment ) { require(address(_usdt) != address(0), "CRBPresale: usdt cannot be zero address"); require(address(_token) != address(0), "CRBPresale: token cannot be zero address"); firstWallet = _firstWallet; secondWallet = _secondWallet; usdt = _usdt; token = _token; ethRate = _ethRate; usdtRate = _usdtRate; duration = _duration; startDate = _startDate; endDate = _startDate.add(_duration); minEthInvestment = _minEthInvestment; minUsdtInvestment = _minUsdtInvestment; } /* ---------- PUBLIC FUNCTIONS ---------- */ /** * @dev fallback function ***DO NOT OVERRIDE*** * Note that other contracts will transfer funds with a base gas stipend * of 2300, which is not enough to call buyTokens. Consider calling * buyTokens directly when purchasing tokens from a contract. */ receive () external payable { buyWithETH(address(0)); } function buyWithETH(address _refAddr) public payable { require(msg.value >= minEthInvestment, "CRBPresale: weiAmount not valid"); _buyTokens(msg.value, BuyType.ETH, _refAddr); } function buyWithUSDT(uint256 _weiAmount, address _refAddr) public { require(_weiAmount >= minUsdtInvestment, "CRBPresale: weiAmount not valid"); _buyTokens(_weiAmount, BuyType.USDT, _refAddr); } /* ---------- INTERNAL FUNCTIONS ---------- */ /** * @dev low level token purchase ***DO NOT OVERRIDE*** * This function has a non-reentrancy guard, so it shouldn't be called by * another `nonReentrant` function. * @param _weiAmount Value in wei to be converted into tokens */ function _buyTokens( uint256 _weiAmount, BuyType _buyType, address _refAddr ) internal nonReentrant { address _beneficiary = _msgSender(); _preValidatePurchase(_beneficiary, _weiAmount, _refAddr); _recieveUsdt(_beneficiary, _weiAmount, _buyType); // calculate token amount to be created uint256 _tokens = _getTokenAmount(_weiAmount, _buyType); // update state weiRaised = weiRaised.add(_weiAmount); _processPurchase(_beneficiary, _tokens); emit TokensPurchased(_beneficiary, _weiAmount, _tokens); if(_refAddr != address(0)) { uint256 _bonus = _tokens.mul(5).div(100); _processPurchase(_refAddr, _bonus); emit TokenBonus(_refAddr, _bonus); } _forwardFunds(_weiAmount, _buyType); } /** * @dev Validation of an incoming purchase. Use require statements to revert state * when conditions are not met. * @param _beneficiary Address performing the token purchase * @param _weiAmount Value in wei involved in the purchase */ function _preValidatePurchase( address _beneficiary, uint256 _weiAmount, address _refAddr ) internal view { require(_beneficiary != address(0), "CRBPresale: beneficiary is the zero address"); require(_weiAmount != 0, "CRBPresale: weiAmount is 0"); require(_refAddr != _beneficiary, "CRBPresale: Caller cannot refer itself"); require( block.timestamp >= startDate && block.timestamp <= endDate, "CRBPresale: Presale period is ended" ); } /** * @dev Source of tokens. Override this method to modify the way in which the crowdsale * ultimately gets and sends its tokens. * @param _beneficiary Address performing the token purchase * @param _weiAmount Number of tokens to be received */ function _recieveUsdt(address _beneficiary, uint256 _weiAmount, BuyType _buyType) internal { if (_buyType == BuyType.USDT) { usdt.safeTransferFrom(_beneficiary, address(this), _weiAmount); } } /** * @dev Executed when a purchase has been validated and is ready to be executed. Doesn't * necessarily emit/send tokens. * @param _beneficiary Address receiving the tokens * @param _tokenAmount Number of tokens to be purchased */ function _processPurchase(address _beneficiary, uint256 _tokenAmount) internal { // deliverTokens token.safeTransfer(_beneficiary, _tokenAmount); } /** * @param _weiAmount Value in wei to be converted into tokens * @return Number of tokens that can be purchased with the specified _weiAmount */ function _getTokenAmount( uint256 _weiAmount, BuyType _buyType ) internal view returns (uint256) { if (_buyType == BuyType.ETH) { return _weiAmount.div(ethRate).mul(10**18); } else { return _weiAmount.div(usdtRate).mul(10**18); } } /** * @dev USDT is forwarded on purchases */ function _forwardFunds(uint256 _weiAmount, BuyType _buyType) internal { uint256 _amount = _weiAmount/2; if (_buyType == BuyType.ETH) { payable(firstWallet).transfer(_amount); payable(secondWallet).transfer(_amount); } else { usdt.safeTransfer(firstWallet, _amount); usdt.safeTransfer(secondWallet, _amount); } emit FundsForward(firstWallet, _amount); emit FundsForward(secondWallet, _amount); } /* ---------- ONLY-OWNER FUNCTIONS ---------- */ function withdrawCRBTokens() public onlyOwner() { uint256 _amount = token.balanceOf(address(this)); token.transfer(msg.sender, _amount); emit TokensWithdrawn(msg.sender, _amount); } function setEthRate(uint256 _ethRate) public onlyOwner() { uint256 _preEthRate = ethRate; ethRate = _ethRate; emit ETHRateChanged(_preEthRate, _ethRate); } function setUsdtRate(uint256 _usdtRate) public onlyOwner() { uint256 _preUsdtRate = usdtRate; usdtRate = _usdtRate; emit USDTRateChanged(_preUsdtRate, _usdtRate); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_firstWallet","type":"address"},{"internalType":"address","name":"_secondWallet","type":"address"},{"internalType":"contract IERC20","name":"_usdt","type":"address"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_ethRate","type":"uint256"},{"internalType":"uint256","name":"_usdtRate","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_startDate","type":"uint256"},{"internalType":"uint256","name":"_minEthInvestment","type":"uint256"},{"internalType":"uint256","name":"_minUsdtInvestment","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"prevRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"ETHRateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"walletAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FundsForward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenBonus","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensPurchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"prevRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"USDTRateChanged","type":"event"},{"inputs":[{"internalType":"address","name":"_refAddr","type":"address"}],"name":"buyWithETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_weiAmount","type":"uint256"},{"internalType":"address","name":"_refAddr","type":"address"}],"name":"buyWithUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minEthInvestment","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minUsdtInvestment","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"secondWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ethRate","type":"uint256"}],"name":"setEthRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_usdtRate","type":"uint256"}],"name":"setUsdtRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdt","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdtRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weiRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawCRBTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620023f1380380620023f183398181016040526101408110156200003857600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291905050506000620000b5620003c860201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35060018081905550600073ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff161415620001e2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526027815260200180620023ca6027913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1614156200026a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180620023a26028913960400191505060405180910390fd5b89600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555088600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555087600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085600681905550846007819055508360088190555082600981905550620003a48484620003d060201b62000f601790919060201c565b600a8190555081600b8190555080600c819055505050505050505050505062000459565b600033905090565b6000808284019050838110156200044f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b611f3980620004696000396000f3fe6080604052600436106101235760003560e01c80636f4215b1116100a0578063d095362f11610064578063d095362f14610427578063d2d93f9014610482578063f2fde38b146104ad578063f6148bf7146104fe578063fc0c546a1461052957610134565b80636f4215b11461032e578063715018a6146103695780638da5cb5b14610380578063b020961a146103c1578063c24a0f8b146103fc57610134565b80632f48ab7d116100e75780632f48ab7d1461023c5780634042b66f1461027d578063444aa92f146102a85780636430c823146102ec578063646e49381461031757610134565b80630b97bc86146101395780630c4be888146101645780630fb5a6b4146101a5578063129634de146101d057806312cef27a146101fb57610134565b3661013457610132600061056a565b005b600080fd5b34801561014557600080fd5b5061014e6105f1565b6040518082815260200191505060405180910390f35b34801561017057600080fd5b506101796105f7565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101b157600080fd5b506101ba61061d565b6040518082815260200191505060405180910390f35b3480156101dc57600080fd5b506101e5610623565b6040518082815260200191505060405180910390f35b34801561020757600080fd5b50610210610629565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561024857600080fd5b5061025161064f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561028957600080fd5b50610292610675565b6040518082815260200191505060405180910390f35b6102ea600480360360208110156102be57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061056a565b005b3480156102f857600080fd5b5061030161067b565b6040518082815260200191505060405180910390f35b34801561032357600080fd5b5061032c610681565b005b34801561033a57600080fd5b506103676004803603602081101561035157600080fd5b8101908080359060200190929190505050610918565b005b34801561037557600080fd5b5061037e610a18565b005b34801561038c57600080fd5b50610395610b85565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103cd57600080fd5b506103fa600480360360208110156103e457600080fd5b8101908080359060200190929190505050610bae565b005b34801561040857600080fd5b50610411610cae565b6040518082815260200191505060405180910390f35b34801561043357600080fd5b506104806004803603604081101561044a57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cb4565b005b34801561048e57600080fd5b50610497610d3c565b6040518082815260200191505060405180910390f35b3480156104b957600080fd5b506104fc600480360360208110156104d057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d42565b005b34801561050a57600080fd5b50610513610f34565b6040518082815260200191505060405180910390f35b34801561053557600080fd5b5061053e610f3a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600b543410156105e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f43524250726573616c653a20776569416d6f756e74206e6f742076616c69640081525060200191505060405180910390fd5b6105ee34600083610fe8565b50565b60095481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b600c5481565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d5481565b600b5481565b6106896111e5565b73ffffffffffffffffffffffffffffffffffffffff166106a7610b85565b73ffffffffffffffffffffffffffffffffffffffff1614610730576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156107bb57600080fd5b505afa1580156107cf573d6000803e3d6000fd5b505050506040513d60208110156107e557600080fd5b81019080805190602001909291905050509050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561088b57600080fd5b505af115801561089f573d6000803e3d6000fd5b505050506040513d60208110156108b557600080fd5b8101908080519060200190929190505050503373ffffffffffffffffffffffffffffffffffffffff167f6352c5382c4a4578e712449ca65e83cdb392d045dfcf1cad9615189db2da244b826040518082815260200191505060405180910390a250565b6109206111e5565b73ffffffffffffffffffffffffffffffffffffffff1661093e610b85565b73ffffffffffffffffffffffffffffffffffffffff16146109c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60006006549050816006819055507fb34acba3e68d6b8d5a1c96e5985592d68c6a778831b7747cd93202b9b17a6f818183604051808381526020018281526020019250505060405180910390a15050565b610a206111e5565b73ffffffffffffffffffffffffffffffffffffffff16610a3e610b85565b73ffffffffffffffffffffffffffffffffffffffff1614610ac7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610bb66111e5565b73ffffffffffffffffffffffffffffffffffffffff16610bd4610b85565b73ffffffffffffffffffffffffffffffffffffffff1614610c5d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60006007549050816007819055507f3fa21de5bae99fb7a9bbafaa9899615927dce4b513083960c015568b5cc14deb8183604051808381526020018281526020019250505060405180910390a15050565b600a5481565b600c54821015610d2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f43524250726573616c653a20776569416d6f756e74206e6f742076616c69640081525060200191505060405180910390fd5b610d3882600183610fe8565b5050565b60065481565b610d4a6111e5565b73ffffffffffffffffffffffffffffffffffffffff16610d68610b85565b73ffffffffffffffffffffffffffffffffffffffff1614610df1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611df96026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60075481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080828401905083811015610fde576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60026001541415611061576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b600260018190555060006110736111e5565b90506110808185846111ed565b61108b8185856113dd565b60006110978585611450565b90506110ae85600d54610f6090919063ffffffff16565b600d819055506110be82826114de565b8173ffffffffffffffffffffffffffffffffffffffff167f8fafebcaf9d154343dad25669bfa277f4fbacd7ac6b0c4fed522580e040a0f338683604051808381526020018281526020019250505060405180910390a2600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146111cd576000611171606461116360058561152f90919063ffffffff16565b6115b590919063ffffffff16565b905061117d84826114de565b8373ffffffffffffffffffffffffffffffffffffffff167f5790008589edb1927ed7cb104fdfabb9888443aba07f593a8649b307de70b25b826040518082815260200191505060405180910390a2505b6111d7858561163e565b505060018081905550505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611273576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180611e89602b913960400191505060405180910390fd5b60008214156112ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f43524250726573616c653a20776569416d6f756e74206973203000000000000081525060200191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561136f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611ede6026913960400191505060405180910390fd5b60095442101580156113835750600a544211155b6113d8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180611e1f6023913960400191505060405180910390fd5b505050565b6001808111156113e957fe5b8160018111156113f557fe5b141561144b5761144a833084600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611907909392919063ffffffff16565b5b505050565b600080600181111561145e57fe5b82600181111561146a57fe5b14156114a65761149f670de0b6b3a7640000611491600654866115b590919063ffffffff16565b61152f90919063ffffffff16565b90506114d8565b6114d5670de0b6b3a76400006114c7600754866115b590919063ffffffff16565b61152f90919063ffffffff16565b90505b92915050565b61152b8282600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166119c89092919063ffffffff16565b5050565b60008083141561154257600090506115af565b600082840290508284828161155357fe5b04146115aa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611e686021913960400191505060405180910390fd5b809150505b92915050565b600080821161162c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b81838161163557fe5b04905092915050565b60006002838161164a57fe5b0490506000600181111561165a57fe5b82600181111561166657fe5b141561174357600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156116d4573d6000803e3d6000fd5b50600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561173d573d6000803e3d6000fd5b50611822565b6117b2600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166119c89092919063ffffffff16565b611821600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166119c89092919063ffffffff16565b5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f51a210333d669a271607f192fb658c0f3a45cffa2691b416f045e1f6e3adc0c7826040518082815260200191505060405180910390a2600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f51a210333d669a271607f192fb658c0f3a45cffa2691b416f045e1f6e3adc0c7826040518082815260200191505060405180910390a2505050565b6119c2846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611a6a565b50505050565b611a658363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611a6a565b505050565b6000611acc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611b599092919063ffffffff16565b9050600081511115611b5457808060200190516020811015611aed57600080fd5b8101908080519060200190929190505050611b53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611eb4602a913960400191505060405180910390fd5b5b505050565b6060611b688484600085611b71565b90509392505050565b606082471015611bcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611e426026913960400191505060405180910390fd5b611bd585611d19565b611c47576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611c965780518252602082019150602081019050602083039250611c73565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611cf8576040519150601f19603f3d011682016040523d82523d6000602084013e611cfd565b606091505b5091509150611d0d828286611d2c565b92505050949350505050565b600080823b905060008111915050919050565b60608315611d3c57829050611df1565b600083511115611d4f5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611db6578082015181840152602081019050611d9b565b50505050905090810190601f168015611de35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737343524250726573616c653a2050726573616c6520706572696f6420697320656e646564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743524250726573616c653a2062656e656669636961727920697320746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443524250726573616c653a2043616c6c65722063616e6e6f7420726566657220697473656c66a26469706673582212205d0986f5871a35beddaa16cff61d2b9fdfac06ce9d681b5ab386cfa5e536aeda64736f6c6343000706003343524250726573616c653a20746f6b656e2063616e6e6f74206265207a65726f206164647265737343524250726573616c653a20757364742063616e6e6f74206265207a65726f2061646472657373000000000000000000000000078f6cddfc753af6038506c1b47a8546ab6a5df5000000000000000000000000c22f9223b3054a72f6505c873c8019ee7cfdb7e9000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000001e78ede637b2fa9d66dacb0edf42ebb08320c71b00000000000000000000000000000000000000000000000000000f2884bbab0000000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000000000000003b53800000000000000000000000000000000000000000000000000000000060a42ad00000000000000000000000000000000000000000000000000001c6bf52634000000000000000000000000000000000000000000000000002b5e3af16b1880000
Deployed Bytecode
0x6080604052600436106101235760003560e01c80636f4215b1116100a0578063d095362f11610064578063d095362f14610427578063d2d93f9014610482578063f2fde38b146104ad578063f6148bf7146104fe578063fc0c546a1461052957610134565b80636f4215b11461032e578063715018a6146103695780638da5cb5b14610380578063b020961a146103c1578063c24a0f8b146103fc57610134565b80632f48ab7d116100e75780632f48ab7d1461023c5780634042b66f1461027d578063444aa92f146102a85780636430c823146102ec578063646e49381461031757610134565b80630b97bc86146101395780630c4be888146101645780630fb5a6b4146101a5578063129634de146101d057806312cef27a146101fb57610134565b3661013457610132600061056a565b005b600080fd5b34801561014557600080fd5b5061014e6105f1565b6040518082815260200191505060405180910390f35b34801561017057600080fd5b506101796105f7565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101b157600080fd5b506101ba61061d565b6040518082815260200191505060405180910390f35b3480156101dc57600080fd5b506101e5610623565b6040518082815260200191505060405180910390f35b34801561020757600080fd5b50610210610629565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561024857600080fd5b5061025161064f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561028957600080fd5b50610292610675565b6040518082815260200191505060405180910390f35b6102ea600480360360208110156102be57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061056a565b005b3480156102f857600080fd5b5061030161067b565b6040518082815260200191505060405180910390f35b34801561032357600080fd5b5061032c610681565b005b34801561033a57600080fd5b506103676004803603602081101561035157600080fd5b8101908080359060200190929190505050610918565b005b34801561037557600080fd5b5061037e610a18565b005b34801561038c57600080fd5b50610395610b85565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103cd57600080fd5b506103fa600480360360208110156103e457600080fd5b8101908080359060200190929190505050610bae565b005b34801561040857600080fd5b50610411610cae565b6040518082815260200191505060405180910390f35b34801561043357600080fd5b506104806004803603604081101561044a57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cb4565b005b34801561048e57600080fd5b50610497610d3c565b6040518082815260200191505060405180910390f35b3480156104b957600080fd5b506104fc600480360360208110156104d057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d42565b005b34801561050a57600080fd5b50610513610f34565b6040518082815260200191505060405180910390f35b34801561053557600080fd5b5061053e610f3a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600b543410156105e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f43524250726573616c653a20776569416d6f756e74206e6f742076616c69640081525060200191505060405180910390fd5b6105ee34600083610fe8565b50565b60095481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b600c5481565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d5481565b600b5481565b6106896111e5565b73ffffffffffffffffffffffffffffffffffffffff166106a7610b85565b73ffffffffffffffffffffffffffffffffffffffff1614610730576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156107bb57600080fd5b505afa1580156107cf573d6000803e3d6000fd5b505050506040513d60208110156107e557600080fd5b81019080805190602001909291905050509050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561088b57600080fd5b505af115801561089f573d6000803e3d6000fd5b505050506040513d60208110156108b557600080fd5b8101908080519060200190929190505050503373ffffffffffffffffffffffffffffffffffffffff167f6352c5382c4a4578e712449ca65e83cdb392d045dfcf1cad9615189db2da244b826040518082815260200191505060405180910390a250565b6109206111e5565b73ffffffffffffffffffffffffffffffffffffffff1661093e610b85565b73ffffffffffffffffffffffffffffffffffffffff16146109c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60006006549050816006819055507fb34acba3e68d6b8d5a1c96e5985592d68c6a778831b7747cd93202b9b17a6f818183604051808381526020018281526020019250505060405180910390a15050565b610a206111e5565b73ffffffffffffffffffffffffffffffffffffffff16610a3e610b85565b73ffffffffffffffffffffffffffffffffffffffff1614610ac7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610bb66111e5565b73ffffffffffffffffffffffffffffffffffffffff16610bd4610b85565b73ffffffffffffffffffffffffffffffffffffffff1614610c5d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60006007549050816007819055507f3fa21de5bae99fb7a9bbafaa9899615927dce4b513083960c015568b5cc14deb8183604051808381526020018281526020019250505060405180910390a15050565b600a5481565b600c54821015610d2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f43524250726573616c653a20776569416d6f756e74206e6f742076616c69640081525060200191505060405180910390fd5b610d3882600183610fe8565b5050565b60065481565b610d4a6111e5565b73ffffffffffffffffffffffffffffffffffffffff16610d68610b85565b73ffffffffffffffffffffffffffffffffffffffff1614610df1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611df96026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60075481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080828401905083811015610fde576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60026001541415611061576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b600260018190555060006110736111e5565b90506110808185846111ed565b61108b8185856113dd565b60006110978585611450565b90506110ae85600d54610f6090919063ffffffff16565b600d819055506110be82826114de565b8173ffffffffffffffffffffffffffffffffffffffff167f8fafebcaf9d154343dad25669bfa277f4fbacd7ac6b0c4fed522580e040a0f338683604051808381526020018281526020019250505060405180910390a2600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146111cd576000611171606461116360058561152f90919063ffffffff16565b6115b590919063ffffffff16565b905061117d84826114de565b8373ffffffffffffffffffffffffffffffffffffffff167f5790008589edb1927ed7cb104fdfabb9888443aba07f593a8649b307de70b25b826040518082815260200191505060405180910390a2505b6111d7858561163e565b505060018081905550505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611273576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180611e89602b913960400191505060405180910390fd5b60008214156112ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f43524250726573616c653a20776569416d6f756e74206973203000000000000081525060200191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561136f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611ede6026913960400191505060405180910390fd5b60095442101580156113835750600a544211155b6113d8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180611e1f6023913960400191505060405180910390fd5b505050565b6001808111156113e957fe5b8160018111156113f557fe5b141561144b5761144a833084600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611907909392919063ffffffff16565b5b505050565b600080600181111561145e57fe5b82600181111561146a57fe5b14156114a65761149f670de0b6b3a7640000611491600654866115b590919063ffffffff16565b61152f90919063ffffffff16565b90506114d8565b6114d5670de0b6b3a76400006114c7600754866115b590919063ffffffff16565b61152f90919063ffffffff16565b90505b92915050565b61152b8282600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166119c89092919063ffffffff16565b5050565b60008083141561154257600090506115af565b600082840290508284828161155357fe5b04146115aa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611e686021913960400191505060405180910390fd5b809150505b92915050565b600080821161162c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b81838161163557fe5b04905092915050565b60006002838161164a57fe5b0490506000600181111561165a57fe5b82600181111561166657fe5b141561174357600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156116d4573d6000803e3d6000fd5b50600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561173d573d6000803e3d6000fd5b50611822565b6117b2600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166119c89092919063ffffffff16565b611821600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166119c89092919063ffffffff16565b5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f51a210333d669a271607f192fb658c0f3a45cffa2691b416f045e1f6e3adc0c7826040518082815260200191505060405180910390a2600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f51a210333d669a271607f192fb658c0f3a45cffa2691b416f045e1f6e3adc0c7826040518082815260200191505060405180910390a2505050565b6119c2846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611a6a565b50505050565b611a658363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611a6a565b505050565b6000611acc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611b599092919063ffffffff16565b9050600081511115611b5457808060200190516020811015611aed57600080fd5b8101908080519060200190929190505050611b53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611eb4602a913960400191505060405180910390fd5b5b505050565b6060611b688484600085611b71565b90509392505050565b606082471015611bcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611e426026913960400191505060405180910390fd5b611bd585611d19565b611c47576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611c965780518252602082019150602081019050602083039250611c73565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611cf8576040519150601f19603f3d011682016040523d82523d6000602084013e611cfd565b606091505b5091509150611d0d828286611d2c565b92505050949350505050565b600080823b905060008111915050919050565b60608315611d3c57829050611df1565b600083511115611d4f5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611db6578082015181840152602081019050611d9b565b50505050905090810190601f168015611de35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737343524250726573616c653a2050726573616c6520706572696f6420697320656e646564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743524250726573616c653a2062656e656669636961727920697320746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443524250726573616c653a2043616c6c65722063616e6e6f7420726566657220697473656c66a26469706673582212205d0986f5871a35beddaa16cff61d2b9fdfac06ce9d681b5ab386cfa5e536aeda64736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000078f6cddfc753af6038506c1b47a8546ab6a5df5000000000000000000000000c22f9223b3054a72f6505c873c8019ee7cfdb7e9000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000001e78ede637b2fa9d66dacb0edf42ebb08320c71b00000000000000000000000000000000000000000000000000000f2884bbab0000000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000000000000003b53800000000000000000000000000000000000000000000000000000000060a42ad00000000000000000000000000000000000000000000000000001c6bf52634000000000000000000000000000000000000000000000000002b5e3af16b1880000
-----Decoded View---------------
Arg [0] : _firstWallet (address): 0x078F6cddfC753aF6038506c1B47A8546Ab6a5DF5
Arg [1] : _secondWallet (address): 0xc22f9223B3054a72f6505c873C8019Ee7CFdB7e9
Arg [2] : _usdt (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [3] : _token (address): 0x1E78EdE637B2Fa9d66daCB0EdF42ebb08320C71B
Arg [4] : _ethRate (uint256): 16666700000000
Arg [5] : _usdtRate (uint256): 50000000000000000
Arg [6] : _duration (uint256): 3888000
Arg [7] : _startDate (uint256): 1621371600
Arg [8] : _minEthInvestment (uint256): 500000000000000
Arg [9] : _minUsdtInvestment (uint256): 50000000000000000000
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 000000000000000000000000078f6cddfc753af6038506c1b47a8546ab6a5df5
Arg [1] : 000000000000000000000000c22f9223b3054a72f6505c873c8019ee7cfdb7e9
Arg [2] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [3] : 0000000000000000000000001e78ede637b2fa9d66dacb0edf42ebb08320c71b
Arg [4] : 00000000000000000000000000000000000000000000000000000f2884bbab00
Arg [5] : 00000000000000000000000000000000000000000000000000b1a2bc2ec50000
Arg [6] : 00000000000000000000000000000000000000000000000000000000003b5380
Arg [7] : 0000000000000000000000000000000000000000000000000000000060a42ad0
Arg [8] : 0000000000000000000000000000000000000000000000000001c6bf52634000
Arg [9] : 000000000000000000000000000000000000000000000002b5e3af16b1880000
Deployed Bytecode Sourcemap
28574:9420:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32729:22;32748:1;32729:10;:22::i;:::-;28574:9420;;;;;29174:24;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28901:26;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;29109:23;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;29360:32;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28934:27;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;28830:18;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;29429:24;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;32771:200;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;29322:31;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;37379:213;;;;;;;;;;;;;:::i;:::-;;37600:187;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2921:148;;;;;;;;;;;;;:::i;:::-;;2270:87;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;37795:196;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;29238:22;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;32979:217;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;29020:22;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;3224:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;29049:23;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28780:19;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;32771:200;32856:16;;32843:9;:29;;32835:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32919:44;32930:9;32941:11;32954:8;32919:10;:44::i;:::-;32771:200;:::o;29174:24::-;;;;:::o;28901:26::-;;;;;;;;;;;;;:::o;29109:23::-;;;;:::o;29360:32::-;;;;:::o;28934:27::-;;;;;;;;;;;;;:::o;28830:18::-;;;;;;;;;;;;;:::o;29429:24::-;;;;:::o;29322:31::-;;;;:::o;37379:213::-;2501:12;:10;:12::i;:::-;2490:23;;:7;:5;:7::i;:::-;:23;;;2482:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37438:15:::1;37456:5;;;;;;;;;;;:15;;;37480:4;37456:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;37438:48;;37497:5;;;;;;;;;;;:14;;;37512:10;37524:7;37497:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;37564:10;37548:36;;;37576:7;37548:36;;;;;;;;;;;;;;;;;;2561:1;37379:213::o:0;37600:187::-;2501:12;:10;:12::i;:::-;2490:23;;:7;:5;:7::i;:::-;:23;;;2482:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37668:19:::1;37690:7;;37668:29;;37718:8;37708:7;:18;;;;37742:37;37757:11;37770:8;37742:37;;;;;;;;;;;;;;;;;;;;;;;;2561:1;37600:187:::0;:::o;2921:148::-;2501:12;:10;:12::i;:::-;2490:23;;:7;:5;:7::i;:::-;:23;;;2482:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3028:1:::1;2991:40;;3012:6;::::0;::::1;;;;;;;;2991:40;;;;;;;;;;;;3059:1;3042:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;2921:148::o:0;2270:87::-;2316:7;2343:6;;;;;;;;;;;2336:13;;2270:87;:::o;37795:196::-;2501:12;:10;:12::i;:::-;2490:23;;:7;:5;:7::i;:::-;:23;;;2482:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37865:20:::1;37888:8;;37865:31;;37918:9;37907:8;:20;;;;37943:40;37959:12;37973:9;37943:40;;;;;;;;;;;;;;;;;;;;;;;;2561:1;37795:196:::0;:::o;29238:22::-;;;;:::o;32979:217::-;33078:17;;33064:10;:31;;33056:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33142:46;33153:10;33165:12;33179:8;33142:10;:46::i;:::-;32979:217;;:::o;29020:22::-;;;;:::o;3224:244::-;2501:12;:10;:12::i;:::-;2490:23;;:7;:5;:7::i;:::-;:23;;;2482:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3333:1:::1;3313:22;;:8;:22;;;;3305:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3423:8;3394:38;;3415:6;::::0;::::1;;;;;;;;3394:38;;;;;;;;;;;;3452:8;3443:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;3224:244:::0;:::o;29049:23::-;;;;:::o;28780:19::-;;;;;;;;;;;;;:::o;23819:179::-;23877:7;23897:9;23913:1;23909;:5;23897:17;;23938:1;23933;:6;;23925:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23989:1;23982:8;;;23819:179;;;;:::o;33523:900::-;5281:1;5878:7;;:19;;5870:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5281:1;6011:7;:18;;;;33691:20:::1;33714:12;:10;:12::i;:::-;33691:35;;33739:56;33760:12;33774:10;33786:8;33739:20;:56::i;:::-;33806:48;33819:12;33833:10;33845:8;33806:12;:48::i;:::-;33916:15;33934:37;33950:10;33962:8;33934:15;:37::i;:::-;33916:55;;34021:25;34035:10;34021:9;;:13;;:25;;;;:::i;:::-;34009:9;:37;;;;34059:39;34076:12;34090:7;34059:16;:39::i;:::-;34130:12;34114:50;;;34144:10;34156:7;34114:50;;;;;;;;;;;;;;;;;;;;;;;;34200:1;34180:22;;:8;:22;;;34177:191;;34219:14;34236:23;34255:3;34236:14;34248:1;34236:7;:11;;:14;;;;:::i;:::-;:18;;:23;;;;:::i;:::-;34219:40;;34274:34;34291:8;34301:6;34274:16;:34::i;:::-;34339:8;34328:28;;;34349:6;34328:28;;;;;;;;;;;;;;;;;;34177:191;;34380:35;34394:10;34406:8;34380:13;:35::i;:::-;6042:1;;5237::::0;6190:7;:22;;;;33523:900;;;:::o;762:106::-;815:15;850:10;843:17;;762:106;:::o;34704:544::-;34885:1;34861:26;;:12;:26;;;;34853:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34968:1;34954:10;:15;;34946:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35031:12;35019:24;;:8;:24;;;;35011:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35138:9;;35119:15;:28;;:58;;;;;35170:7;;35151:15;:26;;35119:58;35097:143;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34704:544;;;:::o;35537:228::-;35655:12;35643:24;;;;;;;;:8;:24;;;;;;;;;35639:119;;;35684:62;35706:12;35728:4;35735:10;35684:4;;;;;;;;;;;:21;;;;:62;;;;;;:::i;:::-;35639:119;35537:228;;;:::o;36389:345::-;36527:7;36569:11;36557:23;;;;;;;;:8;:23;;;;;;;;;36553:174;;;36604:35;36632:6;36604:23;36619:7;;36604:10;:14;;:23;;;;:::i;:::-;:27;;:35;;;;:::i;:::-;36597:42;;;;36553:174;36679:36;36708:6;36679:24;36694:8;;36679:10;:14;;:24;;;;:::i;:::-;:28;;:36;;;;:::i;:::-;36672:43;;36389:345;;;;;:::o;36041:170::-;36157:46;36176:12;36190;36157:5;;;;;;;;;;;:18;;;;:46;;;;;:::i;:::-;36041:170;;:::o;24698:220::-;24756:7;24785:1;24780;:6;24776:20;;;24795:1;24788:8;;;;24776:20;24807:9;24823:1;24819;:5;24807:17;;24852:1;24847;24843;:5;;;;;;:10;24835:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24909:1;24902:8;;;24698:220;;;;;:::o;25396:153::-;25454:7;25486:1;25482;:5;25474:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25540:1;25536;:5;;;;;;25529:12;;25396:153;;;;:::o;36804:511::-;36885:15;36914:1;36903:10;:12;;;;;;36885:30;;36944:11;36932:23;;;;;;;;:8;:23;;;;;;;;;36928:277;;;36980:11;;;;;;;;;;;36972:29;;:38;37002:7;36972:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37035:12;;;;;;;;;;;37027:30;;:39;37058:7;37027:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36928:277;;;37099:39;37117:11;;;;;;;;;;;37130:7;37099:4;;;;;;;;;;;:17;;;;:39;;;;;:::i;:::-;37153:40;37171:12;;;;;;;;;;;37185:7;37153:4;;;;;;;;;;;:17;;;;:40;;;;;:::i;:::-;36928:277;37235:11;;;;;;;;;;;37222:34;;;37248:7;37222:34;;;;;;;;;;;;;;;;;;37285:12;;;;;;;;;;;37272:35;;;37299:7;37272:35;;;;;;;;;;;;;;;;;;36804:511;;;:::o;15215:205::-;15316:96;15336:5;15366:27;;;15395:4;15401:2;15405:5;15343:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15316:19;:96::i;:::-;15215:205;;;;:::o;15030:177::-;15113:86;15133:5;15163:23;;;15188:2;15192:5;15140:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15113:19;:86::i;:::-;15030:177;;;:::o;17335:761::-;17759:23;17785:69;17813:4;17785:69;;;;;;;;;;;;;;;;;17793:5;17785:27;;;;:69;;;;;:::i;:::-;17759:95;;17889:1;17869:10;:17;:21;17865:224;;;18011:10;18000:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17992:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17865:224;17335:761;;;:::o;9975:195::-;10078:12;10110:52;10132:6;10140:4;10146:1;10149:12;10110:21;:52::i;:::-;10103:59;;9975:195;;;;;:::o;11027:530::-;11154:12;11212:5;11187:21;:30;;11179:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11279:18;11290:6;11279:10;:18::i;:::-;11271:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11405:12;11419:23;11446:6;:11;;11466:5;11474:4;11446:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11404:75;;;;11497:52;11515:7;11524:10;11536:12;11497:17;:52::i;:::-;11490:59;;;;11027:530;;;;;;:::o;7055:422::-;7115:4;7323:12;7434:7;7422:20;7414:28;;7468:1;7461:4;:8;7454:15;;;7055:422;;;:::o;13567:742::-;13682:12;13711:7;13707:595;;;13742:10;13735:17;;;;13707:595;13876:1;13856:10;:17;:21;13852:439;;;14119:10;14113:17;14180:15;14167:10;14163:2;14159:19;14152:44;14067:148;14262:12;14255:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13567:742;;;;;;:::o
Swarm Source
ipfs://5d0986f5871a35beddaa16cff61d2b9fdfac06ce9d681b5ab386cfa5e536aeda
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.