More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
VenoVesting
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.15; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title VenoVesting * @notice Veno token are safely locked in this token and vested over time to the team */ contract VenoVesting is Ownable, ReentrancyGuard { using SafeERC20 for IERC20; // The token for vesting IERC20 public token; struct Vesting { address beneficiary; uint256 startTime; // start time of vesting. timestamp in seconds uint256 cliff; // amount in seconds of the cliff uint256 duration; // amount in seconds of the whole vesting period uint256 interval; // amount in seconds of each interval uint256 allocated; uint256 released; bool revoked; // whether this is interrupted by owner to release early } // address of beneficiary => vesting info mapping(address => Vesting) public vestingInfo; event AddVesting( address indexed user, uint256 startTime, uint256 cliff, uint256 duration, uint256 interval, uint256 amount ); event TokenReleased(address indexed user, uint256 amount); event BeneficiaryChanged(address indexed currentBeneficiary, address indexed newBeneficiary); event TokenRevoked(address indexed beneficiary, address indexed owner, uint256 amount); modifier onlyNew(address _receiver) { require(_receiver != address(0), "receiver is the zero address"); Vesting memory vesting = vestingInfo[_receiver]; require(vesting.beneficiary == address(0), "receiver already exists"); _; } modifier onlyExisting(address _receiver) { Vesting memory vesting = vestingInfo[_receiver]; require(vesting.beneficiary != address(0), "receiver does not exist"); require(vesting.revoked == false, "this beneficiary is already revoked"); require(vesting.allocated > vesting.released, "vesting is already completed"); _; } constructor(IERC20 _token, address _owner) { require(address(_token) != address(0), "token cant be zero"); require(_owner != address(0), "owner cant be zero"); token = _token; transferOwnership(_owner); } /** * @dev Create vesting with token deposited to the contract * @param _receiver: the beneficiary of vesting * @param _startTime: start time of vesting * @param _cliff: waiting period before first vesting released in seconds * @param _duration: number of seconds for the whole vesting period * @param _interval: duration in seconds of each interval * @param _amount: amount vested */ function addVesting( address _receiver, uint256 _startTime, uint256 _cliff, uint256 _duration, uint256 _interval, uint256 _amount ) public onlyOwner onlyNew(_receiver) { require(_startTime >= block.timestamp, "startTime is already passed"); require(_duration > 0, "duration is 0"); require(_interval > 0, "interval is 0"); require(_amount > 0, "amount is 0"); require(_amount <= token.balanceOf(msg.sender), "not enough fund"); vestingInfo[_receiver] = Vesting( _receiver, _startTime, _cliff, _duration, _interval, _amount, 0, false ); // Send token over to the vesting schedule contract token.safeTransferFrom(msg.sender, address(this), _amount); emit AddVesting(_receiver, _startTime, _cliff, _duration, _interval, _amount); } /** * @dev claim vesting, by the receiver * @param _amount: amount vested */ function withdraw(uint256 _amount) public nonReentrant onlyExisting(msg.sender) { _withdraw(msg.sender, _amount); } function _withdraw(address _receiver, uint256 _amount) private { require(_amount > 0, "amount is zero"); Vesting storage vesting = vestingInfo[_receiver]; uint256 availableAmount = calculateVestingAmount(_receiver); require(_amount <= availableAmount, "requested amount exceeds available amount"); token.safeTransfer(_receiver, _amount); vesting.released += _amount; emit TokenReleased(_receiver, _amount); } /** * @dev calculate the vesting amount from the start * @param _receiver: the receiver of the vesting */ function calculateVestingAmount(address _receiver) public view returns (uint256) { Vesting memory vesting = vestingInfo[_receiver]; if (block.timestamp < (vesting.startTime + vesting.cliff)) { return 0; } uint256 timeFromStart = block.timestamp - vesting.startTime; uint256 availableAmount = 0; if (timeFromStart >= vesting.duration) { availableAmount = vesting.allocated - vesting.released; } else { // Calculate number of intervals so far (rounded down) uint256 vestedIntervals = timeFromStart / vesting.interval; // Calculate total amt to claim based on allocated * intervals / total intervals availableAmount = (vesting.allocated * (vestedIntervals * vesting.interval)) / vesting.duration; // deduct from what's released to the user availableAmount -= vesting.released; } uint256 tokenBalance = token.balanceOf(address(this)); // just in case if rounding error causes pool to not have enough token. if (availableAmount > tokenBalance) { availableAmount = tokenBalance; } return availableAmount; } /** * @dev revoke vesting. * After revoke is called, the eligible tokens will be transferred to beneficiary * while remaining tokens will be transferred to owner's account * @param _receiver: the receiver of the vesting */ function revoke(address _receiver) public onlyOwner onlyExisting(_receiver) { Vesting storage vesting = vestingInfo[_receiver]; uint256 availableAmount = calculateVestingAmount(_receiver); _withdraw(_receiver, availableAmount); uint256 remainingAmount = vesting.allocated - vesting.released; token.safeTransfer(owner(), remainingAmount); vesting.released = vesting.allocated; vesting.revoked = true; emit TokenRevoked(_receiver, owner(), remainingAmount); } /** * @dev Update beneficiary for some vesting * @param _currentBeneficiary: the current beneficiary of the vesting * @param _newBeneficiary: the new beneficiary of the vesting */ function updateBeneficiary(address _currentBeneficiary, address _newBeneficiary) public onlyExisting(_currentBeneficiary) onlyNew(_newBeneficiary) { require(msg.sender == _currentBeneficiary, "only original beneficiary can change"); Vesting storage vesting = vestingInfo[_currentBeneficiary]; vesting.beneficiary = _newBeneficiary; // Swap current -> new, and reset the current to give up slot vestingInfo[_newBeneficiary] = vesting; vestingInfo[_currentBeneficiary] = Vesting(address(0), 0, 0, 0, 0, 0, 0, false); emit BeneficiaryChanged(_currentBeneficiary, _newBeneficiary); } }
// 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 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// 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 (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 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) (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) (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; } }
{ "remappings": [ "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "nft-staking-module/=lib/nft-staking-module/contracts/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/", "openzeppelin-contracts/=lib/openzeppelin-contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cliff","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"interval","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AddVesting","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"currentBeneficiary","type":"address"},{"indexed":true,"internalType":"address","name":"newBeneficiary","type":"address"}],"name":"BeneficiaryChanged","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenRevoked","type":"event"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_cliff","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_interval","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"calculateVestingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"revoke","outputs":[],"stateMutability":"nonpayable","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":"address","name":"_currentBeneficiary","type":"address"},{"internalType":"address","name":"_newBeneficiary","type":"address"}],"name":"updateBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vestingInfo","outputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"cliff","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"interval","type":"uint256"},{"internalType":"uint256","name":"allocated","type":"uint256"},{"internalType":"uint256","name":"released","type":"uint256"},{"internalType":"bool","name":"revoked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001ab638038062001ab6833981016040819052620000349162000252565b6200003f336200010f565b600180556001600160a01b038216620000945760405162461bcd60e51b8152602060048201526012602482015271746f6b656e2063616e74206265207a65726f60701b60448201526064015b60405180910390fd5b6001600160a01b038116620000e15760405162461bcd60e51b81526020600482015260126024820152716f776e65722063616e74206265207a65726f60701b60448201526064016200008b565b600280546001600160a01b0319166001600160a01b03841617905562000107816200015f565b505062000291565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b62000169620001de565b6001600160a01b038116620001d05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016200008b565b620001db816200010f565b50565b6000546001600160a01b031633146200023a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200008b565b565b6001600160a01b0381168114620001db57600080fd5b600080604083850312156200026657600080fd5b825162000273816200023c565b602084015190925062000286816200023c565b809150509250929050565b61181580620002a16000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80637cb7c8c2116100665780637cb7c8c2146100f95780638da5cb5b1461011f578063f2fde38b14610144578063f78e633d14610157578063fc0c546a146101ff57600080fd5b80632e1a7d4d146100a35780635b0d59e6146100b8578063715018a6146100cb5780637249d9d9146100d357806374a8f103146100e6575b600080fd5b6100b66100b1366004611525565b610212565b005b6100b66100c636600461155a565b610360565b6100b6610761565b6100b66100e13660046115a4565b610775565b6100b66100f43660046115d7565b610c44565b61010c6101073660046115d7565b610e1e565b6040519081526020015b60405180910390f35b6000546001600160a01b03165b6040516001600160a01b039091168152602001610116565b6100b66101523660046115d7565b610fcc565b6101b86101653660046115d7565b6003602081905260009182526040909120805460018201546002830154938301546004840154600585015460068601546007909601546001600160a01b0390951696939593949293919290919060ff1688565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c0830152151560e082015261010001610116565b60025461012c906001600160a01b031681565b6002600154036102695760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260018181553360008181526003602081815260409283902083516101008101855281546001600160a01b031680825296820154928101929092529586015492810192909252840154606082015260048401546080820152600584015460a0820152600684015460c082015260079093015460ff16151560e084015291906103045760405162461bcd60e51b8152600401610260906115f2565b60e0810151156103265760405162461bcd60e51b815260040161026090611629565b8060c001518160a001511161034d5760405162461bcd60e51b81526004016102609061166c565b6103573384611045565b50506001805550565b610368611180565b856001600160a01b0381166103bf5760405162461bcd60e51b815260206004820152601c60248201527f726563656976657220697320746865207a65726f2061646472657373000000006044820152606401610260565b6001600160a01b03808216600090815260036020818152604092839020835161010081018552815490951680865260018201549286019290925260028101549385019390935290820154606084015260048201546080840152600582015460a0840152600682015460c084015260079091015460ff16151560e0830152156104835760405162461bcd60e51b8152602060048201526017602482015276726563656976657220616c72656164792065786973747360481b6044820152606401610260565b428710156104d35760405162461bcd60e51b815260206004820152601b60248201527f737461727454696d6520697320616c72656164792070617373656400000000006044820152606401610260565b600085116105135760405162461bcd60e51b815260206004820152600d60248201526c06475726174696f6e206973203609c1b6044820152606401610260565b600084116105535760405162461bcd60e51b815260206004820152600d60248201526c0696e74657276616c206973203609c1b6044820152606401610260565b600083116105915760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e7420697320360ac1b6044820152606401610260565b6002546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906116a3565b83111561063e5760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd08195b9bdd59da08199d5b99608a1b6044820152606401610260565b60408051610100810182526001600160a01b038a811680835260208084018c81528486018c8152606086018c8152608087018c815260a088018c8152600060c08a0181815260e08b018281529882526003978890529a9020985189546001600160a01b03191690891617895593516001890155915160028089019190915590519387019390935551600486015551600585015593516006840155516007909201805460ff19169215159290921790915590546106fd91163330866111da565b604080518881526020810188905290810186905260608101859052608081018490526001600160a01b038916907fdebee326818e9422b867d165a9739a0014f1f30552da66ecbd768df91f82c3079060a00160405180910390a25050505050505050565b610769611180565b610773600061124b565b565b6001600160a01b03808316600090815260036020818152604092839020835161010081018552815490951680865260018201549286019290925260028101549385019390935290820154606084015260048201546080840152600582015460a0840152600682015460c084015260079091015460ff16151560e08301528391906108115760405162461bcd60e51b8152600401610260906115f2565b60e0810151156108335760405162461bcd60e51b815260040161026090611629565b8060c001518160a001511161085a5760405162461bcd60e51b81526004016102609061166c565b826001600160a01b0381166108b15760405162461bcd60e51b815260206004820152601c60248201527f726563656976657220697320746865207a65726f2061646472657373000000006044820152606401610260565b6001600160a01b03808216600090815260036020818152604092839020835161010081018552815490951680865260018201549286019290925260028101549385019390935290820154606084015260048201546080840152600582015460a0840152600682015460c084015260079091015460ff16151560e0830152156109755760405162461bcd60e51b8152602060048201526017602482015276726563656976657220616c72656164792065786973747360481b6044820152606401610260565b336001600160a01b038716146109d95760405162461bcd60e51b8152602060048201526024808201527f6f6e6c79206f726967696e616c2062656e65666963696172792063616e206368604482015263616e676560e01b6064820152608401610260565b600060036000886001600160a01b03166001600160a01b031681526020019081526020016000209050858160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060036000886001600160a01b03166001600160a01b031681526020019081526020016000206000820160009054906101000a90046001600160a01b03168160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506001820154816001015560028201548160020155600382015481600301556004820154816004015560058201548160050155600682015481600601556007820160009054906101000a900460ff168160070160006101000a81548160ff02191690831515021790555090505060405180610100016040528060006001600160a01b031681526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581525060036000896001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070160006101000a81548160ff021916908315150217905550905050856001600160a01b0316876001600160a01b03167f768099735d1c322a05a5b9d7b76d99682a1833d3f7055e5ede25e0f2eeaa8c6d60405160405180910390a350505050505050565b610c4c611180565b6001600160a01b03808216600090815260036020818152604092839020835161010081018552815490951680865260018201549286019290925260028101549385019390935290820154606084015260048201546080840152600582015460a0840152600682015460c084015260079091015460ff16151560e0830152829190610ce85760405162461bcd60e51b8152600401610260906115f2565b60e081015115610d0a5760405162461bcd60e51b815260040161026090611629565b8060c001518160a0015111610d315760405162461bcd60e51b81526004016102609061166c565b6001600160a01b038316600090815260036020526040812090610d5385610e1e565b9050610d5f8582611045565b600082600601548360050154610d7591906116d2565b9050610d9f610d8c6000546001600160a01b031690565b6002546001600160a01b0316908361129b565b6005830154600684015560078301805460ff19166001179055610dca6000546001600160a01b031690565b6001600160a01b0316866001600160a01b03167fcee654d6181ed9db0a91636d81bb2238964fea079a5a8119b8962303774592da83604051610e0e91815260200190565b60405180910390a3505050505050565b6001600160a01b038082166000908152600360208181526040808420815161010081018352815490961686526001810154928601839052600281015491860182905292830154606086015260048301546080860152600583015460a0860152600683015460c086015260079092015460ff16151560e0850152919291610ea491906116e9565b421015610eb45750600092915050565b6000816020015142610ec691906116d2565b9050600082606001518210610ef0578260c001518360a00151610ee991906116d2565b9050610f48565b6000836080015183610f029190611701565b90508360600151846080015182610f199190611723565b8560a00151610f289190611723565b610f329190611701565b91508360c0015182610f4491906116d2565b9150505b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610f91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb591906116a3565b905080821115610fc3578091505b50949350505050565b610fd4611180565b6001600160a01b0381166110395760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610260565b6110428161124b565b50565b600081116110865760405162461bcd60e51b815260206004820152600e60248201526d616d6f756e74206973207a65726f60901b6044820152606401610260565b6001600160a01b0382166000908152600360205260408120906110a884610e1e565b90508083111561110c5760405162461bcd60e51b815260206004820152602960248201527f72657175657374656420616d6f756e74206578636565647320617661696c61626044820152681b1948185b5bdd5b9d60ba1b6064820152608401610260565b600254611123906001600160a01b0316858561129b565b8282600601600082825461113791906116e9565b90915550506040518381526001600160a01b038516907f9cf9e3ab58b33f06d81842ea0ad850b6640c6430d6396973312e1715792e7a919060200160405180910390a250505050565b6000546001600160a01b031633146107735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610260565b6040516001600160a01b03808516602483015283166044820152606481018290526112459085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526112d0565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0383166024820152604481018290526112cb90849063a9059cbb60e01b9060640161120e565b505050565b6000611325826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113a29092919063ffffffff16565b8051909150156112cb57808060200190518101906113439190611742565b6112cb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610260565b60606113b184846000856113bb565b90505b9392505050565b60608247101561141c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610260565b6001600160a01b0385163b6114735760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610260565b600080866001600160a01b0316858760405161148f9190611790565b60006040518083038185875af1925050503d80600081146114cc576040519150601f19603f3d011682016040523d82523d6000602084013e6114d1565b606091505b50915091506114e18282866114ec565b979650505050505050565b606083156114fb5750816113b4565b82511561150b5782518084602001fd5b8160405162461bcd60e51b815260040161026091906117ac565b60006020828403121561153757600080fd5b5035919050565b80356001600160a01b038116811461155557600080fd5b919050565b60008060008060008060c0878903121561157357600080fd5b61157c8761153e565b9860208801359850604088013597606081013597506080810135965060a00135945092505050565b600080604083850312156115b757600080fd5b6115c08361153e565b91506115ce6020840161153e565b90509250929050565b6000602082840312156115e957600080fd5b6113b48261153e565b60208082526017908201527f726563656976657220646f6573206e6f74206578697374000000000000000000604082015260600190565b60208082526023908201527f746869732062656e656669636961727920697320616c7265616479207265766f6040820152621ad95960ea1b606082015260800190565b6020808252601c908201527f76657374696e6720697320616c726561647920636f6d706c6574656400000000604082015260600190565b6000602082840312156116b557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156116e4576116e46116bc565b500390565b600082198211156116fc576116fc6116bc565b500190565b60008261171e57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561173d5761173d6116bc565b500290565b60006020828403121561175457600080fd5b815180151581146113b457600080fd5b60005b8381101561177f578181015183820152602001611767565b838111156112455750506000910152565b600082516117a2818460208701611764565b9190910192915050565b60208152600082518060208401526117cb816040850160208701611764565b601f01601f1916919091016040019291505056fea26469706673582212209b640db7af36adef844ddadde69c10573f2c2e28c268c701a2fb7f87536ad64164736f6c634300080f0033000000000000000000000000db7d0a1ec37de1de924f8e8adac6ed338d4404e9000000000000000000000000902a3f17114f815573cb1d87e16a027d52e2a158
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061009e5760003560e01c80637cb7c8c2116100665780637cb7c8c2146100f95780638da5cb5b1461011f578063f2fde38b14610144578063f78e633d14610157578063fc0c546a146101ff57600080fd5b80632e1a7d4d146100a35780635b0d59e6146100b8578063715018a6146100cb5780637249d9d9146100d357806374a8f103146100e6575b600080fd5b6100b66100b1366004611525565b610212565b005b6100b66100c636600461155a565b610360565b6100b6610761565b6100b66100e13660046115a4565b610775565b6100b66100f43660046115d7565b610c44565b61010c6101073660046115d7565b610e1e565b6040519081526020015b60405180910390f35b6000546001600160a01b03165b6040516001600160a01b039091168152602001610116565b6100b66101523660046115d7565b610fcc565b6101b86101653660046115d7565b6003602081905260009182526040909120805460018201546002830154938301546004840154600585015460068601546007909601546001600160a01b0390951696939593949293919290919060ff1688565b604080516001600160a01b0390991689526020890197909752958701949094526060860192909252608085015260a084015260c0830152151560e082015261010001610116565b60025461012c906001600160a01b031681565b6002600154036102695760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260018181553360008181526003602081815260409283902083516101008101855281546001600160a01b031680825296820154928101929092529586015492810192909252840154606082015260048401546080820152600584015460a0820152600684015460c082015260079093015460ff16151560e084015291906103045760405162461bcd60e51b8152600401610260906115f2565b60e0810151156103265760405162461bcd60e51b815260040161026090611629565b8060c001518160a001511161034d5760405162461bcd60e51b81526004016102609061166c565b6103573384611045565b50506001805550565b610368611180565b856001600160a01b0381166103bf5760405162461bcd60e51b815260206004820152601c60248201527f726563656976657220697320746865207a65726f2061646472657373000000006044820152606401610260565b6001600160a01b03808216600090815260036020818152604092839020835161010081018552815490951680865260018201549286019290925260028101549385019390935290820154606084015260048201546080840152600582015460a0840152600682015460c084015260079091015460ff16151560e0830152156104835760405162461bcd60e51b8152602060048201526017602482015276726563656976657220616c72656164792065786973747360481b6044820152606401610260565b428710156104d35760405162461bcd60e51b815260206004820152601b60248201527f737461727454696d6520697320616c72656164792070617373656400000000006044820152606401610260565b600085116105135760405162461bcd60e51b815260206004820152600d60248201526c06475726174696f6e206973203609c1b6044820152606401610260565b600084116105535760405162461bcd60e51b815260206004820152600d60248201526c0696e74657276616c206973203609c1b6044820152606401610260565b600083116105915760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e7420697320360ac1b6044820152606401610260565b6002546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906116a3565b83111561063e5760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd08195b9bdd59da08199d5b99608a1b6044820152606401610260565b60408051610100810182526001600160a01b038a811680835260208084018c81528486018c8152606086018c8152608087018c815260a088018c8152600060c08a0181815260e08b018281529882526003978890529a9020985189546001600160a01b03191690891617895593516001890155915160028089019190915590519387019390935551600486015551600585015593516006840155516007909201805460ff19169215159290921790915590546106fd91163330866111da565b604080518881526020810188905290810186905260608101859052608081018490526001600160a01b038916907fdebee326818e9422b867d165a9739a0014f1f30552da66ecbd768df91f82c3079060a00160405180910390a25050505050505050565b610769611180565b610773600061124b565b565b6001600160a01b03808316600090815260036020818152604092839020835161010081018552815490951680865260018201549286019290925260028101549385019390935290820154606084015260048201546080840152600582015460a0840152600682015460c084015260079091015460ff16151560e08301528391906108115760405162461bcd60e51b8152600401610260906115f2565b60e0810151156108335760405162461bcd60e51b815260040161026090611629565b8060c001518160a001511161085a5760405162461bcd60e51b81526004016102609061166c565b826001600160a01b0381166108b15760405162461bcd60e51b815260206004820152601c60248201527f726563656976657220697320746865207a65726f2061646472657373000000006044820152606401610260565b6001600160a01b03808216600090815260036020818152604092839020835161010081018552815490951680865260018201549286019290925260028101549385019390935290820154606084015260048201546080840152600582015460a0840152600682015460c084015260079091015460ff16151560e0830152156109755760405162461bcd60e51b8152602060048201526017602482015276726563656976657220616c72656164792065786973747360481b6044820152606401610260565b336001600160a01b038716146109d95760405162461bcd60e51b8152602060048201526024808201527f6f6e6c79206f726967696e616c2062656e65666963696172792063616e206368604482015263616e676560e01b6064820152608401610260565b600060036000886001600160a01b03166001600160a01b031681526020019081526020016000209050858160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060036000886001600160a01b03166001600160a01b031681526020019081526020016000206000820160009054906101000a90046001600160a01b03168160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506001820154816001015560028201548160020155600382015481600301556004820154816004015560058201548160050155600682015481600601556007820160009054906101000a900460ff168160070160006101000a81548160ff02191690831515021790555090505060405180610100016040528060006001600160a01b031681526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581525060036000896001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070160006101000a81548160ff021916908315150217905550905050856001600160a01b0316876001600160a01b03167f768099735d1c322a05a5b9d7b76d99682a1833d3f7055e5ede25e0f2eeaa8c6d60405160405180910390a350505050505050565b610c4c611180565b6001600160a01b03808216600090815260036020818152604092839020835161010081018552815490951680865260018201549286019290925260028101549385019390935290820154606084015260048201546080840152600582015460a0840152600682015460c084015260079091015460ff16151560e0830152829190610ce85760405162461bcd60e51b8152600401610260906115f2565b60e081015115610d0a5760405162461bcd60e51b815260040161026090611629565b8060c001518160a0015111610d315760405162461bcd60e51b81526004016102609061166c565b6001600160a01b038316600090815260036020526040812090610d5385610e1e565b9050610d5f8582611045565b600082600601548360050154610d7591906116d2565b9050610d9f610d8c6000546001600160a01b031690565b6002546001600160a01b0316908361129b565b6005830154600684015560078301805460ff19166001179055610dca6000546001600160a01b031690565b6001600160a01b0316866001600160a01b03167fcee654d6181ed9db0a91636d81bb2238964fea079a5a8119b8962303774592da83604051610e0e91815260200190565b60405180910390a3505050505050565b6001600160a01b038082166000908152600360208181526040808420815161010081018352815490961686526001810154928601839052600281015491860182905292830154606086015260048301546080860152600583015460a0860152600683015460c086015260079092015460ff16151560e0850152919291610ea491906116e9565b421015610eb45750600092915050565b6000816020015142610ec691906116d2565b9050600082606001518210610ef0578260c001518360a00151610ee991906116d2565b9050610f48565b6000836080015183610f029190611701565b90508360600151846080015182610f199190611723565b8560a00151610f289190611723565b610f329190611701565b91508360c0015182610f4491906116d2565b9150505b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015610f91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb591906116a3565b905080821115610fc3578091505b50949350505050565b610fd4611180565b6001600160a01b0381166110395760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610260565b6110428161124b565b50565b600081116110865760405162461bcd60e51b815260206004820152600e60248201526d616d6f756e74206973207a65726f60901b6044820152606401610260565b6001600160a01b0382166000908152600360205260408120906110a884610e1e565b90508083111561110c5760405162461bcd60e51b815260206004820152602960248201527f72657175657374656420616d6f756e74206578636565647320617661696c61626044820152681b1948185b5bdd5b9d60ba1b6064820152608401610260565b600254611123906001600160a01b0316858561129b565b8282600601600082825461113791906116e9565b90915550506040518381526001600160a01b038516907f9cf9e3ab58b33f06d81842ea0ad850b6640c6430d6396973312e1715792e7a919060200160405180910390a250505050565b6000546001600160a01b031633146107735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610260565b6040516001600160a01b03808516602483015283166044820152606481018290526112459085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526112d0565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0383166024820152604481018290526112cb90849063a9059cbb60e01b9060640161120e565b505050565b6000611325826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113a29092919063ffffffff16565b8051909150156112cb57808060200190518101906113439190611742565b6112cb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610260565b60606113b184846000856113bb565b90505b9392505050565b60608247101561141c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610260565b6001600160a01b0385163b6114735760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610260565b600080866001600160a01b0316858760405161148f9190611790565b60006040518083038185875af1925050503d80600081146114cc576040519150601f19603f3d011682016040523d82523d6000602084013e6114d1565b606091505b50915091506114e18282866114ec565b979650505050505050565b606083156114fb5750816113b4565b82511561150b5782518084602001fd5b8160405162461bcd60e51b815260040161026091906117ac565b60006020828403121561153757600080fd5b5035919050565b80356001600160a01b038116811461155557600080fd5b919050565b60008060008060008060c0878903121561157357600080fd5b61157c8761153e565b9860208801359850604088013597606081013597506080810135965060a00135945092505050565b600080604083850312156115b757600080fd5b6115c08361153e565b91506115ce6020840161153e565b90509250929050565b6000602082840312156115e957600080fd5b6113b48261153e565b60208082526017908201527f726563656976657220646f6573206e6f74206578697374000000000000000000604082015260600190565b60208082526023908201527f746869732062656e656669636961727920697320616c7265616479207265766f6040820152621ad95960ea1b606082015260800190565b6020808252601c908201527f76657374696e6720697320616c726561647920636f6d706c6574656400000000604082015260600190565b6000602082840312156116b557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156116e4576116e46116bc565b500390565b600082198211156116fc576116fc6116bc565b500190565b60008261171e57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561173d5761173d6116bc565b500290565b60006020828403121561175457600080fd5b815180151581146113b457600080fd5b60005b8381101561177f578181015183820152602001611767565b838111156112455750506000910152565b600082516117a2818460208701611764565b9190910192915050565b60208152600082518060208401526117cb816040850160208701611764565b601f01601f1916919091016040019291505056fea26469706673582212209b640db7af36adef844ddadde69c10573f2c2e28c268c701a2fb7f87536ad64164736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000db7d0a1ec37de1de924f8e8adac6ed338d4404e9000000000000000000000000902a3f17114f815573cb1d87e16a027d52e2a158
-----Decoded View---------------
Arg [0] : _token (address): 0xdb7d0A1eC37dE1dE924F8e8adac6Ed338D4404E9
Arg [1] : _owner (address): 0x902a3F17114F815573CB1d87e16a027d52E2a158
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000db7d0a1ec37de1de924f8e8adac6ed338d4404e9
Arg [1] : 000000000000000000000000902a3f17114f815573cb1d87e16a027d52e2a158
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
CRONOS | 100.00% | $0.031351 | 120,000,000 | $3,762,140.4 |
[ 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.