Overview
ETH Balance
ETH Value
$0.00Latest 25 from a total of 3,245 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Claim | 5147754 | 1465 days ago | IN | 0 ETH | 0.00060120746 ETH | ||||
| Claim | 5141451 | 1465 days ago | IN | 0 ETH | 0.000564908576 ETH | ||||
| Claim | 5120606 | 1465 days ago | IN | 0 ETH | 0.000583836805 ETH | ||||
| Claim | 5120590 | 1465 days ago | IN | 0 ETH | 0.000582094616 ETH | ||||
| Claim | 5104018 | 1466 days ago | IN | 0 ETH | 0.000596757356 ETH | ||||
| Claim | 5104004 | 1466 days ago | IN | 0 ETH | 0.000596164158 ETH | ||||
| Claim | 5103508 | 1466 days ago | IN | 0 ETH | 0.000597947621 ETH | ||||
| Claim | 5103487 | 1466 days ago | IN | 0 ETH | 0.000596168027 ETH | ||||
| Claim | 5102100 | 1466 days ago | IN | 0 ETH | 0.000601624111 ETH | ||||
| Claim | 5100965 | 1466 days ago | IN | 0 ETH | 0.00060040543 ETH | ||||
| Claim | 5100368 | 1466 days ago | IN | 0 ETH | 0.000584271309 ETH | ||||
| Claim | 5100193 | 1466 days ago | IN | 0 ETH | 0.000587754986 ETH | ||||
| Claim | 5099586 | 1466 days ago | IN | 0 ETH | 0.000585418605 ETH | ||||
| Claim | 5099078 | 1466 days ago | IN | 0 ETH | 0.000583659671 ETH | ||||
| Claim | 5099070 | 1466 days ago | IN | 0 ETH | 0.000587172474 ETH | ||||
| Claim | 5098901 | 1466 days ago | IN | 0 ETH | 0.000580182325 ETH | ||||
| Claim | 5097756 | 1466 days ago | IN | 0 ETH | 0.000587154745 ETH | ||||
| Claim | 5097426 | 1466 days ago | IN | 0 ETH | 0.000573719028 ETH | ||||
| Claim | 5097120 | 1466 days ago | IN | 0 ETH | 0.000568044137 ETH | ||||
| Claim | 5096862 | 1466 days ago | IN | 0 ETH | 0.000571438441 ETH | ||||
| Claim | 5096351 | 1466 days ago | IN | 0 ETH | 0.000574270324 ETH | ||||
| Claim | 5096266 | 1466 days ago | IN | 0 ETH | 0.000571995918 ETH | ||||
| Claim | 5096226 | 1466 days ago | IN | 0 ETH | 0.000571427316 ETH | ||||
| Claim | 5096146 | 1466 days ago | IN | 0 ETH | 0.000571455746 ETH | ||||
| Claim | 5095422 | 1466 days ago | IN | 0 ETH | 0.000571438441 ETH |
Latest 25 internal transactions (View All)
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 5147754 | 1465 days ago | 0 ETH | ||||
| 5141451 | 1465 days ago | 0 ETH | ||||
| 5104018 | 1466 days ago | 0 ETH | ||||
| 5104004 | 1466 days ago | 0 ETH | ||||
| 5103508 | 1466 days ago | 0 ETH | ||||
| 5103487 | 1466 days ago | 0 ETH | ||||
| 5102100 | 1466 days ago | 0 ETH | ||||
| 5100965 | 1466 days ago | 0 ETH | ||||
| 5100368 | 1466 days ago | 0 ETH | ||||
| 5100193 | 1466 days ago | 0 ETH | ||||
| 5099586 | 1466 days ago | 0 ETH | ||||
| 5099078 | 1466 days ago | 0 ETH | ||||
| 5099070 | 1466 days ago | 0 ETH | ||||
| 5098901 | 1466 days ago | 0 ETH | ||||
| 5097756 | 1466 days ago | 0 ETH | ||||
| 5097426 | 1466 days ago | 0 ETH | ||||
| 5097120 | 1466 days ago | 0 ETH | ||||
| 5096862 | 1466 days ago | 0 ETH | ||||
| 5096351 | 1466 days ago | 0 ETH | ||||
| 5096266 | 1466 days ago | 0 ETH | ||||
| 5096226 | 1466 days ago | 0 ETH | ||||
| 5096146 | 1466 days ago | 0 ETH | ||||
| 5095422 | 1466 days ago | 0 ETH | ||||
| 5094753 | 1466 days ago | 0 ETH | ||||
| 5094750 | 1466 days ago | 0 ETH |
Cross-Chain Transactions
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0
/* ******@@@@@@@@@**@*
***@@@@@@@@@@@@@@@@@@@@@@**
*@@@@@@**@@@@@@@@@@@@@@@@@*@@@*
*@@@@@@@@@@@@@@@@@@@*@@@@@@@@@@@*@**
*@@@@@@@@@@@@@@@@@@*@@@@@@@@@@@@@@@@@*
**@@@@@@@@@@@@@@@@@*@@@@@@@@@@@@@@@@@@@**
**@@@@@@@@@@@@@@@*@@@@@@@@@@@@@@@@@@@@@@@*
**@@@@@@@@@@@@@@@@*************************
**@@@@@@@@***********************************
*@@@***********************&@@@@@@@@@@@@@@@****, ******@@@@*
*********************@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*************
***@@@@@@@@@@@@@@@*****@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@****@@*********
**@@@@@**********************@@@@*****************#@@@@**********
*@@******************************************************
*@************************************
@*******************************
*@*************************
*********************
/$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$
|__ $$ | $$__ $$ /$$__ $$ /$$__ $$
| $$ /$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$$ | $$ \ $$| $$ \ $$| $$ \ $$
| $$ /$$__ $$| $$__ $$ /$$__ $$ /$$_____/ | $$ | $$| $$$$$$$$| $$ | $$
/$$ | $$| $$ \ $$| $$ \ $$| $$$$$$$$| $$$$$$ | $$ | $$| $$__ $$| $$ | $$
| $$ | $$| $$ | $$| $$ | $$| $$_____/ \____ $$ | $$ | $$| $$ | $$| $$ | $$
| $$$$$$/| $$$$$$/| $$ | $$| $$$$$$$ /$$$$$$$/ | $$$$$$$/| $$ | $$| $$$$$$/
\______/ \______/ |__/ |__/ \_______/|_______/ |_______/ |__/ |__/ \______/
*/
pragma solidity ^0.8.2;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol";
/// @author Jones DAO
/// @title Jones token sale contract
contract JonesTokenSale {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// Jones Token
IERC20 public jones;
// Withdrawer
address public owner;
// Keeps track of ETH deposited
uint256 public weiDeposited;
// Time when the token sale starts
uint256 public saleStart;
// Time when the token sale closes
uint256 public saleClose;
// Max cap on wei raised
uint256 public maxDeposits;
// Jones Tokens allocated to this contract
uint256 public jonesTokensAllocated;
// Total sale participants
uint256 public totalSaleParticipants;
// Amount each user deposited
mapping(address => uint256) public deposits;
/// Emits on ETH deposit
/// @param purchaser contract caller purchasing the tokens on behalf of beneficiary
/// @param beneficiary will be able to claim tokens after saleClose
/// @param value amount of ETH deposited
/// @param time block timestamp
event TokenDeposit(
address indexed purchaser,
address indexed beneficiary,
uint256 value,
uint256 time
);
/// Emits on token claim
/// @param claimer contract caller claiming on behalf of beneficiary
/// @param beneficiary receives the tokens they claimed
/// @param amount token amount beneficiary claimed
event TokenClaim(
address indexed claimer,
address indexed beneficiary,
uint256 amount
);
/// Emits on eth withdraw
/// @param amount amount of Eth that was withdrawn
event WithdrawEth(uint256 amount);
/// @param _jones JONES
/// @param _owner withdrawer
/// @param _saleStart time when the token sale starts
/// @param _saleClose time when the token sale closes
/// @param _maxDeposits max cap on wei raised
/// @param _jonesTokensAllocated JONES tokens allocated to this contract
constructor(
address _jones,
address _owner,
uint256 _saleStart,
uint256 _saleClose,
uint256 _maxDeposits,
uint256 _jonesTokensAllocated
) {
require(_owner != address(0), "invalid owner address");
require(_jones != address(0), "invalid token address");
require(_saleStart >= block.timestamp, "invalid saleStart");
require(_saleClose > _saleStart, "invalid saleClose");
require(_maxDeposits > 0, "invalid maxDeposits");
require(_jonesTokensAllocated > 0, "invalid jonesTokensAllocated");
jones = IERC20(_jones);
owner = _owner;
saleStart = _saleStart;
saleClose = _saleClose;
maxDeposits = _maxDeposits;
jonesTokensAllocated = _jonesTokensAllocated;
}
/// Deposit fallback
/// @dev must be equivalent to deposit(address beneficiary)
receive() external payable isEligibleSender {
address beneficiary = msg.sender;
require(beneficiary != address(0), "invalid address");
require(msg.value > 0, "invalid amount");
require(
msg.value <= 40 ether && msg.value >= 0.01 ether,
"invalid amount"
);
require(
(weiDeposited + msg.value) <= maxDeposits,
"maximum deposits reached"
);
require(saleStart <= block.timestamp, "sale hasn't started yet");
require(block.timestamp <= saleClose, "sale has closed");
// Update total sale participants
if (deposits[beneficiary] == 0) {
totalSaleParticipants = totalSaleParticipants.add(1);
}
deposits[beneficiary] = deposits[beneficiary].add(msg.value);
weiDeposited = weiDeposited.add(msg.value);
emit TokenDeposit(msg.sender, beneficiary, msg.value, block.timestamp);
}
/// Deposit
/// @param beneficiary will be able to claim tokens after saleClose
/// @dev must be equivalent to receive()
function deposit(address beneficiary) public payable isEligibleSender {
require(beneficiary != address(0), "invalid address");
require(msg.value > 0, "invalid amount");
require(
msg.value <= 40 ether && msg.value >= 0.01 ether,
"invalid amount"
);
require(
(weiDeposited + msg.value) <= maxDeposits,
"maximum deposits reached"
);
require(saleStart <= block.timestamp, "sale hasn't started yet");
require(block.timestamp <= saleClose, "sale has closed");
// Update total sale participants
if (deposits[beneficiary] == 0) {
totalSaleParticipants = totalSaleParticipants.add(1);
}
deposits[beneficiary] = deposits[beneficiary].add(msg.value);
weiDeposited = weiDeposited.add(msg.value);
emit TokenDeposit(msg.sender, beneficiary, msg.value, block.timestamp);
}
/// Claim
/// @param beneficiary receives the tokens they claimed
/// @dev claim calculation must be equivalent to claimAmount(address beneficiary)
function claim(address beneficiary) external returns (uint256) {
require(deposits[beneficiary] > 0, "no deposit");
require(block.timestamp > saleClose, "sale hasn't closed yet");
// total Jones allocated * user share in the ETH deposited
uint256 beneficiaryClaim = jonesTokensAllocated
.mul(deposits[beneficiary])
.div(weiDeposited);
deposits[beneficiary] = 0;
jones.safeTransfer(beneficiary, beneficiaryClaim);
emit TokenClaim(msg.sender, beneficiary, beneficiaryClaim);
return beneficiaryClaim;
}
/// @dev Withdraws eth deposited into the contract. Only owner can call this.
function withdraw() external {
require(owner == msg.sender, "caller is not the owner");
uint256 ethBalance = payable(address(this)).balance;
payable(msg.sender).transfer(ethBalance);
emit WithdrawEth(ethBalance);
}
/// View beneficiary's claimable token amount
/// @param beneficiary address to view claimable token amount
/// @dev claim calculation must be equivalent to the one in claim(address beneficiary)
function claimAmount(address beneficiary) external view returns (uint256) {
if (weiDeposited == 0) {
return 0;
}
// total Jones allocated * user share in the ETH deposited
return
jonesTokensAllocated.mul(deposits[beneficiary]).div(weiDeposited);
}
// Modifier is eligible sender modifier
modifier isEligibleSender() {
require(
msg.sender == tx.origin,
"Contracts are not allowed to snipe the sale"
);
_;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)
pragma solidity ^0.8.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;
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");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}{
"remappings": [],
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "london",
"libraries": {},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_jones","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_saleStart","type":"uint256"},{"internalType":"uint256","name":"_saleClose","type":"uint256"},{"internalType":"uint256","name":"_maxDeposits","type":"uint256"},{"internalType":"uint256","name":"_jonesTokensAllocated","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimer","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"purchaser","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"TokenDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawEth","type":"event"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"claimAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"deposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jones","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jonesTokensAllocated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxDeposits","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":"saleClose","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSaleParticipants","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weiDeposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60806040523480156200001157600080fd5b506040516200111d3803806200111d83398101604081905262000034916200027c565b6001600160a01b038516620000905760405162461bcd60e51b815260206004820152601560248201527f696e76616c6964206f776e65722061646472657373000000000000000000000060448201526064015b60405180910390fd5b6001600160a01b038616620000e85760405162461bcd60e51b815260206004820152601560248201527f696e76616c696420746f6b656e20616464726573730000000000000000000000604482015260640162000087565b428410156200012e5760405162461bcd60e51b81526020600482015260116024820152701a5b9d985b1a59081cd85b1954dd185c9d607a1b604482015260640162000087565b838311620001735760405162461bcd60e51b8152602060048201526011602482015270696e76616c69642073616c65436c6f736560781b604482015260640162000087565b60008211620001c55760405162461bcd60e51b815260206004820152601360248201527f696e76616c6964206d61784465706f7369747300000000000000000000000000604482015260640162000087565b60008111620002175760405162461bcd60e51b815260206004820152601c60248201527f696e76616c6964206a6f6e6573546f6b656e73416c6c6f636174656400000000604482015260640162000087565b600080546001600160a01b039788166001600160a01b0319918216179091556001805496909716951694909417909455600391909155600455600591909155600655620002d9565b80516001600160a01b03811681146200027757600080fd5b919050565b60008060008060008060c087890312156200029657600080fd5b620002a1876200025f565b9550620002b1602088016200025f565b945060408701519350606087015192506080870151915060a087015190509295509295509295565b610e3480620002e96000396000f3fe6080604052600436106100c65760003560e01c806378317be71161007f578063b763b09c11610059578063b763b09c14610451578063d6207c4214610471578063f340fa0114610487578063fc7e286d1461049a57600080fd5b806378317be7146103e35780638da5cb5b14610403578063ab0bcc411461043b57600080fd5b80631e83409a1461034157806332befd0814610374578063354d594b1461038a578063399bf69f146103a05780633ccfd60b146103b657806365302f68146103cd57600080fd5b3661033c573332146100f35760405162461bcd60e51b81526004016100ea90610c52565b60405180910390fd5b33806101335760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b60448201526064016100ea565b600034116101535760405162461bcd60e51b81526004016100ea90610c9d565b68022b1c8c1227a0000034111580156101735750662386f26fc100003410155b61018f5760405162461bcd60e51b81526004016100ea90610c9d565b600554346002546101a09190610cdb565b11156101e95760405162461bcd60e51b81526020600482015260186024820152771b585e1a5b5d5b4819195c1bdcda5d1cc81c995858da195960421b60448201526064016100ea565b4260035411156102355760405162461bcd60e51b81526020600482015260176024820152761cd85b19481a185cdb89dd081cdd185c9d1959081e595d604a1b60448201526064016100ea565b6004544211156102795760405162461bcd60e51b815260206004820152600f60248201526e1cd85b19481a185cc818db1bdcd959608a1b60448201526064016100ea565b6001600160a01b0381166000908152600860205260409020546102a8576007546102a49060016104c7565b6007555b6001600160a01b0381166000908152600860205260409020546102cb90346104c7565b6001600160a01b0382166000908152600860205260409020556002546102f190346104c7565b600255604080513481524260208201526001600160a01b0383169133917f4466433a9d9e9d68780a1f6286a07c1c7a0e597fe1af747b4ea79d013628fc9e910160405180910390a350005b600080fd5b34801561034d57600080fd5b5061036161035c366004610cf3565b6104da565b6040519081526020015b60405180910390f35b34801561038057600080fd5b5061036160075481565b34801561039657600080fd5b5061036160055481565b3480156103ac57600080fd5b5061036160065481565b3480156103c257600080fd5b506103cb61061f565b005b3480156103d957600080fd5b5061036160025481565b3480156103ef57600080fd5b506103616103fe366004610cf3565b6106e0565b34801561040f57600080fd5b50600154610423906001600160a01b031681565b6040516001600160a01b03909116815260200161036b565b34801561044757600080fd5b5061036160035481565b34801561045d57600080fd5b50600054610423906001600160a01b031681565b34801561047d57600080fd5b5061036160045481565b6103cb610495366004610cf3565b610729565b3480156104a657600080fd5b506103616104b5366004610cf3565b60086020526000908152604090205481565b60006104d38284610cdb565b9392505050565b6001600160a01b03811660009081526008602052604081205461052c5760405162461bcd60e51b815260206004820152600a6024820152691b9bc819195c1bdcda5d60b21b60448201526064016100ea565b60045442116105765760405162461bcd60e51b81526020600482015260166024820152751cd85b19481a185cdb89dd0818db1bdcd959081e595d60521b60448201526064016100ea565b6002546001600160a01b03831660009081526008602052604081205460065491926105ad9290916105a79190610999565b906109a5565b6001600160a01b038085166000908152600860205260408120819055549192506105d9911684836109b1565b6040518181526001600160a01b0384169033907fe08b397913fb308a6f799d3059933c86ebc9c03957a83af3e932ea54e979e52a9060200160405180910390a392915050565b6001546001600160a01b031633146106795760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e657200000000000000000060448201526064016100ea565b604051303190339082156108fc029083906000818181858888f193505050501580156106a9573d6000803e3d6000fd5b506040518181527fb2a3fd05447b0260cac7f8db72bfb10790a24739428c6d3abe439e09fcac37f99060200160405180910390a150565b6000600254600014156106f557506000919050565b6002546001600160a01b03831660009081526008602052604090205460065461072392916105a79190610999565b92915050565b3332146107485760405162461bcd60e51b81526004016100ea90610c52565b6001600160a01b0381166107905760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b60448201526064016100ea565b600034116107b05760405162461bcd60e51b81526004016100ea90610c9d565b68022b1c8c1227a0000034111580156107d05750662386f26fc100003410155b6107ec5760405162461bcd60e51b81526004016100ea90610c9d565b600554346002546107fd9190610cdb565b11156108465760405162461bcd60e51b81526020600482015260186024820152771b585e1a5b5d5b4819195c1bdcda5d1cc81c995858da195960421b60448201526064016100ea565b4260035411156108925760405162461bcd60e51b81526020600482015260176024820152761cd85b19481a185cdb89dd081cdd185c9d1959081e595d604a1b60448201526064016100ea565b6004544211156108d65760405162461bcd60e51b815260206004820152600f60248201526e1cd85b19481a185cc818db1bdcd959608a1b60448201526064016100ea565b6001600160a01b038116600090815260086020526040902054610905576007546109019060016104c7565b6007555b6001600160a01b03811660009081526008602052604090205461092890346104c7565b6001600160a01b03821660009081526008602052604090205560025461094e90346104c7565b600255604080513481524260208201526001600160a01b0383169133917f4466433a9d9e9d68780a1f6286a07c1c7a0e597fe1af747b4ea79d013628fc9e910160405180910390a350565b60006104d38284610d1c565b60006104d38284610d3b565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a03908490610a08565b505050565b6000610a5d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ada9092919063ffffffff16565b805190915015610a035780806020019051810190610a7b9190610d5d565b610a035760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016100ea565b6060610ae98484600085610af1565b949350505050565b606082471015610b525760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016100ea565b843b610ba05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016100ea565b600080866001600160a01b03168587604051610bbc9190610daf565b60006040518083038185875af1925050503d8060008114610bf9576040519150601f19603f3d011682016040523d82523d6000602084013e610bfe565b606091505b5091509150610c0e828286610c19565b979650505050505050565b60608315610c285750816104d3565b825115610c385782518084602001fd5b8160405162461bcd60e51b81526004016100ea9190610dcb565b6020808252602b908201527f436f6e74726163747320617265206e6f7420616c6c6f77656420746f20736e6960408201526a7065207468652073616c6560a81b606082015260800190565b6020808252600e908201526d1a5b9d985b1a5908185b5bdd5b9d60921b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115610cee57610cee610cc5565b500190565b600060208284031215610d0557600080fd5b81356001600160a01b03811681146104d357600080fd5b6000816000190483118215151615610d3657610d36610cc5565b500290565b600082610d5857634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610d6f57600080fd5b815180151581146104d357600080fd5b60005b83811015610d9a578181015183820152602001610d82565b83811115610da9576000848401525b50505050565b60008251610dc1818460208701610d7f565b9190910192915050565b6020815260008251806020840152610dea816040850160208701610d7f565b601f01601f1916919091016040019291505056fea2646970667358221220a0e501e39ddac570604b1a23c5cfa1fc022be6bd5218d2c44c276f805424b32764736f6c634300080a003300000000000000000000000010393c20975cf177a3513071bc110f7962cd67da000000000000000000000000fa82f1ba00b0697227e2ad6c668abb4c50ca0b1f0000000000000000000000000000000000000000000000000000000061f002600000000000000000000000000000000000000000000000000000000061f153e00000000000000000000000000000000000000000000000f6a7ef3d111b5800000000000000000000000000000000000000000000000167fd2f45f5fa60000000
Deployed Bytecode
0x6080604052600436106100c65760003560e01c806378317be71161007f578063b763b09c11610059578063b763b09c14610451578063d6207c4214610471578063f340fa0114610487578063fc7e286d1461049a57600080fd5b806378317be7146103e35780638da5cb5b14610403578063ab0bcc411461043b57600080fd5b80631e83409a1461034157806332befd0814610374578063354d594b1461038a578063399bf69f146103a05780633ccfd60b146103b657806365302f68146103cd57600080fd5b3661033c573332146100f35760405162461bcd60e51b81526004016100ea90610c52565b60405180910390fd5b33806101335760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b60448201526064016100ea565b600034116101535760405162461bcd60e51b81526004016100ea90610c9d565b68022b1c8c1227a0000034111580156101735750662386f26fc100003410155b61018f5760405162461bcd60e51b81526004016100ea90610c9d565b600554346002546101a09190610cdb565b11156101e95760405162461bcd60e51b81526020600482015260186024820152771b585e1a5b5d5b4819195c1bdcda5d1cc81c995858da195960421b60448201526064016100ea565b4260035411156102355760405162461bcd60e51b81526020600482015260176024820152761cd85b19481a185cdb89dd081cdd185c9d1959081e595d604a1b60448201526064016100ea565b6004544211156102795760405162461bcd60e51b815260206004820152600f60248201526e1cd85b19481a185cc818db1bdcd959608a1b60448201526064016100ea565b6001600160a01b0381166000908152600860205260409020546102a8576007546102a49060016104c7565b6007555b6001600160a01b0381166000908152600860205260409020546102cb90346104c7565b6001600160a01b0382166000908152600860205260409020556002546102f190346104c7565b600255604080513481524260208201526001600160a01b0383169133917f4466433a9d9e9d68780a1f6286a07c1c7a0e597fe1af747b4ea79d013628fc9e910160405180910390a350005b600080fd5b34801561034d57600080fd5b5061036161035c366004610cf3565b6104da565b6040519081526020015b60405180910390f35b34801561038057600080fd5b5061036160075481565b34801561039657600080fd5b5061036160055481565b3480156103ac57600080fd5b5061036160065481565b3480156103c257600080fd5b506103cb61061f565b005b3480156103d957600080fd5b5061036160025481565b3480156103ef57600080fd5b506103616103fe366004610cf3565b6106e0565b34801561040f57600080fd5b50600154610423906001600160a01b031681565b6040516001600160a01b03909116815260200161036b565b34801561044757600080fd5b5061036160035481565b34801561045d57600080fd5b50600054610423906001600160a01b031681565b34801561047d57600080fd5b5061036160045481565b6103cb610495366004610cf3565b610729565b3480156104a657600080fd5b506103616104b5366004610cf3565b60086020526000908152604090205481565b60006104d38284610cdb565b9392505050565b6001600160a01b03811660009081526008602052604081205461052c5760405162461bcd60e51b815260206004820152600a6024820152691b9bc819195c1bdcda5d60b21b60448201526064016100ea565b60045442116105765760405162461bcd60e51b81526020600482015260166024820152751cd85b19481a185cdb89dd0818db1bdcd959081e595d60521b60448201526064016100ea565b6002546001600160a01b03831660009081526008602052604081205460065491926105ad9290916105a79190610999565b906109a5565b6001600160a01b038085166000908152600860205260408120819055549192506105d9911684836109b1565b6040518181526001600160a01b0384169033907fe08b397913fb308a6f799d3059933c86ebc9c03957a83af3e932ea54e979e52a9060200160405180910390a392915050565b6001546001600160a01b031633146106795760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e657200000000000000000060448201526064016100ea565b604051303190339082156108fc029083906000818181858888f193505050501580156106a9573d6000803e3d6000fd5b506040518181527fb2a3fd05447b0260cac7f8db72bfb10790a24739428c6d3abe439e09fcac37f99060200160405180910390a150565b6000600254600014156106f557506000919050565b6002546001600160a01b03831660009081526008602052604090205460065461072392916105a79190610999565b92915050565b3332146107485760405162461bcd60e51b81526004016100ea90610c52565b6001600160a01b0381166107905760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b60448201526064016100ea565b600034116107b05760405162461bcd60e51b81526004016100ea90610c9d565b68022b1c8c1227a0000034111580156107d05750662386f26fc100003410155b6107ec5760405162461bcd60e51b81526004016100ea90610c9d565b600554346002546107fd9190610cdb565b11156108465760405162461bcd60e51b81526020600482015260186024820152771b585e1a5b5d5b4819195c1bdcda5d1cc81c995858da195960421b60448201526064016100ea565b4260035411156108925760405162461bcd60e51b81526020600482015260176024820152761cd85b19481a185cdb89dd081cdd185c9d1959081e595d604a1b60448201526064016100ea565b6004544211156108d65760405162461bcd60e51b815260206004820152600f60248201526e1cd85b19481a185cc818db1bdcd959608a1b60448201526064016100ea565b6001600160a01b038116600090815260086020526040902054610905576007546109019060016104c7565b6007555b6001600160a01b03811660009081526008602052604090205461092890346104c7565b6001600160a01b03821660009081526008602052604090205560025461094e90346104c7565b600255604080513481524260208201526001600160a01b0383169133917f4466433a9d9e9d68780a1f6286a07c1c7a0e597fe1af747b4ea79d013628fc9e910160405180910390a350565b60006104d38284610d1c565b60006104d38284610d3b565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a03908490610a08565b505050565b6000610a5d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ada9092919063ffffffff16565b805190915015610a035780806020019051810190610a7b9190610d5d565b610a035760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016100ea565b6060610ae98484600085610af1565b949350505050565b606082471015610b525760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016100ea565b843b610ba05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016100ea565b600080866001600160a01b03168587604051610bbc9190610daf565b60006040518083038185875af1925050503d8060008114610bf9576040519150601f19603f3d011682016040523d82523d6000602084013e610bfe565b606091505b5091509150610c0e828286610c19565b979650505050505050565b60608315610c285750816104d3565b825115610c385782518084602001fd5b8160405162461bcd60e51b81526004016100ea9190610dcb565b6020808252602b908201527f436f6e74726163747320617265206e6f7420616c6c6f77656420746f20736e6960408201526a7065207468652073616c6560a81b606082015260800190565b6020808252600e908201526d1a5b9d985b1a5908185b5bdd5b9d60921b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115610cee57610cee610cc5565b500190565b600060208284031215610d0557600080fd5b81356001600160a01b03811681146104d357600080fd5b6000816000190483118215151615610d3657610d36610cc5565b500290565b600082610d5857634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610d6f57600080fd5b815180151581146104d357600080fd5b60005b83811015610d9a578181015183820152602001610d82565b83811115610da9576000848401525b50505050565b60008251610dc1818460208701610d7f565b9190910192915050565b6020815260008251806020840152610dea816040850160208701610d7f565b601f01601f1916919091016040019291505056fea2646970667358221220a0e501e39ddac570604b1a23c5cfa1fc022be6bd5218d2c44c276f805424b32764736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000010393c20975cf177a3513071bc110f7962cd67da000000000000000000000000fa82f1ba00b0697227e2ad6c668abb4c50ca0b1f0000000000000000000000000000000000000000000000000000000061f002600000000000000000000000000000000000000000000000000000000061f153e00000000000000000000000000000000000000000000000f6a7ef3d111b5800000000000000000000000000000000000000000000000167fd2f45f5fa60000000
-----Decoded View---------------
Arg [0] : _jones (address): 0x10393c20975cF177a3513071bC110f7962CD67da
Arg [1] : _owner (address): 0xFa82f1bA00b0697227E2Ad6c668abb4C50CA0b1F
Arg [2] : _saleStart (uint256): 1643119200
Arg [3] : _saleClose (uint256): 1643205600
Arg [4] : _maxDeposits (uint256): 4550000000000000000000
Arg [5] : _jonesTokensAllocated (uint256): 1700000000000000025165824
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000010393c20975cf177a3513071bc110f7962cd67da
Arg [1] : 000000000000000000000000fa82f1ba00b0697227e2ad6c668abb4c50ca0b1f
Arg [2] : 0000000000000000000000000000000000000000000000000000000061f00260
Arg [3] : 0000000000000000000000000000000000000000000000000000000061f153e0
Arg [4] : 0000000000000000000000000000000000000000000000f6a7ef3d111b580000
Arg [5] : 0000000000000000000000000000000000000000000167fd2f45f5fa60000000
Net Worth in USD
Net Worth in ETH
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.