More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,224 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Token | 20571042 | 99 days ago | IN | 0 ETH | 0.0000926 | ||||
Withdraw | 19702650 | 220 days ago | IN | 0 ETH | 0.00063329 | ||||
Withdraw | 19667216 | 225 days ago | IN | 0 ETH | 0.00068591 | ||||
Withdraw | 19653360 | 227 days ago | IN | 0 ETH | 0.00077188 | ||||
Withdraw | 19580628 | 237 days ago | IN | 0 ETH | 0.00147389 | ||||
Withdraw | 19520290 | 246 days ago | IN | 0 ETH | 0.00346724 | ||||
Withdraw | 19519197 | 246 days ago | IN | 0 ETH | 0.00334192 | ||||
Withdraw Token | 19491070 | 250 days ago | IN | 0 ETH | 0.0022324 | ||||
Withdraw | 19454484 | 255 days ago | IN | 0 ETH | 0.00185109 | ||||
Withdraw | 19448768 | 256 days ago | IN | 0 ETH | 0.00268141 | ||||
Withdraw | 19319301 | 274 days ago | IN | 0 ETH | 0.00326053 | ||||
Withdraw | 19293905 | 277 days ago | IN | 0 ETH | 0.00184449 | ||||
Withdraw | 19285841 | 279 days ago | IN | 0 ETH | 0.00410824 | ||||
Withdraw | 19280616 | 279 days ago | IN | 0 ETH | 0.00267536 | ||||
Withdraw | 19241533 | 285 days ago | IN | 0 ETH | 0.00303174 | ||||
Withdraw | 19239201 | 285 days ago | IN | 0 ETH | 0.0017553 | ||||
Withdraw | 19235627 | 286 days ago | IN | 0 ETH | 0.00411319 | ||||
Withdraw | 19214639 | 289 days ago | IN | 0 ETH | 0.01067661 | ||||
Withdraw | 19213246 | 289 days ago | IN | 0 ETH | 0.0023102 | ||||
Withdraw | 19209915 | 289 days ago | IN | 0 ETH | 0.00150759 | ||||
Withdraw | 19205785 | 290 days ago | IN | 0 ETH | 0.00218044 | ||||
Withdraw | 19204242 | 290 days ago | IN | 0 ETH | 0.0017529 | ||||
Withdraw | 19197982 | 291 days ago | IN | 0 ETH | 0.00214882 | ||||
Withdraw | 19195418 | 291 days ago | IN | 0 ETH | 0.00252791 | ||||
Withdraw | 19163422 | 296 days ago | IN | 0 ETH | 0.00174207 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
IDO
Compiler Version
v0.8.12+commit.f00d7308
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 "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; interface Decimals { function decimals() external view returns (uint8); } contract IDO is Ownable { using SafeERC20 for IERC20; bytes32 public merkleRootDeposit; bytes32 public merkleRootReleasable; bytes32 public merkleRootWithdraw; address public token; address public tokenPayment; uint256 public tokenPerUSDT = 40; uint256 public denominator = 1; uint256 public startTime; uint256 public endTime; uint256 public total; bool public isClaimed; mapping (address => uint256) public payAmount; mapping (address => uint256) private tokenReleased; mapping(address => bool) public admin; modifier verifyTransactionAmount(uint purchaseLimit){ require(payAmount[msg.sender] + purchaseLimit <= purchaseLimit, "IDO: PURCHASE_LIMIT_WRONG"); _; } constructor(bytes32 _merkleRootDeposit, uint256 _start, uint256 _end, address _tokenPayment) { merkleRootDeposit = _merkleRootDeposit; startTime = _start; endTime = _end; tokenPayment = _tokenPayment; } receive() external payable {} event SetPrice(uint256 price, uint256 blockTime); event SetTime(uint256 startTime, uint256 endTime, uint256 blockTime); event SetClaim(bool status, uint256 blockTime); event SetPurchaseLimit(uint256 limit, uint256 blockTime); event SetToken(address token, uint256 blockTime); event Deposit(address user, uint256 amount, uint256 total, uint256 blockTime); event TokenReleased(address user, uint256 amount, uint256 blockTime); event SetMerkleRootReleasable(bytes32 merkleRootReleasable); event SetMerkleRootDeposit(bytes32 merkleRootDeposit); event SetMerkleRootWithdraw(bytes32 merkleRootWithdraw); event SetTokenPayment(address tokenPayment); event Withdraw(address user, uint256 amount); event SetDenominator(uint256 denominator); function setPrice(uint256 _price) external onlyOwner { tokenPerUSDT = _price; emit SetPrice(_price, block.timestamp); } function setDenominator(uint256 _denominator) external onlyOwner { denominator = _denominator; emit SetDenominator(denominator); } function setTokenPayment(address _tokenPayment) external onlyOwner { tokenPayment = _tokenPayment; emit SetTokenPayment(tokenPayment); } function setTime(uint256 _start, uint256 _end) external onlyOwner { startTime = _start; endTime = _end; emit SetTime(_start, _end, block.timestamp); } function setClaim(bool status) external onlyOwner { isClaimed = status; emit SetClaim(status, block.timestamp); } function setToken(address _token) external onlyOwner { token = _token; emit SetToken(_token, block.timestamp); } function setMerkleRootDeposit(bytes32 _merkleRootDeposit) external onlyOwner { merkleRootDeposit = _merkleRootDeposit; emit SetMerkleRootReleasable(merkleRootDeposit); } function setMerkleRootReleasable(bytes32 _merkleRootReleasable) external onlyOwner { merkleRootReleasable = _merkleRootReleasable; emit SetMerkleRootReleasable(merkleRootReleasable); } function setMerkleRootWithdraw(bytes32 _merkleRootWithdraw) external onlyOwner { merkleRootWithdraw = _merkleRootWithdraw; emit SetMerkleRootReleasable(merkleRootWithdraw); } function withdrawEther(uint256 amount) external onlyOwner { require(block.timestamp >= endTime, "The owner can only withdraw ETH after the IDO ends"); (bool success, ) = msg.sender.call{value: amount}(""); require(success, "Transfer failed."); } function withdrawToken(address _token, uint256 amount) external onlyOwner { require(block.timestamp >= endTime, "The owner can only withdraw ETH after the IDO ends"); IERC20(_token).safeTransfer(msg.sender, amount); } // Function to add an address to the whitelist using MerkleProof function deposit(bytes32[] memory proof, uint256 purchaseLimit) external verifyTransactionAmount(purchaseLimit) { require(block.timestamp > startTime && block.timestamp < endTime, "IDO: TIME_WRONG"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender, purchaseLimit)); require(MerkleProof.verify(proof, merkleRootDeposit, leaf), "Invalid Merkle proof"); IERC20(tokenPayment).safeTransferFrom(msg.sender, address(this), purchaseLimit); payAmount[msg.sender] += purchaseLimit; total += purchaseLimit; emit Deposit(msg.sender, purchaseLimit, total, block.timestamp); } function withdraw(bytes32[] memory proof, uint256 purchaseLimit) external { require(payAmount[msg.sender] > 0, "AMOUNT_WRONG"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender, purchaseLimit)); require(MerkleProof.verify(proof, merkleRootWithdraw, leaf), "Invalid Merkle proof"); uint256 amount = payAmount[msg.sender]; payAmount[msg.sender] = 0; IERC20(tokenPayment).safeTransfer(msg.sender, amount); total -= amount; emit Withdraw(msg.sender, amount); } function released(address _user) public view returns(uint256){ //withdraw return tokenReleased[_user]; } function verifyReleasable(bytes32[] memory proof, uint256 purchaseLimit, address user) public view returns(bool) { bytes32 leaf = keccak256(abi.encodePacked(user, purchaseLimit)); bool result = MerkleProof.verify(proof, merkleRootReleasable, leaf); return result; } function releasable(bytes32[] memory proof, uint256 purchaseLimit, address _user) public view returns(uint256){ //available bool verify = verifyReleasable(proof, purchaseLimit, _user); uint256 amount = (block.timestamp > endTime) ? payAmount[_user] * tokenPerUSDT * 10**Decimals(token).decimals() / ( 10**Decimals(tokenPayment).decimals() * denominator ) : 0; uint256 amountReleasable = verify ? amount : 0; return amountReleasable - released(_user); } function release(bytes32[] memory proof, uint256 purchaseLimit) external { require(isClaimed, "IDO: IS_CLAIMED_WRONG"); require(block.timestamp > endTime, "IDO: RELEASE_WRONG"); uint256 amount = releasable(proof, purchaseLimit, msg.sender); require(amount > 0, "IDO: AMOUNT=0"); tokenReleased[msg.sender] += amount; emit TokenReleased(msg.sender, amount, block.timestamp); IERC20(token).safeTransfer(msg.sender, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.2) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ 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) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
{ "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
[{"inputs":[{"internalType":"bytes32","name":"_merkleRootDeposit","type":"bytes32"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"},{"internalType":"address","name":"_tokenPayment","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"total","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockTime","type":"uint256"}],"name":"Deposit","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":"bool","name":"status","type":"bool"},{"indexed":false,"internalType":"uint256","name":"blockTime","type":"uint256"}],"name":"SetClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"SetDenominator","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"merkleRootDeposit","type":"bytes32"}],"name":"SetMerkleRootDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"merkleRootReleasable","type":"bytes32"}],"name":"SetMerkleRootReleasable","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"merkleRootWithdraw","type":"bytes32"}],"name":"SetMerkleRootWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockTime","type":"uint256"}],"name":"SetPrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"limit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockTime","type":"uint256"}],"name":"SetPurchaseLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockTime","type":"uint256"}],"name":"SetTime","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"blockTime","type":"uint256"}],"name":"SetToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenPayment","type":"address"}],"name":"SetTokenPayment","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockTime","type":"uint256"}],"name":"TokenReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"admin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"denominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"purchaseLimit","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootDeposit","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootReleasable","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootWithdraw","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"payAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"purchaseLimit","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"purchaseLimit","type":"uint256"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_denominator","type":"uint256"}],"name":"setDenominator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRootDeposit","type":"bytes32"}],"name":"setMerkleRootDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRootReleasable","type":"bytes32"}],"name":"setMerkleRootReleasable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRootWithdraw","type":"bytes32"}],"name":"setMerkleRootWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"setTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenPayment","type":"address"}],"name":"setTokenPayment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPayment","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPerUSDT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"total","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":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"purchaseLimit","type":"uint256"},{"internalType":"address","name":"user","type":"address"}],"name":"verifyReleasable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"purchaseLimit","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526028600655600160075534801561001a57600080fd5b5060405162001b2338038062001b2383398101604081905261003b916100c7565b61004433610077565b600193909355600891909155600955600580546001600160a01b0319166001600160a01b03909216919091179055610116565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600080608085870312156100dd57600080fd5b845160208601516040870151606088015192965090945092506001600160a01b038116811461010b57600080fd5b939692955090935050565b6119fd80620001266000396000f3fe6080604052600436106101f25760003560e01c80638da5cb5b1161010d578063a81d30bf116100a0578063e6272fca1161006f578063e6272fca1461057a578063f2fde38b1461059a578063fbb2ef53146105ba578063fc0c546a146105da578063fe29374b146105fa57600080fd5b8063a81d30bf146104fa578063af69c0a51461051a578063c1e3425f1461053a578063dd83edc31461055a57600080fd5b80639852595c116100dc5780639852595c146104645780639e281a981461049a578063a0355eca146104ba578063a4f3a7c7146104da57600080fd5b80638da5cb5b146103dc57806391b7f5ed1461040e5780639461d9fe1461042e57806396ce07951461044e57600080fd5b80633bed33ce116101855780636cec0ceb116101545780636cec0ceb14610371578063715018a61461039157806378e97925146103a65780638d9078ae146103bc57600080fd5b80633bed33ce146102e157806357c9ca141461030157806363a846f81461032b578063643e3d071461035b57600080fd5b80632d087243116101c15780632d0872431461027f5780632ddbd13a1461029f5780633197cbb6146102b5578063346f6836146102cb57600080fd5b80631355ab6f146101fe578063144fa6d714610227578063211418ab14610249578063224661a51461026957600080fd5b366101f957005b600080fd5b34801561020a57600080fd5b5061021460065481565b6040519081526020015b60405180910390f35b34801561023357600080fd5b50610247610242366004611501565b610627565b005b34801561025557600080fd5b5061024761026436600461152a565b610689565b34801561027557600080fd5b5061021460015481565b34801561028b57600080fd5b5061024761029a3660046115ed565b6106d6565b3480156102ab57600080fd5b50610214600a5481565b3480156102c157600080fd5b5061021460095481565b3480156102d757600080fd5b5061021460025481565b3480156102ed57600080fd5b506102476102fc366004611632565b610839565b34801561030d57600080fd5b50600b5461031b9060ff1681565b604051901515815260200161021e565b34801561033757600080fd5b5061031b610346366004611501565b600e6020526000908152604090205460ff1681565b34801561036757600080fd5b5061021460035481565b34801561037d57600080fd5b5061024761038c366004611632565b6108f2565b34801561039d57600080fd5b5061024761092f565b3480156103b257600080fd5b5061021460085481565b3480156103c857600080fd5b506102476103d73660046115ed565b610943565b3480156103e857600080fd5b506000546001600160a01b03165b6040516001600160a01b03909116815260200161021e565b34801561041a57600080fd5b50610247610429366004611632565b610b24565b34801561043a57600080fd5b50610247610449366004611632565b610b66565b34801561045a57600080fd5b5061021460075481565b34801561047057600080fd5b5061021461047f366004611501565b6001600160a01b03166000908152600d602052604090205490565b3480156104a657600080fd5b506102476104b536600461164b565b610ba3565b3480156104c657600080fd5b506102476104d5366004611675565b610be1565b3480156104e657600080fd5b506005546103f6906001600160a01b031681565b34801561050657600080fd5b50610247610515366004611632565b610c36565b34801561052657600080fd5b5061031b610535366004611697565b610c73565b34801561054657600080fd5b50610247610555366004611501565b610cba565b34801561056657600080fd5b506102476105753660046115ed565b610d10565b34801561058657600080fd5b50610247610595366004611632565b610e52565b3480156105a657600080fd5b506102476105b5366004611501565b610e8f565b3480156105c657600080fd5b506102146105d5366004611697565b610f08565b3480156105e657600080fd5b506004546103f6906001600160a01b031681565b34801561060657600080fd5b50610214610615366004611501565b600c6020526000908152604090205481565b61062f6110b1565b600480546001600160a01b0319166001600160a01b038316908117909155604080519182524260208301527f720764556647dd167f4229d6a4255ac86018e302a50fc29dd67a70edb7b314d091015b60405180910390a150565b6106916110b1565b600b805460ff1916821515908117909155604080519182524260208301527e26d2f906aebd2c132a38eeb161cb082dd7c18e0d1f94a415ac7eaaac487ec2910161067e565b600b5460ff166107255760405162461bcd60e51b815260206004820152601560248201527449444f3a2049535f434c41494d45445f57524f4e4760581b60448201526064015b60405180910390fd5b600954421161076b5760405162461bcd60e51b815260206004820152601260248201527149444f3a2052454c454153455f57524f4e4760701b604482015260640161071c565b6000610778838333610f08565b9050600081116107ba5760405162461bcd60e51b815260206004820152600d60248201526c049444f3a20414d4f554e543d3609c1b604482015260640161071c565b336000908152600d6020526040812080548392906107d9908490611704565b90915550506040805133815260208101839052428183015290517f881a2e1bf4f161e12580159a60513a536736d190d8f1264819ef4f1b260921d09181900360600190a1600454610834906001600160a01b0316338361110b565b505050565b6108416110b1565b6009544210156108635760405162461bcd60e51b815260040161071c9061171c565b604051600090339083908381818185875af1925050503d80600081146108a5576040519150601f19603f3d011682016040523d82523d6000602084013e6108aa565b606091505b50509050806108ee5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161071c565b5050565b6108fa6110b1565b60078190556040518181527f4082bc252f347d223f4e804c3c4e90818ad544b959ffa807149351ad158bf0169060200161067e565b6109376110b1565b610941600061116e565b565b336000908152600c602052604090205481908190610962908290611704565b11156109b05760405162461bcd60e51b815260206004820152601960248201527f49444f3a2050555243484153455f4c494d49545f57524f4e4700000000000000604482015260640161071c565b600854421180156109c2575060095442105b610a005760405162461bcd60e51b815260206004820152600f60248201526e49444f3a2054494d455f57524f4e4760881b604482015260640161071c565b60003383604051602001610a1592919061176e565b604051602081830303815290604052805190602001209050610a3a84600154836111be565b610a7d5760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21026b2b935b63290383937b7b360611b604482015260640161071c565b600554610a95906001600160a01b03163330866111d4565b336000908152600c602052604081208054859290610ab4908490611704565b9250508190555082600a6000828254610acd9190611704565b9091555050600a546040805133815260208101869052908101919091524260608201527f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e906080015b60405180910390a150505050565b610b2c6110b1565b6006819055604080518281524260208201527ff9317dc3bc6dda0e00e43855c2c30847aeafb8dcea9d2ce86e9ce7a83d549f01910161067e565b610b6e6110b1565b60038190556040518181527f01a2bad63b15a78fc0101ccb71eaacb93c1ed3b900fc5b039ca01731d79024f19060200161067e565b610bab6110b1565b600954421015610bcd5760405162461bcd60e51b815260040161071c9061171c565b6108ee6001600160a01b038316338361110b565b610be96110b1565b600882905560098190556040805183815260208101839052428183015290517f19bd8abf08bba14742990b0fc9de97404cb8ca4d3aea41b2b738c2521b36a04b9181900360600190a15050565b610c3e6110b1565b60018190556040518181527f01a2bad63b15a78fc0101ccb71eaacb93c1ed3b900fc5b039ca01731d79024f19060200161067e565b6000808284604051602001610c8992919061176e565b6040516020818303038152906040528051906020012090506000610cb086600254846111be565b9695505050505050565b610cc26110b1565b600580546001600160a01b0319166001600160a01b0383169081179091556040519081527f3e04399dab2fda81ba98a50e79057d60214788a3b57b4a3c99ee854cd6cea7c49060200161067e565b336000908152600c6020526040902054610d5b5760405162461bcd60e51b815260206004820152600c60248201526b414d4f554e545f57524f4e4760a01b604482015260640161071c565b60003382604051602001610d7092919061176e565b604051602081830303815290604052805190602001209050610d9583600354836111be565b610dd85760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21026b2b935b63290383937b7b360611b604482015260640161071c565b336000818152600c6020526040812080549190556005549091610e05916001600160a01b0316908361110b565b80600a6000828254610e179190611790565b909155505060408051338152602081018390527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649101610b16565b610e5a6110b1565b60028190556040518181527f01a2bad63b15a78fc0101ccb71eaacb93c1ed3b900fc5b039ca01731d79024f19060200161067e565b610e976110b1565b6001600160a01b038116610efc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161071c565b610f058161116e565b50565b600080610f16858585610c73565b905060006009544211610f2a576000611069565b600754600560009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa491906117a7565b610faf90600a6118ae565b610fb991906118bd565b600480546040805163313ce56760e01b815290516001600160a01b039092169263313ce5679282820192602092908290030181865afa158015611000573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102491906117a7565b61102f90600a6118ae565b6006546001600160a01b0387166000908152600c602052604090205461105591906118bd565b61105f91906118bd565b61106991906118dc565b905060008261107957600061107b565b815b905061109c856001600160a01b03166000908152600d602052604090205490565b6110a69082611790565b979650505050505050565b6000546001600160a01b031633146109415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161071c565b6040516001600160a01b03831660248201526044810182905261083490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611212565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000826111cb85846112e7565b14949350505050565b6040516001600160a01b038085166024830152831660448201526064810182905261120c9085906323b872dd60e01b90608401611137565b50505050565b6000611267826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113369092919063ffffffff16565b905080516000148061128857508080602001905181019061128891906118fe565b6108345760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161071c565b600081815b845181101561132c576113188286838151811061130b5761130b61191b565b602002602001015161134d565b91508061132481611931565b9150506112ec565b5090505b92915050565b6060611345848460008561137f565b949350505050565b6000818310611369576000828152602084905260409020611378565b60008381526020839052604090205b9392505050565b6060824710156113e05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161071c565b600080866001600160a01b031685876040516113fc9190611978565b60006040518083038185875af1925050503d8060008114611439576040519150601f19603f3d011682016040523d82523d6000602084013e61143e565b606091505b50915091506110a687838387606083156114b65782516114af576001600160a01b0385163b6114af5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161071c565b5081611345565b61134583838151156114cb5781518083602001fd5b8060405162461bcd60e51b815260040161071c9190611994565b80356001600160a01b03811681146114fc57600080fd5b919050565b60006020828403121561151357600080fd5b611378826114e5565b8015158114610f0557600080fd5b60006020828403121561153c57600080fd5b81356113788161151c565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261156e57600080fd5b8135602067ffffffffffffffff8083111561158b5761158b611547565b8260051b604051601f19603f830116810181811084821117156115b0576115b0611547565b6040529384528581018301938381019250878511156115ce57600080fd5b83870191505b848210156110a6578135835291830191908301906115d4565b6000806040838503121561160057600080fd5b823567ffffffffffffffff81111561161757600080fd5b6116238582860161155d565b95602094909401359450505050565b60006020828403121561164457600080fd5b5035919050565b6000806040838503121561165e57600080fd5b611667836114e5565b946020939093013593505050565b6000806040838503121561168857600080fd5b50508035926020909101359150565b6000806000606084860312156116ac57600080fd5b833567ffffffffffffffff8111156116c357600080fd5b6116cf8682870161155d565b935050602084013591506116e5604085016114e5565b90509250925092565b634e487b7160e01b600052601160045260246000fd5b60008219821115611717576117176116ee565b500190565b60208082526032908201527f546865206f776e65722063616e206f6e6c7920776974686472617720455448206040820152716166746572207468652049444f20656e647360701b606082015260800190565b60609290921b6bffffffffffffffffffffffff19168252601482015260340190565b6000828210156117a2576117a26116ee565b500390565b6000602082840312156117b957600080fd5b815160ff8116811461137857600080fd5b600181815b808511156118055781600019048211156117eb576117eb6116ee565b808516156117f857918102915b93841c93908002906117cf565b509250929050565b60008261181c57506001611330565b8161182957506000611330565b816001811461183f576002811461184957611865565b6001915050611330565b60ff84111561185a5761185a6116ee565b50506001821b611330565b5060208310610133831016604e8410600b8410161715611888575081810a611330565b61189283836117ca565b80600019048211156118a6576118a66116ee565b029392505050565b600061137860ff84168361180d565b60008160001904831182151516156118d7576118d76116ee565b500290565b6000826118f957634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561191057600080fd5b81516113788161151c565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611945576119456116ee565b5060010190565b60005b8381101561196757818101518382015260200161194f565b8381111561120c5750506000910152565b6000825161198a81846020870161194c565b9190910192915050565b60208152600082518060208401526119b381604085016020870161194c565b601f01601f1916919091016040019291505056fea2646970667358221220790915d89329fce4f6a3c156a4f076e27b9f752fa3111ce4b5208810a86100d064736f6c634300080c003347b4308f9689538348b4bb2ee83c25239e3a19a0fb47674490e195cdf421ebb60000000000000000000000000000000000000000000000000000000065b560c00000000000000000000000000000000000000000000000000000000065b65de0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Deployed Bytecode
0x6080604052600436106101f25760003560e01c80638da5cb5b1161010d578063a81d30bf116100a0578063e6272fca1161006f578063e6272fca1461057a578063f2fde38b1461059a578063fbb2ef53146105ba578063fc0c546a146105da578063fe29374b146105fa57600080fd5b8063a81d30bf146104fa578063af69c0a51461051a578063c1e3425f1461053a578063dd83edc31461055a57600080fd5b80639852595c116100dc5780639852595c146104645780639e281a981461049a578063a0355eca146104ba578063a4f3a7c7146104da57600080fd5b80638da5cb5b146103dc57806391b7f5ed1461040e5780639461d9fe1461042e57806396ce07951461044e57600080fd5b80633bed33ce116101855780636cec0ceb116101545780636cec0ceb14610371578063715018a61461039157806378e97925146103a65780638d9078ae146103bc57600080fd5b80633bed33ce146102e157806357c9ca141461030157806363a846f81461032b578063643e3d071461035b57600080fd5b80632d087243116101c15780632d0872431461027f5780632ddbd13a1461029f5780633197cbb6146102b5578063346f6836146102cb57600080fd5b80631355ab6f146101fe578063144fa6d714610227578063211418ab14610249578063224661a51461026957600080fd5b366101f957005b600080fd5b34801561020a57600080fd5b5061021460065481565b6040519081526020015b60405180910390f35b34801561023357600080fd5b50610247610242366004611501565b610627565b005b34801561025557600080fd5b5061024761026436600461152a565b610689565b34801561027557600080fd5b5061021460015481565b34801561028b57600080fd5b5061024761029a3660046115ed565b6106d6565b3480156102ab57600080fd5b50610214600a5481565b3480156102c157600080fd5b5061021460095481565b3480156102d757600080fd5b5061021460025481565b3480156102ed57600080fd5b506102476102fc366004611632565b610839565b34801561030d57600080fd5b50600b5461031b9060ff1681565b604051901515815260200161021e565b34801561033757600080fd5b5061031b610346366004611501565b600e6020526000908152604090205460ff1681565b34801561036757600080fd5b5061021460035481565b34801561037d57600080fd5b5061024761038c366004611632565b6108f2565b34801561039d57600080fd5b5061024761092f565b3480156103b257600080fd5b5061021460085481565b3480156103c857600080fd5b506102476103d73660046115ed565b610943565b3480156103e857600080fd5b506000546001600160a01b03165b6040516001600160a01b03909116815260200161021e565b34801561041a57600080fd5b50610247610429366004611632565b610b24565b34801561043a57600080fd5b50610247610449366004611632565b610b66565b34801561045a57600080fd5b5061021460075481565b34801561047057600080fd5b5061021461047f366004611501565b6001600160a01b03166000908152600d602052604090205490565b3480156104a657600080fd5b506102476104b536600461164b565b610ba3565b3480156104c657600080fd5b506102476104d5366004611675565b610be1565b3480156104e657600080fd5b506005546103f6906001600160a01b031681565b34801561050657600080fd5b50610247610515366004611632565b610c36565b34801561052657600080fd5b5061031b610535366004611697565b610c73565b34801561054657600080fd5b50610247610555366004611501565b610cba565b34801561056657600080fd5b506102476105753660046115ed565b610d10565b34801561058657600080fd5b50610247610595366004611632565b610e52565b3480156105a657600080fd5b506102476105b5366004611501565b610e8f565b3480156105c657600080fd5b506102146105d5366004611697565b610f08565b3480156105e657600080fd5b506004546103f6906001600160a01b031681565b34801561060657600080fd5b50610214610615366004611501565b600c6020526000908152604090205481565b61062f6110b1565b600480546001600160a01b0319166001600160a01b038316908117909155604080519182524260208301527f720764556647dd167f4229d6a4255ac86018e302a50fc29dd67a70edb7b314d091015b60405180910390a150565b6106916110b1565b600b805460ff1916821515908117909155604080519182524260208301527e26d2f906aebd2c132a38eeb161cb082dd7c18e0d1f94a415ac7eaaac487ec2910161067e565b600b5460ff166107255760405162461bcd60e51b815260206004820152601560248201527449444f3a2049535f434c41494d45445f57524f4e4760581b60448201526064015b60405180910390fd5b600954421161076b5760405162461bcd60e51b815260206004820152601260248201527149444f3a2052454c454153455f57524f4e4760701b604482015260640161071c565b6000610778838333610f08565b9050600081116107ba5760405162461bcd60e51b815260206004820152600d60248201526c049444f3a20414d4f554e543d3609c1b604482015260640161071c565b336000908152600d6020526040812080548392906107d9908490611704565b90915550506040805133815260208101839052428183015290517f881a2e1bf4f161e12580159a60513a536736d190d8f1264819ef4f1b260921d09181900360600190a1600454610834906001600160a01b0316338361110b565b505050565b6108416110b1565b6009544210156108635760405162461bcd60e51b815260040161071c9061171c565b604051600090339083908381818185875af1925050503d80600081146108a5576040519150601f19603f3d011682016040523d82523d6000602084013e6108aa565b606091505b50509050806108ee5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161071c565b5050565b6108fa6110b1565b60078190556040518181527f4082bc252f347d223f4e804c3c4e90818ad544b959ffa807149351ad158bf0169060200161067e565b6109376110b1565b610941600061116e565b565b336000908152600c602052604090205481908190610962908290611704565b11156109b05760405162461bcd60e51b815260206004820152601960248201527f49444f3a2050555243484153455f4c494d49545f57524f4e4700000000000000604482015260640161071c565b600854421180156109c2575060095442105b610a005760405162461bcd60e51b815260206004820152600f60248201526e49444f3a2054494d455f57524f4e4760881b604482015260640161071c565b60003383604051602001610a1592919061176e565b604051602081830303815290604052805190602001209050610a3a84600154836111be565b610a7d5760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21026b2b935b63290383937b7b360611b604482015260640161071c565b600554610a95906001600160a01b03163330866111d4565b336000908152600c602052604081208054859290610ab4908490611704565b9250508190555082600a6000828254610acd9190611704565b9091555050600a546040805133815260208101869052908101919091524260608201527f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e906080015b60405180910390a150505050565b610b2c6110b1565b6006819055604080518281524260208201527ff9317dc3bc6dda0e00e43855c2c30847aeafb8dcea9d2ce86e9ce7a83d549f01910161067e565b610b6e6110b1565b60038190556040518181527f01a2bad63b15a78fc0101ccb71eaacb93c1ed3b900fc5b039ca01731d79024f19060200161067e565b610bab6110b1565b600954421015610bcd5760405162461bcd60e51b815260040161071c9061171c565b6108ee6001600160a01b038316338361110b565b610be96110b1565b600882905560098190556040805183815260208101839052428183015290517f19bd8abf08bba14742990b0fc9de97404cb8ca4d3aea41b2b738c2521b36a04b9181900360600190a15050565b610c3e6110b1565b60018190556040518181527f01a2bad63b15a78fc0101ccb71eaacb93c1ed3b900fc5b039ca01731d79024f19060200161067e565b6000808284604051602001610c8992919061176e565b6040516020818303038152906040528051906020012090506000610cb086600254846111be565b9695505050505050565b610cc26110b1565b600580546001600160a01b0319166001600160a01b0383169081179091556040519081527f3e04399dab2fda81ba98a50e79057d60214788a3b57b4a3c99ee854cd6cea7c49060200161067e565b336000908152600c6020526040902054610d5b5760405162461bcd60e51b815260206004820152600c60248201526b414d4f554e545f57524f4e4760a01b604482015260640161071c565b60003382604051602001610d7092919061176e565b604051602081830303815290604052805190602001209050610d9583600354836111be565b610dd85760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21026b2b935b63290383937b7b360611b604482015260640161071c565b336000818152600c6020526040812080549190556005549091610e05916001600160a01b0316908361110b565b80600a6000828254610e179190611790565b909155505060408051338152602081018390527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649101610b16565b610e5a6110b1565b60028190556040518181527f01a2bad63b15a78fc0101ccb71eaacb93c1ed3b900fc5b039ca01731d79024f19060200161067e565b610e976110b1565b6001600160a01b038116610efc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161071c565b610f058161116e565b50565b600080610f16858585610c73565b905060006009544211610f2a576000611069565b600754600560009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa491906117a7565b610faf90600a6118ae565b610fb991906118bd565b600480546040805163313ce56760e01b815290516001600160a01b039092169263313ce5679282820192602092908290030181865afa158015611000573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061102491906117a7565b61102f90600a6118ae565b6006546001600160a01b0387166000908152600c602052604090205461105591906118bd565b61105f91906118bd565b61106991906118dc565b905060008261107957600061107b565b815b905061109c856001600160a01b03166000908152600d602052604090205490565b6110a69082611790565b979650505050505050565b6000546001600160a01b031633146109415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161071c565b6040516001600160a01b03831660248201526044810182905261083490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611212565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000826111cb85846112e7565b14949350505050565b6040516001600160a01b038085166024830152831660448201526064810182905261120c9085906323b872dd60e01b90608401611137565b50505050565b6000611267826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113369092919063ffffffff16565b905080516000148061128857508080602001905181019061128891906118fe565b6108345760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161071c565b600081815b845181101561132c576113188286838151811061130b5761130b61191b565b602002602001015161134d565b91508061132481611931565b9150506112ec565b5090505b92915050565b6060611345848460008561137f565b949350505050565b6000818310611369576000828152602084905260409020611378565b60008381526020839052604090205b9392505050565b6060824710156113e05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161071c565b600080866001600160a01b031685876040516113fc9190611978565b60006040518083038185875af1925050503d8060008114611439576040519150601f19603f3d011682016040523d82523d6000602084013e61143e565b606091505b50915091506110a687838387606083156114b65782516114af576001600160a01b0385163b6114af5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161071c565b5081611345565b61134583838151156114cb5781518083602001fd5b8060405162461bcd60e51b815260040161071c9190611994565b80356001600160a01b03811681146114fc57600080fd5b919050565b60006020828403121561151357600080fd5b611378826114e5565b8015158114610f0557600080fd5b60006020828403121561153c57600080fd5b81356113788161151c565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261156e57600080fd5b8135602067ffffffffffffffff8083111561158b5761158b611547565b8260051b604051601f19603f830116810181811084821117156115b0576115b0611547565b6040529384528581018301938381019250878511156115ce57600080fd5b83870191505b848210156110a6578135835291830191908301906115d4565b6000806040838503121561160057600080fd5b823567ffffffffffffffff81111561161757600080fd5b6116238582860161155d565b95602094909401359450505050565b60006020828403121561164457600080fd5b5035919050565b6000806040838503121561165e57600080fd5b611667836114e5565b946020939093013593505050565b6000806040838503121561168857600080fd5b50508035926020909101359150565b6000806000606084860312156116ac57600080fd5b833567ffffffffffffffff8111156116c357600080fd5b6116cf8682870161155d565b935050602084013591506116e5604085016114e5565b90509250925092565b634e487b7160e01b600052601160045260246000fd5b60008219821115611717576117176116ee565b500190565b60208082526032908201527f546865206f776e65722063616e206f6e6c7920776974686472617720455448206040820152716166746572207468652049444f20656e647360701b606082015260800190565b60609290921b6bffffffffffffffffffffffff19168252601482015260340190565b6000828210156117a2576117a26116ee565b500390565b6000602082840312156117b957600080fd5b815160ff8116811461137857600080fd5b600181815b808511156118055781600019048211156117eb576117eb6116ee565b808516156117f857918102915b93841c93908002906117cf565b509250929050565b60008261181c57506001611330565b8161182957506000611330565b816001811461183f576002811461184957611865565b6001915050611330565b60ff84111561185a5761185a6116ee565b50506001821b611330565b5060208310610133831016604e8410600b8410161715611888575081810a611330565b61189283836117ca565b80600019048211156118a6576118a66116ee565b029392505050565b600061137860ff84168361180d565b60008160001904831182151516156118d7576118d76116ee565b500290565b6000826118f957634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561191057600080fd5b81516113788161151c565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611945576119456116ee565b5060010190565b60005b8381101561196757818101518382015260200161194f565b8381111561120c5750506000910152565b6000825161198a81846020870161194c565b9190910192915050565b60208152600082518060208401526119b381604085016020870161194c565b601f01601f1916919091016040019291505056fea2646970667358221220790915d89329fce4f6a3c156a4f076e27b9f752fa3111ce4b5208810a86100d064736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
47b4308f9689538348b4bb2ee83c25239e3a19a0fb47674490e195cdf421ebb60000000000000000000000000000000000000000000000000000000065b560c00000000000000000000000000000000000000000000000000000000065b65de0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
-----Decoded View---------------
Arg [0] : _merkleRootDeposit (bytes32): 0x47b4308f9689538348b4bb2ee83c25239e3a19a0fb47674490e195cdf421ebb6
Arg [1] : _start (uint256): 1706385600
Arg [2] : _end (uint256): 1706450400
Arg [3] : _tokenPayment (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 47b4308f9689538348b4bb2ee83c25239e3a19a0fb47674490e195cdf421ebb6
Arg [1] : 0000000000000000000000000000000000000000000000000000000065b560c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000065b65de0
Arg [3] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.