More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 96 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 20184924 | 62 days ago | IN | 0 ETH | 0.00089428 | ||||
Withdraw | 20184653 | 62 days ago | IN | 0 ETH | 0.00243514 | ||||
Withdraw | 20177851 | 63 days ago | IN | 0 ETH | 0.00084874 | ||||
Withdraw | 20176022 | 63 days ago | IN | 0 ETH | 0.00038278 | ||||
Withdraw | 20176011 | 63 days ago | IN | 0 ETH | 0.00029956 | ||||
Withdraw | 20175872 | 63 days ago | IN | 0 ETH | 0.00048506 | ||||
Withdraw | 20175604 | 63 days ago | IN | 0 ETH | 0.00016582 | ||||
Withdraw | 20174951 | 63 days ago | IN | 0 ETH | 0.00030999 | ||||
Withdraw | 20174834 | 63 days ago | IN | 0 ETH | 0.00037951 | ||||
Withdraw | 20174035 | 63 days ago | IN | 0 ETH | 0.00027295 | ||||
Withdraw | 20174012 | 63 days ago | IN | 0 ETH | 0.00014952 | ||||
Withdraw | 20173796 | 63 days ago | IN | 0 ETH | 0.00024971 | ||||
Withdraw | 20173792 | 63 days ago | IN | 0 ETH | 0.00025159 | ||||
Withdraw | 20173409 | 63 days ago | IN | 0 ETH | 0.00023974 | ||||
Withdraw | 20170078 | 64 days ago | IN | 0 ETH | 0.00098397 | ||||
Withdraw | 20166880 | 64 days ago | IN | 0 ETH | 0.00030274 | ||||
Withdraw | 20161907 | 65 days ago | IN | 0 ETH | 0.0004715 | ||||
Withdraw | 20128764 | 70 days ago | IN | 0 ETH | 0.00064588 | ||||
Withdraw | 20056912 | 80 days ago | IN | 0 ETH | 0.0005499 | ||||
Withdraw | 19978263 | 91 days ago | IN | 0 ETH | 0.00092097 | ||||
Withdraw | 19948871 | 95 days ago | IN | 0 ETH | 0.00042043 | ||||
Withdraw | 19919221 | 99 days ago | IN | 0 ETH | 0.0008637 | ||||
Withdraw | 19917459 | 99 days ago | IN | 0 ETH | 0.00080988 | ||||
Withdraw | 19896507 | 102 days ago | IN | 0 ETH | 0.000292 | ||||
Withdraw | 19838158 | 110 days ago | IN | 0 ETH | 0.00036238 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x250ec282...a8A708Afb The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
VTVLVesting
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity 0.8.14; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./AccessProtected.sol"; contract VTVLVesting is Context, AccessProtected, ReentrancyGuard { using SafeERC20 for IERC20; /** @notice Address of the token that we're vesting */ IERC20 public immutable tokenAddress; /** @notice How many tokens are already allocated to vesting schedules. @dev Our balance of the token must always be greater than this amount. * Otherwise we risk some users not getting their shares. * This gets reduced as the users are paid out or when their schedules are revoked (as it is not reserved any more). * In other words, this represents the amount the contract is scheduled to pay out at some point if the * owner were to never interact with the contract. */ uint256 public numTokensReservedForVesting = 0; /** @notice A structure representing a single claim - supporting linear and cliff vesting. */ struct Claim { // Using 40 bits for timestamp (seconds) // Gives us a range from 1 Jan 1970 (Unix epoch) up to approximately 35 thousand years from then (2^40 / (365 * 24 * 60 * 60) ~= 35k) uint40 startTimestamp; // When does the vesting start (40 bits is enough for TS) uint40 endTimestamp; // When does the vesting end - the vesting goes linearly between the start and end timestamps uint40 cliffReleaseTimestamp; // At which timestamp is the cliffAmount released. This must be <= startTimestamp uint40 releaseIntervalSecs; // Every how many seconds does the vested amount increase. // uint112 range: range 0 – 5,192,296,858,534,827,628,530,496,329,220,095. // uint112 range: range 0 – 5,192,296,858,534,827. uint256 linearVestAmount; // total entitlement uint256 amountWithdrawn; // how much was withdrawn thus far - released at the cliffReleaseTimestamp uint112 cliffAmount; // how much is released at the cliff bool isActive; // whether this claim is active (or revoked) // should keep the current index of struct fields to avoid changing frontend code regarding this change uint40 deactivationTimestamp; } // Mapping every user address to his/her Claim // Only one Claim possible per address mapping(address => Claim) internal claims; // Track the recipients of the vesting address[] internal vestingRecipients; // Events: /** @notice Emitted when a founder adds a vesting schedule. */ event ClaimCreated(address indexed _recipient, Claim _claim); /** @notice Emitted when someone withdraws a vested amount */ event Claimed(address indexed _recipient, uint256 _withdrawalAmount); /** @notice Emitted when a claim is revoked */ event ClaimRevoked( address indexed _recipient, uint256 _numTokensWithheld, uint256 revocationTimestamp, Claim _claim ); /** @notice Emitted when admin withdraws. */ event AdminWithdrawn(address indexed _recipient, uint256 _amountRequested); // /** @notice Construct the contract, taking the ERC20 token to be vested as the parameter. @dev The owner can set the contract in question when creating the contract. */ constructor(IERC20 _tokenAddress) { require(address(_tokenAddress) != address(0), "INVALID_ADDRESS"); tokenAddress = _tokenAddress; } /** @notice Basic getter for a claim. @dev Could be using public claims var, but this is cleaner in terms of naming. (getClaim(address) as opposed to claims(address)). @param _recipient - the address for which we fetch the claim. */ function getClaim(address _recipient) external view returns (Claim memory) { return claims[_recipient]; } /** @notice This modifier requires that an user has a claim attached. @dev To determine this, we check that a claim: * - is active * - start timestamp is nonzero. * These are sufficient conditions because we only ever set startTimestamp in * createClaim, and we never change it. Therefore, startTimestamp will be set * IFF a claim has been created. In addition to that, we need to check * a claim is active (since this is has_*Active*_Claim) */ modifier hasActiveClaim(address _recipient) { Claim storage _claim = claims[_recipient]; require(_claim.startTimestamp > 0, "NO_ACTIVE_CLAIM"); // We however still need the active check, since (due to the name of the function) // we want to only allow active claims require(_claim.isActive, "NO_ACTIVE_CLAIM"); // Save gas, omit further checks // require(_claim.linearVestAmount + _claim.cliffAmount > 0, "INVALID_VESTED_AMOUNT"); // require(_claim.endTimestamp > 0, "NO_END_TIMESTAMP"); _; } /** @notice Modifier which is opposite hasActiveClaim @dev Requires that all fields are unset */ modifier hasNoClaim(address _recipient) { Claim storage _claim = claims[_recipient]; // Start timestamp != 0 is a sufficient condition for a claim to exist // This is because we only ever add claims (or modify startTs) in the createClaim function // Which requires that its input startTimestamp be nonzero // So therefore, a zero value for this indicates the claim does not exist. require(_claim.startTimestamp == 0, "CLAIM_ALREADY_EXISTS"); // We don't even need to check for active to be unset, since this function only // determines that a claim hasn't been set // require(_claim.isActive == false, "CLAIM_ALREADY_EXISTS"); // Further checks aren't necessary (to save gas), as they're done at creation time (createClaim) // require(_claim.endTimestamp == 0, "CLAIM_ALREADY_EXISTS"); // require(_claim.linearVestAmount + _claim.cliffAmount == 0, "CLAIM_ALREADY_EXISTS"); // require(_claim.amountWithdrawn == 0, "CLAIM_ALREADY_EXISTS"); _; } /** @notice Pure function to calculate the vested amount from a given _claim, at a reference timestamp @param _claim The claim in question @param _referenceTs Timestamp for which we're calculating */ function _baseVestedAmount(Claim memory _claim, uint40 _referenceTs) internal pure returns (uint256) { // If no schedule is created if (!_claim.isActive && _claim.deactivationTimestamp == 0) { return 0; } uint256 vestAmt = 0; // Check if this time is over vesting end time if (_referenceTs > _claim.endTimestamp) { _referenceTs = _claim.endTimestamp; } // If we're past the cliffReleaseTimestamp, we release the cliffAmount // We don't check here that cliffReleaseTimestamp is after the startTimestamp if (_referenceTs >= _claim.cliffReleaseTimestamp) { vestAmt += _claim.cliffAmount; } // Calculate the linearly vested amount - this is relevant only if we're past the schedule start // at _referenceTs == _claim.startTimestamp, the period proportion will be 0 so we don't need to start the calc if (_referenceTs > _claim.startTimestamp) { uint40 currentVestingDurationSecs = _referenceTs - _claim.startTimestamp; // How long since the start // Next, we need to calculated the duration truncated to nearest releaseIntervalSecs uint40 truncatedCurrentVestingDurationSecs = (currentVestingDurationSecs / _claim.releaseIntervalSecs) * _claim.releaseIntervalSecs; uint40 finalVestingDurationSecs = _claim.endTimestamp - _claim.startTimestamp; // length of the interval // Calculate the linear vested amount - fraction_of_interval_completed * linearVestedAmount // Since fraction_of_interval_completed is truncatedCurrentVestingDurationSecs / finalVestingDurationSecs, the formula becomes // truncatedCurrentVestingDurationSecs / finalVestingDurationSecs * linearVestAmount, so we can rewrite as below to avoid // rounding errors uint256 linearVestAmount = (_claim.linearVestAmount * truncatedCurrentVestingDurationSecs) / finalVestingDurationSecs; // Having calculated the linearVestAmount, simply add it to the vested amount vestAmt += linearVestAmount; } return vestAmt; } /** @notice Calculate the amount vested for a given _recipient at a reference timestamp. @param _recipient - The address for whom we're calculating @param _referenceTs - The timestamp at which we want to calculate the vested amount. @dev Simply call the _baseVestedAmount for the claim in question */ function vestedAmount(address _recipient, uint40 _referenceTs) public view returns (uint256) { Claim memory _claim = claims[_recipient]; uint40 vestEndTimestamp = _claim.isActive ? _referenceTs : _claim.deactivationTimestamp; return _baseVestedAmount(_claim, vestEndTimestamp); } /** @notice Calculate the total vested at the end of the schedule, by simply feeding in the end timestamp to the function above. @dev This fn is somewhat superfluous, should probably be removed. @param _recipient - The address for whom we're calculating */ function finalVestedAmount(address _recipient) public view returns (uint256) { Claim memory _claim = claims[_recipient]; return _baseVestedAmount(_claim, _claim.endTimestamp); } /** @notice Calculates how much can we claim, by subtracting the already withdrawn amount from the vestedAmount at this moment. @param _recipient - The address for whom we're calculating */ function claimableAmount(address _recipient) public view returns (uint256) { Claim memory _claim = claims[_recipient]; return vestedAmount(_recipient, uint40(block.timestamp)) - _claim.amountWithdrawn; } /** @notice Calculates how much wil be possible to claim at the end of vesting date, by subtracting the already withdrawn amount from the vestedAmount at this moment. Vesting date is either the end timestamp or the deactivation timestamp. @param _recipient - The address for whom we're calculating */ function finalClaimableAmount(address _recipient) external view returns (uint256) { Claim storage _claim = claims[_recipient]; uint40 vestEndTimestamp = _claim.isActive ? _claim.endTimestamp : _claim.deactivationTimestamp; return _baseVestedAmount(_claim, vestEndTimestamp) - _claim.amountWithdrawn; } /** @notice Return all the addresses that have vesting schedules attached. */ function allVestingRecipients() external view returns (address[] memory) { return vestingRecipients; } /** @notice Get the total number of vesting recipients. */ function numVestingRecipients() external view returns (uint256) { return vestingRecipients.length; } /** @notice Permission-unchecked version of claim creation (no onlyAdmin). Actual logic for create claim, to be run within either createClaim or createClaimBatch. @dev This'll simply check the input parameters, and create the structure verbatim based on passed in parameters. @param _recipient - The address of the recipient of the schedule @param _startTimestamp - The timestamp when the linear vesting starts @param _endTimestamp - The timestamp when the linear vesting ends @param _cliffReleaseTimestamp - The timestamp when the cliff is released (must be <= _startTimestamp, or 0 if no vesting) @param _releaseIntervalSecs - The release interval for the linear vesting. If this is, for example, 60, that means that the linearly vested amount gets released every 60 seconds. @param _linearVestAmount - The total amount to be linearly vested between _startTimestamp and _endTimestamp @param _cliffAmount - The amount released at _cliffReleaseTimestamp. Can be 0 if _cliffReleaseTimestamp is also 0. */ function _createClaimUnchecked( address _recipient, uint40 _startTimestamp, uint40 _endTimestamp, uint40 _cliffReleaseTimestamp, uint40 _releaseIntervalSecs, uint112 _linearVestAmount, uint112 _cliffAmount ) private hasNoClaim(_recipient) { require(_recipient != address(0), "INVALID_ADDRESS"); require(_linearVestAmount + _cliffAmount > 0, "INVALID_VESTED_AMOUNT"); // Actually only one of linearvested/cliff amount must be 0, not necessarily both require(_startTimestamp > 0, "INVALID_START_TIMESTAMP"); // Do we need to check whether _startTimestamp is greater than the current block.timestamp? // Or do we allow schedules that started in the past? // -> Conclusion: we want to allow this, for founders that might have forgotten to add some users, or to avoid issues with transactions not going through because of discoordination between block.timestamp and sender's local time // require(_endTimestamp > 0, "_endTimestamp must be valid"); // not necessary because of the next condition (transitively) require(_startTimestamp < _endTimestamp, "INVALID_END_TIMESTAMP"); // _endTimestamp must be after _startTimestamp require(_releaseIntervalSecs > 0, "INVALID_RELEASE_INTERVAL"); require( (_endTimestamp - _startTimestamp) % _releaseIntervalSecs == 0, "INVALID_INTERVAL_LENGTH" ); // Potential TODO: sanity check, if _linearVestAmount == 0, should we perhaps force that start and end ts are the same? // No point in allowing cliff TS without the cliff amount or vice versa. // Both or neither of _cliffReleaseTimestamp and _cliffAmount must be set. If cliff is set, _cliffReleaseTimestamp must be before or at the _startTimestamp require( (_cliffReleaseTimestamp > 0 && _cliffAmount > 0 && _cliffReleaseTimestamp <= _startTimestamp) || (_cliffReleaseTimestamp == 0 && _cliffAmount == 0), "INVALID_CLIFF" ); Claim storage _claim = claims[_recipient]; _claim.startTimestamp = _startTimestamp; _claim.endTimestamp = _endTimestamp; _claim.deactivationTimestamp = 0; _claim.cliffReleaseTimestamp = _cliffReleaseTimestamp; _claim.releaseIntervalSecs = _releaseIntervalSecs; _claim.linearVestAmount = _linearVestAmount; _claim.cliffAmount = _cliffAmount; _claim.amountWithdrawn = 0; _claim.isActive = true; // Our total allocation is simply the full sum of the two amounts, _cliffAmount + _linearVestAmount // Not necessary to use the more complex logic from _baseVestedAmount uint256 allocatedAmount = _cliffAmount + _linearVestAmount; // Still no effects up to this point (and tokenAddress is selected by contract deployer and is immutable), so no reentrancy risk require( tokenAddress.balanceOf(address(this)) >= numTokensReservedForVesting + allocatedAmount, "INSUFFICIENT_BALANCE" ); // Done with checks // Effects limited to lines below numTokensReservedForVesting += allocatedAmount; // track the allocated amount vestingRecipients.push(_recipient); // add the vesting recipient to the list emit ClaimCreated(_recipient, _claim); // let everyone know } /** @notice Create a claim based on the input parameters. @dev This'll simply check the input parameters, and create the structure verbatim based on passed in parameters. @param _recipient - The address of the recipient of the schedule @param _startTimestamp - The timestamp when the linear vesting starts @param _endTimestamp - The timestamp when the linear vesting ends @param _cliffReleaseTimestamp - The timestamp when the cliff is released (must be <= _startTimestamp, or 0 if no vesting) @param _releaseIntervalSecs - The release interval for the linear vesting. If this is, for example, 60, that means that the linearly vested amount gets released every 60 seconds. @param _linearVestAmount - The total amount to be linearly vested between _startTimestamp and _endTimestamp @param _cliffAmount - The amount released at _cliffReleaseTimestamp. Can be 0 if _cliffReleaseTimestamp is also 0. */ function createClaim( address _recipient, uint40 _startTimestamp, uint40 _endTimestamp, uint40 _cliffReleaseTimestamp, uint40 _releaseIntervalSecs, uint112 _linearVestAmount, uint112 _cliffAmount ) external onlyAdmin { _createClaimUnchecked( _recipient, _startTimestamp, _endTimestamp, _cliffReleaseTimestamp, _releaseIntervalSecs, _linearVestAmount, _cliffAmount ); } /** @notice The batch version of the createClaim function. Each argument is an array, and this function simply repeatedly calls the createClaim. */ function createClaimsBatch( address[] memory _recipients, uint40[] memory _startTimestamps, uint40[] memory _endTimestamps, uint40[] memory _cliffReleaseTimestamps, uint40[] memory _releaseIntervalsSecs, uint112[] memory _linearVestAmounts, uint112[] memory _cliffAmounts ) external onlyAdmin { uint256 length = _recipients.length; require( _startTimestamps.length == length && _endTimestamps.length == length && _cliffReleaseTimestamps.length == length && _releaseIntervalsSecs.length == length && _linearVestAmounts.length == length && _cliffAmounts.length == length, "ARRAY_LENGTH_MISMATCH" ); for (uint256 i = 0; i < length; i++) { _createClaimUnchecked( _recipients[i], _startTimestamps[i], _endTimestamps[i], _cliffReleaseTimestamps[i], _releaseIntervalsSecs[i], _linearVestAmounts[i], _cliffAmounts[i] ); } // No need for separate emit, since createClaim will emit for each claim (and this function is merely a convenience/gas-saver for multiple claims creation) } /** @notice Withdraw the full claimable balance. @dev hasActiveClaim throws off anyone without a claim. */ function withdraw() external hasActiveClaim(_msgSender()) nonReentrant { // Get the message sender claim - if any Claim storage usrClaim = claims[_msgSender()]; // we can use block.timestamp directly here as reference TS, as the function itself will make sure to cap it to endTimestamp // Conversion of timestamp to uint40 should be safe since 48 bit allows for a lot of years. uint256 allowance = vestedAmount(_msgSender(), uint40(block.timestamp)); // Make sure we didn't already withdraw more that we're allowed. require( allowance > usrClaim.amountWithdrawn && allowance > 0, "NOTHING_TO_WITHDRAW" ); // Calculate how much can we withdraw (equivalent to the above inequality) uint256 amountRemaining = allowance - usrClaim.amountWithdrawn; require(amountRemaining > 0, "NOTHING_TO_WITHDRAW"); // "Double-entry bookkeeping" // Carry out the withdrawal by noting the withdrawn amount, and by transferring the tokens. usrClaim.amountWithdrawn += amountRemaining; // Reduce the allocated amount since the following transaction pays out so the "debt" gets reduced numTokensReservedForVesting -= amountRemaining; // After the "books" are set, transfer the tokens // Reentrancy note - internal vars have been changed by now // Also following Checks-effects-interactions pattern tokenAddress.safeTransfer(_msgSender(), amountRemaining); // Let withdrawal known to everyone. emit Claimed(_msgSender(), amountRemaining); } /** @notice Admin withdrawal of the unallocated tokens. @param _amountRequested - the amount that we want to withdraw */ function withdrawAdmin(uint256 _amountRequested) public onlyAdmin nonReentrant { // Allow the owner to withdraw any balance not currently tied up in contracts. uint256 amountRemaining = amountAvailableToWithdrawByAdmin(); require(amountRemaining >= _amountRequested, "INSUFFICIENT_BALANCE"); // Actually withdraw the tokens // Reentrancy note - this operation doesn't touch any of the internal vars, simply transfers // Also following Checks-effects-interactions pattern tokenAddress.safeTransfer(_msgSender(), _amountRequested); // Let the withdrawal known to everyone emit AdminWithdrawn(_msgSender(), _amountRequested); } /** @notice Allow an Owner to revoke a claim that is already active. @dev The requirement is that a claim exists and that it's active. */ function revokeClaim(address _recipient) external onlyAdmin hasActiveClaim(_recipient) { // Fetch the claim Claim storage _claim = claims[_recipient]; // Calculate what the claim should finally vest to uint256 finalVestAmt = finalVestedAmount(_recipient); // No point in revoking something that has been fully consumed // so require that there be unconsumed amount require(_claim.amountWithdrawn < finalVestAmt, "NO_UNVESTED_AMOUNT"); // Deactivate the claim, and release the appropriate amount of tokens _claim.isActive = false; // This effectively reduces the liability by amountRemaining, so we can reduce the liability numTokensReservedForVesting by that much _claim.deactivationTimestamp = uint40(block.timestamp); // The amount that is "reclaimed" is equal to the total allocation less what was already withdrawn uint256 vestedSoFarAmt = vestedAmount(_recipient, uint40(block.timestamp)); uint256 amountRemaining = finalVestAmt - vestedSoFarAmt; numTokensReservedForVesting -= amountRemaining; // Reduces the allocation // Tell everyone a claim has been revoked. emit ClaimRevoked( _recipient, amountRemaining, uint40(block.timestamp), _claim ); } /** @notice Withdraw a token which isn't controlled by the vesting contract. @dev This contract controls/vests token at "tokenAddress". However, someone might send a different token. To make sure these don't get accidentally trapped, give admin the ability to withdraw them (to their own address). Note that the token to be withdrawn can't be the one at "tokenAddress". @param _otherTokenAddress - the token which we want to withdraw */ function withdrawOtherToken(IERC20 _otherTokenAddress) external onlyAdmin nonReentrant { require(_otherTokenAddress != tokenAddress, "INVALID_TOKEN"); // tokenAddress address is already sure to be nonzero due to constructor uint256 bal = _otherTokenAddress.balanceOf(address(this)); require(bal > 0, "INSUFFICIENT_BALANCE"); _otherTokenAddress.safeTransfer(_msgSender(), bal); } /** * @notice Get amount that is not vested in contract * @dev Whenever vesting is revoked, this amount will be increased. */ function amountAvailableToWithdrawByAdmin() public view returns (uint256) { return tokenAddress.balanceOf(address(this)) - numTokensReservedForVesting; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.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)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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: Unlicense pragma solidity 0.8.14; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** @title Access Limiter to multiple owner-specified accounts. @dev Exposes the onlyAdmin modifier, which will revert (ADMIN_ACCESS_REQUIRED) if the caller is not the owner nor the admin. */ abstract contract AccessProtected is Context { mapping(address => bool) private _admins; // user address => admin? mapping event AdminAccessSet(address indexed _admin, bool _enabled); constructor() { _admins[_msgSender()] = true; emit AdminAccessSet(_msgSender(), true); } /** * Throws if called by any account that isn't an admin or an owner. */ modifier onlyAdmin() { require(_admins[_msgSender()], "ADMIN_ACCESS_REQUIRED"); _; } function isAdmin(address _addressToCheck) external view returns (bool) { return _admins[_addressToCheck]; } /** * @notice Set/unset Admin Access for a given address. * * @param admin - Address of the new admin (or the one to be removed) * @param isEnabled - Enable/Disable Admin Access */ function setAdmin(address admin, bool isEnabled) public onlyAdmin { require(admin != address(0), "INVALID_ADDRESS"); _admins[admin] = isEnabled; emit AdminAccessSet(admin, isEnabled); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_tokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_admin","type":"address"},{"indexed":false,"internalType":"bool","name":"_enabled","type":"bool"}],"name":"AdminAccessSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amountRequested","type":"uint256"}],"name":"AdminWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"components":[{"internalType":"uint40","name":"startTimestamp","type":"uint40"},{"internalType":"uint40","name":"endTimestamp","type":"uint40"},{"internalType":"uint40","name":"cliffReleaseTimestamp","type":"uint40"},{"internalType":"uint40","name":"releaseIntervalSecs","type":"uint40"},{"internalType":"uint256","name":"linearVestAmount","type":"uint256"},{"internalType":"uint256","name":"amountWithdrawn","type":"uint256"},{"internalType":"uint112","name":"cliffAmount","type":"uint112"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"uint40","name":"deactivationTimestamp","type":"uint40"}],"indexed":false,"internalType":"struct VTVLVesting.Claim","name":"_claim","type":"tuple"}],"name":"ClaimCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"_numTokensWithheld","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"revocationTimestamp","type":"uint256"},{"components":[{"internalType":"uint40","name":"startTimestamp","type":"uint40"},{"internalType":"uint40","name":"endTimestamp","type":"uint40"},{"internalType":"uint40","name":"cliffReleaseTimestamp","type":"uint40"},{"internalType":"uint40","name":"releaseIntervalSecs","type":"uint40"},{"internalType":"uint256","name":"linearVestAmount","type":"uint256"},{"internalType":"uint256","name":"amountWithdrawn","type":"uint256"},{"internalType":"uint112","name":"cliffAmount","type":"uint112"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"uint40","name":"deactivationTimestamp","type":"uint40"}],"indexed":false,"internalType":"struct VTVLVesting.Claim","name":"_claim","type":"tuple"}],"name":"ClaimRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"_withdrawalAmount","type":"uint256"}],"name":"Claimed","type":"event"},{"inputs":[],"name":"allVestingRecipients","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountAvailableToWithdrawByAdmin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"claimableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint40","name":"_startTimestamp","type":"uint40"},{"internalType":"uint40","name":"_endTimestamp","type":"uint40"},{"internalType":"uint40","name":"_cliffReleaseTimestamp","type":"uint40"},{"internalType":"uint40","name":"_releaseIntervalSecs","type":"uint40"},{"internalType":"uint112","name":"_linearVestAmount","type":"uint112"},{"internalType":"uint112","name":"_cliffAmount","type":"uint112"}],"name":"createClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint40[]","name":"_startTimestamps","type":"uint40[]"},{"internalType":"uint40[]","name":"_endTimestamps","type":"uint40[]"},{"internalType":"uint40[]","name":"_cliffReleaseTimestamps","type":"uint40[]"},{"internalType":"uint40[]","name":"_releaseIntervalsSecs","type":"uint40[]"},{"internalType":"uint112[]","name":"_linearVestAmounts","type":"uint112[]"},{"internalType":"uint112[]","name":"_cliffAmounts","type":"uint112[]"}],"name":"createClaimsBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"finalClaimableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"finalVestedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"getClaim","outputs":[{"components":[{"internalType":"uint40","name":"startTimestamp","type":"uint40"},{"internalType":"uint40","name":"endTimestamp","type":"uint40"},{"internalType":"uint40","name":"cliffReleaseTimestamp","type":"uint40"},{"internalType":"uint40","name":"releaseIntervalSecs","type":"uint40"},{"internalType":"uint256","name":"linearVestAmount","type":"uint256"},{"internalType":"uint256","name":"amountWithdrawn","type":"uint256"},{"internalType":"uint112","name":"cliffAmount","type":"uint112"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"uint40","name":"deactivationTimestamp","type":"uint40"}],"internalType":"struct VTVLVesting.Claim","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addressToCheck","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numTokensReservedForVesting","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numVestingRecipients","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"revokeClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenAddress","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint40","name":"_referenceTs","type":"uint40"}],"name":"vestedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountRequested","type":"uint256"}],"name":"withdrawAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_otherTokenAddress","type":"address"}],"name":"withdrawOtherToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063852e72e9116100a2578063d77836ce11610071578063d77836ce14610358578063e50373f91461036b578063e865fbc71461037e578063ed83a4b214610386578063f37d94b41461039957600080fd5b8063852e72e9146102e057806389885049146102f35780639d76ea5814610306578063ae9741aa1461034557600080fd5b80633ccfd60b116100e95780633ccfd60b146101905780634a0e701e146101985780634b0bddd2146101ab5780634cd3723a146101be5780637197dec3146102cb57600080fd5b80630216ee411461011b578063137c68fa14610130578063241c5b1f1461014c57806324d7806c14610154575b600080fd5b61012e6101293660046119ff565b6103ac565b005b61013960025481565b6040519081526020015b60405180910390f35b600454610139565b6101806101623660046119ff565b6001600160a01b031660009081526020819052604090205460ff1690565b6040519015158152602001610143565b61012e61056b565b6101396101a6366004611a36565b610763565b61012e6101b9366004611a79565b610833565b6102be6101cc3660046119ff565b6040805161012081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810191909152506001600160a01b0316600090815260036020818152604092839020835161012081018552815464ffffffffff8082168352600160281b8204811694830194909452600160501b8104841695820195909552600160781b948590048316606082015260018201546080820152600282015460a08201529201546001600160701b03811660c084015260ff600160701b820416151560e08401529290920490911661010082015290565b6040516101439190611ab2565b6102d3610907565b6040516101439190611b44565b61012e6102ee366004611ba8565b610969565b6101396103013660046119ff565b6109b0565b61032d7f000000000000000000000000f17e65822b568b3903685a7c9f496cf7656cc6c281565b6040516001600160a01b039091168152602001610143565b61012e610353366004611dd3565b610a74565b61012e610366366004611eee565b610c0f565b61012e6103793660046119ff565b610d02565b610139610e6c565b6101396103943660046119ff565b610f0a565b6101396103a73660046119ff565b610fb6565b3360009081526020819052604090205460ff166103e45760405162461bcd60e51b81526004016103db90611f07565b60405180910390fd5b6001600160a01b0381166000908152600360205260409020805482919064ffffffffff166104245760405162461bcd60e51b81526004016103db90611f36565b6003810154600160701b900460ff1661044f5760405162461bcd60e51b81526004016103db90611f36565b6001600160a01b03831660009081526003602052604081209061047185610f0a565b9050808260020154106104bb5760405162461bcd60e51b81526020600482015260126024820152711393d7d553959154d5115117d05353d5539560721b60448201526064016103db565b60038201805464ffffffffff42908116600160781b0265ffffffffffff60701b19909216919091179091556000906104f4908790610763565b905060006105028284611f75565b905080600260008282546105169190611f75565b92505081905550866001600160a01b03167fd93a85b4fc6775ce81af625c853805c5fff7a940704c5bffbe0e35ac6c67a28d82428760405161055a9392919061201a565b60405180910390a250505050505050565b336000818152600360205260409020805464ffffffffff1661059f5760405162461bcd60e51b81526004016103db90611f36565b6003810154600160701b900460ff166105ca5760405162461bcd60e51b81526004016103db90611f36565b6002600154036105ec5760405162461bcd60e51b81526004016103db9061203c565b60026001553360008181526003602052604081209161060b9042610763565b90508160020154811180156106205750600081115b6106625760405162461bcd60e51b81526020600482015260136024820152724e4f5448494e475f544f5f574954484452415760681b60448201526064016103db565b60008260020154826106749190611f75565b9050600081116106bc5760405162461bcd60e51b81526020600482015260136024820152724e4f5448494e475f544f5f574954484452415760681b60448201526064016103db565b808360020160008282546106d09190612073565b9250508190555080600260008282546106e99190611f75565b9091555061072390507f000000000000000000000000f17e65822b568b3903685a7c9f496cf7656cc6c26001600160a01b031633836110b8565b60405181815233907fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a9060200160405180910390a2505060018055505050565b6001600160a01b0382166000908152600360208181526040808420815161012081018352815464ffffffffff8082168352600160281b8204811695830195909552600160501b8104851693820193909352600160781b928390048416606082015260018201546080820152600282015460a08201529301546001600160701b03811660c085015260ff600160701b820416151560e08501819052919004909116610100830152829061081a5781610100015161081c565b835b9050610828828261110f565b925050505b92915050565b3360009081526020819052604090205460ff166108625760405162461bcd60e51b81526004016103db90611f07565b6001600160a01b0382166108aa5760405162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b60448201526064016103db565b6001600160a01b03821660008181526020818152604091829020805460ff191685151590811790915591519182527fe529461c8529abc0e0fe7c5ee361f74fe22e0b7574df1fc0b7558a282091fb78910160405180910390a25050565b6060600480548060200260200160405190810160405280929190818152602001828054801561095f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610941575b5050505050905090565b3360009081526020819052604090205460ff166109985760405162461bcd60e51b81526004016103db90611f07565b6109a787878787878787611237565b50505050505050565b6001600160a01b0381166000908152600360208181526040808420815161012081018352815464ffffffffff8082168352600160281b8204811695830195909552600160501b8104851693820193909352600160781b928390048416606082015260018201546080820152600282015460a0820181905291909401546001600160701b03811660c086015260ff600160701b820416151560e086015291909104909116610100830152610a638442610763565b610a6d9190611f75565b9392505050565b3360009081526020819052604090205460ff16610aa35760405162461bcd60e51b81526004016103db90611f07565b8651865181148015610ab55750808651145b8015610ac15750808551145b8015610acd5750808451145b8015610ad95750808351145b8015610ae55750808251145b610b295760405162461bcd60e51b8152602060048201526015602482015274082a4a482b2be988a9c8ea890be9a92a69a82a8869605b1b60448201526064016103db565b60005b81811015610c0457610bf2898281518110610b4957610b4961208b565b6020026020010151898381518110610b6357610b6361208b565b6020026020010151898481518110610b7d57610b7d61208b565b6020026020010151898581518110610b9757610b9761208b565b6020026020010151898681518110610bb157610bb161208b565b6020026020010151898781518110610bcb57610bcb61208b565b6020026020010151898881518110610be557610be561208b565b6020026020010151611237565b80610bfc816120a1565b915050610b2c565b505050505050505050565b3360009081526020819052604090205460ff16610c3e5760405162461bcd60e51b81526004016103db90611f07565b600260015403610c605760405162461bcd60e51b81526004016103db9061203c565b60026001556000610c6f610e6c565b905081811015610c915760405162461bcd60e51b81526004016103db906120ba565b610cc57f000000000000000000000000f17e65822b568b3903685a7c9f496cf7656cc6c26001600160a01b031633846110b8565b60405182815233907fca1cf43de312865665f595e88f569f9d5246690c07df26e86aba01147e6d13149060200160405180910390a2505060018055565b3360009081526020819052604090205460ff16610d315760405162461bcd60e51b81526004016103db90611f07565b600260015403610d535760405162461bcd60e51b81526004016103db9061203c565b60026001556001600160a01b037f000000000000000000000000f17e65822b568b3903685a7c9f496cf7656cc6c2811690821603610dc35760405162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22faa27a5a2a760991b60448201526064016103db565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610e0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2e91906120e8565b905060008111610e505760405162461bcd60e51b81526004016103db906120ba565b610e646001600160a01b03831633836110b8565b505060018055565b6002546040516370a0823160e01b8152306004820152600091906001600160a01b037f000000000000000000000000f17e65822b568b3903685a7c9f496cf7656cc6c216906370a0823190602401602060405180830381865afa158015610ed7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efb91906120e8565b610f059190611f75565b905090565b6001600160a01b0381166000908152600360208181526040808420815161012081018352815464ffffffffff8082168352600160281b82048116958301869052600160501b8204811694830194909452600160781b908190048416606083015260018301546080830152600283015460a083015291909401546001600160701b03811660c086015260ff600160701b820416151560e08601520416610100830152610a6d90829061110f565b6001600160a01b03811660009081526003602081905260408220908101548290600160701b900460ff16610ffc576003820154600160781b900464ffffffffff1661100d565b8154600160281b900464ffffffffff165b60028301546040805161012081018252855464ffffffffff8082168352600160281b820481166020840152600160501b8204811693830193909352600160781b90819004831660608301526001870154608083015260a0820184905260038701546001600160701b03811660c084015260ff600160701b820416151560e084015204909116610100820152919250906110a6908361110f565b6110b09190611f75565b949350505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261110a908490611801565b505050565b60008260e0015115801561112d575061010083015164ffffffffff16155b1561113a5750600061082d565b6000836020015164ffffffffff168364ffffffffff16111561115e57836020015192505b836040015164ffffffffff168364ffffffffff16106111925760c084015161118f906001600160701b031682612073565b90505b836000015164ffffffffff168364ffffffffff161115610a6d5783516000906111bb9085612101565b60608601519091506000906111d0818461213d565b6111da9190612161565b90506000866000015187602001516111f29190612101565b905060008164ffffffffff168364ffffffffff168960800151611215919061218e565b61121f91906121ad565b905061122b8186612073565b98975050505050505050565b6001600160a01b0387166000908152600360205260409020805488919064ffffffffff161561129f5760405162461bcd60e51b8152602060048201526014602482015273434c41494d5f414c52454144595f45584953545360601b60448201526064016103db565b6001600160a01b0389166112e75760405162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b60448201526064016103db565b60006112f384866121c1565b6001600160701b0316116113415760405162461bcd60e51b81526020600482015260156024820152741253959053125117d59154d5115117d05353d55395605a1b60448201526064016103db565b60008864ffffffffff16116113985760405162461bcd60e51b815260206004820152601760248201527f494e56414c49445f53544152545f54494d455354414d5000000000000000000060448201526064016103db565b8664ffffffffff168864ffffffffff16106113ed5760405162461bcd60e51b81526020600482015260156024820152740494e56414c49445f454e445f54494d455354414d5605c1b60448201526064016103db565b60008564ffffffffff16116114445760405162461bcd60e51b815260206004820152601860248201527f494e56414c49445f52454c454153455f494e54455256414c000000000000000060448201526064016103db565b8461144f8989612101565b61145991906121ec565b64ffffffffff16156114ad5760405162461bcd60e51b815260206004820152601760248201527f494e56414c49445f494e54455256414c5f4c454e47544800000000000000000060448201526064016103db565b60008664ffffffffff161180156114cd57506000836001600160701b0316115b80156114e757508764ffffffffff168664ffffffffff1611155b80611509575064ffffffffff861615801561150957506001600160701b038316155b6115455760405162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22fa1a624a32360991b60448201526064016103db565b6000600360008b6001600160a01b03166001600160a01b031681526020019081526020016000209050888160000160006101000a81548164ffffffffff021916908364ffffffffff160217905550878160000160056101000a81548164ffffffffff021916908364ffffffffff160217905550600081600301600f6101000a81548164ffffffffff021916908364ffffffffff1602179055508681600001600a6101000a81548164ffffffffff021916908364ffffffffff1602179055508581600001600f6101000a81548164ffffffffff021916908364ffffffffff160217905550846001600160701b03168160010181905550838160030160006101000a8154816001600160701b0302191690836001600160701b0316021790555060008160020181905550600181600301600e6101000a81548160ff0219169083151502179055506000858561169891906121c1565b6001600160701b03169050806002546116b19190612073565b6040516370a0823160e01b81523060048201527f000000000000000000000000f17e65822b568b3903685a7c9f496cf7656cc6c26001600160a01b0316906370a0823190602401602060405180830381865afa158015611715573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061173991906120e8565b10156117575760405162461bcd60e51b81526004016103db906120ba565b80600260008282546117699190612073565b9091555050600480546001810182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b038d169081179091556040517f94236aa8f08a6558c854d068f832a9f6ef202e7db2b87d0a060ad02562ba8d58906117ec908590612210565b60405180910390a25050505050505050505050565b6000611856826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118d39092919063ffffffff16565b80519091501561110a5780806020019051810190611874919061221f565b61110a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103db565b60606110b08484600085856001600160a01b0385163b6119355760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103db565b600080866001600160a01b031685876040516119519190612268565b60006040518083038185875af1925050503d806000811461198e576040519150601f19603f3d011682016040523d82523d6000602084013e611993565b606091505b50915091506119a38282866119ae565b979650505050505050565b606083156119bd575081610a6d565b8251156119cd5782518084602001fd5b8160405162461bcd60e51b81526004016103db9190612284565b6001600160a01b03811681146119fc57600080fd5b50565b600060208284031215611a1157600080fd5b8135610a6d816119e7565b803564ffffffffff81168114611a3157600080fd5b919050565b60008060408385031215611a4957600080fd5b8235611a54816119e7565b9150611a6260208401611a1c565b90509250929050565b80151581146119fc57600080fd5b60008060408385031215611a8c57600080fd5b8235611a97816119e7565b91506020830135611aa781611a6b565b809150509250929050565b815164ffffffffff908116825260208084015182169083015260408084015182169083015260608084015191821690830152610120820190506080830151608083015260a083015160a083015260c0830151611b1960c08401826001600160701b03169052565b5060e0830151611b2d60e084018215159052565b506101009283015164ffffffffff16919092015290565b6020808252825182820181905260009190848201906040850190845b81811015611b855783516001600160a01b031683529284019291840191600101611b60565b50909695505050505050565b80356001600160701b0381168114611a3157600080fd5b600080600080600080600060e0888a031215611bc357600080fd5b8735611bce816119e7565b9650611bdc60208901611a1c565b9550611bea60408901611a1c565b9450611bf860608901611a1c565b9350611c0660808901611a1c565b9250611c1460a08901611b91565b9150611c2260c08901611b91565b905092959891949750929550565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611c6f57611c6f611c30565b604052919050565b600067ffffffffffffffff821115611c9157611c91611c30565b5060051b60200190565b600082601f830112611cac57600080fd5b81356020611cc1611cbc83611c77565b611c46565b82815260059290921b84018101918181019086841115611ce057600080fd5b8286015b84811015611d04578035611cf7816119e7565b8352918301918301611ce4565b509695505050505050565b600082601f830112611d2057600080fd5b81356020611d30611cbc83611c77565b82815260059290921b84018101918181019086841115611d4f57600080fd5b8286015b84811015611d0457611d6481611a1c565b8352918301918301611d53565b600082601f830112611d8257600080fd5b81356020611d92611cbc83611c77565b82815260059290921b84018101918181019086841115611db157600080fd5b8286015b84811015611d0457611dc681611b91565b8352918301918301611db5565b600080600080600080600060e0888a031215611dee57600080fd5b873567ffffffffffffffff80821115611e0657600080fd5b611e128b838c01611c9b565b985060208a0135915080821115611e2857600080fd5b611e348b838c01611d0f565b975060408a0135915080821115611e4a57600080fd5b611e568b838c01611d0f565b965060608a0135915080821115611e6c57600080fd5b611e788b838c01611d0f565b955060808a0135915080821115611e8e57600080fd5b611e9a8b838c01611d0f565b945060a08a0135915080821115611eb057600080fd5b611ebc8b838c01611d71565b935060c08a0135915080821115611ed257600080fd5b50611edf8a828b01611d71565b91505092959891949750929550565b600060208284031215611f0057600080fd5b5035919050565b602080825260159082015274105113525397d050d0d154d4d7d491545552549151605a1b604082015260600190565b6020808252600f908201526e4e4f5f4143544956455f434c41494d60881b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015611f8757611f87611f5f565b500390565b805464ffffffffff8082168452602882901c81166020850152605082901c81166040850152607882901c8116606085015260018301546080850152600283015460a085015260038301546001600160701b03811660c08601529150611ffb60e0850160ff8460701c1615159052565b6120146101008501828460781c1664ffffffffff169052565b50505050565b83815264ffffffffff8316602082015261016081016110b06040830184611f8c565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000821982111561208657612086611f5f565b500190565b634e487b7160e01b600052603260045260246000fd5b6000600182016120b3576120b3611f5f565b5060010190565b602080825260149082015273494e53554646494349454e545f42414c414e434560601b604082015260600190565b6000602082840312156120fa57600080fd5b5051919050565b600064ffffffffff8381169083168181101561211f5761211f611f5f565b039392505050565b634e487b7160e01b600052601260045260246000fd5b600064ffffffffff8084168061215557612155612127565b92169190910492915050565b600064ffffffffff8083168185168183048111821515161561218557612185611f5f565b02949350505050565b60008160001904831182151516156121a8576121a8611f5f565b500290565b6000826121bc576121bc612127565b500490565b60006001600160701b038083168185168083038211156121e3576121e3611f5f565b01949350505050565b600064ffffffffff8084168061220457612204612127565b92169190910692915050565b610120810161082d8284611f8c565b60006020828403121561223157600080fd5b8151610a6d81611a6b565b60005b8381101561225757818101518382015260200161223f565b838111156120145750506000910152565b6000825161227a81846020870161223c565b9190910192915050565b60208152600082518060208401526122a381604085016020870161223c565b601f01601f1916919091016040019291505056fea2646970667358221220902bcdcd0238e2242aad3cfbe0f6ca0b6a5f502d3235cdf5d9901ae8d484eff764736f6c634300080e0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.22628 | 8,220,748.6076 | $1,860,187.33 |
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.