More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 68 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 13129411 | 1231 days ago | IN | 0 ETH | 0.00688414 | ||||
Claim | 12846036 | 1275 days ago | IN | 0 ETH | 0.00109314 | ||||
Claim | 12836506 | 1276 days ago | IN | 0 ETH | 0.00109314 | ||||
Claim | 12833789 | 1277 days ago | IN | 0 ETH | 0.00097648 | ||||
Claim | 12830137 | 1277 days ago | IN | 0 ETH | 0.00122978 | ||||
Claim | 12829968 | 1277 days ago | IN | 0 ETH | 0.00168343 | ||||
Claim | 12827873 | 1278 days ago | IN | 0 ETH | 0.00244863 | ||||
Claim | 12827865 | 1278 days ago | IN | 0 ETH | 0.00322476 | ||||
Claim | 12827445 | 1278 days ago | IN | 0 ETH | 0.0020223 | ||||
Claim | 12827362 | 1278 days ago | IN | 0 ETH | 0.00147573 | ||||
Claim | 12827351 | 1278 days ago | IN | 0 ETH | 0.00169436 | ||||
Claim | 12827202 | 1278 days ago | IN | 0 ETH | 0.00273285 | ||||
Claim | 12827038 | 1278 days ago | IN | 0 ETH | 0.00147573 | ||||
Claim | 12827026 | 1278 days ago | IN | 0 ETH | 0.00147573 | ||||
Claim | 12827024 | 1278 days ago | IN | 0 ETH | 0.00147573 | ||||
Claim | 12827024 | 1278 days ago | IN | 0 ETH | 0.00147573 | ||||
Claim | 12827018 | 1278 days ago | IN | 0 ETH | 0.00158505 | ||||
Claim | 12827003 | 1278 days ago | IN | 0 ETH | 0.0109314 | ||||
Claim | 12827002 | 1278 days ago | IN | 0 ETH | 0.00147573 | ||||
Claim | 12826991 | 1278 days ago | IN | 0 ETH | 0.00273285 | ||||
Claim | 12826983 | 1278 days ago | IN | 0 ETH | 0.00196765 | ||||
Claim | 12826961 | 1278 days ago | IN | 0 ETH | 0.00088211 | ||||
Claim | 12826961 | 1278 days ago | IN | 0 ETH | 0.00168343 | ||||
Claim | 12826941 | 1278 days ago | IN | 0 ETH | 0.00273285 | ||||
Claim | 12826935 | 1278 days ago | IN | 0 ETH | 0.00185833 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
12730629 | 1293 days ago | 32.59089 ETH |
Loading...
Loading
Contract Name:
LockletPrivateSale
Compiler Version
v0.8.3+commit.8d00100c
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// contracts/LockletPrivateSale.sol // SPDX-License-Identifier: No License pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract LockletPrivateSale is Ownable, Pausable { using SafeMath for uint256; ERC20 private _lktToken; mapping(address => uint256) private _investments; uint256 public _raisedEth; uint256 public _soldedLkt; uint256 public _lktPerEth; uint256 public _maxEthPerAddr; bool private _claimable = false; event NewAllowance(uint256 ethCostAmount, uint256 lktPerEth, uint256 lktAllocatedAmount); constructor( address lktTokenAddr, uint256 lktPerEth, uint256 maxEthPerAddr ) { _lktToken = ERC20(lktTokenAddr); _lktPerEth = lktPerEth; _maxEthPerAddr = maxEthPerAddr; _raisedEth = 0; _soldedLkt = 0; _pause(); } // #region Public receive() external payable whenNotPaused { uint256 totalEthInvested = _investments[msg.sender].add(msg.value); require(totalEthInvested <= _maxEthPerAddr, "LockletPrivateSale: You exceed the Ether limit per wallet"); _allocateLkt(msg.value); } function claim() external { require(_claimable == true, "LockletPrivateSale: Claim is not activated"); uint256 lktAmount = getAllowanceByAddr(msg.sender); require(lktAmount > 0, "LockletPrivateSale: Nothing to claim"); require(_lktToken.balanceOf(address(this)) >= lktAmount, "LockletPrivateSale: Not enough LKT available"); _investments[msg.sender] = 0; _lktToken.transfer(msg.sender, lktAmount); } // #endregion // #region Internal function _allocateLkt(uint256 ethAmount) private { uint256 lktAmount = (ethAmount.mul(_lktPerEth)).div(10**18); require(_lktToken.balanceOf(address(this)) >= lktAmount.add(_soldedLkt), "LockletPrivateSale: Not enough LKT available"); _raisedEth += ethAmount; _soldedLkt += lktAmount; _investments[msg.sender] += ethAmount; emit NewAllowance(ethAmount, _lktPerEth, lktAmount); } // #endregion // #region OnlyOwner function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function setLktPerEth(uint256 lktPerEth) public onlyOwner { _lktPerEth = lktPerEth; } function setMaxEthPerAddr(uint256 maxEthPerAddr) public onlyOwner { _maxEthPerAddr = maxEthPerAddr; } function setClaimable(bool value) public onlyOwner { _claimable = value; } function withdrawEth() public onlyOwner { payable(msg.sender).transfer(address(this).balance); } function withdrawLkt() public onlyOwner { _lktToken.transfer(msg.sender, _lktToken.balanceOf(address(this))); } // #endregion // #region Getters function getRaisedEth() public view returns (uint256) { return _raisedEth; } function getSoldedLkt() public view returns (uint256) { return _soldedLkt; } function getLktPerEth() public view returns (uint256) { return _lktPerEth; } function getMaxEthPerAddr() public view returns (uint256) { return _maxEthPerAddr; } function getAllowanceByAddr(address addr) public view returns (uint256) { uint256 totalEthInvested = _investments[addr]; uint256 lktAmount = (totalEthInvested.mul(_lktPerEth)).div(10**18); return lktAmount; } function getClaimable() public view returns (bool) { return _claimable; } // #endregion }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { 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.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor () { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The defaut value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overloaded; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); _balances[sender] = senderBalance - amount; _balances[recipient] += amount; emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); _balances[account] = accountBalance - amount; _totalSupply -= amount; emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { 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.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ 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) { unchecked { 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) { unchecked { 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) { unchecked { // 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) { unchecked { 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) { unchecked { 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) { return a + b; } /** * @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 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) { return a * b; } /** * @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. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { 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) { 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) { unchecked { 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. * * 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). * * 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) { unchecked { 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) { unchecked { require(b > 0, errorMessage); return a % b; } } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"lktTokenAddr","type":"address"},{"internalType":"uint256","name":"lktPerEth","type":"uint256"},{"internalType":"uint256","name":"maxEthPerAddr","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"ethCostAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lktPerEth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lktAllocatedAmount","type":"uint256"}],"name":"NewAllowance","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"_lktPerEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxEthPerAddr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_raisedEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_soldedLkt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getAllowanceByAddr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLktPerEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxEthPerAddr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRaisedEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSoldedLkt","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setClaimable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lktPerEth","type":"uint256"}],"name":"setLktPerEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxEthPerAddr","type":"uint256"}],"name":"setMaxEthPerAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawLkt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526000600760006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b506040516200213b3803806200213b833981810160405281019062000052919062000298565b6000620000646200019460201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35060008060146101000a81548160ff02191690831515021790555082600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160058190555080600681905550600060038190555060006004819055506200018b6200019c60201b60201c565b50505062000411565b600033905090565b620001ac6200025460201b60201c565b15620001ef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001e69062000343565b60405180910390fd5b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200023b6200019460201b60201c565b6040516200024a919062000326565b60405180910390a1565b60008060149054906101000a900460ff16905090565b6000815190506200027b81620003dd565b92915050565b6000815190506200029281620003f7565b92915050565b600080600060608486031215620002ae57600080fd5b6000620002be868287016200026a565b9350506020620002d18682870162000281565b9250506040620002e48682870162000281565b9150509250925092565b620002f98162000376565b82525050565b60006200030e60108362000365565b91506200031b82620003b4565b602082019050919050565b60006020820190506200033d6000830184620002ee565b92915050565b600060208201905081810360008301526200035e81620002ff565b9050919050565b600082825260208201905092915050565b600062000383826200038a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b620003e88162000376565b8114620003f457600080fd5b50565b6200040281620003aa565b81146200040e57600080fd5b50565b611d1a80620004216000396000f3fe6080604052600436106101395760003560e01c80638456cb59116100ab578063ba4ccb7d1161006f578063ba4ccb7d14610478578063c00c3701146104a3578063dd6e0c58146104cc578063de4220de146104f7578063ee28b74414610522578063f2fde38b1461054d5761022d565b80638456cb59146103c95780638da5cb5b146103e0578063a0ef91df1461040b578063a92b004114610422578063adf652de1461044d5761022d565b80633f4ba83a116100fd5780633f4ba83a146103175780634e71d92d1461032e5780635c975abb146103455780635eb15c1d14610370578063645c97761461039b578063715018a6146103b25761022d565b806306f79a5d146102325780631138886d1461026f5780631483cf1e14610298578063378c93ad146102c35780633e64c297146102ec5761022d565b3661022d57610146610576565b15610186576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161017d906117ef565b60405180910390fd5b60006101da34600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461058c90919063ffffffff16565b9050600654811115610221576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102189061180f565b60405180910390fd5b61022a346105a2565b50005b600080fd5b34801561023e57600080fd5b506102596004803603810190610254919061153e565b61079f565b60405161026691906118af565b60405180910390f35b34801561027b57600080fd5b50610296600480360381019061029191906115b9565b610821565b005b3480156102a457600080fd5b506102ad6108a7565b6040516102ba91906118af565b60405180910390f35b3480156102cf57600080fd5b506102ea60048036038101906102e59190611567565b6108ad565b005b3480156102f857600080fd5b50610301610946565b60405161030e91906118af565b60405180910390f35b34801561032357600080fd5b5061032c610950565b005b34801561033a57600080fd5b506103436109d6565b005b34801561035157600080fd5b5061035a610576565b6040516103679190611794565b60405180910390f35b34801561037c57600080fd5b50610385610c61565b60405161039291906118af565b60405180910390f35b3480156103a757600080fd5b506103b0610c67565b005b3480156103be57600080fd5b506103c7610e3f565b005b3480156103d557600080fd5b506103de610f79565b005b3480156103ec57600080fd5b506103f5610fff565b6040516104029190611750565b60405180910390f35b34801561041757600080fd5b50610420611028565b005b34801561042e57600080fd5b506104376110ed565b60405161044491906118af565b60405180910390f35b34801561045957600080fd5b506104626110f7565b60405161046f91906118af565b60405180910390f35b34801561048457600080fd5b5061048d6110fd565b60405161049a91906118af565b60405180910390f35b3480156104af57600080fd5b506104ca60048036038101906104c591906115b9565b611107565b005b3480156104d857600080fd5b506104e161118d565b6040516104ee91906118af565b60405180910390f35b34801561050357600080fd5b5061050c611197565b60405161051991906118af565b60405180910390f35b34801561052e57600080fd5b5061053761119d565b6040516105449190611794565b60405180910390f35b34801561055957600080fd5b50610574600480360381019061056f919061153e565b6111b4565b005b60008060149054906101000a900460ff16905090565b6000818361059a9190611912565b905092915050565b60006105d3670de0b6b3a76400006105c56005548561135d90919063ffffffff16565b61137390919063ffffffff16565b90506105ea6004548261058c90919063ffffffff16565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106459190611750565b60206040518083038186803b15801561065d57600080fd5b505afa158015610671573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069591906115e2565b10156106d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106cd9061186f565b60405180910390fd5b81600360008282546106e89190611912565b9250508190555080600460008282546107019190611912565b9250508190555081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546107579190611912565b925050819055507fdc96c336b6f948c1ecb0dee2fcae9cdccb6b5a014e667df9451066218f3398b58260055483604051610793939291906118ca565b60405180910390a15050565b600080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000610815670de0b6b3a76400006108076005548561135d90919063ffffffff16565b61137390919063ffffffff16565b90508092505050919050565b610829611389565b73ffffffffffffffffffffffffffffffffffffffff16610847610fff565b73ffffffffffffffffffffffffffffffffffffffff161461089d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108949061182f565b60405180910390fd5b8060068190555050565b60065481565b6108b5611389565b73ffffffffffffffffffffffffffffffffffffffff166108d3610fff565b73ffffffffffffffffffffffffffffffffffffffff1614610929576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109209061182f565b60405180910390fd5b80600760006101000a81548160ff02191690831515021790555050565b6000600354905090565b610958611389565b73ffffffffffffffffffffffffffffffffffffffff16610976610fff565b73ffffffffffffffffffffffffffffffffffffffff16146109cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c39061182f565b60405180910390fd5b6109d4611391565b565b60011515600760009054906101000a900460ff16151514610a2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a239061188f565b60405180910390fd5b6000610a373361079f565b905060008111610a7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a739061184f565b60405180910390fd5b80600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610ad89190611750565b60206040518083038186803b158015610af057600080fd5b505afa158015610b04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2891906115e2565b1015610b69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b609061186f565b60405180910390fd5b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610c0b92919061176b565b602060405180830381600087803b158015610c2557600080fd5b505af1158015610c39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5d9190611590565b5050565b60045481565b610c6f611389565b73ffffffffffffffffffffffffffffffffffffffff16610c8d610fff565b73ffffffffffffffffffffffffffffffffffffffff1614610ce3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cda9061182f565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610d7d9190611750565b60206040518083038186803b158015610d9557600080fd5b505afa158015610da9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dcd91906115e2565b6040518363ffffffff1660e01b8152600401610dea92919061176b565b602060405180830381600087803b158015610e0457600080fd5b505af1158015610e18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e3c9190611590565b50565b610e47611389565b73ffffffffffffffffffffffffffffffffffffffff16610e65610fff565b73ffffffffffffffffffffffffffffffffffffffff1614610ebb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb29061182f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b610f81611389565b73ffffffffffffffffffffffffffffffffffffffff16610f9f610fff565b73ffffffffffffffffffffffffffffffffffffffff1614610ff5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fec9061182f565b60405180910390fd5b610ffd611432565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611030611389565b73ffffffffffffffffffffffffffffffffffffffff1661104e610fff565b73ffffffffffffffffffffffffffffffffffffffff16146110a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109b9061182f565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156110ea573d6000803e3d6000fd5b50565b6000600554905090565b60055481565b6000600654905090565b61110f611389565b73ffffffffffffffffffffffffffffffffffffffff1661112d610fff565b73ffffffffffffffffffffffffffffffffffffffff1614611183576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117a9061182f565b60405180910390fd5b8060058190555050565b6000600454905090565b60035481565b6000600760009054906101000a900460ff16905090565b6111bc611389565b73ffffffffffffffffffffffffffffffffffffffff166111da610fff565b73ffffffffffffffffffffffffffffffffffffffff1614611230576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112279061182f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611297906117cf565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000818361136b9190611999565b905092915050565b600081836113819190611968565b905092915050565b600033905090565b611399610576565b6113d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cf906117af565b60405180910390fd5b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61141b611389565b6040516114289190611750565b60405180910390a1565b61143a610576565b1561147a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611471906117ef565b60405180910390fd5b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114be611389565b6040516114cb9190611750565b60405180910390a1565b6000813590506114e481611c9f565b92915050565b6000813590506114f981611cb6565b92915050565b60008151905061150e81611cb6565b92915050565b60008135905061152381611ccd565b92915050565b60008151905061153881611ccd565b92915050565b60006020828403121561155057600080fd5b600061155e848285016114d5565b91505092915050565b60006020828403121561157957600080fd5b6000611587848285016114ea565b91505092915050565b6000602082840312156115a257600080fd5b60006115b0848285016114ff565b91505092915050565b6000602082840312156115cb57600080fd5b60006115d984828501611514565b91505092915050565b6000602082840312156115f457600080fd5b600061160284828501611529565b91505092915050565b611614816119f3565b82525050565b61162381611a05565b82525050565b6000611636601483611901565b915061164182611a99565b602082019050919050565b6000611659602683611901565b915061166482611ac2565b604082019050919050565b600061167c601083611901565b915061168782611b11565b602082019050919050565b600061169f603983611901565b91506116aa82611b3a565b604082019050919050565b60006116c2602083611901565b91506116cd82611b89565b602082019050919050565b60006116e5602483611901565b91506116f082611bb2565b604082019050919050565b6000611708602c83611901565b915061171382611c01565b604082019050919050565b600061172b602a83611901565b915061173682611c50565b604082019050919050565b61174a81611a31565b82525050565b6000602082019050611765600083018461160b565b92915050565b6000604082019050611780600083018561160b565b61178d6020830184611741565b9392505050565b60006020820190506117a9600083018461161a565b92915050565b600060208201905081810360008301526117c881611629565b9050919050565b600060208201905081810360008301526117e88161164c565b9050919050565b600060208201905081810360008301526118088161166f565b9050919050565b6000602082019050818103600083015261182881611692565b9050919050565b60006020820190508181036000830152611848816116b5565b9050919050565b60006020820190508181036000830152611868816116d8565b9050919050565b60006020820190508181036000830152611888816116fb565b9050919050565b600060208201905081810360008301526118a88161171e565b9050919050565b60006020820190506118c46000830184611741565b92915050565b60006060820190506118df6000830186611741565b6118ec6020830185611741565b6118f96040830184611741565b949350505050565b600082825260208201905092915050565b600061191d82611a31565b915061192883611a31565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561195d5761195c611a3b565b5b828201905092915050565b600061197382611a31565b915061197e83611a31565b92508261198e5761198d611a6a565b5b828204905092915050565b60006119a482611a31565b91506119af83611a31565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156119e8576119e7611a3b565b5b828202905092915050565b60006119fe82611a11565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4c6f636b6c65745072697661746553616c653a20596f7520657863656564207460008201527f6865204574686572206c696d6974207065722077616c6c657400000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4c6f636b6c65745072697661746553616c653a204e6f7468696e6720746f206360008201527f6c61696d00000000000000000000000000000000000000000000000000000000602082015250565b7f4c6f636b6c65745072697661746553616c653a204e6f7420656e6f756768204c60008201527f4b5420617661696c61626c650000000000000000000000000000000000000000602082015250565b7f4c6f636b6c65745072697661746553616c653a20436c61696d206973206e6f7460008201527f2061637469766174656400000000000000000000000000000000000000000000602082015250565b611ca8816119f3565b8114611cb357600080fd5b50565b611cbf81611a05565b8114611cca57600080fd5b50565b611cd681611a31565b8114611ce157600080fd5b5056fea2646970667358221220762b8e11595cda80015cf2ec5b498a7740c1ae0ecd282f782d2a0b3a5ba84c2164736f6c63430008030033000000000000000000000000d9b89eee86b15634c70cab51baf85615a4ab91a10000000000000000000000000000000000000000000033a5d872426acd7000000000000000000000000000000000000000000000000000004563918244f40000
Deployed Bytecode
0x6080604052600436106101395760003560e01c80638456cb59116100ab578063ba4ccb7d1161006f578063ba4ccb7d14610478578063c00c3701146104a3578063dd6e0c58146104cc578063de4220de146104f7578063ee28b74414610522578063f2fde38b1461054d5761022d565b80638456cb59146103c95780638da5cb5b146103e0578063a0ef91df1461040b578063a92b004114610422578063adf652de1461044d5761022d565b80633f4ba83a116100fd5780633f4ba83a146103175780634e71d92d1461032e5780635c975abb146103455780635eb15c1d14610370578063645c97761461039b578063715018a6146103b25761022d565b806306f79a5d146102325780631138886d1461026f5780631483cf1e14610298578063378c93ad146102c35780633e64c297146102ec5761022d565b3661022d57610146610576565b15610186576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161017d906117ef565b60405180910390fd5b60006101da34600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461058c90919063ffffffff16565b9050600654811115610221576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102189061180f565b60405180910390fd5b61022a346105a2565b50005b600080fd5b34801561023e57600080fd5b506102596004803603810190610254919061153e565b61079f565b60405161026691906118af565b60405180910390f35b34801561027b57600080fd5b50610296600480360381019061029191906115b9565b610821565b005b3480156102a457600080fd5b506102ad6108a7565b6040516102ba91906118af565b60405180910390f35b3480156102cf57600080fd5b506102ea60048036038101906102e59190611567565b6108ad565b005b3480156102f857600080fd5b50610301610946565b60405161030e91906118af565b60405180910390f35b34801561032357600080fd5b5061032c610950565b005b34801561033a57600080fd5b506103436109d6565b005b34801561035157600080fd5b5061035a610576565b6040516103679190611794565b60405180910390f35b34801561037c57600080fd5b50610385610c61565b60405161039291906118af565b60405180910390f35b3480156103a757600080fd5b506103b0610c67565b005b3480156103be57600080fd5b506103c7610e3f565b005b3480156103d557600080fd5b506103de610f79565b005b3480156103ec57600080fd5b506103f5610fff565b6040516104029190611750565b60405180910390f35b34801561041757600080fd5b50610420611028565b005b34801561042e57600080fd5b506104376110ed565b60405161044491906118af565b60405180910390f35b34801561045957600080fd5b506104626110f7565b60405161046f91906118af565b60405180910390f35b34801561048457600080fd5b5061048d6110fd565b60405161049a91906118af565b60405180910390f35b3480156104af57600080fd5b506104ca60048036038101906104c591906115b9565b611107565b005b3480156104d857600080fd5b506104e161118d565b6040516104ee91906118af565b60405180910390f35b34801561050357600080fd5b5061050c611197565b60405161051991906118af565b60405180910390f35b34801561052e57600080fd5b5061053761119d565b6040516105449190611794565b60405180910390f35b34801561055957600080fd5b50610574600480360381019061056f919061153e565b6111b4565b005b60008060149054906101000a900460ff16905090565b6000818361059a9190611912565b905092915050565b60006105d3670de0b6b3a76400006105c56005548561135d90919063ffffffff16565b61137390919063ffffffff16565b90506105ea6004548261058c90919063ffffffff16565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106459190611750565b60206040518083038186803b15801561065d57600080fd5b505afa158015610671573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069591906115e2565b10156106d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106cd9061186f565b60405180910390fd5b81600360008282546106e89190611912565b9250508190555080600460008282546107019190611912565b9250508190555081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546107579190611912565b925050819055507fdc96c336b6f948c1ecb0dee2fcae9cdccb6b5a014e667df9451066218f3398b58260055483604051610793939291906118ca565b60405180910390a15050565b600080600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000610815670de0b6b3a76400006108076005548561135d90919063ffffffff16565b61137390919063ffffffff16565b90508092505050919050565b610829611389565b73ffffffffffffffffffffffffffffffffffffffff16610847610fff565b73ffffffffffffffffffffffffffffffffffffffff161461089d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108949061182f565b60405180910390fd5b8060068190555050565b60065481565b6108b5611389565b73ffffffffffffffffffffffffffffffffffffffff166108d3610fff565b73ffffffffffffffffffffffffffffffffffffffff1614610929576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109209061182f565b60405180910390fd5b80600760006101000a81548160ff02191690831515021790555050565b6000600354905090565b610958611389565b73ffffffffffffffffffffffffffffffffffffffff16610976610fff565b73ffffffffffffffffffffffffffffffffffffffff16146109cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c39061182f565b60405180910390fd5b6109d4611391565b565b60011515600760009054906101000a900460ff16151514610a2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a239061188f565b60405180910390fd5b6000610a373361079f565b905060008111610a7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a739061184f565b60405180910390fd5b80600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610ad89190611750565b60206040518083038186803b158015610af057600080fd5b505afa158015610b04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2891906115e2565b1015610b69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b609061186f565b60405180910390fd5b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610c0b92919061176b565b602060405180830381600087803b158015610c2557600080fd5b505af1158015610c39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5d9190611590565b5050565b60045481565b610c6f611389565b73ffffffffffffffffffffffffffffffffffffffff16610c8d610fff565b73ffffffffffffffffffffffffffffffffffffffff1614610ce3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cda9061182f565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610d7d9190611750565b60206040518083038186803b158015610d9557600080fd5b505afa158015610da9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dcd91906115e2565b6040518363ffffffff1660e01b8152600401610dea92919061176b565b602060405180830381600087803b158015610e0457600080fd5b505af1158015610e18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e3c9190611590565b50565b610e47611389565b73ffffffffffffffffffffffffffffffffffffffff16610e65610fff565b73ffffffffffffffffffffffffffffffffffffffff1614610ebb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb29061182f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b610f81611389565b73ffffffffffffffffffffffffffffffffffffffff16610f9f610fff565b73ffffffffffffffffffffffffffffffffffffffff1614610ff5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fec9061182f565b60405180910390fd5b610ffd611432565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611030611389565b73ffffffffffffffffffffffffffffffffffffffff1661104e610fff565b73ffffffffffffffffffffffffffffffffffffffff16146110a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109b9061182f565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156110ea573d6000803e3d6000fd5b50565b6000600554905090565b60055481565b6000600654905090565b61110f611389565b73ffffffffffffffffffffffffffffffffffffffff1661112d610fff565b73ffffffffffffffffffffffffffffffffffffffff1614611183576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117a9061182f565b60405180910390fd5b8060058190555050565b6000600454905090565b60035481565b6000600760009054906101000a900460ff16905090565b6111bc611389565b73ffffffffffffffffffffffffffffffffffffffff166111da610fff565b73ffffffffffffffffffffffffffffffffffffffff1614611230576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112279061182f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611297906117cf565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000818361136b9190611999565b905092915050565b600081836113819190611968565b905092915050565b600033905090565b611399610576565b6113d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cf906117af565b60405180910390fd5b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61141b611389565b6040516114289190611750565b60405180910390a1565b61143a610576565b1561147a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611471906117ef565b60405180910390fd5b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114be611389565b6040516114cb9190611750565b60405180910390a1565b6000813590506114e481611c9f565b92915050565b6000813590506114f981611cb6565b92915050565b60008151905061150e81611cb6565b92915050565b60008135905061152381611ccd565b92915050565b60008151905061153881611ccd565b92915050565b60006020828403121561155057600080fd5b600061155e848285016114d5565b91505092915050565b60006020828403121561157957600080fd5b6000611587848285016114ea565b91505092915050565b6000602082840312156115a257600080fd5b60006115b0848285016114ff565b91505092915050565b6000602082840312156115cb57600080fd5b60006115d984828501611514565b91505092915050565b6000602082840312156115f457600080fd5b600061160284828501611529565b91505092915050565b611614816119f3565b82525050565b61162381611a05565b82525050565b6000611636601483611901565b915061164182611a99565b602082019050919050565b6000611659602683611901565b915061166482611ac2565b604082019050919050565b600061167c601083611901565b915061168782611b11565b602082019050919050565b600061169f603983611901565b91506116aa82611b3a565b604082019050919050565b60006116c2602083611901565b91506116cd82611b89565b602082019050919050565b60006116e5602483611901565b91506116f082611bb2565b604082019050919050565b6000611708602c83611901565b915061171382611c01565b604082019050919050565b600061172b602a83611901565b915061173682611c50565b604082019050919050565b61174a81611a31565b82525050565b6000602082019050611765600083018461160b565b92915050565b6000604082019050611780600083018561160b565b61178d6020830184611741565b9392505050565b60006020820190506117a9600083018461161a565b92915050565b600060208201905081810360008301526117c881611629565b9050919050565b600060208201905081810360008301526117e88161164c565b9050919050565b600060208201905081810360008301526118088161166f565b9050919050565b6000602082019050818103600083015261182881611692565b9050919050565b60006020820190508181036000830152611848816116b5565b9050919050565b60006020820190508181036000830152611868816116d8565b9050919050565b60006020820190508181036000830152611888816116fb565b9050919050565b600060208201905081810360008301526118a88161171e565b9050919050565b60006020820190506118c46000830184611741565b92915050565b60006060820190506118df6000830186611741565b6118ec6020830185611741565b6118f96040830184611741565b949350505050565b600082825260208201905092915050565b600061191d82611a31565b915061192883611a31565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561195d5761195c611a3b565b5b828201905092915050565b600061197382611a31565b915061197e83611a31565b92508261198e5761198d611a6a565b5b828204905092915050565b60006119a482611a31565b91506119af83611a31565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156119e8576119e7611a3b565b5b828202905092915050565b60006119fe82611a11565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4c6f636b6c65745072697661746553616c653a20596f7520657863656564207460008201527f6865204574686572206c696d6974207065722077616c6c657400000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4c6f636b6c65745072697661746553616c653a204e6f7468696e6720746f206360008201527f6c61696d00000000000000000000000000000000000000000000000000000000602082015250565b7f4c6f636b6c65745072697661746553616c653a204e6f7420656e6f756768204c60008201527f4b5420617661696c61626c650000000000000000000000000000000000000000602082015250565b7f4c6f636b6c65745072697661746553616c653a20436c61696d206973206e6f7460008201527f2061637469766174656400000000000000000000000000000000000000000000602082015250565b611ca8816119f3565b8114611cb357600080fd5b50565b611cbf81611a05565b8114611cca57600080fd5b50565b611cd681611a31565b8114611ce157600080fd5b5056fea2646970667358221220762b8e11595cda80015cf2ec5b498a7740c1ae0ecd282f782d2a0b3a5ba84c2164736f6c63430008030033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d9b89eee86b15634c70cab51baf85615a4ab91a10000000000000000000000000000000000000000000033a5d872426acd7000000000000000000000000000000000000000000000000000004563918244f40000
-----Decoded View---------------
Arg [0] : lktTokenAddr (address): 0xd9b89EEe86B15634c70CaB51BAF85615A4AB91a1
Arg [1] : lktPerEth (uint256): 243900000000000000000000
Arg [2] : maxEthPerAddr (uint256): 5000000000000000000
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000d9b89eee86b15634c70cab51baf85615a4ab91a1
Arg [1] : 0000000000000000000000000000000000000000000033a5d872426acd700000
Arg [2] : 0000000000000000000000000000000000000000000000004563918244f40000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.