Source Code
Latest 25 from a total of 2,778 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Harvest | 18358613 | 875 days ago | IN | 0 ETH | 0.00032015 | ||||
| Harvest | 18008751 | 924 days ago | IN | 0 ETH | 0.00108924 | ||||
| Harvest | 17947115 | 933 days ago | IN | 0 ETH | 0.00094638 | ||||
| Harvest | 17030870 | 1062 days ago | IN | 0 ETH | 0.00117101 | ||||
| Harvest | 16665819 | 1113 days ago | IN | 0 ETH | 0.00190503 | ||||
| Harvest | 16335178 | 1160 days ago | IN | 0 ETH | 0.00170131 | ||||
| Harvest | 16153124 | 1185 days ago | IN | 0 ETH | 0.00133421 | ||||
| Harvest | 15862863 | 1226 days ago | IN | 0 ETH | 0.00063051 | ||||
| Harvest | 15683473 | 1251 days ago | IN | 0 ETH | 0.00291141 | ||||
| Harvest | 15672997 | 1252 days ago | IN | 0 ETH | 0.00059689 | ||||
| Harvest | 15512349 | 1275 days ago | IN | 0 ETH | 0.00042613 | ||||
| Harvest | 15512339 | 1275 days ago | IN | 0 ETH | 0.00062518 | ||||
| Harvest | 15481624 | 1280 days ago | IN | 0 ETH | 0.00066965 | ||||
| Harvest | 15295197 | 1310 days ago | IN | 0 ETH | 0.00028813 | ||||
| Harvest | 15193358 | 1326 days ago | IN | 0 ETH | 0.00175488 | ||||
| Harvest | 15056022 | 1347 days ago | IN | 0 ETH | 0.0012202 | ||||
| Harvest | 15040643 | 1350 days ago | IN | 0 ETH | 0.00351819 | ||||
| Harvest | 14984531 | 1360 days ago | IN | 0 ETH | 0.00147993 | ||||
| Harvest | 14928577 | 1369 days ago | IN | 0 ETH | 0.0043632 | ||||
| Harvest | 14888964 | 1376 days ago | IN | 0 ETH | 0.00172693 | ||||
| Harvest | 14831260 | 1386 days ago | IN | 0 ETH | 0.00168928 | ||||
| Harvest | 14780125 | 1394 days ago | IN | 0 ETH | 0.00182988 | ||||
| Harvest | 14773981 | 1395 days ago | IN | 0 ETH | 0.00224487 | ||||
| Harvest | 14746780 | 1399 days ago | IN | 0 ETH | 0.00266519 | ||||
| Harvest | 14738162 | 1400 days ago | IN | 0 ETH | 0.00113871 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 13690560 | 1564 days ago | 32.7370168 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
SaleTiers
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { MerkleProof } from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
contract SaleTiers is Ownable, ReentrancyGuard {
using SafeERC20 for IERC20;
struct UserInfo {
uint amount;
uint claimed;
}
IERC20 public immutable offeringToken;
bytes32 public merkleRoot;
uint public startTime;
uint public endTime;
uint public offeringAmount;
uint public raisingAmount;
bool public paused;
bool public finalized;
uint public totalAmount;
uint public totalUsers;
mapping(address => UserInfo) public userInfos;
event SetAmounts(uint offering, uint raising);
event SetTimes(uint start, uint end);
event SetMerkleRoot(bytes32 merkleRoot);
event SetPaused(bool paused);
event SetFinalized();
event Deposit(address indexed user, uint amount);
event Harvest(address indexed user, uint amount);
constructor(
address _offeringToken,
bytes32 _merkleRoot,
uint _startTime,
uint _endTime,
uint _offeringAmount,
uint _raisingAmount
) Ownable() {
offeringToken = IERC20(_offeringToken);
merkleRoot = _merkleRoot;
startTime = _startTime;
endTime = _endTime;
offeringAmount = _offeringAmount;
raisingAmount = _raisingAmount;
require(_offeringAmount > 0, "offering > 0");
require(_raisingAmount > 0, "raising > 0");
require(_startTime > block.timestamp, "start > now");
require(_startTime < _endTime, "start < end");
require(_startTime < 1e10, "start time not unix");
require(_endTime < 1e10, "start time not unix");
emit SetAmounts(_offeringAmount, _raisingAmount);
}
function setAmounts(uint offering, uint raising) external onlyOwner {
offeringAmount = offering;
raisingAmount = raising;
emit SetAmounts(offering, raising);
}
function setTimes(uint _startTime, uint _endTime) external onlyOwner {
startTime = _startTime;
endTime = _endTime;
emit SetTimes(_startTime, _endTime);
}
function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
merkleRoot = _merkleRoot;
emit SetMerkleRoot(_merkleRoot);
}
function setPaused(bool _paused) external onlyOwner {
paused = _paused;
emit SetPaused(_paused);
}
function setFinalized() external onlyOwner {
finalized = true;
emit SetFinalized();
}
function getParams() external view returns (uint, uint, uint, uint, uint, bool, bool) {
return (startTime, endTime, raisingAmount, offeringAmount, totalAmount, paused, finalized);
}
function getUserInfo(address _user) public view returns (uint, uint, uint, uint) {
UserInfo memory userInfo = userInfos[_user];
uint owed = (userInfo.amount * offeringAmount) / raisingAmount;
uint claimable = owed / 4;
if (block.timestamp > endTime + 30 days) { claimable += owed / 4; }
if (block.timestamp > endTime + 60 days) { claimable += owed / 4; }
if (block.timestamp > endTime + 90 days) { claimable += owed / 4; }
return (userInfo.amount, userInfo.claimed, owed, claimable);
}
function deposit(uint allocation, bytes32[] calldata merkleProof) public payable nonReentrant {
UserInfo storage userInfo = userInfos[msg.sender];
require(!paused, "paused");
require(block.timestamp >= startTime && block.timestamp <= endTime, "sale not active");
require(msg.value > 0, "need amount > 0");
require(userInfo.amount + msg.value <= allocation, "over allocation");
bytes32 node = keccak256(abi.encodePacked(msg.sender, allocation));
require(MerkleProof.verify(merkleProof, merkleRoot, node), "invalid proof");
if (userInfo.amount == 0) {
totalUsers += 1;
}
userInfo.amount = userInfo.amount + msg.value;
totalAmount = totalAmount + msg.value;
emit Deposit(msg.sender, msg.value);
}
function harvest() external nonReentrant {
(uint contributed, uint claimed, uint total, uint claimable) = getUserInfo(msg.sender);
require(!paused, "paused");
require(block.timestamp > endTime, "sale not ended");
require(finalized, "not finalized");
require(contributed > 0, "have you participated?");
uint amount = claimable - claimed;
require(amount > 0, "no amount available for claiming");
userInfos[msg.sender].claimed += amount;
offeringToken.safeTransfer(address(msg.sender), amount);
emit Harvest(msg.sender, amount);
}
function withdrawToken(address token, uint amount) external onlyOwner {
if (token == address(0)) {
(bool sent,) = msg.sender.call{value: amount}("");
require(sent, "failed to send");
} else {
IERC20(token).safeTransfer(msg.sender, amount);
}
}
}// SPDX-License-Identifier: MIT
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);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev These functions deal with verification of Merkle Trees proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs].
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
*
* See `test/utils/cryptography/MerkleProof.test.js` for some examples.
*/
library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*/
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
// Hash(current computed hash + current element of the proof)
computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
} else {
// Hash(current element of the proof + current computed hash)
computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
}
}
// Check if the computed hash (root) is equal to the provided root
return computedHash == root;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_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 {
_setOwner(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");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and 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;
}
}// SPDX-License-Identifier: MIT
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
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
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);
}
}
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_offeringToken","type":"address"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_offeringAmount","type":"uint256"},{"internalType":"uint256","name":"_raisingAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Harvest","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":false,"internalType":"uint256","name":"offering","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"raising","type":"uint256"}],"name":"SetAmounts","type":"event"},{"anonymous":false,"inputs":[],"name":"SetFinalized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"SetMerkleRoot","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"paused","type":"bool"}],"name":"SetPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"end","type":"uint256"}],"name":"SetTimes","type":"event"},{"inputs":[{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getParams","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"offeringAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"offeringToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raisingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"offering","type":"uint256"},{"internalType":"uint256","name":"raising","type":"uint256"}],"name":"setAmounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setFinalized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"setTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUsers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfos","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"claimed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040523480156200001157600080fd5b50604051620018723803806200187283398101604081905262000034916200029b565b6200003f336200024b565b600180556001600160601b0319606087901b166080526002859055600384905560048390556005829055600681905581620000b05760405162461bcd60e51b815260206004820152600c60248201526b06f66666572696e67203e20360a41b60448201526064015b60405180910390fd5b60008111620000f05760405162461bcd60e51b815260206004820152600b60248201526a072616973696e67203e20360ac1b6044820152606401620000a7565b4284116200012f5760405162461bcd60e51b815260206004820152600b60248201526a7374617274203e206e6f7760a81b6044820152606401620000a7565b8284106200016e5760405162461bcd60e51b815260206004820152600b60248201526a1cdd185c9d080f08195b9960aa1b6044820152606401620000a7565b6402540be4008410620001ba5760405162461bcd60e51b81526020600482015260136024820152720e6e8c2e4e840e8d2daca40dcdee840eadcd2f606b1b6044820152606401620000a7565b6402540be4008310620002065760405162461bcd60e51b81526020600482015260136024820152720e6e8c2e4e840e8d2daca40dcdee840eadcd2f606b1b6044820152606401620000a7565b60408051838152602081018390527f1bf0105f8005d2498dd2cecf83f0d0a334ccb55ef1700748bb25ec1d912e575e910160405180910390a1505050505050620002fc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060008060008060c08789031215620002b557600080fd5b86516001600160a01b0381168114620002cd57600080fd5b6020880151604089015160608a015160808b015160a0909b0151939c929b509099909850965090945092505050565b60805160601c611550620003226000396000818161043c0152610acf01526115506000f3fe60806040526004361061014b5760003560e01c8063715018a6116100b65780639e281a981161006f5780639e281a98146103eb578063b3f05b971461040b578063b78136071461042a578063bff1f9e11461045e578063e1af9a9514610474578063f2fde38b1461048a57600080fd5b8063715018a61461033857806378e979251461034d5780637cb64759146103635780638da5cb5b14610383578063983234b6146103b55780639c0a7669146103d557600080fd5b806335ac79c31161010857806335ac79c3146101fc57806343b0215f1461020f5780634641257d146102585780635c975abb1461026d5780635e615a6b146102975780636386c1c7146102f857600080fd5b806316c38b3c146101505780631a39d8ef146101725780631de772531461019b57806322434836146101b05780632eb4a7ab146101d05780633197cbb6146101e6575b600080fd5b34801561015c57600080fd5b5061017061016b3660046112ad565b6104aa565b005b34801561017e57600080fd5b5061018860085481565b6040519081526020015b60405180910390f35b3480156101a757600080fd5b50610170610525565b3480156101bc57600080fd5b506101706101cb36600461137f565b610589565b3480156101dc57600080fd5b5061018860025481565b3480156101f257600080fd5b5061018860045481565b61017061020a366004611300565b6105fb565b34801561021b57600080fd5b5061024361022a366004611268565b600a602052600090815260409020805460019091015482565b60408051928352602083019190915201610192565b34801561026457600080fd5b506101706108be565b34801561027957600080fd5b506007546102879060ff1681565b6040519015158152602001610192565b3480156102a357600080fd5b50600354600454600654600554600854600754604080519687526020870195909552938501929092526060840152608083015260ff808216151560a084015261010090910416151560c082015260e001610192565b34801561030457600080fd5b50610318610313366004611268565b610b28565b604080519485526020850193909352918301526060820152608001610192565b34801561034457600080fd5b50610170610c37565b34801561035957600080fd5b5061018860035481565b34801561036f57600080fd5b5061017061037e3660046112e7565b610c6d565b34801561038f57600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610192565b3480156103c157600080fd5b506101706103d036600461137f565b610ccc565b3480156103e157600080fd5b5061018860065481565b3480156103f757600080fd5b50610170610406366004611283565b610d36565b34801561041757600080fd5b5060075461028790610100900460ff1681565b34801561043657600080fd5b5061039d7f000000000000000000000000000000000000000000000000000000000000000081565b34801561046a57600080fd5b5061018860095481565b34801561048057600080fd5b5061018860055481565b34801561049657600080fd5b506101706104a5366004611268565b610e14565b6000546001600160a01b031633146104dd5760405162461bcd60e51b81526004016104d4906113f0565b60405180910390fd5b6007805460ff19168215159081179091556040519081527f3c70af01296aef045b2f5c9d3c30b05d4428fd257145b9c7fcd76418e65b5980906020015b60405180910390a150565b6000546001600160a01b0316331461054f5760405162461bcd60e51b81526004016104d4906113f0565b6007805461ff0019166101001790556040517fb69473889f097a7fb892fa488411d232822af739d152dbcc71e36939071d306390600090a1565b6000546001600160a01b031633146105b35760405162461bcd60e51b81526004016104d4906113f0565b6003829055600481905560408051838152602081018390527f2eae0d0a99cbf5ab05babf7ee1f4bdf6e9bb99ffdca04682fa54f6682d5d80fe91015b60405180910390a15050565b6002600154141561064e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104d4565b6002600155336000908152600a6020526040902060075460ff161561069e5760405162461bcd60e51b81526020600482015260066024820152651c185d5cd95960d21b60448201526064016104d4565b60035442101580156106b257506004544211155b6106f05760405162461bcd60e51b815260206004820152600f60248201526e73616c65206e6f742061637469766560881b60448201526064016104d4565b600034116107325760405162461bcd60e51b815260206004820152600f60248201526e06e65656420616d6f756e74203e203608c1b60448201526064016104d4565b80548490610741903490611425565b11156107815760405162461bcd60e51b815260206004820152600f60248201526e37bb32b91030b63637b1b0ba34b7b760891b60448201526064016104d4565b6040516bffffffffffffffffffffffff193360601b16602082015260348101859052600090605401604051602081830303815290604052805190602001209050610802848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506002549150849050610eaf565b61083e5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b60448201526064016104d4565b815461085d576001600960008282546108579190611425565b90915550505b815461086a903490611425565b825560085461087a903490611425565b60085560405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c906020015b60405180910390a2505060018055505050565b600260015414156109115760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104d4565b6002600155600080808061092433610b28565b6007549397509195509350915060ff161561096a5760405162461bcd60e51b81526020600482015260066024820152651c185d5cd95960d21b60448201526064016104d4565b60045442116109ac5760405162461bcd60e51b815260206004820152600e60248201526d1cd85b19481b9bdd08195b99195960921b60448201526064016104d4565b600754610100900460ff166109f35760405162461bcd60e51b815260206004820152600d60248201526c1b9bdd08199a5b985b1a5e9959609a1b60448201526064016104d4565b60008411610a3c5760405162461bcd60e51b81526020600482015260166024820152756861766520796f75207061727469636970617465643f60501b60448201526064016104d4565b6000610a48848361147e565b905060008111610a9a5760405162461bcd60e51b815260206004820181905260248201527f6e6f20616d6f756e7420617661696c61626c6520666f7220636c61696d696e6760448201526064016104d4565b336000908152600a602052604081206001018054839290610abc908490611425565b90915550610af690506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383610f60565b60405181815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba906020016108ab565b6001600160a01b0381166000908152600a60209081526040808320815180830190925280548083526001909101549282019290925260065460055484938493849390928492610b77919061145f565b610b81919061143d565b90506000610b9060048361143d565b905060045462278d00610ba39190611425565b421115610bc257610bb560048361143d565b610bbf9082611425565b90505b600454610bd290624f1a00611425565b421115610bf157610be460048361143d565b610bee9082611425565b90505b600454610c01906276a700611425565b421115610c2057610c1360048361143d565b610c1d9082611425565b90505b825160209093015192989297509095509350915050565b6000546001600160a01b03163314610c615760405162461bcd60e51b81526004016104d4906113f0565b610c6b6000610fb2565b565b6000546001600160a01b03163314610c975760405162461bcd60e51b81526004016104d4906113f0565b60028190556040518181527f914960aef5e033ce5cae8a7992d4b7a6f0f9741227b66acb67c605b7019f8a469060200161051a565b6000546001600160a01b03163314610cf65760405162461bcd60e51b81526004016104d4906113f0565b6005829055600681905560408051838152602081018390527f1bf0105f8005d2498dd2cecf83f0d0a334ccb55ef1700748bb25ec1d912e575e91016105ef565b6000546001600160a01b03163314610d605760405162461bcd60e51b81526004016104d4906113f0565b6001600160a01b038216610dfc57604051600090339083908381818185875af1925050503d8060008114610db0576040519150601f19603f3d011682016040523d82523d6000602084013e610db5565b606091505b5050905080610df75760405162461bcd60e51b815260206004820152600e60248201526d19985a5b1959081d1bc81cd95b9960921b60448201526064016104d4565b505050565b610e106001600160a01b0383163383610f60565b5050565b6000546001600160a01b03163314610e3e5760405162461bcd60e51b81526004016104d4906113f0565b6001600160a01b038116610ea35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104d4565b610eac81610fb2565b50565b600081815b8551811015610f53576000868281518110610ed157610ed16114f6565b60200260200101519050808311610f13576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610f40565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610f4b816114c5565b915050610eb4565b50831490505b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610df7908490611002565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611057826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110d49092919063ffffffff16565b805190915015610df7578080602001905181019061107591906112ca565b610df75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104d4565b60606110e384846000856110eb565b949350505050565b60608247101561114c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104d4565b843b61119a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104d4565b600080866001600160a01b031685876040516111b691906113a1565b60006040518083038185875af1925050503d80600081146111f3576040519150601f19603f3d011682016040523d82523d6000602084013e6111f8565b606091505b5091509150611208828286611213565b979650505050505050565b60608315611222575081610f59565b8251156112325782518084602001fd5b8160405162461bcd60e51b81526004016104d491906113bd565b80356001600160a01b038116811461126357600080fd5b919050565b60006020828403121561127a57600080fd5b610f598261124c565b6000806040838503121561129657600080fd5b61129f8361124c565b946020939093013593505050565b6000602082840312156112bf57600080fd5b8135610f598161150c565b6000602082840312156112dc57600080fd5b8151610f598161150c565b6000602082840312156112f957600080fd5b5035919050565b60008060006040848603121561131557600080fd5b83359250602084013567ffffffffffffffff8082111561133457600080fd5b818601915086601f83011261134857600080fd5b81358181111561135757600080fd5b8760208260051b850101111561136c57600080fd5b6020830194508093505050509250925092565b6000806040838503121561139257600080fd5b50508035926020909101359150565b600082516113b3818460208701611495565b9190910192915050565b60208152600082518060208401526113dc816040850160208701611495565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611438576114386114e0565b500190565b60008261145a57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611479576114796114e0565b500290565b600082821015611490576114906114e0565b500390565b60005b838110156114b0578181015183820152602001611498565b838111156114bf576000848401525b50505050565b60006000198214156114d9576114d96114e0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b8015158114610eac57600080fdfea26469706673582212205ff162938dbf1d8a715cbacdce303c50e90ef2d986d30069d716acd2fa09c65e64736f6c63430008070033000000000000000000000000829c97092c0cc92efe7397dd3ddb831cc5835bae28e1df4b1004a0f2b8ac459e10f44992b160ca231060220e23a54918b7265b3c00000000000000000000000000000000000000000000000000000000619fa4f000000000000000000000000000000000000000000000000000000000619fc1100000000000000000000000000000000000000000000c685fa11e01ec6f000000000000000000000000000000000000000000000000000001efa2a1a27fa8d700
Deployed Bytecode
0x60806040526004361061014b5760003560e01c8063715018a6116100b65780639e281a981161006f5780639e281a98146103eb578063b3f05b971461040b578063b78136071461042a578063bff1f9e11461045e578063e1af9a9514610474578063f2fde38b1461048a57600080fd5b8063715018a61461033857806378e979251461034d5780637cb64759146103635780638da5cb5b14610383578063983234b6146103b55780639c0a7669146103d557600080fd5b806335ac79c31161010857806335ac79c3146101fc57806343b0215f1461020f5780634641257d146102585780635c975abb1461026d5780635e615a6b146102975780636386c1c7146102f857600080fd5b806316c38b3c146101505780631a39d8ef146101725780631de772531461019b57806322434836146101b05780632eb4a7ab146101d05780633197cbb6146101e6575b600080fd5b34801561015c57600080fd5b5061017061016b3660046112ad565b6104aa565b005b34801561017e57600080fd5b5061018860085481565b6040519081526020015b60405180910390f35b3480156101a757600080fd5b50610170610525565b3480156101bc57600080fd5b506101706101cb36600461137f565b610589565b3480156101dc57600080fd5b5061018860025481565b3480156101f257600080fd5b5061018860045481565b61017061020a366004611300565b6105fb565b34801561021b57600080fd5b5061024361022a366004611268565b600a602052600090815260409020805460019091015482565b60408051928352602083019190915201610192565b34801561026457600080fd5b506101706108be565b34801561027957600080fd5b506007546102879060ff1681565b6040519015158152602001610192565b3480156102a357600080fd5b50600354600454600654600554600854600754604080519687526020870195909552938501929092526060840152608083015260ff808216151560a084015261010090910416151560c082015260e001610192565b34801561030457600080fd5b50610318610313366004611268565b610b28565b604080519485526020850193909352918301526060820152608001610192565b34801561034457600080fd5b50610170610c37565b34801561035957600080fd5b5061018860035481565b34801561036f57600080fd5b5061017061037e3660046112e7565b610c6d565b34801561038f57600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610192565b3480156103c157600080fd5b506101706103d036600461137f565b610ccc565b3480156103e157600080fd5b5061018860065481565b3480156103f757600080fd5b50610170610406366004611283565b610d36565b34801561041757600080fd5b5060075461028790610100900460ff1681565b34801561043657600080fd5b5061039d7f000000000000000000000000829c97092c0cc92efe7397dd3ddb831cc5835bae81565b34801561046a57600080fd5b5061018860095481565b34801561048057600080fd5b5061018860055481565b34801561049657600080fd5b506101706104a5366004611268565b610e14565b6000546001600160a01b031633146104dd5760405162461bcd60e51b81526004016104d4906113f0565b60405180910390fd5b6007805460ff19168215159081179091556040519081527f3c70af01296aef045b2f5c9d3c30b05d4428fd257145b9c7fcd76418e65b5980906020015b60405180910390a150565b6000546001600160a01b0316331461054f5760405162461bcd60e51b81526004016104d4906113f0565b6007805461ff0019166101001790556040517fb69473889f097a7fb892fa488411d232822af739d152dbcc71e36939071d306390600090a1565b6000546001600160a01b031633146105b35760405162461bcd60e51b81526004016104d4906113f0565b6003829055600481905560408051838152602081018390527f2eae0d0a99cbf5ab05babf7ee1f4bdf6e9bb99ffdca04682fa54f6682d5d80fe91015b60405180910390a15050565b6002600154141561064e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104d4565b6002600155336000908152600a6020526040902060075460ff161561069e5760405162461bcd60e51b81526020600482015260066024820152651c185d5cd95960d21b60448201526064016104d4565b60035442101580156106b257506004544211155b6106f05760405162461bcd60e51b815260206004820152600f60248201526e73616c65206e6f742061637469766560881b60448201526064016104d4565b600034116107325760405162461bcd60e51b815260206004820152600f60248201526e06e65656420616d6f756e74203e203608c1b60448201526064016104d4565b80548490610741903490611425565b11156107815760405162461bcd60e51b815260206004820152600f60248201526e37bb32b91030b63637b1b0ba34b7b760891b60448201526064016104d4565b6040516bffffffffffffffffffffffff193360601b16602082015260348101859052600090605401604051602081830303815290604052805190602001209050610802848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506002549150849050610eaf565b61083e5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b60448201526064016104d4565b815461085d576001600960008282546108579190611425565b90915550505b815461086a903490611425565b825560085461087a903490611425565b60085560405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c906020015b60405180910390a2505060018055505050565b600260015414156109115760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104d4565b6002600155600080808061092433610b28565b6007549397509195509350915060ff161561096a5760405162461bcd60e51b81526020600482015260066024820152651c185d5cd95960d21b60448201526064016104d4565b60045442116109ac5760405162461bcd60e51b815260206004820152600e60248201526d1cd85b19481b9bdd08195b99195960921b60448201526064016104d4565b600754610100900460ff166109f35760405162461bcd60e51b815260206004820152600d60248201526c1b9bdd08199a5b985b1a5e9959609a1b60448201526064016104d4565b60008411610a3c5760405162461bcd60e51b81526020600482015260166024820152756861766520796f75207061727469636970617465643f60501b60448201526064016104d4565b6000610a48848361147e565b905060008111610a9a5760405162461bcd60e51b815260206004820181905260248201527f6e6f20616d6f756e7420617661696c61626c6520666f7220636c61696d696e6760448201526064016104d4565b336000908152600a602052604081206001018054839290610abc908490611425565b90915550610af690506001600160a01b037f000000000000000000000000829c97092c0cc92efe7397dd3ddb831cc5835bae163383610f60565b60405181815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba906020016108ab565b6001600160a01b0381166000908152600a60209081526040808320815180830190925280548083526001909101549282019290925260065460055484938493849390928492610b77919061145f565b610b81919061143d565b90506000610b9060048361143d565b905060045462278d00610ba39190611425565b421115610bc257610bb560048361143d565b610bbf9082611425565b90505b600454610bd290624f1a00611425565b421115610bf157610be460048361143d565b610bee9082611425565b90505b600454610c01906276a700611425565b421115610c2057610c1360048361143d565b610c1d9082611425565b90505b825160209093015192989297509095509350915050565b6000546001600160a01b03163314610c615760405162461bcd60e51b81526004016104d4906113f0565b610c6b6000610fb2565b565b6000546001600160a01b03163314610c975760405162461bcd60e51b81526004016104d4906113f0565b60028190556040518181527f914960aef5e033ce5cae8a7992d4b7a6f0f9741227b66acb67c605b7019f8a469060200161051a565b6000546001600160a01b03163314610cf65760405162461bcd60e51b81526004016104d4906113f0565b6005829055600681905560408051838152602081018390527f1bf0105f8005d2498dd2cecf83f0d0a334ccb55ef1700748bb25ec1d912e575e91016105ef565b6000546001600160a01b03163314610d605760405162461bcd60e51b81526004016104d4906113f0565b6001600160a01b038216610dfc57604051600090339083908381818185875af1925050503d8060008114610db0576040519150601f19603f3d011682016040523d82523d6000602084013e610db5565b606091505b5050905080610df75760405162461bcd60e51b815260206004820152600e60248201526d19985a5b1959081d1bc81cd95b9960921b60448201526064016104d4565b505050565b610e106001600160a01b0383163383610f60565b5050565b6000546001600160a01b03163314610e3e5760405162461bcd60e51b81526004016104d4906113f0565b6001600160a01b038116610ea35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104d4565b610eac81610fb2565b50565b600081815b8551811015610f53576000868281518110610ed157610ed16114f6565b60200260200101519050808311610f13576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610f40565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610f4b816114c5565b915050610eb4565b50831490505b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610df7908490611002565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611057826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110d49092919063ffffffff16565b805190915015610df7578080602001905181019061107591906112ca565b610df75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104d4565b60606110e384846000856110eb565b949350505050565b60608247101561114c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104d4565b843b61119a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104d4565b600080866001600160a01b031685876040516111b691906113a1565b60006040518083038185875af1925050503d80600081146111f3576040519150601f19603f3d011682016040523d82523d6000602084013e6111f8565b606091505b5091509150611208828286611213565b979650505050505050565b60608315611222575081610f59565b8251156112325782518084602001fd5b8160405162461bcd60e51b81526004016104d491906113bd565b80356001600160a01b038116811461126357600080fd5b919050565b60006020828403121561127a57600080fd5b610f598261124c565b6000806040838503121561129657600080fd5b61129f8361124c565b946020939093013593505050565b6000602082840312156112bf57600080fd5b8135610f598161150c565b6000602082840312156112dc57600080fd5b8151610f598161150c565b6000602082840312156112f957600080fd5b5035919050565b60008060006040848603121561131557600080fd5b83359250602084013567ffffffffffffffff8082111561133457600080fd5b818601915086601f83011261134857600080fd5b81358181111561135757600080fd5b8760208260051b850101111561136c57600080fd5b6020830194508093505050509250925092565b6000806040838503121561139257600080fd5b50508035926020909101359150565b600082516113b3818460208701611495565b9190910192915050565b60208152600082518060208401526113dc816040850160208701611495565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611438576114386114e0565b500190565b60008261145a57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611479576114796114e0565b500290565b600082821015611490576114906114e0565b500390565b60005b838110156114b0578181015183820152602001611498565b838111156114bf576000848401525b50505050565b60006000198214156114d9576114d96114e0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b8015158114610eac57600080fdfea26469706673582212205ff162938dbf1d8a715cbacdce303c50e90ef2d986d30069d716acd2fa09c65e64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000829c97092c0cc92efe7397dd3ddb831cc5835bae28e1df4b1004a0f2b8ac459e10f44992b160ca231060220e23a54918b7265b3c00000000000000000000000000000000000000000000000000000000619fa4f000000000000000000000000000000000000000000000000000000000619fc1100000000000000000000000000000000000000000000c685fa11e01ec6f000000000000000000000000000000000000000000000000000001efa2a1a27fa8d700
-----Decoded View---------------
Arg [0] : _offeringToken (address): 0x829C97092C0Cc92EfE7397dd3ddb831Cc5835Bae
Arg [1] : _merkleRoot (bytes32): 0x28e1df4b1004a0f2b8ac459e10f44992b160ca231060220e23a54918b7265b3c
Arg [2] : _startTime (uint256): 1637852400
Arg [3] : _endTime (uint256): 1637859600
Arg [4] : _offeringAmount (uint256): 15000000000000000000000000
Arg [5] : _raisingAmount (uint256): 35714285714300000000
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000829c97092c0cc92efe7397dd3ddb831cc5835bae
Arg [1] : 28e1df4b1004a0f2b8ac459e10f44992b160ca231060220e23a54918b7265b3c
Arg [2] : 00000000000000000000000000000000000000000000000000000000619fa4f0
Arg [3] : 00000000000000000000000000000000000000000000000000000000619fc110
Arg [4] : 0000000000000000000000000000000000000000000c685fa11e01ec6f000000
Arg [5] : 000000000000000000000000000000000000000000000001efa2a1a27fa8d700
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.