More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 50 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Vest | 12557196 | 1182 days ago | IN | 0 ETH | 0.01058647 | ||||
Vest | 12514390 | 1189 days ago | IN | 0 ETH | 0.0113998 | ||||
Withdraw Tokens | 12514219 | 1189 days ago | IN | 0 ETH | 0.00516564 | ||||
Vest | 12514200 | 1189 days ago | IN | 0 ETH | 0.01302912 | ||||
Vest | 12514192 | 1189 days ago | IN | 0 ETH | 0.01302912 | ||||
Vest | 12514176 | 1189 days ago | IN | 0 ETH | 0.01302912 | ||||
Vest | 12514163 | 1189 days ago | IN | 0 ETH | 0.0142506 | ||||
Vest | 12514156 | 1189 days ago | IN | 0 ETH | 0.01384344 | ||||
Vest | 12514145 | 1189 days ago | IN | 0 ETH | 0.01302912 | ||||
Vest | 12514130 | 1189 days ago | IN | 0 ETH | 0.01465776 | ||||
Vest | 12514119 | 1189 days ago | IN | 0 ETH | 0.01302912 | ||||
Vest | 12514107 | 1189 days ago | IN | 0 ETH | 0.01384344 | ||||
Vest | 12514097 | 1189 days ago | IN | 0 ETH | 0.01302912 | ||||
Vest | 12514093 | 1189 days ago | IN | 0 ETH | 0.01384344 | ||||
Vest | 12514089 | 1189 days ago | IN | 0 ETH | 0.01302912 | ||||
Vest | 12514079 | 1189 days ago | IN | 0 ETH | 0.01302912 | ||||
Vest | 12514074 | 1189 days ago | IN | 0 ETH | 0.01384344 | ||||
Vest | 12514060 | 1189 days ago | IN | 0 ETH | 0.01384344 | ||||
Vest | 12514044 | 1189 days ago | IN | 0 ETH | 0.01384344 | ||||
Vest | 12514039 | 1189 days ago | IN | 0 ETH | 0.01465819 | ||||
Vest | 12514017 | 1189 days ago | IN | 0 ETH | 0.01547253 | ||||
Vest | 12514007 | 1189 days ago | IN | 0 ETH | 0.01547162 | ||||
Vest | 12513998 | 1189 days ago | IN | 0 ETH | 0.01465819 | ||||
Vest | 12513984 | 1189 days ago | IN | 0 ETH | 0.01547253 | ||||
Vest | 12513979 | 1189 days ago | IN | 0 ETH | 0.01465819 |
Latest 25 internal transactions (View All)
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
KojiTeamVesting
Compiler Version
v0.7.4+commit.3f05b770
Optimization Enabled:
Yes with 200 runs
Other Settings:
constantinople EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* There once was a lad named Shappy Who alerted to all coins crappy He called it a bug And then came the rug Now he's gone from the mappy Dear Shapp, Consider my 2 ETH a donation to your bail fund. We didn't need the audit anyway. Yours truly, Nodezy */ pragma solidity 0.7.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/proxy/Clones.sol"; import "./KojiVesting.sol"; contract KojiTeamVesting is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public immutable KOJI; address public immutable VESTING_LOGIC; mapping(address => address[]) public vestings; mapping(address => uint256) public devlist; mapping(address => bool) public whitelist; mapping(address => bool) public blacklist; uint256 public vestingCliffDuration = 0 days; uint256 public vestingDuration = 180 days; constructor(address _koji, address _vestingLogic) { require(_koji != address(0), "KojiVEST: koji is a zero address"); require(_vestingLogic != address(0), "KojiVEST: vestingLogic is a zero address"); KOJI = IERC20(_koji); VESTING_LOGIC = _vestingLogic; /* This contract stores the dev wallets in 2 arrays, one for the amount and one for bool. If the address isn't in the bool list, that means it's an airdrop wallet. This contract was built to prevent sending the wrong or duplicate amounts to dev/airdrop wallets; such is the case in crypto sometimes. */ whitelist[address(0x018aa70957Dfd9FF84a40BE3dE6E0564E0D5A093)] = true; whitelist[address(0x90147c7cCDF01356fE7217Ce421Ad0b99993423f)] = true; whitelist[address(0xaC8ecCEe643A317FeAaD3E153031b27d5eadB126)] = true; whitelist[address(0x9A9f244a0a1d9E3b0c0e12FFD21DBe854a068708)] = true; whitelist[address(0xD7AfeBF94988bEAa196E76B0E0B852CAB22d69f1)] = true; whitelist[address(0xa8f7ff7B386B9A2732716B17dd5856EA3aC72fc8)] = true; whitelist[address(0x5156e7aE86C2907232f248269EF33522480ED06B)] = true; devlist[address(0x018aa70957Dfd9FF84a40BE3dE6E0564E0D5A093)] = 13600000000000000000000000000; //nodezy devlist[address(0x90147c7cCDF01356fE7217Ce421Ad0b99993423f)] = 13600000000000000000000000000; //sir william devlist[address(0xaC8ecCEe643A317FeAaD3E153031b27d5eadB126)] = 13600000000000000000000000000; //alberto devlist[address(0x9A9f244a0a1d9E3b0c0e12FFD21DBe854a068708)] = 13600000000000000000000000000; //adam devlist[address(0xD7AfeBF94988bEAa196E76B0E0B852CAB22d69f1)] = 13600000000000000000000000000; //andreas devlist[address(0xa8f7ff7B386B9A2732716B17dd5856EA3aC72fc8)] = 5000000000000000000000000000; //mounir devlist[address(0x5156e7aE86C2907232f248269EF33522480ED06B)] = 88000000000000000000000000000; //treasury } function vest(address recipient, uint256 amount) onlyOwner public { require(amount >= 1, "KojiVEST: KOJI amount is less than 1"); amount = amount.mul(1e18); require(!blacklist[recipient], "Blacklist: This wallet has already been vested or airdropped"); if (!whitelist[recipient]) { require(amount <= 1000000000000000000000000000, "Whitelist: amount is too large for this wallet"); require(vestingDuration <= 2592000, "Vesting duration too long for airdrop wallet"); } else { require(amount == devlist[recipient], "Devlist: amount is too large for this wallet"); require(vestingDuration >= 7776000 && vestingDuration <= 15552000, "Vesting duration for dev wallet needs to be in range (90 to 180 days)"); } uint256 balance = KOJI.balanceOf(address(this)); require(amount <= balance, "KojiVEST: koji balance is insufficient"); KojiVesting vesting = KojiVesting(Clones.clone(VESTING_LOGIC)); vesting.initialize( address(KOJI), recipient, amount, block.timestamp, vestingCliffDuration, vestingDuration ); KOJI.safeTransfer(address(vesting), amount); vestings[recipient].push(address(vesting)); blacklist[recipient] = true; } function getVestings(address _account, uint256 _start, uint256 _length) external view returns (address[] memory) { address[] memory filteredVestings = new address[](_length); address[] memory accountVestings = vestings[_account]; for (uint256 i = _start; i < _length; i++) { if (i == accountVestings.length) { break; } filteredVestings[i] = accountVestings[i]; } return filteredVestings; } function getAllVestings(address _account) external view returns (address[] memory) { return vestings[_account]; } function getVestingsLength(address _account) external view returns (uint256) { return vestings[_account].length; } function setVestingCliffDuration(uint256 _vestingCliffDuration) external onlyOwner { require(_vestingCliffDuration != 0, "KojiVEST: vestingCliffDuration is zero"); require(_vestingCliffDuration <= vestingDuration, "KojiVEST: vestingCliffDuration is longer than vestingDuration"); vestingCliffDuration = _vestingCliffDuration; } function setVestingDuration(uint256 _vestingDuration) external onlyOwner { require(_vestingDuration != 0, "KojiVEST: vestingDuration is zero"); vestingDuration = _vestingDuration; } function withdrawTokens() public onlyOwner { uint256 kojiBalance = KOJI.balanceOf(address(this)); require(kojiBalance != 0, "KojiVEST: no koji tokens to withdraw"); KOJI.safeTransfer(owner(), kojiBalance); } function withdrawFunds() public onlyOwner { uint256 balance = address(this).balance; require(balance != 0, "KojiVEST: no funds to withdraw"); payable(owner()).transfer(balance); } }
// SPDX-License-Identifier: MIT pragma solidity 0.7.4; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/proxy/Initializable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; /** * This contract is based on open-zeppelin's TokenVesting.sol * (https://github.com/OpenZeppelin/openzeppelin-contracts-ethereum-package/blob/master/contracts/drafts/TokenVesting.sol) * * @title KojiVesting * A koji token holder contract that can release its token balance gradually like a * typical vesting scheme, with a cliff and vesting period. */ contract KojiVesting is Initializable { // The vesting schedule is time-based (i.e. using block timestamps as opposed to e.g. block numbers), and is // therefore sensitive to timestamp manipulation (which is something miners can do, to a certain degree). Therefore, // it is recommended to avoid using short time durations (less than a minute). Typical vesting schemes, with a // cliff period of a year and a duration of four years, are safe to use. using SafeMath for uint256; using SafeERC20 for IERC20; // beneficiary of koji tokens after they are released address public beneficiary; // Durations and timestamps are expressed in UNIX time, the same units as block.timestamp. uint256 public cliff; // the cliff time of the koji tokens vesting uint256 public start; // the start time of the token vesting uint256 public duration; // the duration of the koji tokens vesting uint256 public released; // the amount of the koji tokens released uint256 public amount; // the total amount of the koji tokens vested IERC20 public koji; /** * Initialize vesting contract that vests its balance of koji tokens to the * beneficiary, gradually in a linear fashion until start + duration. By then all * of the balance will have vested. * @param _beneficiary address of the beneficiary to whom vested tokens are transferred * @param _amount total amount of the koji tokens vested * @param _cliffDuration duration in seconds of the cliff in which tokens will begin to vest * @param _start the time (as Unix time) at which point vesting starts * @param _duration duration in seconds of the period in which the tokens will vest */ function initialize ( address _koji, address _beneficiary, uint256 _amount, uint256 _start, uint256 _cliffDuration, uint256 _duration ) public initializer { require(_koji != address(0), "KojiVesting: koji is a zero address"); require(_beneficiary != address(0), "KojiVesting: beneficiary is a zero address"); require(_amount > 0, "KojiVesting: amount is 0"); require(_cliffDuration <= _duration, "KojiVesting: cliff is longer than duration"); require(_duration > 0, "KojiVesting: duration is 0"); require(_start.add(_duration) > block.timestamp, "KojiVesting: final time is before current time"); koji = IERC20(_koji); beneficiary = _beneficiary; amount = _amount; duration = _duration; cliff = _start.add(_cliffDuration); start = _start; } /** * Transfers vested koji tokens to beneficiary. */ function release() external { require(msg.sender == beneficiary, "KojiVesting: caller is not beneficiary"); uint256 unreleased = releasableAmount(); require(unreleased > 0, "KojiVesting: no koji tokens are due"); released = released.add(unreleased); koji.safeTransfer(beneficiary, unreleased); } /** * Calculates the amount that has already vested but hasn't been released yet. */ function releasableAmount() public view returns (uint256) { return vestedAmount().sub(released); } /** * Calculates the amount that has already vested. */ function vestedAmount() public view returns (uint256) { uint256 currentBalance = koji.balanceOf(address(this)); uint256 totalBalance = currentBalance.add(released); if (block.timestamp < cliff) { return 0; } else if (block.timestamp >= start.add(duration)) { return totalBalance; } else { return totalBalance.mul(block.timestamp.sub(start)).div(duration); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.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.7.0; import "../GSN/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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view 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.7.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, 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) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * 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); uint256 c = a - b; return c; } /** * @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) { // 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 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts 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) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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, 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 https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for * deploying minimal proxy contracts, also known as "clones". * * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies * > a minimal bytecode implementation that delegates all calls to a known, fixed address. * * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2` * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the * deterministic method. * * _Available since v3.4._ */ library Clones { /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `master`. * * This function uses the create opcode, which should never revert. */ function clone(address master) internal returns (address instance) { // solhint-disable-next-line no-inline-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, master)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create(0, ptr, 0x37) } require(instance != address(0), "ERC1167: create failed"); } /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `master`. * * This function uses the create2 opcode and a `salt` to deterministically deploy * the clone. Using the same `master` and `salt` multiple time will revert, since * the clones cannot be deployed twice at the same address. */ function cloneDeterministic(address master, bytes32 salt) internal returns (address instance) { // solhint-disable-next-line no-inline-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, master)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create2(0, ptr, 0x37, salt) } require(instance != address(0), "ERC1167: create2 failed"); } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress(address master, bytes32 salt, address deployer) internal pure returns (address predicted) { // solhint-disable-next-line no-inline-assembly assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, master)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000) mstore(add(ptr, 0x38), shl(0x60, deployer)) mstore(add(ptr, 0x4c), salt) mstore(add(ptr, 0x6c), keccak256(ptr, 0x37)) predicted := keccak256(add(ptr, 0x37), 0x55) } } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress(address master, bytes32 salt) internal view returns (address predicted) { return predictDeterministicAddress(master, salt, address(this)); } }
// SPDX-License-Identifier: MIT // solhint-disable-next-line compiler-version pragma solidity >=0.4.24 <0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function _isConstructor() private view returns (bool) { // extcodesize checks the size of the code stored in an address, and // address returns the current address. Since the code is still not // deployed when running a constructor, any checks on its code size will // yield zero, making it an effective way to detect if a contract is // under construction or not. address self = address(this); uint256 cs; // solhint-disable-next-line no-inline-assembly assembly { cs := extcodesize(self) } return cs == 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.7.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.7.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.7.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); } 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); } } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "constantinople", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_koji","type":"address"},{"internalType":"address","name":"_vestingLogic","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"KOJI","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VESTING_LOGIC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blacklist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"devlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getAllVestings","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_length","type":"uint256"}],"name":"getVestings","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getVestingsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vestingCliffDuration","type":"uint256"}],"name":"setVestingCliffDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vestingDuration","type":"uint256"}],"name":"setVestingDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"vest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vestingCliffDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"vestings","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c0604052600060055562ed4e0060065534801561001c57600080fd5b50604051611bca380380611bca8339818101604052604081101561003f57600080fd5b50805160209091015160006100526103f2565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b03821661011157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4b6f6a69564553543a206b6f6a692069732061207a65726f2061646472657373604482015290519081900360640190fd5b6001600160a01b038116610170576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180611ba26028913960400191505060405180910390fd5b6001600160601b0319606092831b8116608052911b1660a0527f3ebfbf16e8501df92fa0274bb4fb8f09ce1d32a44f1b70e4c871c61f0f9d2050805460ff1990811660019081179092557f90cfd4656fec86ac68a706376a51e7f8c0aec63c330f1bf1335c6c7f195b89a780548216831790557f7f336060cff4035a359d15d70fee4baf9cfecdc6db08ec2c49fb3f8364124c3f80548216831790557f8dd8dbffd09b6e363c241531c25edff25a3c6b9e5eeb42c7d24f270dd334c01880548216831790557f7eab643112279e651cb2516120e2362161f2a313adba20abe0a4050064d1d16e80548216831790557fb23371e2c8cdce37c71258aeac197adc3b7f6db0f757e6b28cc80fb144fbe8f880548216831790557fcdf2a77cb1ed72173b34fad8b749fb0d188ceae71b20a909377eca69eafa37168054909116909117905560026020526b2bf1a8054a46d009200000007f50904549fc9c9d2b4c9abb94d5fa3302c0f79463d2752216e503a6a0d310aa028190557f844679a26aaec41d7ffc49e25859d7dd69f2b2555a936538489c66c7c42b97618190557f31ed4c353cc18b3c53999a7ce1f0af9dbe6abc0699942e33592a45687049b0618190557faee6a78da63438f8c16bfcae23dc77f46aa89f8a39b68c8d51acc19b60c5764e8190557ff0eda3fd9e570afac040e057f659ccf3251bdd743ccd5266bfb8ec56139f5558556b1027e72f1f128130880000007f748770a16dec5e041798167fabc344e1234fa17177547084cd27e695c193848e55735156e7ae86c2907232f248269ef33522480ed06b6000526c011c57e4d6efac14efc00000007f5ec40f61203edd059bb9c88a264572bf7338591fd604de985575eefabcbec307556103f6565b3390565b60805160601c60a05160601c61176561043d6000398061047e5280610b3e525080610a5f5280610b755280610c2d5280610db55280610e9f5280610eef52506117656000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c80632797c6c8116100ad5780639b19251a116100715780639b19251a146102e8578063b29223e714610322578063bd84477d1461032a578063f2fde38b14610356578063f9f92be41461037c57610121565b80632797c6c81461029c5780633a95234a146102c8578063715018a6146102d05780638d8f2adb146102d85780638da5cb5b146102e057610121565b80631514617e116100f45780631514617e146101be57806316bf954c146101c65780631df4dca51461024857806324600fc31461026e57806324e588571461027657610121565b806306e574791461012657806308c8d1ca146101455780630928df57146101695780630ffbdcaa146101a1575b600080fd5b6101436004803603602081101561013c57600080fd5b50356103a2565b005b61014d61047c565b604080516001600160a01b039092168252519081900360200190f35b61018f6004803603602081101561017f57600080fd5b50356001600160a01b03166104a0565b60408051918252519081900360200190f35b610143600480360360208110156101b757600080fd5b50356104b2565b61018f61054b565b6101f8600480360360608110156101dc57600080fd5b506001600160a01b038135169060208101359060400135610551565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561023457818101518382015260200161021c565b505050509050019250505060405180910390f35b61018f6004803603602081101561025e57600080fd5b50356001600160a01b0316610672565b610143610691565b6101f86004803603602081101561028c57600080fd5b50356001600160a01b0316610781565b610143600480360360408110156102b257600080fd5b506001600160a01b0381351690602001356107f7565b61018f610cb1565b610143610cb7565b610143610d59565b61014d610ec9565b61030e600480360360208110156102fe57600080fd5b50356001600160a01b0316610ed8565b604080519115158252519081900360200190f35b61014d610eed565b61014d6004803603604081101561034057600080fd5b506001600160a01b038135169060200135610f11565b6101436004803603602081101561036c57600080fd5b50356001600160a01b0316610f49565b61030e6004803603602081101561039257600080fd5b50356001600160a01b0316611041565b6103aa611056565b6000546001600160a01b039081169116146103fa576040805162461bcd60e51b815260206004820181905260248201526000805160206115e4833981519152604482015290519081900360640190fd5b806104365760405162461bcd60e51b81526004018080602001828103825260268152602001806116e06026913960400191505060405180910390fd5b6006548111156104775760405162461bcd60e51b815260040180806020018281038252603d815260200180611586603d913960400191505060405180910390fd5b600555565b7f000000000000000000000000000000000000000000000000000000000000000081565b60026020526000908152604090205481565b6104ba611056565b6000546001600160a01b0390811691161461050a576040805162461bcd60e51b815260206004820181905260248201526000805160206115e4833981519152604482015290519081900360640190fd5b806105465760405162461bcd60e51b81526004018080602001828103825260218152602001806116326021913960400191505060405180910390fd5b600655565b60065481565b6060808267ffffffffffffffff8111801561056b57600080fd5b50604051908082528060200260200182016040528015610595578160200160208202803683370190505b506001600160a01b0386166000908152600160209081526040918290208054835181840281018401909452808452939450606093909183018282801561060457602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116105e6575b509394508893505050505b8481101561066557815181141561062557610665565b81818151811061063157fe5b602002602001015183828151811061064557fe5b6001600160a01b039092166020928302919091019091015260010161060f565b50909150505b9392505050565b6001600160a01b0381166000908152600160205260409020545b919050565b610699611056565b6000546001600160a01b039081169116146106e9576040805162461bcd60e51b815260206004820181905260248201526000805160206115e4833981519152604482015290519081900360640190fd5b30318061073d576040805162461bcd60e51b815260206004820152601e60248201527f4b6f6a69564553543a206e6f2066756e647320746f2077697468647261770000604482015290519081900360640190fd5b610745610ec9565b6001600160a01b03166108fc829081150290604051600060405180830381858888f1935050505015801561077d573d6000803e3d6000fd5b5050565b6001600160a01b0381166000908152600160209081526040918290208054835181840281018401909452808452606093928301828280156107eb57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107cd575b50505050509050919050565b6107ff611056565b6000546001600160a01b0390811691161461084f576040805162461bcd60e51b815260206004820181905260248201526000805160206115e4833981519152604482015290519081900360640190fd5b600181101561088f5760405162461bcd60e51b81526004018080602001828103825260248152602001806116bc6024913960400191505060405180910390fd5b6108a181670de0b6b3a764000061105a565b6001600160a01b03831660009081526004602052604090205490915060ff16156108fc5760405162461bcd60e51b815260040180806020018281038252603c81526020018061154a603c913960400191505060405180910390fd5b6001600160a01b03821660009081526003602052604090205460ff166109b0576b033b2e3c9fd0803ce80000008111156109675760405162461bcd60e51b815260040180806020018281038252602e815260200180611604602e913960400191505060405180910390fd5b62278d0060065411156109ab5760405162461bcd60e51b815260040180806020018281038252602c815260200180611480602c913960400191505060405180910390fd5b610a5b565b6001600160a01b0382166000908152600260205260409020548114610a065760405162461bcd60e51b815260040180806020018281038252602c8152602001806114f8602c913960400191505060405180910390fd5b6276a70060065410158015610a20575062ed4e0060065411155b610a5b5760405162461bcd60e51b81526004018080602001828103825260458152602001806116536045913960600191505060405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610aca57600080fd5b505afa158015610ade573d6000803e3d6000fd5b505050506040513d6020811015610af457600080fd5b5051905080821115610b375760405162461bcd60e51b81526004018080602001828103825260268152602001806114d26026913960400191505060405180910390fd5b6000610b627f00000000000000000000000000000000000000000000000000000000000000006110bc565b9050806001600160a01b03166386489ba97f00000000000000000000000000000000000000000000000000000000000000008686426005546006546040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b031681526020018581526020018481526020018381526020018281526020019650505050505050600060405180830381600087803b158015610c0857600080fd5b505af1158015610c1c573d6000803e3d6000fd5b50610c569250506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690508285611159565b6001600160a01b039384166000818152600160208181526040808420805480850182559085528285200180546001600160a01b031916969099169590951790975591815260049095529320805460ff19169093179092555050565b60055481565b610cbf611056565b6000546001600160a01b03908116911614610d0f576040805162461bcd60e51b815260206004820181905260248201526000805160206115e4833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610d61611056565b6000546001600160a01b03908116911614610db1576040805162461bcd60e51b815260206004820181905260248201526000805160206115e4833981519152604482015290519081900360640190fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610e2057600080fd5b505afa158015610e34573d6000803e3d6000fd5b505050506040513d6020811015610e4a57600080fd5b5051905080610e8a5760405162461bcd60e51b81526004018080602001828103825260248152602001806116986024913960400191505060405180910390fd5b610ec6610e95610ec9565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169083611159565b50565b6000546001600160a01b031690565b60036020526000908152604090205460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60016020528160005260406000208181548110610f2d57600080fd5b6000918252602090912001546001600160a01b03169150829050565b610f51611056565b6000546001600160a01b03908116911614610fa1576040805162461bcd60e51b815260206004820181905260248201526000805160206115e4833981519152604482015290519081900360640190fd5b6001600160a01b038116610fe65760405162461bcd60e51b81526004018080602001828103825260268152602001806114ac6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60046020526000908152604090205460ff1681565b3390565b600082611069575060006110b6565b8282028284828161107657fe5b04146110b35760405162461bcd60e51b81526004018080602001828103825260218152602001806115c36021913960400191505060405180910390fd5b90505b92915050565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528260601b60148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f09150506001600160a01b03811661068c576040805162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526111ab9084906111b0565b505050565b6060611205826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112619092919063ffffffff16565b8051909150156111ab5780806020019051602081101561122457600080fd5b50516111ab5760405162461bcd60e51b815260040180806020018281038252602a815260200180611706602a913960400191505060405180910390fd5b60606112708484600085611278565b949350505050565b606030318311156112ba5760405162461bcd60e51b81526004018080602001828103825260268152602001806115246026913960400191505060405180910390fd5b6112c3856113d5565b611314576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106113535780518252601f199092019160209182019101611334565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146113b5576040519150601f19603f3d011682016040523d82523d6000602084013e6113ba565b606091505b50915091506113ca8282866113db565b979650505050505050565b3b151590565b606083156113ea57508161066b565b8251156113fa5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561144457818101518382015260200161142c565b50505050905090810190601f1680156114715780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe56657374696e67206475726174696f6e20746f6f206c6f6e6720666f722061697264726f702077616c6c65744f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734b6f6a69564553543a206b6f6a692062616c616e636520697320696e73756666696369656e744465766c6973743a20616d6f756e7420697320746f6f206c6172676520666f7220746869732077616c6c6574416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c426c61636b6c6973743a20546869732077616c6c65742068617320616c7265616479206265656e20766573746564206f722061697264726f707065644b6f6a69564553543a2076657374696e67436c6966664475726174696f6e206973206c6f6e676572207468616e2076657374696e674475726174696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657257686974656c6973743a20616d6f756e7420697320746f6f206c6172676520666f7220746869732077616c6c65744b6f6a69564553543a2076657374696e674475726174696f6e206973207a65726f56657374696e67206475726174696f6e20666f72206465762077616c6c6574206e6565647320746f20626520696e2072616e67652028393020746f203138302064617973294b6f6a69564553543a206e6f206b6f6a6920746f6b656e7320746f2077697468647261774b6f6a69564553543a204b4f4a4920616d6f756e74206973206c657373207468616e20314b6f6a69564553543a2076657374696e67436c6966664475726174696f6e206973207a65726f5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220ea7f5a384787dc95afdecef23738461248307cf1bc23f5e1184b437eff1488e164736f6c634300070400334b6f6a69564553543a2076657374696e674c6f6769632069732061207a65726f20616464726573730000000000000000000000001c8266a4369af6d80df2659ba47b3c98f35cb8be0000000000000000000000009f239f41193be15f262e45b0c8ea20975a2bb891
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101215760003560e01c80632797c6c8116100ad5780639b19251a116100715780639b19251a146102e8578063b29223e714610322578063bd84477d1461032a578063f2fde38b14610356578063f9f92be41461037c57610121565b80632797c6c81461029c5780633a95234a146102c8578063715018a6146102d05780638d8f2adb146102d85780638da5cb5b146102e057610121565b80631514617e116100f45780631514617e146101be57806316bf954c146101c65780631df4dca51461024857806324600fc31461026e57806324e588571461027657610121565b806306e574791461012657806308c8d1ca146101455780630928df57146101695780630ffbdcaa146101a1575b600080fd5b6101436004803603602081101561013c57600080fd5b50356103a2565b005b61014d61047c565b604080516001600160a01b039092168252519081900360200190f35b61018f6004803603602081101561017f57600080fd5b50356001600160a01b03166104a0565b60408051918252519081900360200190f35b610143600480360360208110156101b757600080fd5b50356104b2565b61018f61054b565b6101f8600480360360608110156101dc57600080fd5b506001600160a01b038135169060208101359060400135610551565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561023457818101518382015260200161021c565b505050509050019250505060405180910390f35b61018f6004803603602081101561025e57600080fd5b50356001600160a01b0316610672565b610143610691565b6101f86004803603602081101561028c57600080fd5b50356001600160a01b0316610781565b610143600480360360408110156102b257600080fd5b506001600160a01b0381351690602001356107f7565b61018f610cb1565b610143610cb7565b610143610d59565b61014d610ec9565b61030e600480360360208110156102fe57600080fd5b50356001600160a01b0316610ed8565b604080519115158252519081900360200190f35b61014d610eed565b61014d6004803603604081101561034057600080fd5b506001600160a01b038135169060200135610f11565b6101436004803603602081101561036c57600080fd5b50356001600160a01b0316610f49565b61030e6004803603602081101561039257600080fd5b50356001600160a01b0316611041565b6103aa611056565b6000546001600160a01b039081169116146103fa576040805162461bcd60e51b815260206004820181905260248201526000805160206115e4833981519152604482015290519081900360640190fd5b806104365760405162461bcd60e51b81526004018080602001828103825260268152602001806116e06026913960400191505060405180910390fd5b6006548111156104775760405162461bcd60e51b815260040180806020018281038252603d815260200180611586603d913960400191505060405180910390fd5b600555565b7f0000000000000000000000009f239f41193be15f262e45b0c8ea20975a2bb89181565b60026020526000908152604090205481565b6104ba611056565b6000546001600160a01b0390811691161461050a576040805162461bcd60e51b815260206004820181905260248201526000805160206115e4833981519152604482015290519081900360640190fd5b806105465760405162461bcd60e51b81526004018080602001828103825260218152602001806116326021913960400191505060405180910390fd5b600655565b60065481565b6060808267ffffffffffffffff8111801561056b57600080fd5b50604051908082528060200260200182016040528015610595578160200160208202803683370190505b506001600160a01b0386166000908152600160209081526040918290208054835181840281018401909452808452939450606093909183018282801561060457602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116105e6575b509394508893505050505b8481101561066557815181141561062557610665565b81818151811061063157fe5b602002602001015183828151811061064557fe5b6001600160a01b039092166020928302919091019091015260010161060f565b50909150505b9392505050565b6001600160a01b0381166000908152600160205260409020545b919050565b610699611056565b6000546001600160a01b039081169116146106e9576040805162461bcd60e51b815260206004820181905260248201526000805160206115e4833981519152604482015290519081900360640190fd5b30318061073d576040805162461bcd60e51b815260206004820152601e60248201527f4b6f6a69564553543a206e6f2066756e647320746f2077697468647261770000604482015290519081900360640190fd5b610745610ec9565b6001600160a01b03166108fc829081150290604051600060405180830381858888f1935050505015801561077d573d6000803e3d6000fd5b5050565b6001600160a01b0381166000908152600160209081526040918290208054835181840281018401909452808452606093928301828280156107eb57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116107cd575b50505050509050919050565b6107ff611056565b6000546001600160a01b0390811691161461084f576040805162461bcd60e51b815260206004820181905260248201526000805160206115e4833981519152604482015290519081900360640190fd5b600181101561088f5760405162461bcd60e51b81526004018080602001828103825260248152602001806116bc6024913960400191505060405180910390fd5b6108a181670de0b6b3a764000061105a565b6001600160a01b03831660009081526004602052604090205490915060ff16156108fc5760405162461bcd60e51b815260040180806020018281038252603c81526020018061154a603c913960400191505060405180910390fd5b6001600160a01b03821660009081526003602052604090205460ff166109b0576b033b2e3c9fd0803ce80000008111156109675760405162461bcd60e51b815260040180806020018281038252602e815260200180611604602e913960400191505060405180910390fd5b62278d0060065411156109ab5760405162461bcd60e51b815260040180806020018281038252602c815260200180611480602c913960400191505060405180910390fd5b610a5b565b6001600160a01b0382166000908152600260205260409020548114610a065760405162461bcd60e51b815260040180806020018281038252602c8152602001806114f8602c913960400191505060405180910390fd5b6276a70060065410158015610a20575062ed4e0060065411155b610a5b5760405162461bcd60e51b81526004018080602001828103825260458152602001806116536045913960600191505060405180910390fd5b60007f0000000000000000000000001c8266a4369af6d80df2659ba47b3c98f35cb8be6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610aca57600080fd5b505afa158015610ade573d6000803e3d6000fd5b505050506040513d6020811015610af457600080fd5b5051905080821115610b375760405162461bcd60e51b81526004018080602001828103825260268152602001806114d26026913960400191505060405180910390fd5b6000610b627f0000000000000000000000009f239f41193be15f262e45b0c8ea20975a2bb8916110bc565b9050806001600160a01b03166386489ba97f0000000000000000000000001c8266a4369af6d80df2659ba47b3c98f35cb8be8686426005546006546040518763ffffffff1660e01b815260040180876001600160a01b03168152602001866001600160a01b031681526020018581526020018481526020018381526020018281526020019650505050505050600060405180830381600087803b158015610c0857600080fd5b505af1158015610c1c573d6000803e3d6000fd5b50610c569250506001600160a01b037f0000000000000000000000001c8266a4369af6d80df2659ba47b3c98f35cb8be1690508285611159565b6001600160a01b039384166000818152600160208181526040808420805480850182559085528285200180546001600160a01b031916969099169590951790975591815260049095529320805460ff19169093179092555050565b60055481565b610cbf611056565b6000546001600160a01b03908116911614610d0f576040805162461bcd60e51b815260206004820181905260248201526000805160206115e4833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610d61611056565b6000546001600160a01b03908116911614610db1576040805162461bcd60e51b815260206004820181905260248201526000805160206115e4833981519152604482015290519081900360640190fd5b60007f0000000000000000000000001c8266a4369af6d80df2659ba47b3c98f35cb8be6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610e2057600080fd5b505afa158015610e34573d6000803e3d6000fd5b505050506040513d6020811015610e4a57600080fd5b5051905080610e8a5760405162461bcd60e51b81526004018080602001828103825260248152602001806116986024913960400191505060405180910390fd5b610ec6610e95610ec9565b6001600160a01b037f0000000000000000000000001c8266a4369af6d80df2659ba47b3c98f35cb8be169083611159565b50565b6000546001600160a01b031690565b60036020526000908152604090205460ff1681565b7f0000000000000000000000001c8266a4369af6d80df2659ba47b3c98f35cb8be81565b60016020528160005260406000208181548110610f2d57600080fd5b6000918252602090912001546001600160a01b03169150829050565b610f51611056565b6000546001600160a01b03908116911614610fa1576040805162461bcd60e51b815260206004820181905260248201526000805160206115e4833981519152604482015290519081900360640190fd5b6001600160a01b038116610fe65760405162461bcd60e51b81526004018080602001828103825260268152602001806114ac6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60046020526000908152604090205460ff1681565b3390565b600082611069575060006110b6565b8282028284828161107657fe5b04146110b35760405162461bcd60e51b81526004018080602001828103825260218152602001806115c36021913960400191505060405180910390fd5b90505b92915050565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528260601b60148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f09150506001600160a01b03811661068c576040805162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526111ab9084906111b0565b505050565b6060611205826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112619092919063ffffffff16565b8051909150156111ab5780806020019051602081101561122457600080fd5b50516111ab5760405162461bcd60e51b815260040180806020018281038252602a815260200180611706602a913960400191505060405180910390fd5b60606112708484600085611278565b949350505050565b606030318311156112ba5760405162461bcd60e51b81526004018080602001828103825260268152602001806115246026913960400191505060405180910390fd5b6112c3856113d5565b611314576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106113535780518252601f199092019160209182019101611334565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146113b5576040519150601f19603f3d011682016040523d82523d6000602084013e6113ba565b606091505b50915091506113ca8282866113db565b979650505050505050565b3b151590565b606083156113ea57508161066b565b8251156113fa5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561144457818101518382015260200161142c565b50505050905090810190601f1680156114715780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe56657374696e67206475726174696f6e20746f6f206c6f6e6720666f722061697264726f702077616c6c65744f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734b6f6a69564553543a206b6f6a692062616c616e636520697320696e73756666696369656e744465766c6973743a20616d6f756e7420697320746f6f206c6172676520666f7220746869732077616c6c6574416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c426c61636b6c6973743a20546869732077616c6c65742068617320616c7265616479206265656e20766573746564206f722061697264726f707065644b6f6a69564553543a2076657374696e67436c6966664475726174696f6e206973206c6f6e676572207468616e2076657374696e674475726174696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657257686974656c6973743a20616d6f756e7420697320746f6f206c6172676520666f7220746869732077616c6c65744b6f6a69564553543a2076657374696e674475726174696f6e206973207a65726f56657374696e67206475726174696f6e20666f72206465762077616c6c6574206e6565647320746f20626520696e2072616e67652028393020746f203138302064617973294b6f6a69564553543a206e6f206b6f6a6920746f6b656e7320746f2077697468647261774b6f6a69564553543a204b4f4a4920616d6f756e74206973206c657373207468616e20314b6f6a69564553543a2076657374696e67436c6966664475726174696f6e206973207a65726f5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220ea7f5a384787dc95afdecef23738461248307cf1bc23f5e1184b437eff1488e164736f6c63430007040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001c8266a4369af6d80df2659ba47b3c98f35cb8be0000000000000000000000009f239f41193be15f262e45b0c8ea20975a2bb891
-----Decoded View---------------
Arg [0] : _koji (address): 0x1c8266A4369aF6d80Df2659Ba47B3c98f35cB8bE
Arg [1] : _vestingLogic (address): 0x9F239f41193BE15f262e45b0C8EA20975A2bb891
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000001c8266a4369af6d80df2659ba47b3c98f35cb8be
Arg [1] : 0000000000000000000000009f239f41193be15f262e45b0c8ea20975a2bb891
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.