More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,126 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Redeem | 21234050 | 54 days ago | IN | 0 ETH | 0.00036463 | ||||
Redeem | 19871579 | 244 days ago | IN | 0 ETH | 0.00021625 | ||||
Redeem | 19077869 | 355 days ago | IN | 0 ETH | 0.00088143 | ||||
Redeem | 19014810 | 364 days ago | IN | 0 ETH | 0.00119926 | ||||
Redeem | 18993556 | 367 days ago | IN | 0 ETH | 0.00131848 | ||||
Redeem | 18551550 | 429 days ago | IN | 0 ETH | 0.0017589 | ||||
Redeem | 18432516 | 445 days ago | IN | 0 ETH | 0.00115747 | ||||
Redeem | 18336226 | 459 days ago | IN | 0 ETH | 0.00046546 | ||||
Redeem | 18218602 | 475 days ago | IN | 0 ETH | 0.00047605 | ||||
Redeem | 18129944 | 488 days ago | IN | 0 ETH | 0.00091022 | ||||
Redeem | 18128435 | 488 days ago | IN | 0 ETH | 0.00095149 | ||||
Redeem | 18098520 | 492 days ago | IN | 0 ETH | 0.00051397 | ||||
Redeem | 18071545 | 496 days ago | IN | 0 ETH | 0.00140694 | ||||
Redeem | 18011976 | 504 days ago | IN | 0 ETH | 0.00088816 | ||||
Redeem | 18000682 | 506 days ago | IN | 0 ETH | 0.00067794 | ||||
Redeem | 17983235 | 508 days ago | IN | 0 ETH | 0.00096766 | ||||
Redeem | 17952503 | 513 days ago | IN | 0 ETH | 0.00062605 | ||||
Redeem | 17928156 | 516 days ago | IN | 0 ETH | 0.00260645 | ||||
Redeem | 17909143 | 519 days ago | IN | 0 ETH | 0.00067642 | ||||
Redeem | 17893274 | 521 days ago | IN | 0 ETH | 0.00117396 | ||||
Redeem | 17890122 | 521 days ago | IN | 0 ETH | 0.00120423 | ||||
Redeem | 17876618 | 523 days ago | IN | 0 ETH | 0.00100036 | ||||
Redeem | 17870914 | 524 days ago | IN | 0 ETH | 0.00171324 | ||||
Redeem | 17857113 | 526 days ago | IN | 0 ETH | 0.00132258 | ||||
Redeem | 17844354 | 528 days ago | IN | 0 ETH | 0.00102794 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
SpiralMerkleDrop
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.16; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { MerkleProof } from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import { BitMaps } from "../libraries/BitMaps.sol"; contract SpiralMerkleDrop is Ownable { using BitMaps for BitMaps.BitMap; using SafeERC20 for IERC20; bytes32 public merkleRoot; IERC20 public immutable dropToken; uint256 public startTime; uint256 public immutable expiryTime; uint256 public immutable boostTime; enum CLAIM_TYPE { AuraFinance, ConvexFinance, Debank, DegenScore, LobsterDAO, veBAL, veCRV, veFXS, veSDT, vlAURA, vlCVX } struct Duration { uint64 start; uint64 end; } uint256 private constant CLAIM_AMOUNT = 100e18; mapping(CLAIM_TYPE => Duration) public claimWindow; mapping(CLAIM_TYPE => uint256) private _availableClaims; mapping(CLAIM_TYPE => BitMaps.BitMap) private _hasClaimed; mapping(address => uint256) public toRedeem; event RootSet(bytes32 newRoot); event StartedEarly(); event ExpiredWithdrawn(uint256 amount); event Claimed(address addr, uint256 amt); event Redeemed(address addr, uint256 amt); event Rescued(); event Initialized(); /** * @param _merkleRoot Merkle root * @param _dropToken Drop token * @param _startTime Exact time when contract is live * @param _expiresAfter Timestamp when contract expires * @param _boostTime Duration of linear increase of redeem multiplier */ constructor( bytes32 _merkleRoot, address _dropToken, uint256 _startTime, uint256 _expiresAfter, uint256 _boostTime ) { merkleRoot = _merkleRoot; require(_dropToken != address(0), "!dropToken"); dropToken = IERC20(_dropToken); startTime = _startTime; require(_expiresAfter * 1 days >= 1 weeks, "!expiry"); expiryTime = _startTime + _expiresAfter * 1 days; require(_boostTime > 0, "!divzero"); boostTime = _startTime + _boostTime * 1 days; emit Initialized(); } /*************************************** CONFIG ****************************************/ function startNow() external { require(msg.sender == owner(), "!auth"); startTime = block.timestamp; emit StartedEarly(); } function setRoot(bytes32 _merkleRoot) external { require(msg.sender == owner(), "!auth"); merkleRoot = _merkleRoot; emit RootSet(_merkleRoot); } function withdrawExpired() external { require(msg.sender == owner(), "!auth"); require(block.timestamp > expiryTime, "!expired"); uint256 amt = dropToken.balanceOf(address(this)); dropToken.safeTransfer(owner(), amt); emit ExpiredWithdrawn(amt); } function setClaimTypeSizeAndDuration( CLAIM_TYPE claim_type, uint256 size, Duration calldata duration_ ) external { require(msg.sender == owner(), "!auth"); require(claim_type <= CLAIM_TYPE.vlCVX, "!type"); require(duration_.start < duration_.end, "!duration"); _availableClaims[claim_type] = size; claimWindow[claim_type] = duration_; } /*************************************** VIEWS ****************************************/ function hasClaimed(address user_) external view returns(bool[] memory) { bool[] memory data = new bool[](uint8(CLAIM_TYPE.vlCVX) + 1); for (uint8 i; i <= uint8(CLAIM_TYPE.vlCVX);i++) { data[i] = _hasClaimed[CLAIM_TYPE(i)].get(uint256(uint160(user_))); } return data; } function claimWindows() external view returns(Duration[] memory) { Duration[] memory data = new Duration[](uint8(CLAIM_TYPE.vlCVX) + 1); for (uint8 i; i <= uint8(CLAIM_TYPE.vlCVX);i++) { data[i] = claimWindow[CLAIM_TYPE(i)]; } return data; } function availableClaims() external view returns(uint256[] memory) { uint256[] memory data = new uint256[](uint8(CLAIM_TYPE.vlCVX) + 1); for (uint8 i; i <= uint8(CLAIM_TYPE.vlCVX);i++) { data[i] = _availableClaims[CLAIM_TYPE(i)]; } return data; } /** * @notice actually it's a redeem amount, but back compatibility */ function claimableAmount(address address_) external view returns(uint256){ return _claimableAmount(address_); } function maxClaimableAmount(address address_) external view returns(uint256){ uint256 amount_ = toRedeem[address_]; uint256 multiplier = 15 * 1e6 / 10; return amount_ * multiplier / 1e6; } function _claimableAmount(address address_) internal view returns(uint256){ uint256 amount_ = toRedeem[address_]; uint256 multiplier; if (block.timestamp > boostTime) { multiplier = 15 * 1e6 / 10; } else { multiplier = 1e6 + (block.timestamp - startTime) * 1e6 / (boostTime - startTime) / 2; } return amount_ * multiplier / 1e6; } /*************************************** CLAIM ****************************************/ /** * @notice `flags` is a bit-packed value, each bit represents flag for claim type * e.g. 2047 == 0b11111111111 will result eligibility to all entries * and 1024 == 0b10000000000 will result only last entry eligibility */ function claim( bytes32[] calldata _proof, address addr, uint16 flags ) external returns (bool) { require(merkleRoot != bytes32(0), "!root"); require(block.timestamp > startTime, "!started"); require(block.timestamp < expiryTime, "!active"); bytes32 leaf = keccak256(abi.encodePacked(addr, flags)); require(MerkleProof.verify(_proof, merkleRoot, leaf), "invalid proof"); bool isEligible; uint256 claimAmount; uint8 claimsLength = uint8(CLAIM_TYPE.vlCVX); for(uint8 i; i <= claimsLength;) { CLAIM_TYPE type_ = CLAIM_TYPE(i); assembly { isEligible := and(shr(i, flags), 0x1) i := add(i, 1) } // Divided checks to separate `if`s to avoid unnecessary storage read in case of `false` flag if ( !isEligible || _hasClaimed[type_].get(uint256(uint160(addr))) ) { continue; } Duration memory claimWindow_ = claimWindow[type_]; if( block.timestamp < claimWindow_.start || block.timestamp > claimWindow_.end ){ continue; } uint256 remainedClaims = _availableClaims[type_]; if (remainedClaims == 0) { continue; } unchecked { _hasClaimed[type_].set(uint256(uint160(addr))); _availableClaims[type_] = remainedClaims - 1; claimAmount += CLAIM_AMOUNT; } } toRedeem[addr] += claimAmount; emit Claimed(addr, claimAmount); return true; } function redeem() external { uint256 amount_ = _claimableAmount(msg.sender); if(amount_ > 0){ toRedeem[msg.sender] = 0; dropToken.safeTransfer(msg.sender, amount_); emit Redeemed(msg.sender, amount_); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential. * Largely inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor]. */ library BitMaps { struct BitMap { mapping(uint256 => uint256) _data; } /** * @dev Returns whether the bit at `index` is set. */ function get(BitMap storage bitmap, uint256 index) internal view returns (bool) { uint256 bucket = index >> 8; uint256 mask = 1 << (index & 0xff); return bitmap._data[bucket] & mask != 0; } /** * @dev Sets the bit at `index` to the boolean `value`. */ function setTo( BitMap storage bitmap, uint256 index, bool value ) internal { if (value) { set(bitmap, index); } else { unset(bitmap, index); } } /** * @dev Sets the bit at `index`. */ function set(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = 1 << (index & 0xff); bitmap._data[bucket] |= mask; } /** * @dev Unsets the bit at `index`. */ function unset(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = 1 << (index & 0xff); bitmap._data[bucket] &= ~mask; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 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 { _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.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree 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. * * 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. */ 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 proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _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} * * _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 the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild 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 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 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 for 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) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild 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 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 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 for 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) { 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) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.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.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-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; 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)); } } 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"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 * ==== * * [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://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 /// @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 v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
{ "optimizer": { "enabled": true, "runs": 999999 }, "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":"_merkleRoot","type":"bytes32"},{"internalType":"address","name":"_dropToken","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_expiresAfter","type":"uint256"},{"internalType":"uint256","name":"_boostTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amt","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ExpiredWithdrawn","type":"event"},{"anonymous":false,"inputs":[],"name":"Initialized","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":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amt","type":"uint256"}],"name":"Redeemed","type":"event"},{"anonymous":false,"inputs":[],"name":"Rescued","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"RootSet","type":"event"},{"anonymous":false,"inputs":[],"name":"StartedEarly","type":"event"},{"inputs":[],"name":"availableClaims","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint16","name":"flags","type":"uint16"}],"name":"claim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum SpiralMerkleDrop.CLAIM_TYPE","name":"","type":"uint8"}],"name":"claimWindow","outputs":[{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimWindows","outputs":[{"components":[{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"}],"internalType":"struct SpiralMerkleDrop.Duration[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"}],"name":"claimableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dropToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"expiryTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user_","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"}],"name":"maxClaimableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum SpiralMerkleDrop.CLAIM_TYPE","name":"claim_type","type":"uint8"},{"internalType":"uint256","name":"size","type":"uint256"},{"components":[{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"}],"internalType":"struct SpiralMerkleDrop.Duration","name":"duration_","type":"tuple"}],"name":"setClaimTypeSizeAndDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startNow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"toRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawExpired","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040523480156200001157600080fd5b50604051620022cc380380620022cc8339810160408190526200003491620001e6565b6200003f3362000196565b60018590556001600160a01b0384166200008d5760405162461bcd60e51b815260206004820152600a60248201526910b23937b82a37b5b2b760b11b60448201526064015b60405180910390fd5b6001600160a01b038416608052600283905562093a80620000b2836201518062000254565b1015620000ec5760405162461bcd60e51b81526020600482015260076024820152662165787069727960c81b604482015260640162000084565b620000fb826201518062000254565b62000107908462000276565b60a05280620001445760405162461bcd60e51b8152602060048201526008602482015267216469767a65726f60c01b604482015260640162000084565b62000153816201518062000254565b6200015f908462000276565b60c0526040517f5daa87a0e9463431830481fd4b6e3403442dfb9a12b9c07597e9f61d50b633c890600090a1505050505062000292565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600080600060a08688031215620001ff57600080fd5b855160208701519095506001600160a01b03811681146200021f57600080fd5b6040870151606088015160809098015196999198509695945092505050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156200027157620002716200023e565b500290565b808201808211156200028c576200028c6200023e565b92915050565b60805160a05160c051611fd9620002f360003960008181610332015281816115b901526115f30152600081816102b0015281816104f60152610a02015260008181610361015281816105ae0152818161066901526110e30152611fd96000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c806378e97925116100d8578063b8e0e96d1161008c578063dab5f34011610066578063dab5f34014610383578063ee5e2b8a14610396578063f2fde38b146103ab57600080fd5b8063b8e0e96d1461032d578063be040fb014610354578063c7945de01461035c57600080fd5b80638da5cb5b116100bd5780638da5cb5b1461026c57806399bc0aea146102ab578063a8507cf6146102d257600080fd5b806378e9792514610250578063898850491461025957600080fd5b80635a26f1a21161012f5780635de0e3dd116101145780635de0e3dd14610213578063715018a61461022857806373b2e80e1461023057600080fd5b80635a26f1a2146101dd5780635b2c8d49146101f057600080fd5b80632eb4a7ab116101605780632eb4a7ab1461018e5780633536c7cd146101aa57806357308558146101bd57600080fd5b80630e3db9f21461017c57806315b6348314610186575b600080fd5b6101846103be565b005b610184610473565b61019760015481565b6040519081526020015b60405180910390f35b6101976101b8366004611a09565b6106c7565b6101976101cb366004611a09565b60066020526000908152604090205481565b6101846101eb366004611a33565b610711565b6102036101fe366004611a99565b610929565b60405190151581526020016101a1565b61021b610e78565b6040516101a19190611b37565b610184610fae565b61024361023e366004611a09565b610fc2565b6040516101a19190611b94565b61019760025481565b610197610267366004611a09565b6110a9565b60005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101a1565b6101977f000000000000000000000000000000000000000000000000000000000000000081565b61030c6102e0366004611bda565b60036020526000908152604090205467ffffffffffffffff808216916801000000000000000090041682565b6040805167ffffffffffffffff9384168152929091166020830152016101a1565b6101977f000000000000000000000000000000000000000000000000000000000000000081565b6101846110ba565b6102867f000000000000000000000000000000000000000000000000000000000000000081565b610184610391366004611bf5565b611158565b61039e61120e565b6040516101a19190611c0e565b6101846103b9366004611a09565b6112ef565b60005473ffffffffffffffffffffffffffffffffffffffff163314610444576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f216175746800000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b426002556040517f4d420acb8e6b2d53514712e44f7e6b7354d54fc5fa0adab5aee3bb60d81eb0f890600090a1565b60005473ffffffffffffffffffffffffffffffffffffffff1633146104f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f2161757468000000000000000000000000000000000000000000000000000000604482015260640161043b565b7f0000000000000000000000000000000000000000000000000000000000000000421161057d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f2165787069726564000000000000000000000000000000000000000000000000604482015260640161043b565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa15801561060a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062e9190611c46565b905061069061065260005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690836113a3565b6040518181527f740d726b1789a603e85c6b40463a98c7130ecdecdb1618b58bf1043342885bb9906020015b60405180910390a150565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660205260408120546216e360620f42406106ff8284611c8e565b6107099190611ccb565b949350505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610792576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f2161757468000000000000000000000000000000000000000000000000000000604482015260640161043b565b600a83600a8111156107a6576107a6611d06565b111561080e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f2174797065000000000000000000000000000000000000000000000000000000604482015260640161043b565b61081e6040820160208301611d4b565b67ffffffffffffffff166108356020830183611d4b565b67ffffffffffffffff16106108a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f216475726174696f6e0000000000000000000000000000000000000000000000604482015260640161043b565b816004600085600a8111156108bd576108bd611d06565b600a8111156108ce576108ce611d06565b815260200190815260200160002081905550806003600085600a8111156108f7576108f7611d06565b600a81111561090857610908611d06565b815260200190815260200160002081816109229190611d68565b5050505050565b600154600090610995576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f21726f6f74000000000000000000000000000000000000000000000000000000604482015260640161043b565b6002544211610a00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f2173746172746564000000000000000000000000000000000000000000000000604482015260640161043b565b7f00000000000000000000000000000000000000000000000000000000000000004210610a89576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f2161637469766500000000000000000000000000000000000000000000000000604482015260640161043b565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b1660208201527fffff00000000000000000000000000000000000000000000000000000000000060f084901b166034820152600090603601604051602081830303815290604052805190602001209050610b43868680806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506001549150849050611435565b610ba9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f696e76616c69642070726f6f6600000000000000000000000000000000000000604482015260640161043b565b600080600a815b8160ff168160ff1611610ddf5760008160ff16600a811115610bd457610bd4611d06565b9050600188831c169450600182019150841580610c495750610c498973ffffffffffffffffffffffffffffffffffffffff166005600084600a811115610c1c57610c1c611d06565b600a811115610c2d57610c2d611d06565b815260200190815260200160002061144d90919063ffffffff16565b15610c545750610bb0565b60006003600083600a811115610c6c57610c6c611d06565b600a811115610c7d57610c7d611d06565b8152602080820192909252604090810160002081518083019092525467ffffffffffffffff8082168084526801000000000000000090920416928201929092529150421080610cd95750806020015167ffffffffffffffff1642115b15610ce5575050610bb0565b60006004600084600a811115610cfd57610cfd611d06565b600a811115610d0e57610d0e611d06565b815260200190815260200160002054905080600003610d2f57505050610bb0565b610d8c8b73ffffffffffffffffffffffffffffffffffffffff166005600086600a811115610d5f57610d5f611d06565b600a811115610d7057610d70611d06565b815260200190815260200160002061147190919063ffffffff16565b600181036004600085600a811115610da657610da6611d06565b600a811115610db757610db7611d06565b81526020019081526020016000208190555068056bc75e2d6310000086019550505050610bb0565b5073ffffffffffffffffffffffffffffffffffffffff871660009081526006602052604081208054849290610e15908490611dfc565b90915550506040805173ffffffffffffffffffffffffffffffffffffffff89168152602081018490527fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a910160405180910390a150600198975050505050505050565b60606000610e88600a6001611e0f565b60ff1667ffffffffffffffff811115610ea357610ea3611e28565b604051908082528060200260200182016040528015610ee857816020015b6040805180820190915260008082526020820152815260200190600190039081610ec15790505b50905060005b600a60ff821611610fa857600360008260ff16600a811115610f1257610f12611d06565b600a811115610f2357610f23611d06565b600a811115610f3457610f34611d06565b8152602080820192909252604090810160002081518083019092525467ffffffffffffffff80821683526801000000000000000090910416918101919091528251839060ff8416908110610f8a57610f8a611e57565b60200260200101819052508080610fa090611e86565b915050610eee565b50919050565b610fb661149a565b610fc0600061151b565b565b60606000610fd2600a6001611e0f565b60ff1667ffffffffffffffff811115610fed57610fed611e28565b604051908082528060200260200182016040528015611016578160200160208202803683370190505b50905060005b600a60ff8216116110a25761106b8473ffffffffffffffffffffffffffffffffffffffff16600560008460ff16600a81111561105a5761105a611d06565b600a811115610c1c57610c1c611d06565b828260ff168151811061108057611080611e57565b911515602092830291909101909101528061109a81611e86565b91505061101c565b5092915050565b60006110b482611590565b92915050565b60006110c533611590565b90508015611155573360008181526006602052604081205561111f907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690836113a3565b60408051338152602081018390527f4896181ff8f4543cc00db9fe9b6fb7e6f032b7eb772c72ab1ec1b4d2e03b936991016106bc565b50565b60005473ffffffffffffffffffffffffffffffffffffffff1633146111d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f2161757468000000000000000000000000000000000000000000000000000000604482015260640161043b565b60018190556040518181527f2ae0bd135f5bcfc82b9dbffdabe76051e763c2ed1c7188197181a575aa0e55b3906020016106bc565b6060600061121e600a6001611e0f565b60ff1667ffffffffffffffff81111561123957611239611e28565b604051908082528060200260200182016040528015611262578160200160208202803683370190505b50905060005b600a60ff821611610fa857600460008260ff16600a81111561128c5761128c611d06565b600a81111561129d5761129d611d06565b600a8111156112ae576112ae611d06565b815260200190815260200160002054828260ff16815181106112d2576112d2611e57565b6020908102919091010152806112e781611e86565b915050611268565b6112f761149a565b73ffffffffffffffffffffffffffffffffffffffff811661139a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161043b565b6111558161151b565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052611430908490611663565b505050565b600082611442858461176f565b1490505b9392505050565b600881901c600090815260208390526040902054600160ff83161b16151592915050565b600881901c600090815260209290925260409091208054600160ff9093169290921b9091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610fc0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161043b565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260066020526040812054817f00000000000000000000000000000000000000000000000000000000000000004211156115e957506216e360611655565b60028054611617907f0000000000000000000000000000000000000000000000000000000000000000611ea5565b6002546116249042611ea5565b61163190620f4240611c8e565b61163b9190611ccb565b6116459190611ccb565b61165290620f4240611dfc565b90505b620f42406106ff8284611c8e565b60006116c5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166117bc9092919063ffffffff16565b80519091501561143057808060200190518101906116e39190611eb8565b611430576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161043b565b600081815b84518110156117b4576117a08286838151811061179357611793611e57565b60200260200101516117cb565b9150806117ac81611eda565b915050611774565b509392505050565b606061070984846000856117f7565b60008183106117e7576000828152602084905260409020611446565b5060009182526020526040902090565b606082471015611889576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161043b565b73ffffffffffffffffffffffffffffffffffffffff85163b611907576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161043b565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516119309190611f36565b60006040518083038185875af1925050503d806000811461196d576040519150601f19603f3d011682016040523d82523d6000602084013e611972565b606091505b509150915061198282828661198d565b979650505050505050565b6060831561199c575081611446565b8251156119ac5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043b9190611f52565b803573ffffffffffffffffffffffffffffffffffffffff81168114611a0457600080fd5b919050565b600060208284031215611a1b57600080fd5b611446826119e0565b8035600b8110611a0457600080fd5b60008060008385036080811215611a4957600080fd5b611a5285611a24565b93506020850135925060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc082011215611a8b57600080fd5b506040840190509250925092565b60008060008060608587031215611aaf57600080fd5b843567ffffffffffffffff80821115611ac757600080fd5b818701915087601f830112611adb57600080fd5b813581811115611aea57600080fd5b8860208260051b8501011115611aff57600080fd5b602092830196509450611b1591870190506119e0565b9150604085013561ffff81168114611b2c57600080fd5b939692955090935050565b602080825282518282018190526000919060409081850190868401855b82811015611b87578151805167ffffffffffffffff90811686529087015116868501529284019290850190600101611b54565b5091979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611bce578351151583529284019291840191600101611bb0565b50909695505050505050565b600060208284031215611bec57600080fd5b61144682611a24565b600060208284031215611c0757600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015611bce57835183529284019291840191600101611c2a565b600060208284031215611c5857600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611cc657611cc6611c5f565b500290565b600082611d01577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b67ffffffffffffffff8116811461115557600080fd5b600060208284031215611d5d57600080fd5b813561144681611d35565b8135611d7381611d35565b67ffffffffffffffff811690508154817fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000082161783556020840135611db781611d35565b6fffffffffffffffff00000000000000008160401b16837fffffffffffffffffffffffffffffffff000000000000000000000000000000008416171784555050505050565b808201808211156110b4576110b4611c5f565b60ff81811683821601908111156110b4576110b4611c5f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060ff821660ff8103611e9c57611e9c611c5f565b60010192915050565b818103818111156110b4576110b4611c5f565b600060208284031215611eca57600080fd5b8151801515811461144657600080fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611f0b57611f0b611c5f565b5060010190565b60005b83811015611f2d578181015183820152602001611f15565b50506000910152565b60008251611f48818460208701611f12565b9190910192915050565b6020815260008251806020840152611f71816040850160208701611f12565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea264697066735822122018c3a3e5771f1047d8cbf37acdd2a1320f5e20e7e7018df22877eb53857ac51364736f6c63430008100033f987bda44bc3556d70e5808d7562ebbf1a3208a70824ca37905c56720e0a594a00000000000000000000000085b6acaba696b9e4247175274f8263f99b4b918000000000000000000000000000000000000000000000000000000000644d30f00000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000005a
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101775760003560e01c806378e97925116100d8578063b8e0e96d1161008c578063dab5f34011610066578063dab5f34014610383578063ee5e2b8a14610396578063f2fde38b146103ab57600080fd5b8063b8e0e96d1461032d578063be040fb014610354578063c7945de01461035c57600080fd5b80638da5cb5b116100bd5780638da5cb5b1461026c57806399bc0aea146102ab578063a8507cf6146102d257600080fd5b806378e9792514610250578063898850491461025957600080fd5b80635a26f1a21161012f5780635de0e3dd116101145780635de0e3dd14610213578063715018a61461022857806373b2e80e1461023057600080fd5b80635a26f1a2146101dd5780635b2c8d49146101f057600080fd5b80632eb4a7ab116101605780632eb4a7ab1461018e5780633536c7cd146101aa57806357308558146101bd57600080fd5b80630e3db9f21461017c57806315b6348314610186575b600080fd5b6101846103be565b005b610184610473565b61019760015481565b6040519081526020015b60405180910390f35b6101976101b8366004611a09565b6106c7565b6101976101cb366004611a09565b60066020526000908152604090205481565b6101846101eb366004611a33565b610711565b6102036101fe366004611a99565b610929565b60405190151581526020016101a1565b61021b610e78565b6040516101a19190611b37565b610184610fae565b61024361023e366004611a09565b610fc2565b6040516101a19190611b94565b61019760025481565b610197610267366004611a09565b6110a9565b60005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101a1565b6101977f0000000000000000000000000000000000000000000000000000000064566b7081565b61030c6102e0366004611bda565b60036020526000908152604090205467ffffffffffffffff808216916801000000000000000090041682565b6040805167ffffffffffffffff9384168152929091166020830152016101a1565b6101977f0000000000000000000000000000000000000000000000000000000064c3d7f081565b6101846110ba565b6102867f00000000000000000000000085b6acaba696b9e4247175274f8263f99b4b918081565b610184610391366004611bf5565b611158565b61039e61120e565b6040516101a19190611c0e565b6101846103b9366004611a09565b6112ef565b60005473ffffffffffffffffffffffffffffffffffffffff163314610444576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f216175746800000000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b426002556040517f4d420acb8e6b2d53514712e44f7e6b7354d54fc5fa0adab5aee3bb60d81eb0f890600090a1565b60005473ffffffffffffffffffffffffffffffffffffffff1633146104f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f2161757468000000000000000000000000000000000000000000000000000000604482015260640161043b565b7f0000000000000000000000000000000000000000000000000000000064566b70421161057d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f2165787069726564000000000000000000000000000000000000000000000000604482015260640161043b565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f00000000000000000000000085b6acaba696b9e4247175274f8263f99b4b918073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa15801561060a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062e9190611c46565b905061069061065260005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000085b6acaba696b9e4247175274f8263f99b4b91801690836113a3565b6040518181527f740d726b1789a603e85c6b40463a98c7130ecdecdb1618b58bf1043342885bb9906020015b60405180910390a150565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660205260408120546216e360620f42406106ff8284611c8e565b6107099190611ccb565b949350505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610792576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f2161757468000000000000000000000000000000000000000000000000000000604482015260640161043b565b600a83600a8111156107a6576107a6611d06565b111561080e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f2174797065000000000000000000000000000000000000000000000000000000604482015260640161043b565b61081e6040820160208301611d4b565b67ffffffffffffffff166108356020830183611d4b565b67ffffffffffffffff16106108a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f216475726174696f6e0000000000000000000000000000000000000000000000604482015260640161043b565b816004600085600a8111156108bd576108bd611d06565b600a8111156108ce576108ce611d06565b815260200190815260200160002081905550806003600085600a8111156108f7576108f7611d06565b600a81111561090857610908611d06565b815260200190815260200160002081816109229190611d68565b5050505050565b600154600090610995576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f21726f6f74000000000000000000000000000000000000000000000000000000604482015260640161043b565b6002544211610a00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f2173746172746564000000000000000000000000000000000000000000000000604482015260640161043b565b7f0000000000000000000000000000000000000000000000000000000064566b704210610a89576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f2161637469766500000000000000000000000000000000000000000000000000604482015260640161043b565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b1660208201527fffff00000000000000000000000000000000000000000000000000000000000060f084901b166034820152600090603601604051602081830303815290604052805190602001209050610b43868680806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506001549150849050611435565b610ba9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f696e76616c69642070726f6f6600000000000000000000000000000000000000604482015260640161043b565b600080600a815b8160ff168160ff1611610ddf5760008160ff16600a811115610bd457610bd4611d06565b9050600188831c169450600182019150841580610c495750610c498973ffffffffffffffffffffffffffffffffffffffff166005600084600a811115610c1c57610c1c611d06565b600a811115610c2d57610c2d611d06565b815260200190815260200160002061144d90919063ffffffff16565b15610c545750610bb0565b60006003600083600a811115610c6c57610c6c611d06565b600a811115610c7d57610c7d611d06565b8152602080820192909252604090810160002081518083019092525467ffffffffffffffff8082168084526801000000000000000090920416928201929092529150421080610cd95750806020015167ffffffffffffffff1642115b15610ce5575050610bb0565b60006004600084600a811115610cfd57610cfd611d06565b600a811115610d0e57610d0e611d06565b815260200190815260200160002054905080600003610d2f57505050610bb0565b610d8c8b73ffffffffffffffffffffffffffffffffffffffff166005600086600a811115610d5f57610d5f611d06565b600a811115610d7057610d70611d06565b815260200190815260200160002061147190919063ffffffff16565b600181036004600085600a811115610da657610da6611d06565b600a811115610db757610db7611d06565b81526020019081526020016000208190555068056bc75e2d6310000086019550505050610bb0565b5073ffffffffffffffffffffffffffffffffffffffff871660009081526006602052604081208054849290610e15908490611dfc565b90915550506040805173ffffffffffffffffffffffffffffffffffffffff89168152602081018490527fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a910160405180910390a150600198975050505050505050565b60606000610e88600a6001611e0f565b60ff1667ffffffffffffffff811115610ea357610ea3611e28565b604051908082528060200260200182016040528015610ee857816020015b6040805180820190915260008082526020820152815260200190600190039081610ec15790505b50905060005b600a60ff821611610fa857600360008260ff16600a811115610f1257610f12611d06565b600a811115610f2357610f23611d06565b600a811115610f3457610f34611d06565b8152602080820192909252604090810160002081518083019092525467ffffffffffffffff80821683526801000000000000000090910416918101919091528251839060ff8416908110610f8a57610f8a611e57565b60200260200101819052508080610fa090611e86565b915050610eee565b50919050565b610fb661149a565b610fc0600061151b565b565b60606000610fd2600a6001611e0f565b60ff1667ffffffffffffffff811115610fed57610fed611e28565b604051908082528060200260200182016040528015611016578160200160208202803683370190505b50905060005b600a60ff8216116110a25761106b8473ffffffffffffffffffffffffffffffffffffffff16600560008460ff16600a81111561105a5761105a611d06565b600a811115610c1c57610c1c611d06565b828260ff168151811061108057611080611e57565b911515602092830291909101909101528061109a81611e86565b91505061101c565b5092915050565b60006110b482611590565b92915050565b60006110c533611590565b90508015611155573360008181526006602052604081205561111f907f00000000000000000000000085b6acaba696b9e4247175274f8263f99b4b918073ffffffffffffffffffffffffffffffffffffffff1690836113a3565b60408051338152602081018390527f4896181ff8f4543cc00db9fe9b6fb7e6f032b7eb772c72ab1ec1b4d2e03b936991016106bc565b50565b60005473ffffffffffffffffffffffffffffffffffffffff1633146111d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f2161757468000000000000000000000000000000000000000000000000000000604482015260640161043b565b60018190556040518181527f2ae0bd135f5bcfc82b9dbffdabe76051e763c2ed1c7188197181a575aa0e55b3906020016106bc565b6060600061121e600a6001611e0f565b60ff1667ffffffffffffffff81111561123957611239611e28565b604051908082528060200260200182016040528015611262578160200160208202803683370190505b50905060005b600a60ff821611610fa857600460008260ff16600a81111561128c5761128c611d06565b600a81111561129d5761129d611d06565b600a8111156112ae576112ae611d06565b815260200190815260200160002054828260ff16815181106112d2576112d2611e57565b6020908102919091010152806112e781611e86565b915050611268565b6112f761149a565b73ffffffffffffffffffffffffffffffffffffffff811661139a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161043b565b6111558161151b565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052611430908490611663565b505050565b600082611442858461176f565b1490505b9392505050565b600881901c600090815260208390526040902054600160ff83161b16151592915050565b600881901c600090815260209290925260409091208054600160ff9093169290921b9091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610fc0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161043b565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260066020526040812054817f0000000000000000000000000000000000000000000000000000000064c3d7f04211156115e957506216e360611655565b60028054611617907f0000000000000000000000000000000000000000000000000000000064c3d7f0611ea5565b6002546116249042611ea5565b61163190620f4240611c8e565b61163b9190611ccb565b6116459190611ccb565b61165290620f4240611dfc565b90505b620f42406106ff8284611c8e565b60006116c5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166117bc9092919063ffffffff16565b80519091501561143057808060200190518101906116e39190611eb8565b611430576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161043b565b600081815b84518110156117b4576117a08286838151811061179357611793611e57565b60200260200101516117cb565b9150806117ac81611eda565b915050611774565b509392505050565b606061070984846000856117f7565b60008183106117e7576000828152602084905260409020611446565b5060009182526020526040902090565b606082471015611889576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161043b565b73ffffffffffffffffffffffffffffffffffffffff85163b611907576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161043b565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516119309190611f36565b60006040518083038185875af1925050503d806000811461196d576040519150601f19603f3d011682016040523d82523d6000602084013e611972565b606091505b509150915061198282828661198d565b979650505050505050565b6060831561199c575081611446565b8251156119ac5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043b9190611f52565b803573ffffffffffffffffffffffffffffffffffffffff81168114611a0457600080fd5b919050565b600060208284031215611a1b57600080fd5b611446826119e0565b8035600b8110611a0457600080fd5b60008060008385036080811215611a4957600080fd5b611a5285611a24565b93506020850135925060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc082011215611a8b57600080fd5b506040840190509250925092565b60008060008060608587031215611aaf57600080fd5b843567ffffffffffffffff80821115611ac757600080fd5b818701915087601f830112611adb57600080fd5b813581811115611aea57600080fd5b8860208260051b8501011115611aff57600080fd5b602092830196509450611b1591870190506119e0565b9150604085013561ffff81168114611b2c57600080fd5b939692955090935050565b602080825282518282018190526000919060409081850190868401855b82811015611b87578151805167ffffffffffffffff90811686529087015116868501529284019290850190600101611b54565b5091979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611bce578351151583529284019291840191600101611bb0565b50909695505050505050565b600060208284031215611bec57600080fd5b61144682611a24565b600060208284031215611c0757600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015611bce57835183529284019291840191600101611c2a565b600060208284031215611c5857600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611cc657611cc6611c5f565b500290565b600082611d01577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b67ffffffffffffffff8116811461115557600080fd5b600060208284031215611d5d57600080fd5b813561144681611d35565b8135611d7381611d35565b67ffffffffffffffff811690508154817fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000082161783556020840135611db781611d35565b6fffffffffffffffff00000000000000008160401b16837fffffffffffffffffffffffffffffffff000000000000000000000000000000008416171784555050505050565b808201808211156110b4576110b4611c5f565b60ff81811683821601908111156110b4576110b4611c5f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060ff821660ff8103611e9c57611e9c611c5f565b60010192915050565b818103818111156110b4576110b4611c5f565b600060208284031215611eca57600080fd5b8151801515811461144657600080fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611f0b57611f0b611c5f565b5060010190565b60005b83811015611f2d578181015183820152602001611f15565b50506000910152565b60008251611f48818460208701611f12565b9190910192915050565b6020815260008251806020840152611f71816040850160208701611f12565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea264697066735822122018c3a3e5771f1047d8cbf37acdd2a1320f5e20e7e7018df22877eb53857ac51364736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
f987bda44bc3556d70e5808d7562ebbf1a3208a70824ca37905c56720e0a594a00000000000000000000000085b6acaba696b9e4247175274f8263f99b4b918000000000000000000000000000000000000000000000000000000000644d30f00000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000005a
-----Decoded View---------------
Arg [0] : _merkleRoot (bytes32): 0xf987bda44bc3556d70e5808d7562ebbf1a3208a70824ca37905c56720e0a594a
Arg [1] : _dropToken (address): 0x85b6ACaBa696B9E4247175274F8263F99b4B9180
Arg [2] : _startTime (uint256): 1682780400
Arg [3] : _expiresAfter (uint256): 7
Arg [4] : _boostTime (uint256): 90
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : f987bda44bc3556d70e5808d7562ebbf1a3208a70824ca37905c56720e0a594a
Arg [1] : 00000000000000000000000085b6acaba696b9e4247175274f8263f99b4b9180
Arg [2] : 00000000000000000000000000000000000000000000000000000000644d30f0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [4] : 000000000000000000000000000000000000000000000000000000000000005a
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.