More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 278 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Tokens | 17327198 | 607 days ago | IN | 0 ETH | 0.00319521 | ||||
Withdraw Tokens | 13892685 | 1119 days ago | IN | 0 ETH | 0.00418346 | ||||
Withdraw Tokens | 13429083 | 1192 days ago | IN | 0 ETH | 0.00440706 | ||||
Withdraw Tokens | 13337294 | 1206 days ago | IN | 0 ETH | 0.00472034 | ||||
Withdraw Tokens | 13321600 | 1209 days ago | IN | 0 ETH | 0.00881268 | ||||
Withdraw Tokens | 13274172 | 1216 days ago | IN | 0 ETH | 0.0023666 | ||||
Withdraw Tokens | 13208710 | 1226 days ago | IN | 0 ETH | 0.00400399 | ||||
Withdraw Tokens | 13169541 | 1232 days ago | IN | 0 ETH | 0.01370255 | ||||
Withdraw Tokens | 13130558 | 1238 days ago | IN | 0 ETH | 0.0091336 | ||||
Withdraw Tokens | 13065243 | 1248 days ago | IN | 0 ETH | 0.00207283 | ||||
Withdraw Tokens | 13034569 | 1253 days ago | IN | 0 ETH | 0.00171144 | ||||
Withdraw Tokens | 13031095 | 1254 days ago | IN | 0 ETH | 0.00313764 | ||||
Withdraw Tokens | 13025119 | 1255 days ago | IN | 0 ETH | 0.0055611 | ||||
Withdraw Tokens | 13020736 | 1255 days ago | IN | 0 ETH | 0.0037074 | ||||
Withdraw Tokens | 13009599 | 1257 days ago | IN | 0 ETH | 0.00259518 | ||||
Withdraw Tokens | 13005180 | 1258 days ago | IN | 0 ETH | 0.00685266 | ||||
Withdraw Tokens | 12997053 | 1259 days ago | IN | 0 ETH | 0.00235636 | ||||
Withdraw Tokens | 12985521 | 1261 days ago | IN | 0 ETH | 0.00415228 | ||||
Withdraw Tokens | 12979423 | 1262 days ago | IN | 0 ETH | 0.00283787 | ||||
Withdraw Tokens | 12978164 | 1262 days ago | IN | 0 ETH | 0.00444888 | ||||
Withdraw Tokens | 12975380 | 1262 days ago | IN | 0 ETH | 0.00339438 | ||||
Withdraw Tokens | 12972930 | 1263 days ago | IN | 0 ETH | 0.00630258 | ||||
Withdraw Tokens | 12971821 | 1263 days ago | IN | 0 ETH | 0.00389883 | ||||
Withdraw Tokens | 12964106 | 1264 days ago | IN | 0 ETH | 0.00228192 | ||||
Withdraw Tokens | 12952345 | 1266 days ago | IN | 0 ETH | 0.00193963 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PrivateDistribution
Compiler Version
v0.7.4+commit.3f05b770
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.7.4; // import "hardhat/console.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; // import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol"; // import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/SafeERC20.sol"; // import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol"; // import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol"; contract PrivateDistribution is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; event InvestorsAdded(address[] investors, uint256[] tokenAllocations, address caller); event InvestorAdded(address indexed investor, address indexed caller, uint256 allocation); event InvestorRemoved(address indexed investor, address indexed caller, uint256 allocation); event WithdrawnTokens(address indexed investor, uint256 value); event DepositInvestment(address indexed investor, uint256 value); event TransferInvestment(address indexed owner, uint256 value); event RecoverToken(address indexed token, uint256 indexed amount); uint256 private _totalAllocatedAmount; uint256 private _initialTimestamp; IERC20 private _vortexToken; address[] public investors; uint256 private constant _remainingDistroPercentage = 75; uint256 private constant _noOfRemaingDays = 120; struct Investor { bool exists; uint256 withdrawnTokens; uint256 tokensAllotment; } mapping(address => Investor) public investorsInfo; /// @dev Boolean variable that indicates whether the contract was initialized. bool public isInitialized = false; /// @dev Boolean variable that indicates whether the investors set was finalized. bool public isFinalized = false; /// @dev Checks that the contract is initialized. modifier initialized() { require(isInitialized, "not initialized"); _; } /// @dev Checks that the contract is initialized. modifier notInitialized() { require(!isInitialized, "initialized"); _; } modifier onlyInvestor() { require(investorsInfo[_msgSender()].exists, "Only investors allowed"); _; } constructor(address _token) { _vortexToken = IERC20(_token); } function getInitialTimestamp() public view returns (uint256 timestamp) { return _initialTimestamp; } /// @dev release tokens to all the investors function releaseTokens() external onlyOwner initialized() { for (uint8 i = 0; i < investors.length; i++) { uint256 availableTokens = withdrawableTokens(investors[i]); _vortexToken.safeTransfer(investors[i], availableTokens); } } /// @dev Adds investors. This function doesn't limit max gas consumption, /// so adding too many investors can cause it to reach the out-of-gas error. /// @param _investors The addresses of new investors. /// @param _tokenAllocations The amounts of the tokens that belong to each investor. function addInvestors(address[] calldata _investors, uint256[] calldata _tokenAllocations) external onlyOwner { require(_investors.length == _tokenAllocations.length, "different arrays sizes"); for (uint256 i = 0; i < _investors.length; i++) { _addInvestor(_investors[i], _tokenAllocations[i]); } emit InvestorsAdded(_investors, _tokenAllocations, msg.sender); } // 25% at TGE, 75% released daily over 120 Days after 30 Days Cliff function withdrawTokens() external onlyInvestor() initialized() { Investor storage investor = investorsInfo[_msgSender()]; uint256 tokensAvailable = withdrawableTokens(_msgSender()); require(tokensAvailable > 0, "no tokens available for withdrawl"); investor.withdrawnTokens = investor.withdrawnTokens.add(tokensAvailable); _vortexToken.safeTransfer(_msgSender(), tokensAvailable); emit WithdrawnTokens(_msgSender(), tokensAvailable); } /// @dev The starting time of TGE /// @param _timestamp The initial timestamp, this timestap should be used for vesting function setInitialTimestamp(uint256 _timestamp) external onlyOwner() notInitialized() { isInitialized = true; _initialTimestamp = _timestamp; } /// @dev withdrawble tokens for an address /// @param _investor whitelisted investor address function withdrawableTokens(address _investor) public view returns (uint256 tokens) { Investor storage investor = investorsInfo[_investor]; uint256 availablePercentage = _calculateAvailablePercentage(); uint256 noOfTokens = _calculatePercentage(investor.tokensAllotment, availablePercentage); uint256 tokensAvailable = noOfTokens.sub(investor.withdrawnTokens); return tokensAvailable; } /// @dev Adds investor. This function doesn't limit max gas consumption, /// so adding too many investors can cause it to reach the out-of-gas error. /// @param _investor The addresses of new investors. /// @param _tokensAllotment The amounts of the tokens that belong to each investor. function _addInvestor(address _investor, uint256 _tokensAllotment) internal onlyOwner { require(_investor != address(0), "Invalid address"); require(_tokensAllotment > 0, "the investor allocation must be more than 0"); Investor storage investor = investorsInfo[_investor]; require(investor.tokensAllotment == 0, "investor already added"); investor.tokensAllotment = _tokensAllotment; investor.exists = true; investors.push(_investor); _totalAllocatedAmount = _totalAllocatedAmount.add(_tokensAllotment); emit InvestorAdded(_investor, _msgSender(), _tokensAllotment); } /// @dev calculate percentage value from amount /// @param _amount amount input to find the percentage /// @param _percentage percentage for an amount function _calculatePercentage(uint256 _amount, uint256 _percentage) private pure returns (uint256 percentage) { return _amount.mul(_percentage).div(100).div(1e18); } function _calculateAvailablePercentage() private view returns (uint256 availablePercentage) { // 15% on listing and rest daily distribution from day 31 for 11 months (12 months) // 1000000 VTX assigned // 25000 tokens on TGE - 25% on TGE // 75000 tokens distributed for 120 days - 75% remaining // 75000/120 = 625 tokens per day // 75/120 = 0.625% every day released uint256 thirtyDays = _initialTimestamp + 30 days; uint256 vestingDuration = _initialTimestamp + 150 days; uint256 everyDayReleasePercentage = _remainingDistroPercentage.mul(1e18).div(_noOfRemaingDays); uint256 currentTimeStamp = block.timestamp; if (currentTimeStamp > _initialTimestamp) { if (currentTimeStamp <= thirtyDays) { return uint256(25).mul(1e18); } else if (currentTimeStamp > thirtyDays && currentTimeStamp < vestingDuration) { // Date difference in days - (endDate - startDate) / 60 / 60 / 24; // 40 days uint256 noOfDays = (currentTimeStamp.sub(thirtyDays)).mul(1e18).div(60).div(60).div(24); uint256 currentUnlockedPercentage = noOfDays.mul(everyDayReleasePercentage).div(1e18); return uint256(25).mul(1e18).add(currentUnlockedPercentage); } else { return uint256(100).mul(1e18); } } } function recoverToken(address _token, uint256 amount) external onlyOwner { IERC20(_token).safeTransfer(_msgSender(), amount); emit RecoverToken(_token, amount); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, 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 pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.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 SafeMath for uint256; 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' // solhint-disable-next-line max-line-length 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).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-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", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"investor","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"DepositInvestment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"investor","type":"address"},{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocation","type":"uint256"}],"name":"InvestorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"investor","type":"address"},{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocation","type":"uint256"}],"name":"InvestorRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"investors","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"tokenAllocations","type":"uint256[]"},{"indexed":false,"internalType":"address","name":"caller","type":"address"}],"name":"InvestorsAdded","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":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RecoverToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferInvestment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"investor","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"WithdrawnTokens","type":"event"},{"inputs":[{"internalType":"address[]","name":"_investors","type":"address[]"},{"internalType":"uint256[]","name":"_tokenAllocations","type":"uint256[]"}],"name":"addInvestors","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getInitialTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"investors","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"investorsInfo","outputs":[{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"uint256","name":"withdrawnTokens","type":"uint256"},{"internalType":"uint256","name":"tokensAllotment","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFinalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"setInitialTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_investor","type":"address"}],"name":"withdrawableTokens","outputs":[{"internalType":"uint256","name":"tokens","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526006805461ffff1916905534801561001b57600080fd5b5060405161158b38038061158b8339818101604052602081101561003e57600080fd5b5051600061004a6100b9565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600380546001600160a01b0319166001600160a01b03929092169190911790556100bd565b3390565b6114bf806100cc6000396000f3fe608060405234801561001057600080fd5b50600436106100e95760003560e01c80638bab67181161008c5780638da5cb5b116100665780638da5cb5b146102c2578063a96f8668146102ca578063b29a8140146102d2578063f2fde38b146102fe576100e9565b80638bab67181461026c5780638d4e4083146102b25780638d8f2adb146102ba576100e9565b8063392e53cd116100c8578063392e53cd146102075780633feb5f2b146102235780634edcd3741461025c578063715018a614610264576100e9565b80626f6ad0146100ee57806321f926db14610126578063249eae4d14610145575b600080fd5b6101146004803603602081101561010457600080fd5b50356001600160a01b0316610324565b60408051918252519081900360200190f35b6101436004803603602081101561013c57600080fd5b503561037c565b005b6101436004803603604081101561015b57600080fd5b81019060208101813564010000000081111561017657600080fd5b82018360208201111561018857600080fd5b803590602001918460208302840111640100000000831117156101aa57600080fd5b9193909290916020810190356401000000008111156101c857600080fd5b8201836020820111156101da57600080fd5b803590602001918460208302840111640100000000831117156101fc57600080fd5b509092509050610436565b61020f6105da565b604080519115158252519081900360200190f35b6102406004803603602081101561023957600080fd5b50356105e3565b604080516001600160a01b039092168252519081900360200190f35b61011461060d565b610143610614565b6102926004803603602081101561028257600080fd5b50356001600160a01b03166106c0565b604080519315158452602084019290925282820152519081900360600190f35b61020f6106e5565b6101436106f3565b6102406108b0565b6101436108bf565b610143600480360360408110156102e857600080fd5b506001600160a01b0381351690602001356109ec565b6101436004803603602081101561031457600080fd5b50356001600160a01b0316610aa4565b6001600160a01b038116600090815260056020526040812081610345610ba6565b90506000610357836002015483610ca6565b90506000610372846001015483610cca90919063ffffffff16565b9695505050505050565b610384610d27565b6001600160a01b03166103956108b0565b6001600160a01b0316146103de576040805162461bcd60e51b81526020600482018190526024820152600080516020611440833981519152604482015290519081900360640190fd5b60065460ff1615610424576040805162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d1a585b1a5e995960aa1b604482015290519081900360640190fd5b6006805460ff19166001179055600255565b61043e610d27565b6001600160a01b031661044f6108b0565b6001600160a01b031614610498576040805162461bcd60e51b81526020600482018190526024820152600080516020611440833981519152604482015290519081900360640190fd5b8281146104e5576040805162461bcd60e51b8152602060048201526016602482015275646966666572656e74206172726179732073697a657360501b604482015290519081900360640190fd5b60005b8381101561052f576105278585838181106104ff57fe5b905060200201356001600160a01b031684848481811061051b57fe5b90506020020135610d2b565b6001016104e8565b507fa0327ab872014c035a6a3e1ff09051e9c4c9d8251bee6be9d80e4b2d7c11302b8484848433604051808060200180602001846001600160a01b031681526020018381038352888882818152602001925060200280828437600083820152601f01601f19169091018481038352868152602090810191508790870280828437600083820152604051601f909101601f1916909201829003995090975050505050505050a150505050565b60065460ff1681565b600481815481106105f357600080fd5b6000918252602090912001546001600160a01b0316905081565b6002545b90565b61061c610d27565b6001600160a01b031661062d6108b0565b6001600160a01b031614610676576040805162461bcd60e51b81526020600482018190526024820152600080516020611440833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60056020526000908152604090208054600182015460029092015460ff909116919083565b600654610100900460ff1681565b600560006106ff610d27565b6001600160a01b0316815260208101919091526040016000205460ff16610766576040805162461bcd60e51b815260206004820152601660248201527513db9b1e481a5b9d995cdd1bdc9cc8185b1b1bddd95960521b604482015290519081900360640190fd5b60065460ff166107af576040805162461bcd60e51b815260206004820152600f60248201526e1b9bdd081a5b9a5d1a585b1a5e9959608a1b604482015290519081900360640190fd5b6000600560006107bd610d27565b6001600160a01b03166001600160a01b03168152602001908152602001600020905060006107f16107ec610d27565b610324565b9050600081116108325760405162461bcd60e51b81526004018080602001828103825260218152602001806113d36021913960400191505060405180910390fd5b60018201546108419082610f45565b6001830155610864610851610d27565b6003546001600160a01b03169083610f9f565b61086c610d27565b6001600160a01b03167f373d92bf7d9cdd58a8c86db5461f3cdcd325b803fdbac8d1b224a0f5fce847b8826040518082815260200191505060405180910390a25050565b6000546001600160a01b031690565b6108c7610d27565b6001600160a01b03166108d86108b0565b6001600160a01b031614610921576040805162461bcd60e51b81526020600482018190526024820152600080516020611440833981519152604482015290519081900360640190fd5b60065460ff1661096a576040805162461bcd60e51b815260206004820152600f60248201526e1b9bdd081a5b9a5d1a585b1a5e9959608a1b604482015290519081900360640190fd5b60005b60045460ff821610156109e95760006109a960048360ff168154811061098f57fe5b6000918252602090912001546001600160a01b0316610324565b90506109e060048360ff16815481106109be57fe5b6000918252602090912001546003546001600160a01b03908116911683610f9f565b5060010161096d565b50565b6109f4610d27565b6001600160a01b0316610a056108b0565b6001600160a01b031614610a4e576040805162461bcd60e51b81526020600482018190526024820152600080516020611440833981519152604482015290519081900360640190fd5b610a6a610a59610d27565b6001600160a01b0384169083610f9f565b60405181906001600160a01b038416907ffba2d3bdfb2d601eb66a89783a2c614856101cadce71556753c2edadd60c831c90600090a35050565b610aac610d27565b6001600160a01b0316610abd6108b0565b6001600160a01b031614610b06576040805162461bcd60e51b81526020600482018190526024820152600080516020611440833981519152604482015290519081900360640190fd5b6001600160a01b038116610b4b5760405162461bcd60e51b81526004018080602001828103825260268152602001806113876026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60025460009062278d0081019062c5c1000182610bd76078610bd1604b670de0b6b3a7640000610ff6565b9061104f565b6002549091504290811115610c9f57838111610c0b57610c006019670de0b6b3a7640000610ff6565b945050505050610611565b8381118015610c1957508281105b15610c8c576000610c466018610bd1603c818181670de0b6b3a7640000610c408a8e610cca565b90610ff6565b90506000610c60670de0b6b3a7640000610bd18487610ff6565b9050610c7f81610c796019670de0b6b3a7640000610ff6565b90610f45565b9650505050505050610611565b610c006064670de0b6b3a7640000610ff6565b5050505090565b6000610cc1670de0b6b3a7640000610bd16064818787610ff6565b90505b92915050565b600082821115610d21576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3390565b610d33610d27565b6001600160a01b0316610d446108b0565b6001600160a01b031614610d8d576040805162461bcd60e51b81526020600482018190526024820152600080516020611440833981519152604482015290519081900360640190fd5b6001600160a01b038216610dda576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015290519081900360640190fd5b60008111610e195760405162461bcd60e51b815260040180806020018281038252602b8152602001806113f4602b913960400191505060405180910390fd5b6001600160a01b0382166000908152600560205260409020600281015415610e81576040805162461bcd60e51b81526020600482015260166024820152751a5b9d995cdd1bdc88185b1c9958591e48185919195960521b604482015290519081900360640190fd5b600281018290558054600160ff19909116811782556004805480830182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b03861617905554610eeb9083610f45565b600155610ef6610d27565b6001600160a01b0316836001600160a01b03167f81bc7944e5f9c2b96369088e24ae41b5a80fcd26d2a8365ec2b301fdce1b7a3a846040518082815260200191505060405180910390a3505050565b600082820183811015610cc1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ff19084906110b6565b505050565b60008261100557506000610cc4565b8282028284828161101257fe5b0414610cc15760405162461bcd60e51b815260040180806020018281038252602181526020018061141f6021913960400191505060405180910390fd5b60008082116110a5576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816110ae57fe5b049392505050565b606061110b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111679092919063ffffffff16565b805190915015610ff15780806020019051602081101561112a57600080fd5b5051610ff15760405162461bcd60e51b815260040180806020018281038252602a815260200180611460602a913960400191505060405180910390fd5b60606111768484600085611180565b90505b9392505050565b6060824710156111c15760405162461bcd60e51b81526004018080602001828103825260268152602001806113ad6026913960400191505060405180910390fd5b6111ca856112dc565b61121b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061125a5780518252601f19909201916020918201910161123b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146112bc576040519150601f19603f3d011682016040523d82523d6000602084013e6112c1565b606091505b50915091506112d18282866112e2565b979650505050505050565b3b151590565b606083156112f1575081611179565b8251156113015782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561134b578181015183820152602001611333565b50505050905090810190601f1680156113785780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c6e6f20746f6b656e7320617661696c61626c6520666f722077697468647261776c74686520696e766573746f7220616c6c6f636174696f6e206d757374206265206d6f7265207468616e2030536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212203446e1a08fbaa21db8d08ada354cceeaaa25f66af8088343ff14bf166868fb9764736f6c63430007040033000000000000000000000000ceb286c9604c542d3cc08b41aa6c9675b078a832
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100e95760003560e01c80638bab67181161008c5780638da5cb5b116100665780638da5cb5b146102c2578063a96f8668146102ca578063b29a8140146102d2578063f2fde38b146102fe576100e9565b80638bab67181461026c5780638d4e4083146102b25780638d8f2adb146102ba576100e9565b8063392e53cd116100c8578063392e53cd146102075780633feb5f2b146102235780634edcd3741461025c578063715018a614610264576100e9565b80626f6ad0146100ee57806321f926db14610126578063249eae4d14610145575b600080fd5b6101146004803603602081101561010457600080fd5b50356001600160a01b0316610324565b60408051918252519081900360200190f35b6101436004803603602081101561013c57600080fd5b503561037c565b005b6101436004803603604081101561015b57600080fd5b81019060208101813564010000000081111561017657600080fd5b82018360208201111561018857600080fd5b803590602001918460208302840111640100000000831117156101aa57600080fd5b9193909290916020810190356401000000008111156101c857600080fd5b8201836020820111156101da57600080fd5b803590602001918460208302840111640100000000831117156101fc57600080fd5b509092509050610436565b61020f6105da565b604080519115158252519081900360200190f35b6102406004803603602081101561023957600080fd5b50356105e3565b604080516001600160a01b039092168252519081900360200190f35b61011461060d565b610143610614565b6102926004803603602081101561028257600080fd5b50356001600160a01b03166106c0565b604080519315158452602084019290925282820152519081900360600190f35b61020f6106e5565b6101436106f3565b6102406108b0565b6101436108bf565b610143600480360360408110156102e857600080fd5b506001600160a01b0381351690602001356109ec565b6101436004803603602081101561031457600080fd5b50356001600160a01b0316610aa4565b6001600160a01b038116600090815260056020526040812081610345610ba6565b90506000610357836002015483610ca6565b90506000610372846001015483610cca90919063ffffffff16565b9695505050505050565b610384610d27565b6001600160a01b03166103956108b0565b6001600160a01b0316146103de576040805162461bcd60e51b81526020600482018190526024820152600080516020611440833981519152604482015290519081900360640190fd5b60065460ff1615610424576040805162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d1a585b1a5e995960aa1b604482015290519081900360640190fd5b6006805460ff19166001179055600255565b61043e610d27565b6001600160a01b031661044f6108b0565b6001600160a01b031614610498576040805162461bcd60e51b81526020600482018190526024820152600080516020611440833981519152604482015290519081900360640190fd5b8281146104e5576040805162461bcd60e51b8152602060048201526016602482015275646966666572656e74206172726179732073697a657360501b604482015290519081900360640190fd5b60005b8381101561052f576105278585838181106104ff57fe5b905060200201356001600160a01b031684848481811061051b57fe5b90506020020135610d2b565b6001016104e8565b507fa0327ab872014c035a6a3e1ff09051e9c4c9d8251bee6be9d80e4b2d7c11302b8484848433604051808060200180602001846001600160a01b031681526020018381038352888882818152602001925060200280828437600083820152601f01601f19169091018481038352868152602090810191508790870280828437600083820152604051601f909101601f1916909201829003995090975050505050505050a150505050565b60065460ff1681565b600481815481106105f357600080fd5b6000918252602090912001546001600160a01b0316905081565b6002545b90565b61061c610d27565b6001600160a01b031661062d6108b0565b6001600160a01b031614610676576040805162461bcd60e51b81526020600482018190526024820152600080516020611440833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60056020526000908152604090208054600182015460029092015460ff909116919083565b600654610100900460ff1681565b600560006106ff610d27565b6001600160a01b0316815260208101919091526040016000205460ff16610766576040805162461bcd60e51b815260206004820152601660248201527513db9b1e481a5b9d995cdd1bdc9cc8185b1b1bddd95960521b604482015290519081900360640190fd5b60065460ff166107af576040805162461bcd60e51b815260206004820152600f60248201526e1b9bdd081a5b9a5d1a585b1a5e9959608a1b604482015290519081900360640190fd5b6000600560006107bd610d27565b6001600160a01b03166001600160a01b03168152602001908152602001600020905060006107f16107ec610d27565b610324565b9050600081116108325760405162461bcd60e51b81526004018080602001828103825260218152602001806113d36021913960400191505060405180910390fd5b60018201546108419082610f45565b6001830155610864610851610d27565b6003546001600160a01b03169083610f9f565b61086c610d27565b6001600160a01b03167f373d92bf7d9cdd58a8c86db5461f3cdcd325b803fdbac8d1b224a0f5fce847b8826040518082815260200191505060405180910390a25050565b6000546001600160a01b031690565b6108c7610d27565b6001600160a01b03166108d86108b0565b6001600160a01b031614610921576040805162461bcd60e51b81526020600482018190526024820152600080516020611440833981519152604482015290519081900360640190fd5b60065460ff1661096a576040805162461bcd60e51b815260206004820152600f60248201526e1b9bdd081a5b9a5d1a585b1a5e9959608a1b604482015290519081900360640190fd5b60005b60045460ff821610156109e95760006109a960048360ff168154811061098f57fe5b6000918252602090912001546001600160a01b0316610324565b90506109e060048360ff16815481106109be57fe5b6000918252602090912001546003546001600160a01b03908116911683610f9f565b5060010161096d565b50565b6109f4610d27565b6001600160a01b0316610a056108b0565b6001600160a01b031614610a4e576040805162461bcd60e51b81526020600482018190526024820152600080516020611440833981519152604482015290519081900360640190fd5b610a6a610a59610d27565b6001600160a01b0384169083610f9f565b60405181906001600160a01b038416907ffba2d3bdfb2d601eb66a89783a2c614856101cadce71556753c2edadd60c831c90600090a35050565b610aac610d27565b6001600160a01b0316610abd6108b0565b6001600160a01b031614610b06576040805162461bcd60e51b81526020600482018190526024820152600080516020611440833981519152604482015290519081900360640190fd5b6001600160a01b038116610b4b5760405162461bcd60e51b81526004018080602001828103825260268152602001806113876026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60025460009062278d0081019062c5c1000182610bd76078610bd1604b670de0b6b3a7640000610ff6565b9061104f565b6002549091504290811115610c9f57838111610c0b57610c006019670de0b6b3a7640000610ff6565b945050505050610611565b8381118015610c1957508281105b15610c8c576000610c466018610bd1603c818181670de0b6b3a7640000610c408a8e610cca565b90610ff6565b90506000610c60670de0b6b3a7640000610bd18487610ff6565b9050610c7f81610c796019670de0b6b3a7640000610ff6565b90610f45565b9650505050505050610611565b610c006064670de0b6b3a7640000610ff6565b5050505090565b6000610cc1670de0b6b3a7640000610bd16064818787610ff6565b90505b92915050565b600082821115610d21576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b3390565b610d33610d27565b6001600160a01b0316610d446108b0565b6001600160a01b031614610d8d576040805162461bcd60e51b81526020600482018190526024820152600080516020611440833981519152604482015290519081900360640190fd5b6001600160a01b038216610dda576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015290519081900360640190fd5b60008111610e195760405162461bcd60e51b815260040180806020018281038252602b8152602001806113f4602b913960400191505060405180910390fd5b6001600160a01b0382166000908152600560205260409020600281015415610e81576040805162461bcd60e51b81526020600482015260166024820152751a5b9d995cdd1bdc88185b1c9958591e48185919195960521b604482015290519081900360640190fd5b600281018290558054600160ff19909116811782556004805480830182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b03861617905554610eeb9083610f45565b600155610ef6610d27565b6001600160a01b0316836001600160a01b03167f81bc7944e5f9c2b96369088e24ae41b5a80fcd26d2a8365ec2b301fdce1b7a3a846040518082815260200191505060405180910390a3505050565b600082820183811015610cc1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ff19084906110b6565b505050565b60008261100557506000610cc4565b8282028284828161101257fe5b0414610cc15760405162461bcd60e51b815260040180806020018281038252602181526020018061141f6021913960400191505060405180910390fd5b60008082116110a5576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816110ae57fe5b049392505050565b606061110b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111679092919063ffffffff16565b805190915015610ff15780806020019051602081101561112a57600080fd5b5051610ff15760405162461bcd60e51b815260040180806020018281038252602a815260200180611460602a913960400191505060405180910390fd5b60606111768484600085611180565b90505b9392505050565b6060824710156111c15760405162461bcd60e51b81526004018080602001828103825260268152602001806113ad6026913960400191505060405180910390fd5b6111ca856112dc565b61121b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061125a5780518252601f19909201916020918201910161123b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146112bc576040519150601f19603f3d011682016040523d82523d6000602084013e6112c1565b606091505b50915091506112d18282866112e2565b979650505050505050565b3b151590565b606083156112f1575081611179565b8251156113015782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561134b578181015183820152602001611333565b50505050905090810190601f1680156113785780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c6e6f20746f6b656e7320617661696c61626c6520666f722077697468647261776c74686520696e766573746f7220616c6c6f636174696f6e206d757374206265206d6f7265207468616e2030536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212203446e1a08fbaa21db8d08ada354cceeaaa25f66af8088343ff14bf166868fb9764736f6c63430007040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ceb286c9604c542d3cc08b41aa6c9675b078a832
-----Decoded View---------------
Arg [0] : _token (address): 0xceb286C9604c542d3cc08b41AA6C9675B078A832
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ceb286c9604c542d3cc08b41aa6c9675b078a832
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.001265 | 3,276,031.8247 | $4,144.42 |
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.