More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,369 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Release | 19647515 | 78 days ago | IN | 0 ETH | 0.00154568 | ||||
Release | 19601329 | 85 days ago | IN | 0 ETH | 0.00106737 | ||||
Release | 19505204 | 98 days ago | IN | 0 ETH | 0.00205501 | ||||
Claim | 19344331 | 121 days ago | IN | 0 ETH | 0.00157648 | ||||
Claim | 19288600 | 128 days ago | IN | 0 ETH | 0.00087454 | ||||
Claim | 19288579 | 128 days ago | IN | 0 ETH | 0.00100519 | ||||
Claim | 19283582 | 129 days ago | IN | 0 ETH | 0.00149131 | ||||
Claim | 19283574 | 129 days ago | IN | 0 ETH | 0.0016771 | ||||
Release | 19238216 | 136 days ago | IN | 0 ETH | 0.00143475 | ||||
Release | 19224368 | 137 days ago | IN | 0 ETH | 0.00163624 | ||||
Release | 19210238 | 139 days ago | IN | 0 ETH | 0.00224988 | ||||
Release | 19170674 | 145 days ago | IN | 0 ETH | 0.00215274 | ||||
Release | 19151117 | 148 days ago | IN | 0 ETH | 0.00140818 | ||||
Release | 19148801 | 148 days ago | IN | 0 ETH | 0.00174754 | ||||
Release | 19146255 | 148 days ago | IN | 0 ETH | 0.00141087 | ||||
Release | 19116375 | 153 days ago | IN | 0 ETH | 0.0008959 | ||||
Release | 19115453 | 153 days ago | IN | 0 ETH | 0.00131416 | ||||
Release | 19114346 | 153 days ago | IN | 0 ETH | 0.00118968 | ||||
Release | 19112947 | 153 days ago | IN | 0 ETH | 0.00193768 | ||||
Release | 19111960 | 153 days ago | IN | 0 ETH | 0.00088794 | ||||
Release | 19110915 | 153 days ago | IN | 0 ETH | 0.00101565 | ||||
Release | 19110892 | 153 days ago | IN | 0 ETH | 0.00071649 | ||||
Release | 19110879 | 153 days ago | IN | 0 ETH | 0.00083992 | ||||
Release | 19110852 | 153 days ago | IN | 0 ETH | 0.00109523 | ||||
Release | 19110600 | 153 days ago | IN | 0 ETH | 0.00122003 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
WENAirdrop
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 5 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* __ __ ________ __ __ | \ _ | \| \| \ | \ | $$ / \ | $$| $$$$$$$$| $$\ | $$ | $$/ $\| $$| $$__ | $$$\| $$ | $$ $$$\ $$| $$ \ | $$$$\ $$ | $$ $$\$$\$$| $$$$$ | $$\$$ $$ | $$$$ \$$$$| $$_____ | $$ \$$$$ | $$$ \$$$| $$ \| $$ \$$$ \$$ \$$ \$$$$$$$$ \$$ \$$ */ pragma solidity ^0.8.19; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; interface IDelegationRegistry { function checkDelegateForContract(address delegate, address vault, address contract_) external view returns (bool); } /** * @title WENAirdrop */ contract WENAirdrop is Ownable, ReentrancyGuard { IDelegationRegistry immutable dc; event ClaimStatusUpdated(bool _isActive); event MerkleRootUpdated(bytes32 _merkleRoot); event Claimed(address indexed _address, uint256 _tokens); event Released(address indexed _address, uint256 _tokens); struct VestingSchedule { bool initialized; // start time of the vesting period uint256 start; // total amount of tokens to be released at the end of the vesting uint256 amountTotal; // amount of tokens released uint256 released; } // address of the ERC20 token address public immutable _token; // duration of the vesting period in seconds uint256 public immutable _duration; // merkle root for airdrop bytes32 public _merkleRoot; // claim status bool public _claimIsActive; // total amount vesting uint256 public vestingSchedulesTotalAmount; // vesing schedules mapping(address => VestingSchedule) public vestingSchedules; // tracks which beneficiaries have claimed their airdrop mapping(address => bool) public hasClaimed; /** * @dev Creates a vesting contract. * @param token_ address of the ERC20 token contract * @param duration_ of the vesting period in seconds * @param delegatecash_ is the delegate.cash contract address */ constructor(address token_, uint256 duration_, address delegatecash_) { // Check that duration is greater than 0. require(duration_ > 0, "Bad duration"); // Check that the token address is not 0x0. require(token_ != address(0x0), "Bad token address"); // Check that delegate.cash address is not 0x0. require(delegatecash_ != address(0x0), "Bad delegate.cash address"); // Set the token address. _token = token_; // Set the duration. _duration = duration_; // initialize delegate.cash dc = IDelegationRegistry(delegatecash_); } function setClaimStatus(bool claimIsActive_) external onlyOwner { _claimIsActive = claimIsActive_; emit ClaimStatusUpdated(claimIsActive_); } function setMerkleRoot(bytes32 merkleRoot_) external onlyOwner { _merkleRoot = merkleRoot_; emit MerkleRootUpdated(merkleRoot_); } /** * @notice Creates a new vesting schedule for a beneficiary and pays out 10% of _amount. * @param _address delegate.cash vault or msg.sender if delegate.cash isn't being used * @param _amount total amount (with 18 decimals) of tokens to be released at the end of the vesting * @param _proof merkle proof */ function claim( address _address, uint256 _amount, bytes32[] memory _proof ) external nonReentrant { // claim must be on for new vesting schedules to be created require(_claimIsActive, "Claim is off"); // Check that _address is not 0x0. require(_address != address(0x0), "Bad address"); if (_address != msg.sender) require(dc.checkDelegateForContract(msg.sender, _address, address(this)), "Unauthorized"); // Make sure the vesting schedule hasn't already been created require(!hasClaimed[_address], "Already claimed"); // Verify that the beneficiary is in the allowlist bytes32 _leaf = keccak256(abi.encode(_address, _amount)); require(MerkleProof.verify(_proof, _merkleRoot, _leaf), "Bad proof"); // Release 10% of tokens now and create a vesting schedule for the rest uint256 _initial = _amount * 10/100; createVestingSchedule(_address, _amount - _initial); IERC20(_token).transfer(_address, _initial); hasClaimed[_address] = true; emit Claimed(_address, _amount); } /** * @notice Creates a new vesting schedule for a beneficiary. * @param _beneficiary address of the beneficiary to whom vested tokens are transferred * @param _amount total amount of tokens to be released at the end of the vesting */ function createVestingSchedule(address _beneficiary, uint256 _amount) internal { require(getWithdrawableAmount() >= _amount, "Insufficient tokens"); require(_amount > 0, "Invalid amount"); vestingSchedules[_beneficiary] = VestingSchedule( true, block.timestamp, _amount, 0 ); vestingSchedulesTotalAmount = vestingSchedulesTotalAmount + _amount; } /** * @notice Release vested amount of tokens. * @param _address delegate.cash vault or msg.sender if delegate.cash isn't being used */ function release(address _address) external nonReentrant { require(_address != address(0x0), "Bad address"); if (_address != msg.sender) require(dc.checkDelegateForContract(msg.sender, _address, address(this)), "Unauthorized"); require(vestingSchedules[_address].initialized); VestingSchedule storage vestingSchedule = vestingSchedules[_address]; uint256 vestedAmount = _computeReleasableAmount(vestingSchedule); require(vestedAmount > 0, "None releasable"); vestingSchedule.released = vestingSchedule.released + vestedAmount; vestingSchedulesTotalAmount = vestingSchedulesTotalAmount - vestedAmount; IERC20(_token).transfer(_address, vestedAmount); emit Released(_address, vestedAmount); } /** * @dev Computes the releasable amount of tokens for a vesting schedule. * @param _beneficiary address of the beneficiary to whom vested tokens are transferred * @return the amount of releasable tokens */ function computeReleasableAmount(address _beneficiary) external view returns (uint256) { VestingSchedule storage vestingSchedule = vestingSchedules[_beneficiary]; return _computeReleasableAmount(vestingSchedule); } /** * @dev Computes the releasable amount of tokens for a vesting schedule. * @param vestingSchedule that tracks the vesting of a beneficiary * @return the amount of releasable tokens */ function _computeReleasableAmount(VestingSchedule memory vestingSchedule) internal view returns (uint256) { // Retrieve the current time. uint256 currentTime = block.timestamp; if (currentTime >= vestingSchedule.start + _duration) { // If the current time is after the vesting period, all tokens are releasable, // minus the amount already released. return vestingSchedule.amountTotal - vestingSchedule.released; } else { // Otherwise, some tokens are releasable. // Compute the number of seconds that have elapsed. uint256 vestedSeconds = currentTime - vestingSchedule.start; // Compute the amount of tokens that are vested. uint256 vestedAmount = (vestingSchedule.amountTotal * vestedSeconds) / _duration; // Subtract the amount already released and return. return vestedAmount - vestingSchedule.released; } } /** * @notice Withdraw the specified amount if possible. * @param amount the amount to withdraw */ function withdraw(uint256 amount) external nonReentrant onlyOwner { require(getWithdrawableAmount() >= amount, "Insufficient funds"); IERC20(_token).transfer(msg.sender, amount); } /** * @dev Returns the amount of tokens that can be withdrawn by the owner. * @return the amount of tokens */ function getWithdrawableAmount() public view returns (uint256) { return IERC20(_token).balanceOf(address(this)) - vestingSchedulesTotalAmount; } }
// 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.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // 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.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// 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.8.0) (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 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}. * * 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 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 v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 5 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"uint256","name":"duration_","type":"uint256"},{"internalType":"address","name":"delegatecash_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_isActive","type":"bool"}],"name":"ClaimStatusUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokens","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"MerkleRootUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokens","type":"uint256"}],"name":"Released","type":"event"},{"inputs":[],"name":"_claimIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_duration","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":"_token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"}],"name":"computeReleasableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWithdrawableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"claimIsActive_","type":"bool"}],"name":"setClaimStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vestingSchedules","outputs":[{"internalType":"bool","name":"initialized","type":"bool"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"amountTotal","type":"uint256"},{"internalType":"uint256","name":"released","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingSchedulesTotalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040523480156200001157600080fd5b506040516200145f3803806200145f8339810160408190526200003491620001b4565b6200003f3362000147565b6001805581620000855760405162461bcd60e51b815260206004820152600c60248201526b2130b210323ab930ba34b7b760a11b60448201526064015b60405180910390fd5b6001600160a01b038316620000d15760405162461bcd60e51b815260206004820152601160248201527042616420746f6b656e206164647265737360781b60448201526064016200007c565b6001600160a01b038116620001295760405162461bcd60e51b815260206004820152601960248201527f4261642064656c65676174652e6361736820616464726573730000000000000060448201526064016200007c565b6001600160a01b0392831660a05260c09190915216608052620001f5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620001af57600080fd5b919050565b600080600060608486031215620001ca57600080fd5b620001d58462000197565b925060208401519150620001ec6040850162000197565b90509250925092565b60805160a05160c05161120a620002556000396000818160fa01528181610c050152610c5c01526000818161020a0152818161048f015281816105cc0152818161088e0152610a440152600081816102f801526106e6015261120a6000f3fe608060405234801561001057600080fd5b50600436106100db5760003560e01c806319165587146100e0578063245c7c60146100f55780632e1a7d4d1461012f5780632fc37ab2146101425780633d13f8741461014b578063654f97a31461015e578063715018a61461017157806373b2e80e146101795780637cb64759146101ac5780638da5cb5b146101bf57806390be10cc146101d45780639963a92c146101dc5780639d8535ad146101e9578063dd1fdb62146101f2578063ecd0c0c314610205578063f2fde38b1461022c578063fdb20ccb1461023f575b600080fd5b6100f36100ee366004610f11565b61029a565b005b61011c7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b6100f361013d366004610f2c565b610559565b61011c60025481565b6100f3610159366004610f5b565b610650565b6100f361016c366004611042565b610976565b6100f36109c6565b61019c610187366004610f11565b60066020526000908152604090205460ff1681565b6040519015158152602001610126565b6100f36101ba366004610f2c565b6109da565b6101c7610a17565b604051610126919061105f565b61011c610a26565b60035461019c9060ff1681565b61011c60045481565b61011c610200366004610f11565b610ac7565b6101c77f000000000000000000000000000000000000000000000000000000000000000081565b6100f361023a366004610f11565b610b26565b61027861024d366004610f11565b600560205260009081526040902080546001820154600283015460039093015460ff90921692909184565b6040805194151585526020850193909352918301526060820152608001610126565b6102a2610b9c565b6001600160a01b0381166102d15760405162461bcd60e51b81526004016102c890611073565b60405180910390fd5b6001600160a01b038116331461038e5760405163090c9a2d60e41b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906390c9a2d09061033190339085903090600401611098565b602060405180830381865afa15801561034e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037291906110bb565b61038e5760405162461bcd60e51b81526004016102c8906110d8565b6001600160a01b03811660009081526005602052604090205460ff166103b357600080fd5b6001600160a01b03811660009081526005602090815260408083208151608081018352815460ff161515815260018201549381019390935260028101549183019190915260038101546060830152919061040c90610bf5565b9050600081116104505760405162461bcd60e51b815260206004820152600f60248201526e4e6f6e652072656c65617361626c6560881b60448201526064016102c8565b8082600301546104609190611114565b6003830155600454610473908290611127565b600490815560405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163a9059cbb916104c491879186910161113a565b6020604051808303816000875af11580156104e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050791906110bb565b50826001600160a01b03167fb21fb52d5749b80f3182f8c6992236b5e5576681880914484d7f4c9b062e619e8260405161054391815260200190565b60405180910390a2505061055660018055565b50565b610561610b9c565b610569610cb0565b80610572610a26565b10156105b55760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016102c8565b60405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb90610603903390859060040161113a565b6020604051808303816000875af1158015610622573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064691906110bb565b5061055660018055565b610658610b9c565b60035460ff166106995760405162461bcd60e51b815260206004820152600c60248201526b21b630b4b69034b99037b33360a11b60448201526064016102c8565b6001600160a01b0383166106bf5760405162461bcd60e51b81526004016102c890611073565b6001600160a01b038316331461077c5760405163090c9a2d60e41b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906390c9a2d09061071f90339087903090600401611098565b602060405180830381865afa15801561073c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076091906110bb565b61077c5760405162461bcd60e51b81526004016102c8906110d8565b6001600160a01b03831660009081526006602052604090205460ff16156107d75760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016102c8565b600083836040516020016107ec92919061113a565b6040516020818303038152906040528051906020012090506108118260025483610d0f565b6108495760405162461bcd60e51b81526020600482015260096024820152682130b210383937b7b360b91b60448201526064016102c8565b6000606461085885600a611153565b610862919061116a565b9050610877856108728387611127565b610d25565b60405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906108c5908890859060040161113a565b6020604051808303816000875af11580156108e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090891906110bb565b506001600160a01b03851660008181526006602052604090819020805460ff19166001179055517fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a9061095e9087815260200190565b60405180910390a2505061097160018055565b505050565b61097e610cb0565b6003805460ff19168215159081179091556040519081527f7d9bc7474aa5661520727056d5036520e3004dfa67eebc8ea98dd139b044aae1906020015b60405180910390a150565b6109ce610cb0565b6109d86000610e2a565b565b6109e2610cb0565b60028190556040518181527f90004c04698bc3322499a575ed3752dd4abf33e0a7294c06a787a0fe01bea941906020016109bb565b6000546001600160a01b031690565b600480546040516370a0823160e01b81526000926001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a0823191610a779130910161105f565b602060405180830381865afa158015610a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab8919061118c565b610ac29190611127565b905090565b6001600160a01b03811660009081526005602090815260408083208151608081018352815460ff16151581526001820154938101939093526002810154918301919091526003810154606083015290610b1f90610bf5565b9392505050565b610b2e610cb0565b6001600160a01b038116610b935760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102c8565b61055681610e2a565b600260015403610bee5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102c8565b6002600155565b60208101516000904290610c2a907f000000000000000000000000000000000000000000000000000000000000000090611114565b8110610c445782606001518360400151610b1f9190611127565b6000836020015182610c569190611127565b905060007f0000000000000000000000000000000000000000000000000000000000000000828660400151610c8b9190611153565b610c95919061116a565b9050846060015181610ca79190611127565b95945050505050565b33610cb9610a17565b6001600160a01b0316146109d85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102c8565b600082610d1c8584610e7a565b14949350505050565b80610d2e610a26565b1015610d725760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e7420746f6b656e7360681b60448201526064016102c8565b60008111610db35760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016102c8565b6040805160808101825260018082524260208084019182528385018681526000606086018181526001600160a01b038a1682526005909352959095209351845460ff1916901515178455905191830191909155915160028201559051600390910155600454610e23908290611114565b6004555050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815b8451811015610ebf57610eab82868381518110610e9e57610e9e6111a5565b6020026020010151610ec9565b915080610eb7816111bb565b915050610e7f565b5090505b92915050565b6000818310610ee5576000828152602084905260409020610b1f565b5060009182526020526040902090565b80356001600160a01b0381168114610f0c57600080fd5b919050565b600060208284031215610f2357600080fd5b610b1f82610ef5565b600060208284031215610f3e57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600080600060608486031215610f7057600080fd5b610f7984610ef5565b9250602084810135925060408501356001600160401b0380821115610f9d57600080fd5b818701915087601f830112610fb157600080fd5b813581811115610fc357610fc3610f45565b8060051b604051601f19603f83011681018181108582111715610fe857610fe8610f45565b60405291825284820192508381018501918a83111561100657600080fd5b938501935b828510156110245784358452938501939285019261100b565b8096505050505050509250925092565b801515811461055657600080fd5b60006020828403121561105457600080fd5b8135610b1f81611034565b6001600160a01b0391909116815260200190565b6020808252600b908201526a426164206164647265737360a81b604082015260600190565b6001600160a01b0393841681529183166020830152909116604082015260600190565b6000602082840312156110cd57600080fd5b8151610b1f81611034565b6020808252600c908201526b155b985d5d1a1bdc9a5e995960a21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610ec357610ec36110fe565b81810381811115610ec357610ec36110fe565b6001600160a01b03929092168252602082015260400190565b8082028115828204841417610ec357610ec36110fe565b60008261118757634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561119e57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000600182016111cd576111cd6110fe565b506001019056fea2646970667358221220336a6fabbc9aa74d9e081cc0244d0f66a2f6acfed88b759335ce90d120a61a2764736f6c63430008130033000000000000000000000000830a8512db4f6fca51968593e2667156c2c483a8000000000000000000000000000000000000000000000000000000000076a70000000000000000000000000000000000000076a84fef008cdabe6409d2fe638b
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100db5760003560e01c806319165587146100e0578063245c7c60146100f55780632e1a7d4d1461012f5780632fc37ab2146101425780633d13f8741461014b578063654f97a31461015e578063715018a61461017157806373b2e80e146101795780637cb64759146101ac5780638da5cb5b146101bf57806390be10cc146101d45780639963a92c146101dc5780639d8535ad146101e9578063dd1fdb62146101f2578063ecd0c0c314610205578063f2fde38b1461022c578063fdb20ccb1461023f575b600080fd5b6100f36100ee366004610f11565b61029a565b005b61011c7f000000000000000000000000000000000000000000000000000000000076a70081565b6040519081526020015b60405180910390f35b6100f361013d366004610f2c565b610559565b61011c60025481565b6100f3610159366004610f5b565b610650565b6100f361016c366004611042565b610976565b6100f36109c6565b61019c610187366004610f11565b60066020526000908152604090205460ff1681565b6040519015158152602001610126565b6100f36101ba366004610f2c565b6109da565b6101c7610a17565b604051610126919061105f565b61011c610a26565b60035461019c9060ff1681565b61011c60045481565b61011c610200366004610f11565b610ac7565b6101c77f000000000000000000000000830a8512db4f6fca51968593e2667156c2c483a881565b6100f361023a366004610f11565b610b26565b61027861024d366004610f11565b600560205260009081526040902080546001820154600283015460039093015460ff90921692909184565b6040805194151585526020850193909352918301526060820152608001610126565b6102a2610b9c565b6001600160a01b0381166102d15760405162461bcd60e51b81526004016102c890611073565b60405180910390fd5b6001600160a01b038116331461038e5760405163090c9a2d60e41b81526001600160a01b037f00000000000000000000000000000000000076a84fef008cdabe6409d2fe638b16906390c9a2d09061033190339085903090600401611098565b602060405180830381865afa15801561034e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037291906110bb565b61038e5760405162461bcd60e51b81526004016102c8906110d8565b6001600160a01b03811660009081526005602052604090205460ff166103b357600080fd5b6001600160a01b03811660009081526005602090815260408083208151608081018352815460ff161515815260018201549381019390935260028101549183019190915260038101546060830152919061040c90610bf5565b9050600081116104505760405162461bcd60e51b815260206004820152600f60248201526e4e6f6e652072656c65617361626c6560881b60448201526064016102c8565b8082600301546104609190611114565b6003830155600454610473908290611127565b600490815560405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000830a8512db4f6fca51968593e2667156c2c483a8169163a9059cbb916104c491879186910161113a565b6020604051808303816000875af11580156104e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050791906110bb565b50826001600160a01b03167fb21fb52d5749b80f3182f8c6992236b5e5576681880914484d7f4c9b062e619e8260405161054391815260200190565b60405180910390a2505061055660018055565b50565b610561610b9c565b610569610cb0565b80610572610a26565b10156105b55760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016102c8565b60405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000830a8512db4f6fca51968593e2667156c2c483a8169063a9059cbb90610603903390859060040161113a565b6020604051808303816000875af1158015610622573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064691906110bb565b5061055660018055565b610658610b9c565b60035460ff166106995760405162461bcd60e51b815260206004820152600c60248201526b21b630b4b69034b99037b33360a11b60448201526064016102c8565b6001600160a01b0383166106bf5760405162461bcd60e51b81526004016102c890611073565b6001600160a01b038316331461077c5760405163090c9a2d60e41b81526001600160a01b037f00000000000000000000000000000000000076a84fef008cdabe6409d2fe638b16906390c9a2d09061071f90339087903090600401611098565b602060405180830381865afa15801561073c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076091906110bb565b61077c5760405162461bcd60e51b81526004016102c8906110d8565b6001600160a01b03831660009081526006602052604090205460ff16156107d75760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016102c8565b600083836040516020016107ec92919061113a565b6040516020818303038152906040528051906020012090506108118260025483610d0f565b6108495760405162461bcd60e51b81526020600482015260096024820152682130b210383937b7b360b91b60448201526064016102c8565b6000606461085885600a611153565b610862919061116a565b9050610877856108728387611127565b610d25565b60405163a9059cbb60e01b81526001600160a01b037f000000000000000000000000830a8512db4f6fca51968593e2667156c2c483a8169063a9059cbb906108c5908890859060040161113a565b6020604051808303816000875af11580156108e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090891906110bb565b506001600160a01b03851660008181526006602052604090819020805460ff19166001179055517fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a9061095e9087815260200190565b60405180910390a2505061097160018055565b505050565b61097e610cb0565b6003805460ff19168215159081179091556040519081527f7d9bc7474aa5661520727056d5036520e3004dfa67eebc8ea98dd139b044aae1906020015b60405180910390a150565b6109ce610cb0565b6109d86000610e2a565b565b6109e2610cb0565b60028190556040518181527f90004c04698bc3322499a575ed3752dd4abf33e0a7294c06a787a0fe01bea941906020016109bb565b6000546001600160a01b031690565b600480546040516370a0823160e01b81526000926001600160a01b037f000000000000000000000000830a8512db4f6fca51968593e2667156c2c483a816916370a0823191610a779130910161105f565b602060405180830381865afa158015610a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab8919061118c565b610ac29190611127565b905090565b6001600160a01b03811660009081526005602090815260408083208151608081018352815460ff16151581526001820154938101939093526002810154918301919091526003810154606083015290610b1f90610bf5565b9392505050565b610b2e610cb0565b6001600160a01b038116610b935760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102c8565b61055681610e2a565b600260015403610bee5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102c8565b6002600155565b60208101516000904290610c2a907f000000000000000000000000000000000000000000000000000000000076a70090611114565b8110610c445782606001518360400151610b1f9190611127565b6000836020015182610c569190611127565b905060007f000000000000000000000000000000000000000000000000000000000076a700828660400151610c8b9190611153565b610c95919061116a565b9050846060015181610ca79190611127565b95945050505050565b33610cb9610a17565b6001600160a01b0316146109d85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102c8565b600082610d1c8584610e7a565b14949350505050565b80610d2e610a26565b1015610d725760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e7420746f6b656e7360681b60448201526064016102c8565b60008111610db35760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064016102c8565b6040805160808101825260018082524260208084019182528385018681526000606086018181526001600160a01b038a1682526005909352959095209351845460ff1916901515178455905191830191909155915160028201559051600390910155600454610e23908290611114565b6004555050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081815b8451811015610ebf57610eab82868381518110610e9e57610e9e6111a5565b6020026020010151610ec9565b915080610eb7816111bb565b915050610e7f565b5090505b92915050565b6000818310610ee5576000828152602084905260409020610b1f565b5060009182526020526040902090565b80356001600160a01b0381168114610f0c57600080fd5b919050565b600060208284031215610f2357600080fd5b610b1f82610ef5565b600060208284031215610f3e57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600080600060608486031215610f7057600080fd5b610f7984610ef5565b9250602084810135925060408501356001600160401b0380821115610f9d57600080fd5b818701915087601f830112610fb157600080fd5b813581811115610fc357610fc3610f45565b8060051b604051601f19603f83011681018181108582111715610fe857610fe8610f45565b60405291825284820192508381018501918a83111561100657600080fd5b938501935b828510156110245784358452938501939285019261100b565b8096505050505050509250925092565b801515811461055657600080fd5b60006020828403121561105457600080fd5b8135610b1f81611034565b6001600160a01b0391909116815260200190565b6020808252600b908201526a426164206164647265737360a81b604082015260600190565b6001600160a01b0393841681529183166020830152909116604082015260600190565b6000602082840312156110cd57600080fd5b8151610b1f81611034565b6020808252600c908201526b155b985d5d1a1bdc9a5e995960a21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115610ec357610ec36110fe565b81810381811115610ec357610ec36110fe565b6001600160a01b03929092168252602082015260400190565b8082028115828204841417610ec357610ec36110fe565b60008261118757634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561119e57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000600182016111cd576111cd6110fe565b506001019056fea2646970667358221220336a6fabbc9aa74d9e081cc0244d0f66a2f6acfed88b759335ce90d120a61a2764736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000830a8512db4f6fca51968593e2667156c2c483a8000000000000000000000000000000000000000000000000000000000076a70000000000000000000000000000000000000076a84fef008cdabe6409d2fe638b
-----Decoded View---------------
Arg [0] : token_ (address): 0x830a8512db4F6fCA51968593E2667156C2c483A8
Arg [1] : duration_ (uint256): 7776000
Arg [2] : delegatecash_ (address): 0x00000000000076A84feF008CDAbe6409d2FE638B
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000830a8512db4f6fca51968593e2667156c2c483a8
Arg [1] : 000000000000000000000000000000000000000000000000000000000076a700
Arg [2] : 00000000000000000000000000000000000076a84fef008cdabe6409d2fe638b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | <$0.000001 | 14,586,205,457.7794 | $6,126.57 |
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.