Polygon Sponsored slots available. Book your slot here!
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 96,526 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim Tokens | 70537981 | 2 days ago | IN | 0 POL | 0.00281053 | ||||
Claim Tokens | 70424721 | 5 days ago | IN | 0 POL | 0.00281016 | ||||
Claim Tokens | 70317475 | 8 days ago | IN | 0 POL | 0.00281052 | ||||
Claim Tokens | 70280772 | 9 days ago | IN | 0 POL | 0.00332352 | ||||
Claim Tokens | 70225849 | 10 days ago | IN | 0 POL | 0.00281052 | ||||
Claim Tokens | 70199794 | 11 days ago | IN | 0 POL | 0.00281052 | ||||
Claim Tokens | 70168886 | 11 days ago | IN | 0 POL | 0.00117075 | ||||
Claim Tokens | 70168859 | 11 days ago | IN | 0 POL | 0.00332316 | ||||
Claim Tokens | 70104745 | 13 days ago | IN | 0 POL | 0.00281052 | ||||
Claim Tokens | 70053362 | 14 days ago | IN | 0 POL | 0.00283733 | ||||
Claim Tokens | 69983601 | 16 days ago | IN | 0 POL | 0.00617847 | ||||
Claim Tokens | 69957904 | 17 days ago | IN | 0 POL | 0.00159246 | ||||
Claim Tokens | 69957882 | 17 days ago | IN | 0 POL | 0.00348906 | ||||
Claim Tokens | 69956951 | 17 days ago | IN | 0 POL | 0.00289695 | ||||
Claim Tokens | 69885671 | 18 days ago | IN | 0 POL | 0.00978804 | ||||
Claim Tokens | 69817848 | 20 days ago | IN | 0 POL | 0.00281016 | ||||
Claim Tokens | 69801753 | 20 days ago | IN | 0 POL | 0.00281052 | ||||
Claim Tokens | 69771229 | 21 days ago | IN | 0 POL | 0.00626603 | ||||
Claim Tokens | 69763535 | 21 days ago | IN | 0 POL | 0.00432199 | ||||
Claim Tokens | 69756356 | 22 days ago | IN | 0 POL | 0.00598711 | ||||
Claim Tokens | 69642970 | 24 days ago | IN | 0 POL | 0.00283303 | ||||
Claim Tokens | 69524130 | 27 days ago | IN | 0 POL | 0.0063445 | ||||
Claim Tokens | 69496587 | 28 days ago | IN | 0 POL | 0.00332352 | ||||
Claim Tokens | 69416544 | 30 days ago | IN | 0 POL | 0.00332352 | ||||
Claim Tokens | 69403639 | 30 days ago | IN | 0 POL | 0.00281052 |
Loading...
Loading
Contract Name:
YPredictVesting
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import {VestingHub} from "../base/VestingHub.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract YPredictVesting is VestingHub { uint256 internal constant _DURATION = 184 days; uint256 internal constant _INITIAL_RELEASE_PERCENTAGE = 50; uint256 internal constant _LOCK_PERIOD = 6 weeks; mapping(address => bool) public s_manager; modifier onlyManager() { require(s_manager[msg.sender] == true, "Only Manager Function"); _; } constructor( IERC20 token_, uint256 start_ ) VestingHub( token_, start_, _DURATION, _INITIAL_RELEASE_PERCENTAGE, _LOCK_PERIOD ) {} function allocateTokensManager( address benificiaries, uint256 amount ) public onlyManager { _allocatedTokens[benificiaries] = _allocatedTokens[benificiaries] + amount; } function allocateTokensForMultipleManager( address[] memory benificiaries, uint256[] memory amounts ) external onlyManager { for (uint i = 0; i < benificiaries.length; i++) { allocateTokensManager(benificiaries[i], amounts[i]); } } function addManager(address newManager) external onlyOwner { s_manager[newManager] = true; } function removeManager(address manager) external onlyOwner { s_manager[manager] = false; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract VestingHub is Ownable, ReentrancyGuard { using SafeERC20 for IERC20; IERC20 public token; uint256 public start; uint256 public duration; uint256 public lockPeriod; uint256 public initialReleasePercentage; uint256 public endDate; uint256 public lockEndDate; mapping(address => uint256) internal _allocatedTokens; mapping(address => uint256) internal _claimedTokens; mapping(address => bool) public s_blackList; event TokensAllocated(address indexed beneficiary, uint256 value); event TokensClaimed(address indexed beneficiary, uint256 value); constructor( IERC20 token_, uint256 start_, uint256 duration_, uint256 initialReleasePercentage_, uint256 lockPeriod_ ) { token = token_; start = start_; duration = duration_; initialReleasePercentage = initialReleasePercentage_; endDate = start + duration; lockPeriod = lockPeriod_; lockEndDate = start_ + lockPeriod_; _transferOwnership(0x6FA6DA462CBA635b0193809332387cDC25Df3e8D); } function claimTokens(address[] memory beneficiaries) public nonReentrant { for (uint256 i = 0; i < beneficiaries.length; i++) { uint256 claimableTokens = getClaimableTokens(beneficiaries[i]); require( s_blackList[beneficiaries[i]] == false, "User is balcklisted for claim" ); require(claimableTokens > 0, "Vesting: no claimable tokens"); require(block.timestamp >= lockEndDate, "Lock Period is going on"); _claimedTokens[beneficiaries[i]] += claimableTokens; token.safeTransfer(beneficiaries[i], claimableTokens); emit TokensClaimed(beneficiaries[i], claimableTokens); } } function getAllocatedTokens( address beneficiary ) public view returns (uint256 amount) { return _allocatedTokens[beneficiary]; } function getClaimedTokens( address beneficiary ) public view returns (uint256 amount) { return _claimedTokens[beneficiary]; } function getClaimableTokens( address beneficiary ) public view returns (uint256 amount) { uint256 releasedTokens = getReleasedTokensAtTimestamp( beneficiary, block.timestamp ); return releasedTokens - _claimedTokens[beneficiary]; } function getReleasedTokensAtTimestamp( address beneficiary, uint256 timestamp ) public view returns (uint256 amount) { if (timestamp < start) { return 0; } uint256 elapsedTime = timestamp - start; if (elapsedTime >= duration) { return _allocatedTokens[beneficiary]; } uint256 initialRelease = (_allocatedTokens[beneficiary] * initialReleasePercentage) / 100; uint256 remainingTokensAfterInitialRelease = _allocatedTokens[ beneficiary ] - initialRelease; uint256 subsequentRelease = (remainingTokensAfterInitialRelease * elapsedTime) / duration; uint256 totalReleasedTokens = initialRelease + subsequentRelease; return totalReleasedTokens; } function allocateTokens( address[] memory benificiaries, uint256[] memory amounts ) external onlyOwner { _allocateTokens(benificiaries, amounts); } function updateStart(uint256 _start) external onlyOwner { start = _start; lockEndDate = _start + lockPeriod; } function updateLockPeriod(uint256 _lockPeriod) external onlyOwner { lockPeriod = _lockPeriod; lockEndDate = start + _lockPeriod; } function _allocateTokens( address[] memory beneficiaries, uint256[] memory amounts ) internal { require( beneficiaries.length == amounts.length, "Vesting: beneficiaries and amounts length mismatch" ); for (uint256 i = 0; i < beneficiaries.length; i++) { require( beneficiaries[i] != address(0), "Vesting: beneficiary is 0 address" ); _allocatedTokens[beneficiaries[i]] = _allocatedTokens[beneficiaries[i]] + amounts[i]; emit TokensAllocated(beneficiaries[i], amounts[i]); } } function blackList(address user, bool isBlackList) external onlyOwner { s_blackList[user] = isBlackList; } }
// 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 (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 v4.4.1 (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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // 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); }
// 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 (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; } }
{ "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IERC20","name":"token_","type":"address"},{"internalType":"uint256","name":"start_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TokensAllocated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"inputs":[{"internalType":"address","name":"newManager","type":"address"}],"name":"addManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"benificiaries","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"allocateTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"benificiaries","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"allocateTokensForMultipleManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"benificiaries","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"allocateTokensManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bool","name":"isBlackList","type":"bool"}],"name":"blackList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"beneficiaries","type":"address[]"}],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"getAllocatedTokens","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"getClaimableTokens","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"getClaimedTokens","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getReleasedTokensAtTimestamp","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialReleasePercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockEndDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"manager","type":"address"}],"name":"removeManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"s_blackList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"s_manager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"start","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lockPeriod","type":"uint256"}],"name":"updateLockPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"}],"name":"updateStart","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200190a3803806200190a833981016040819052620000349162000118565b818162f29400603262375f006200004b33620000c8565b60018055600280546001600160a01b0319166001600160a01b03871617905560038490556004839055600682905562000085838562000154565b600755600581905562000099818562000154565b600855620000bb736fa6da462cba635b0193809332387cdc25df3e8d620000c8565b505050505050506200017b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080604083850312156200012c57600080fd5b82516001600160a01b03811681146200014457600080fd5b6020939093015192949293505050565b600082198211156200017657634e487b7160e01b600052601160045260246000fd5b500190565b61177f806200018b6000396000f3fe608060405234801561001057600080fd5b50600436106101a35760003560e01c80639abaa4b5116100ee578063be9a655511610097578063eef72a3c11610071578063eef72a3c146103a7578063f2fde38b146103ba578063f81ed6ae146103cd578063fc0c546a146103e057600080fd5b8063be9a655514610372578063c24a0f8b1461037b578063d32c15421461038457600080fd5b8063ac18de43116100c8578063ac18de4314610319578063b50424ff1461032c578063b67d5d011461033f57600080fd5b80639abaa4b5146102e05780639c8e841d146102f3578063a7368afb1461030657600080fd5b8063685439d8116101505780638d74fb771161012a5780638d74fb77146102585780638da5cb5b1461028e57806391db7b0d146102cd57600080fd5b8063685439d81461023e578063715018a61461024757806372b606821461024f57600080fd5b80631b831ead116101815780631b831ead1461020f5780632d06177a146102225780633fd8b02f1461023557600080fd5b80630b632ed3146101a85780630da39942146101bd5780630fb5a6b414610206575b600080fd5b6101bb6101b6366004611367565b610400565b005b6101f36101cb366004611315565b73ffffffffffffffffffffffffffffffffffffffff1660009081526009602052604090205490565b6040519081526020015b60405180910390f35b6101f360045481565b6101f361021d366004611315565b6104c7565b6101bb610230366004611315565b61050e565b6101f360055481565b6101f360065481565b6101bb610565565b6101f360085481565b6101f3610266366004611315565b73ffffffffffffffffffffffffffffffffffffffff166000908152600a602052604090205490565b60005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101fd565b6101bb6102db3660046114a5565b610579565b6101f36102ee366004611367565b61059a565b6101bb610301366004611330565b6106a6565b6101bb6103143660046113c6565b610704565b6101bb610327366004611315565b61071a565b6101bb61033a3660046113c6565b61076e565b61036261034d366004611315565b600c6020526000908152604090205460ff1681565b60405190151581526020016101fd565b6101f360035481565b6101f360075481565b610362610392366004611315565b600b6020526000908152604090205460ff1681565b6101bb6103b5366004611391565b610831565b6101bb6103c8366004611315565b610b27565b6101bb6103db3660046114a5565b610bc4565b6002546102a89073ffffffffffffffffffffffffffffffffffffffff1681565b336000908152600c602052604090205460ff1615156001146104695760405162461bcd60e51b815260206004820152601560248201527f4f6e6c79204d616e616765722046756e6374696f6e000000000000000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff821660009081526009602052604090205461049a90829061159e565b73ffffffffffffffffffffffffffffffffffffffff90921660009081526009602052604090209190915550565b6000806104d4834261059a565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600a6020526040902054909150610507908261162e565b9392505050565b610516610bde565b73ffffffffffffffffffffffffffffffffffffffff166000908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b61056d610bde565b6105776000610c45565b565b610581610bde565b600581905560035461059490829061159e565b60085550565b60006003548210156105ae575060006106a0565b6000600354836105be919061162e565b905060045481106105f657505073ffffffffffffffffffffffffffffffffffffffff82166000908152600960205260409020546106a0565b60065473ffffffffffffffffffffffffffffffffffffffff8516600090815260096020526040812054909160649161062e91906115f1565b61063891906115b6565b73ffffffffffffffffffffffffffffffffffffffff86166000908152600960205260408120549192509061066d90839061162e565b90506000600454848361068091906115f1565b61068a91906115b6565b90506000610698828561159e565b955050505050505b92915050565b6106ae610bde565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600b6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b61070c610bde565b6107168282610cba565b5050565b610722610bde565b73ffffffffffffffffffffffffffffffffffffffff166000908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b336000908152600c602052604090205460ff1615156001146107d25760405162461bcd60e51b815260206004820152601560248201527f4f6e6c79204d616e616765722046756e6374696f6e00000000000000000000006044820152606401610460565b60005b825181101561082c5761081a8382815181106107f3576107f36116dd565b602002602001015183838151811061080d5761080d6116dd565b6020026020010151610400565b8061082481611675565b9150506107d5565b505050565b600260015414156108845760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610460565b600260015560005b8151811015610b1f5760006108b98383815181106108ac576108ac6116dd565b60200260200101516104c7565b9050600b60008484815181106108d1576108d16116dd565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff1682528101919091526040016000205460ff16156109525760405162461bcd60e51b815260206004820152601d60248201527f557365722069732062616c636b6c697374656420666f7220636c61696d0000006044820152606401610460565b600081116109a25760405162461bcd60e51b815260206004820152601c60248201527f56657374696e673a206e6f20636c61696d61626c6520746f6b656e73000000006044820152606401610460565b6008544210156109f45760405162461bcd60e51b815260206004820152601760248201527f4c6f636b20506572696f6420697320676f696e67206f6e0000000000000000006044820152606401610460565b80600a6000858581518110610a0b57610a0b6116dd565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a5c919061159e565b92505081905550610aa3838381518110610a7857610a786116dd565b602090810291909101015160025473ffffffffffffffffffffffffffffffffffffffff169083610f66565b828281518110610ab557610ab56116dd565b602002602001015173ffffffffffffffffffffffffffffffffffffffff167f896e034966eaaf1adc54acc0f257056febbd300c9e47182cf761982cf1f5e43082604051610b0491815260200190565b60405180910390a25080610b1781611675565b91505061088c565b505060018055565b610b2f610bde565b73ffffffffffffffffffffffffffffffffffffffff8116610bb85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610460565b610bc181610c45565b50565b610bcc610bde565b6003819055600554610594908261159e565b60005473ffffffffffffffffffffffffffffffffffffffff1633146105775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610460565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051825114610d315760405162461bcd60e51b815260206004820152603260248201527f56657374696e673a2062656e6566696369617269657320616e6420616d6f756e60448201527f7473206c656e677468206d69736d6174636800000000000000000000000000006064820152608401610460565b60005b825181101561082c57600073ffffffffffffffffffffffffffffffffffffffff16838281518110610d6757610d676116dd565b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415610df95760405162461bcd60e51b815260206004820152602160248201527f56657374696e673a2062656e656669636961727920697320302061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610460565b818181518110610e0b57610e0b6116dd565b602002602001015160096000858481518110610e2957610e296116dd565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e76919061159e565b60096000858481518110610e8c57610e8c6116dd565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550828181518110610ee457610ee46116dd565b602002602001015173ffffffffffffffffffffffffffffffffffffffff167f3b87361b8a201c697d51aaa7a509f6dfb3870db9e5c5501d22d3e9fae858f725838381518110610f3557610f356116dd565b6020026020010151604051610f4c91815260200190565b60405180910390a280610f5e81611675565b915050610d34565b6040805173ffffffffffffffffffffffffffffffffffffffff848116602483015260448083018590528351808403909101815260649092018352602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261082c928692916000916110319185169084906110c1565b80519091501561082c578080602001905181019061104f9190611488565b61082c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610460565b60606110d084846000856110d8565b949350505050565b6060824710156111505760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610460565b73ffffffffffffffffffffffffffffffffffffffff85163b6111b45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610460565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516111dd91906114be565b60006040518083038185875af1925050503d806000811461121a576040519150601f19603f3d011682016040523d82523d6000602084013e61121f565b606091505b509150915061122f82828661123a565b979650505050505050565b60608315611249575081610507565b8251156112595782518084602001fd5b8160405162461bcd60e51b815260040161046091906114da565b803573ffffffffffffffffffffffffffffffffffffffff8116811461129757600080fd5b919050565b600082601f8301126112ad57600080fd5b813560206112c26112bd8361157a565b61152b565b80838252828201915082860187848660051b89010111156112e257600080fd5b60005b85811015611308576112f682611273565b845292840192908401906001016112e5565b5090979650505050505050565b60006020828403121561132757600080fd5b61050782611273565b6000806040838503121561134357600080fd5b61134c83611273565b9150602083013561135c8161173b565b809150509250929050565b6000806040838503121561137a57600080fd5b61138383611273565b946020939093013593505050565b6000602082840312156113a357600080fd5b813567ffffffffffffffff8111156113ba57600080fd5b6110d08482850161129c565b600080604083850312156113d957600080fd5b823567ffffffffffffffff808211156113f157600080fd5b6113fd8683870161129c565b935060209150818501358181111561141457600080fd5b85019050601f8101861361142757600080fd5b80356114356112bd8261157a565b80828252848201915084840189868560051b870101111561145557600080fd5b600094505b8385101561147857803583526001949094019391850191850161145a565b5080955050505050509250929050565b60006020828403121561149a57600080fd5b81516105078161173b565b6000602082840312156114b757600080fd5b5035919050565b600082516114d0818460208701611645565b9190910192915050565b60208152600082518060208401526114f9816040850160208701611645565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156115725761157261170c565b604052919050565b600067ffffffffffffffff8211156115945761159461170c565b5060051b60200190565b600082198211156115b1576115b16116ae565b500190565b6000826115ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611629576116296116ae565b500290565b600082821015611640576116406116ae565b500390565b60005b83811015611660578181015183820152602001611648565b8381111561166f576000848401525b50505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156116a7576116a76116ae565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b8015158114610bc157600080fdfea2646970667358221220c48d4b761b0c18385202e2f6863dc4ceab4d8b881b330cce8050637029173ff164736f6c63430008070033000000000000000000000000dfaf2680239d678d9551669727b93b62ad0d18cc00000000000000000000000000000000000000000000000000000000649ed2fc
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a35760003560e01c80639abaa4b5116100ee578063be9a655511610097578063eef72a3c11610071578063eef72a3c146103a7578063f2fde38b146103ba578063f81ed6ae146103cd578063fc0c546a146103e057600080fd5b8063be9a655514610372578063c24a0f8b1461037b578063d32c15421461038457600080fd5b8063ac18de43116100c8578063ac18de4314610319578063b50424ff1461032c578063b67d5d011461033f57600080fd5b80639abaa4b5146102e05780639c8e841d146102f3578063a7368afb1461030657600080fd5b8063685439d8116101505780638d74fb771161012a5780638d74fb77146102585780638da5cb5b1461028e57806391db7b0d146102cd57600080fd5b8063685439d81461023e578063715018a61461024757806372b606821461024f57600080fd5b80631b831ead116101815780631b831ead1461020f5780632d06177a146102225780633fd8b02f1461023557600080fd5b80630b632ed3146101a85780630da39942146101bd5780630fb5a6b414610206575b600080fd5b6101bb6101b6366004611367565b610400565b005b6101f36101cb366004611315565b73ffffffffffffffffffffffffffffffffffffffff1660009081526009602052604090205490565b6040519081526020015b60405180910390f35b6101f360045481565b6101f361021d366004611315565b6104c7565b6101bb610230366004611315565b61050e565b6101f360055481565b6101f360065481565b6101bb610565565b6101f360085481565b6101f3610266366004611315565b73ffffffffffffffffffffffffffffffffffffffff166000908152600a602052604090205490565b60005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101fd565b6101bb6102db3660046114a5565b610579565b6101f36102ee366004611367565b61059a565b6101bb610301366004611330565b6106a6565b6101bb6103143660046113c6565b610704565b6101bb610327366004611315565b61071a565b6101bb61033a3660046113c6565b61076e565b61036261034d366004611315565b600c6020526000908152604090205460ff1681565b60405190151581526020016101fd565b6101f360035481565b6101f360075481565b610362610392366004611315565b600b6020526000908152604090205460ff1681565b6101bb6103b5366004611391565b610831565b6101bb6103c8366004611315565b610b27565b6101bb6103db3660046114a5565b610bc4565b6002546102a89073ffffffffffffffffffffffffffffffffffffffff1681565b336000908152600c602052604090205460ff1615156001146104695760405162461bcd60e51b815260206004820152601560248201527f4f6e6c79204d616e616765722046756e6374696f6e000000000000000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff821660009081526009602052604090205461049a90829061159e565b73ffffffffffffffffffffffffffffffffffffffff90921660009081526009602052604090209190915550565b6000806104d4834261059a565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600a6020526040902054909150610507908261162e565b9392505050565b610516610bde565b73ffffffffffffffffffffffffffffffffffffffff166000908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b61056d610bde565b6105776000610c45565b565b610581610bde565b600581905560035461059490829061159e565b60085550565b60006003548210156105ae575060006106a0565b6000600354836105be919061162e565b905060045481106105f657505073ffffffffffffffffffffffffffffffffffffffff82166000908152600960205260409020546106a0565b60065473ffffffffffffffffffffffffffffffffffffffff8516600090815260096020526040812054909160649161062e91906115f1565b61063891906115b6565b73ffffffffffffffffffffffffffffffffffffffff86166000908152600960205260408120549192509061066d90839061162e565b90506000600454848361068091906115f1565b61068a91906115b6565b90506000610698828561159e565b955050505050505b92915050565b6106ae610bde565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600b6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b61070c610bde565b6107168282610cba565b5050565b610722610bde565b73ffffffffffffffffffffffffffffffffffffffff166000908152600c6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b336000908152600c602052604090205460ff1615156001146107d25760405162461bcd60e51b815260206004820152601560248201527f4f6e6c79204d616e616765722046756e6374696f6e00000000000000000000006044820152606401610460565b60005b825181101561082c5761081a8382815181106107f3576107f36116dd565b602002602001015183838151811061080d5761080d6116dd565b6020026020010151610400565b8061082481611675565b9150506107d5565b505050565b600260015414156108845760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610460565b600260015560005b8151811015610b1f5760006108b98383815181106108ac576108ac6116dd565b60200260200101516104c7565b9050600b60008484815181106108d1576108d16116dd565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff1682528101919091526040016000205460ff16156109525760405162461bcd60e51b815260206004820152601d60248201527f557365722069732062616c636b6c697374656420666f7220636c61696d0000006044820152606401610460565b600081116109a25760405162461bcd60e51b815260206004820152601c60248201527f56657374696e673a206e6f20636c61696d61626c6520746f6b656e73000000006044820152606401610460565b6008544210156109f45760405162461bcd60e51b815260206004820152601760248201527f4c6f636b20506572696f6420697320676f696e67206f6e0000000000000000006044820152606401610460565b80600a6000858581518110610a0b57610a0b6116dd565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a5c919061159e565b92505081905550610aa3838381518110610a7857610a786116dd565b602090810291909101015160025473ffffffffffffffffffffffffffffffffffffffff169083610f66565b828281518110610ab557610ab56116dd565b602002602001015173ffffffffffffffffffffffffffffffffffffffff167f896e034966eaaf1adc54acc0f257056febbd300c9e47182cf761982cf1f5e43082604051610b0491815260200190565b60405180910390a25080610b1781611675565b91505061088c565b505060018055565b610b2f610bde565b73ffffffffffffffffffffffffffffffffffffffff8116610bb85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610460565b610bc181610c45565b50565b610bcc610bde565b6003819055600554610594908261159e565b60005473ffffffffffffffffffffffffffffffffffffffff1633146105775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610460565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8051825114610d315760405162461bcd60e51b815260206004820152603260248201527f56657374696e673a2062656e6566696369617269657320616e6420616d6f756e60448201527f7473206c656e677468206d69736d6174636800000000000000000000000000006064820152608401610460565b60005b825181101561082c57600073ffffffffffffffffffffffffffffffffffffffff16838281518110610d6757610d676116dd565b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415610df95760405162461bcd60e51b815260206004820152602160248201527f56657374696e673a2062656e656669636961727920697320302061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610460565b818181518110610e0b57610e0b6116dd565b602002602001015160096000858481518110610e2957610e296116dd565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e76919061159e565b60096000858481518110610e8c57610e8c6116dd565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550828181518110610ee457610ee46116dd565b602002602001015173ffffffffffffffffffffffffffffffffffffffff167f3b87361b8a201c697d51aaa7a509f6dfb3870db9e5c5501d22d3e9fae858f725838381518110610f3557610f356116dd565b6020026020010151604051610f4c91815260200190565b60405180910390a280610f5e81611675565b915050610d34565b6040805173ffffffffffffffffffffffffffffffffffffffff848116602483015260448083018590528351808403909101815260649092018352602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261082c928692916000916110319185169084906110c1565b80519091501561082c578080602001905181019061104f9190611488565b61082c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610460565b60606110d084846000856110d8565b949350505050565b6060824710156111505760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610460565b73ffffffffffffffffffffffffffffffffffffffff85163b6111b45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610460565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516111dd91906114be565b60006040518083038185875af1925050503d806000811461121a576040519150601f19603f3d011682016040523d82523d6000602084013e61121f565b606091505b509150915061122f82828661123a565b979650505050505050565b60608315611249575081610507565b8251156112595782518084602001fd5b8160405162461bcd60e51b815260040161046091906114da565b803573ffffffffffffffffffffffffffffffffffffffff8116811461129757600080fd5b919050565b600082601f8301126112ad57600080fd5b813560206112c26112bd8361157a565b61152b565b80838252828201915082860187848660051b89010111156112e257600080fd5b60005b85811015611308576112f682611273565b845292840192908401906001016112e5565b5090979650505050505050565b60006020828403121561132757600080fd5b61050782611273565b6000806040838503121561134357600080fd5b61134c83611273565b9150602083013561135c8161173b565b809150509250929050565b6000806040838503121561137a57600080fd5b61138383611273565b946020939093013593505050565b6000602082840312156113a357600080fd5b813567ffffffffffffffff8111156113ba57600080fd5b6110d08482850161129c565b600080604083850312156113d957600080fd5b823567ffffffffffffffff808211156113f157600080fd5b6113fd8683870161129c565b935060209150818501358181111561141457600080fd5b85019050601f8101861361142757600080fd5b80356114356112bd8261157a565b80828252848201915084840189868560051b870101111561145557600080fd5b600094505b8385101561147857803583526001949094019391850191850161145a565b5080955050505050509250929050565b60006020828403121561149a57600080fd5b81516105078161173b565b6000602082840312156114b757600080fd5b5035919050565b600082516114d0818460208701611645565b9190910192915050565b60208152600082518060208401526114f9816040850160208701611645565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156115725761157261170c565b604052919050565b600067ffffffffffffffff8211156115945761159461170c565b5060051b60200190565b600082198211156115b1576115b16116ae565b500190565b6000826115ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611629576116296116ae565b500290565b600082821015611640576116406116ae565b500390565b60005b83811015611660578181015183820152602001611648565b8381111561166f576000848401525b50505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156116a7576116a76116ae565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b8015158114610bc157600080fdfea2646970667358221220c48d4b761b0c18385202e2f6863dc4ceab4d8b881b330cce8050637029173ff164736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000dfaf2680239d678d9551669727b93b62ad0d18cc00000000000000000000000000000000000000000000000000000000649ed2fc
-----Decoded View---------------
Arg [0] : token_ (address): 0xdFaF2680239d678d9551669727b93b62Ad0D18Cc
Arg [1] : start_ (uint256): 1688130300
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000dfaf2680239d678d9551669727b93b62ad0d18cc
Arg [1] : 00000000000000000000000000000000000000000000000000000000649ed2fc
Loading...
Loading
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.