More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 698 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Get Reward | 18441246 | 274 days ago | IN | 0 ETH | 0.00163356 | ||||
Get Reward | 18425320 | 276 days ago | IN | 0 ETH | 0.00157563 | ||||
Get Reward | 18358530 | 286 days ago | IN | 0 ETH | 0.00040984 | ||||
Get Reward | 18355165 | 286 days ago | IN | 0 ETH | 0.00043851 | ||||
Get Reward | 18355164 | 286 days ago | IN | 0 ETH | 0.00045372 | ||||
Get Reward | 18355086 | 286 days ago | IN | 0 ETH | 0.00046642 | ||||
Get Reward | 18355083 | 286 days ago | IN | 0 ETH | 0.0005796 | ||||
Get Reward | 18352108 | 286 days ago | IN | 0 ETH | 0.00063088 | ||||
Get Reward | 18347891 | 287 days ago | IN | 0 ETH | 0.00060461 | ||||
Get Reward | 18347883 | 287 days ago | IN | 0 ETH | 0.00056416 | ||||
Get Reward | 18297692 | 294 days ago | IN | 0 ETH | 0.0004484 | ||||
Get Reward | 18297601 | 294 days ago | IN | 0 ETH | 0.00046043 | ||||
Get Reward | 18297584 | 294 days ago | IN | 0 ETH | 0.00068577 | ||||
Get Reward | 18289322 | 295 days ago | IN | 0 ETH | 0.00085624 | ||||
Get Reward | 18284646 | 296 days ago | IN | 0 ETH | 0.00121455 | ||||
Get Reward | 18281382 | 296 days ago | IN | 0 ETH | 0.00087583 | ||||
Get Reward | 18268631 | 298 days ago | IN | 0 ETH | 0.00080258 | ||||
Get Reward | 18218222 | 305 days ago | IN | 0 ETH | 0.00084117 | ||||
Get Reward | 18188742 | 309 days ago | IN | 0 ETH | 0.00084799 | ||||
Get Reward | 18188732 | 309 days ago | IN | 0 ETH | 0.00123847 | ||||
Get Reward | 18188670 | 309 days ago | IN | 0 ETH | 0.00108071 | ||||
Get Reward | 18188654 | 309 days ago | IN | 0 ETH | 0.0010113 | ||||
Get Reward | 18188648 | 309 days ago | IN | 0 ETH | 0.00100123 | ||||
Get Reward | 18188640 | 309 days ago | IN | 0 ETH | 0.00100671 | ||||
Get Reward | 18188636 | 309 days ago | IN | 0 ETH | 0.00101752 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
17828338 | 360 days ago | 0.09 ETH | ||||
17818597 | 361 days ago | 0.09 ETH | ||||
17809977 | 362 days ago | 0.09 ETH | ||||
17789919 | 365 days ago | 0.09 ETH | ||||
17777858 | 367 days ago | 0.09 ETH | ||||
17774367 | 367 days ago | 0.09 ETH | ||||
17774251 | 367 days ago | 0.09 ETH | ||||
17771169 | 368 days ago | 0.09 ETH | ||||
17768832 | 368 days ago | 0.09 ETH | ||||
17768783 | 368 days ago | 0.09 ETH | ||||
17768776 | 368 days ago | 0.09 ETH | ||||
17765408 | 369 days ago | 0.09 ETH | ||||
17761247 | 369 days ago | 0.09 ETH | ||||
17760843 | 369 days ago | 0.09 ETH | ||||
17759496 | 369 days ago | 0.09 ETH | ||||
17757331 | 370 days ago | 0.09 ETH | ||||
17757209 | 370 days ago | 0.09 ETH | ||||
17755252 | 370 days ago | 0.1 ETH | ||||
17755251 | 370 days ago | 0.1 ETH | ||||
17755249 | 370 days ago | 0.1 ETH | ||||
17755246 | 370 days ago | 0.1 ETH | ||||
17755231 | 370 days ago | 0.1 ETH | ||||
17755227 | 370 days ago | 0.1 ETH | ||||
17755224 | 370 days ago | 0.1 ETH | ||||
17755214 | 370 days ago | 0.1 ETH |
Loading...
Loading
Contract Name:
Mint
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/utils/math/Math.sol'; import '@openzeppelin/contracts/utils/math/SafeMath.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; contract Mint is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; struct Invite { address addr; uint256 datetime; } address public rewardToken; uint256 public price; address public dev; uint256 private _totalSupply; mapping(address => uint256) private _balances; uint256 immutable public duration = 25920000; // 300 day uint256 immutable public percent = 200; uint256 public totalAccumulatedReward = 0; uint256 public starttime; uint256 public periodFinish = 0; uint256 public rewardRate = 0; uint256 public lastUpdateTime; uint256 public rewardPerTokenStored; uint256 public totalCirculation; mapping(address => uint256) public userRewardPerTokenPaid; mapping(address => uint256) public rewards; mapping(address => uint256) public receiveReward; mapping(address => uint256) public deposits; mapping(address => uint256) public lastStakeTime; mapping(address => Invite[]) public inviterAddress; mapping(address => uint256) public inviterSize; mapping(address => address) public inviter; event RewardAdded(uint256 reward); event Staked(address indexed user, uint256 amount); event Withdrawn(address indexed user, uint256 amount); event RewardPaid(address indexed user, uint256 reward); event DevFundRewardPaid(address indexed user, uint256 reward); modifier checkStart() { require(block.timestamp >= starttime, 'not start'); _; } modifier updateReward(address account) { // rewardPerTokenStored = rewardPerToken(); lastUpdateTime = lastTimeRewardApplicable(); if (account != address(0)) { rewards[account] = earned(account); userRewardPerTokenPaid[account] = rewardPerTokenStored; } _; } constructor( uint256 _price, address _owner, address _rewardToken, uint256 _starttime ) { price = _price; dev = _owner; rewardToken = _rewardToken; starttime = _starttime; } function totalSupply() public view returns (uint256) { return _totalSupply; } function balanceOf(address account) public view returns (uint256) { return _balances[account]; } function lastTimeRewardApplicable() public view returns (uint256) { return Math.min(block.timestamp, periodFinish); } function rewardPerToken() public view returns (uint256) { if (totalSupply() == 0) { return rewardPerTokenStored; } return rewardPerTokenStored.add( lastTimeRewardApplicable() .sub(lastUpdateTime) .mul(rewardRate) .mul(1e18) .div(totalSupply()) ); } function earned(address account) public view returns (uint256) { return balanceOf(account) .mul(rewardPerToken().sub(userRewardPerTokenPaid[account])) .div(1e18) .add(rewards[account]); } function stake(address from) public payable updateReward(msg.sender) checkStart { require(msg.sender == tx.origin, "Only external accounts can call this function"); require(!isContract(msg.sender), "Only external accounts can call this function"); require(balanceOf(msg.sender) <= 0, "repeat start"); require(msg.value >= price, "insufficient funds"); // Inviter bool shouldSetInviter = balanceOf(msg.sender) == 0 && inviter[msg.sender] == address(0) && from != address(0) && msg.sender != from; if (shouldSetInviter) { inviter[msg.sender] = from; Invite memory invite = Invite(msg.sender,block.timestamp); inviterAddress[from].push(invite); inviterSize[from] = inviterAddress[from].length; } uint256 amount = 1e18; uint256 newDeposit = deposits[msg.sender].add(amount); deposits[msg.sender] = newDeposit; _totalSupply = _totalSupply.add(amount); _balances[msg.sender] = _balances[msg.sender].add(amount); lastStakeTime[msg.sender] = block.timestamp; emit Staked(msg.sender, amount); payable(dev).transfer(msg.value); } function getReward() public updateReward(msg.sender) checkStart { uint256 reward = earned(msg.sender); if (reward > 0) { rewards[msg.sender] = 0; uint256 devPaid = reward.mul(percent).div(1000); address inviterAdd = inviter[msg.sender]; // If there is no inviter, it will be destroyed if(inviterAdd == address(0)){ inviterAdd = 0x000000000000000000000000000000000000dEaD; } if(devPaid > 0){ receiveReward[inviterAdd] = receiveReward[inviterAdd].add(devPaid); IERC20(rewardToken).safeTransfer(inviterAdd, devPaid); emit DevFundRewardPaid(inviterAdd, devPaid); } IERC20(rewardToken).safeTransfer(msg.sender, reward); emit RewardPaid(msg.sender, reward); totalCirculation += (devPaid + reward); } } function setConfig(address _fund, uint256 _price) external { require(dev == _msgSender(), "error"); dev = _fund; price = _price; } function notifyRewardAmount(uint256 reward) external onlyOwner updateReward(address(0)) { if (block.timestamp > starttime){ if (block.timestamp >= periodFinish) { uint256 period = block.timestamp.sub(starttime).div(duration).add(1); periodFinish = starttime.add(period.mul(duration)); rewardRate = reward.div(periodFinish.sub(block.timestamp)); } else { uint256 remaining = periodFinish.sub(block.timestamp); uint256 leftover = remaining.mul(rewardRate); rewardRate = reward.add(leftover).div(remaining); } lastUpdateTime = block.timestamp; emit RewardAdded(reward); }else { rewardRate = reward.div(duration); periodFinish = starttime.add(duration); lastUpdateTime = starttime; emit RewardAdded(reward); } totalAccumulatedReward = totalAccumulatedReward.add(reward); _checkRewardRate(); } function _checkRewardRate() internal view returns (uint256) { return duration.mul(rewardRate).mul(1e18); } function isContract(address addr) internal view returns (bool) { uint32 size; assembly { size := extcodesize(addr) } return (size > 0); } function getLastInvites(address _address, uint256 count) public view returns (Invite[] memory) { Invite[] memory invites = inviterAddress[_address]; uint256 length = invites.length; if (count > length) { count = length; } Invite[] memory lastInvites = new Invite[](count); for (uint256 i = length - count; i < length; i++) { lastInvites[i - (length - count)] = invites[i]; } return lastInvites; } function withdraw() onlyOwner external { payable(msg.sender).transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) 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 generally not needed starting with Solidity 0.8, since 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. 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; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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 // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; 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"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_starttime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"DevFundRewardPaid","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":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"deposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dev","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"getLastInvites","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"datetime","type":"uint256"}],"internalType":"struct Mint.Invite[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"inviter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"inviterAddress","outputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"datetime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"inviterSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastStakeTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"percent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"receiveReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_fund","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"stake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"starttime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAccumulatedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCirculation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c060405263018b820060805260c860a0526000600681905560088190556009553480156200002d57600080fd5b5060405162001aad38038062001aad833981016040819052620000509162000103565b6200005b3362000096565b600293909355600380546001600160a01b039384166001600160a01b031991821617909155600180549290931691161790556007556200014c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620000fe57600080fd5b919050565b600080600080608085870312156200011a57600080fd5b845193506200012c60208601620000e6565b92506200013c60408601620000e6565b6060959095015193969295505050565b60805160a0516119116200019c600039600081816103e40152610e3b0152600081816102ad01528181610b5a01528181610b9901528181610c6a01528181610c9a01526112ea01526119116000f3fe6080604052600436106101f75760003560e01c806380faa57d1161010d578063c6195d36116100a0578063ebe2b12b1161006f578063ebe2b12b146105d9578063ee8f0b7a146105ef578063f2fde38b14610625578063f7c618c114610645578063fc7e286d1461066557600080fd5b8063c6195d3614610578578063c8f33c9114610598578063cd3daf9d146105ae578063df136d65146105c357600080fd5b80638da5cb5b116100dc5780638da5cb5b146104e357806391cca3db14610515578063a035b1fe14610535578063be8f6c8a1461054b57600080fd5b806380faa57d1461045e57806387239d82146104735780638b876347146104a05780638da58897146104cd57600080fd5b80633c6b16ab1161019057806370a082311161015f57806370a082311461039c57806370ba1113146103d2578063715018a6146104065780637b0a47ee1461041b5780637bb1ca191461043157600080fd5b80633c6b16ab1461033c5780633ccfd60b1461035c5780633d18b912146103715780635dcf8d2b1461038657600080fd5b806318160ddd116101cc57806318160ddd146102cf578063207e821d146102e457806326476204146102fa5780632a7548e91461030f57600080fd5b80628cc262146101fc578062c399161461022f5780630700037d1461026e5780630fb5a6b41461029b575b600080fd5b34801561020857600080fd5b5061021c610217366004611635565b610692565b6040519081526020015b60405180910390f35b34801561023b57600080fd5b5061024f61024a366004611650565b610711565b604080516001600160a01b039093168352602083019190915201610226565b34801561027a57600080fd5b5061021c610289366004611635565b600e6020526000908152604090205481565b3480156102a757600080fd5b5061021c7f000000000000000000000000000000000000000000000000000000000000000081565b3480156102db57600080fd5b5060045461021c565b3480156102f057600080fd5b5061021c60065481565b61030d610308366004611635565b610757565b005b34801561031b57600080fd5b5061021c61032a366004611635565b600f6020526000908152604090205481565b34801561034857600080fd5b5061030d61035736600461169c565b610ab5565b34801561036857600080fd5b5061030d610d18565b34801561037d57600080fd5b5061030d610d71565b34801561039257600080fd5b5061021c600c5481565b3480156103a857600080fd5b5061021c6103b7366004611635565b6001600160a01b031660009081526005602052604090205490565b3480156103de57600080fd5b5061021c7f000000000000000000000000000000000000000000000000000000000000000081565b34801561041257600080fd5b5061030d610f91565b34801561042757600080fd5b5061021c60095481565b34801561043d57600080fd5b5061021c61044c366004611635565b60116020526000908152604090205481565b34801561046a57600080fd5b5061021c610fc7565b34801561047f57600080fd5b5061049361048e366004611650565b610fda565b60405161022691906116d1565b3480156104ac57600080fd5b5061021c6104bb366004611635565b600d6020526000908152604090205481565b3480156104d957600080fd5b5061021c60075481565b3480156104ef57600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610226565b34801561052157600080fd5b506003546104fd906001600160a01b031681565b34801561054157600080fd5b5061021c60025481565b34801561055757600080fd5b5061021c610566366004611635565b60136020526000908152604090205481565b34801561058457600080fd5b5061030d610593366004611650565b61114f565b3480156105a457600080fd5b5061021c600a5481565b3480156105ba57600080fd5b5061021c6111b7565b3480156105cf57600080fd5b5061021c600b5481565b3480156105e557600080fd5b5061021c60085481565b3480156105fb57600080fd5b506104fd61060a366004611635565b6014602052600090815260409020546001600160a01b031681565b34801561063157600080fd5b5061030d610640366004611635565b611205565b34801561065157600080fd5b506001546104fd906001600160a01b031681565b34801561067157600080fd5b5061021c610680366004611635565b60106020526000908152604090205481565b6001600160a01b0381166000908152600e6020908152604080832054600d90925282205461070b919061070590670de0b6b3a7640000906106ff906106df906106d96111b7565b9061129d565b6001600160a01b0388166000908152600560205260409020545b906112b0565b906112bc565b906112c8565b92915050565b6012602052816000526040600020818154811061072d57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b039091169250905082565b336107606111b7565b600b5561076b610fc7565b600a556001600160a01b038116156107b25761078681610692565b6001600160a01b0382166000908152600e6020908152604080832093909355600b54600d909152919020555b6007544210156107f55760405162461bcd60e51b81526020600482015260096024820152681b9bdd081cdd185c9d60ba1b60448201526064015b60405180910390fd5b3332146108145760405162461bcd60e51b81526004016107ec90611791565b333b63ffffffff16156108395760405162461bcd60e51b81526004016107ec90611791565b33600090815260056020526040902054156108855760405162461bcd60e51b815260206004820152600c60248201526b1c995c19585d081cdd185c9d60a21b60448201526064016107ec565b6002543410156108cc5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b60448201526064016107ec565b336000908152600560205260408120541580156108ff5750336000908152601460205260409020546001600160a01b0316155b801561091357506001600160a01b03831615155b80156109285750336001600160a01b03841614155b905080156109b75733600081815260146020908152604080832080546001600160a01b03808a166001600160a01b03199283168117909355835180850185529687524287860190815283875260128652848720805460018181018355828a52888a209a516002909202909a01805491909416941693909317825551960195909555835292546013909152919020555b33600090815260106020526040812054670de0b6b3a764000091906109dc90836112c8565b3360009081526010602052604090208190556004549091506109fe90836112c8565b60045533600090815260056020526040902054610a1b90836112c8565b336000818152600560209081526040808320949094556011905282902042905590517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90610a6c9085815260200190565b60405180910390a26003546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610aad573d6000803e3d6000fd5b505050505050565b6000546001600160a01b03163314610adf5760405162461bcd60e51b81526004016107ec9061175c565b6000610ae96111b7565b600b55610af4610fc7565b600a556001600160a01b03811615610b3b57610b0f81610692565b6001600160a01b0382166000908152600e6020908152604080832093909355600b54600d909152919020555b600754421115610c64576008544210610be9576000610b8e60016107057f00000000000000000000000000000000000000000000000000000000000000006106ff6007544261129d90919063ffffffff16565b9050610bc6610bbd827f00000000000000000000000000000000000000000000000000000000000000006112b0565b600754906112c8565b6008819055610be090610bd9904261129d565b84906112bc565b60095550610c28565b600854600090610bf9904261129d565b90506000610c12600954836112b090919063ffffffff16565b9050610c22826106ff86846112c8565b60095550505b42600a556040518281527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1610cfb565b610c8e827f00000000000000000000000000000000000000000000000000000000000000006112bc565b600955600754610cbe907f00000000000000000000000000000000000000000000000000000000000000006112c8565b600855600754600a556040518281527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a15b600654610d0890836112c8565b600655610d136112d4565b505050565b6000546001600160a01b03163314610d425760405162461bcd60e51b81526004016107ec9061175c565b60405133904780156108fc02916000818181858888f19350505050158015610d6e573d6000803e3d6000fd5b50565b33610d7a6111b7565b600b55610d85610fc7565b600a556001600160a01b03811615610dcc57610da081610692565b6001600160a01b0382166000908152600e6020908152604080832093909355600b54600d909152919020555b600754421015610e0a5760405162461bcd60e51b81526020600482015260096024820152681b9bdd081cdd185c9d60ba1b60448201526064016107ec565b6000610e1533610692565b90508015610f8d57336000908152600e60205260408120819055610e5f6103e86106ff847f00000000000000000000000000000000000000000000000000000000000000006112b0565b336000908152601460205260409020549091506001600160a01b031680610e85575061dead5b8115610f1e576001600160a01b0381166000908152600f6020526040902054610eae90836112c8565b6001600160a01b038083166000908152600f6020526040902091909155600154610eda91168284611317565b806001600160a01b03167f061c98e59f9b33c71a9fa7acefcba88c95a4d7e3323f55d60e93ecd8664df89b83604051610f1591815260200190565b60405180910390a25b600154610f35906001600160a01b03163385611317565b60405183815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a2610f7483836117de565b600c6000828254610f8591906117de565b909155505050505b5050565b6000546001600160a01b03163314610fbb5760405162461bcd60e51b81526004016107ec9061175c565b610fc56000611369565b565b6000610fd5426008546113b9565b905090565b6001600160a01b0382166000908152601260209081526040808320805482518185028101850190935280835260609493849084015b82821015611057576000848152602090819020604080518082019091526002850290910180546001600160a01b0316825260019081015482840152908352909201910161100f565b5050825192935050508084111561106c578093505b60008467ffffffffffffffff811115611087576110876118c5565b6040519080825280602002602001820160405280156110cc57816020015b60408051808201909152600080825260208201528152602001906001900390816110a55790505b50905060006110db8684611837565b90505b82811015611145578381815181106110f8576110f86118af565b602002602001015182878561110d9190611837565b6111179084611837565b81518110611127576111276118af565b6020026020010181905250808061113d9061187e565b9150506110de565b5095945050505050565b6003546001600160a01b031633146111915760405162461bcd60e51b815260206004820152600560248201526432b93937b960d91b60448201526064016107ec565b600380546001600160a01b0319166001600160a01b039390931692909217909155600255565b60006111c260045490565b6111cd5750600b5490565b610fd56111fc6111dc60045490565b6106ff670de0b6b3a76400006106f96009546106f9600a546106d9610fc7565b600b54906112c8565b6000546001600160a01b0316331461122f5760405162461bcd60e51b81526004016107ec9061175c565b6001600160a01b0381166112945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ec565b610d6e81611369565b60006112a98284611837565b9392505050565b60006112a98284611818565b60006112a982846117f6565b60006112a982846117de565b6000610fd5670de0b6b3a76400006106f96009547f00000000000000000000000000000000000000000000000000000000000000006112b090919063ffffffff16565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d139084906113cf565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008183106113c857816112a9565b5090919050565b6000611424826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114a19092919063ffffffff16565b805190915015610d135780806020019051810190611442919061167a565b610d135760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016107ec565b60606114b084846000856114b8565b949350505050565b6060824710156115195760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016107ec565b843b6115675760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016107ec565b600080866001600160a01b0316858760405161158391906116b5565b60006040518083038185875af1925050503d80600081146115c0576040519150601f19603f3d011682016040523d82523d6000602084013e6115c5565b606091505b50915091506115d58282866115e0565b979650505050505050565b606083156115ef5750816112a9565b8251156115ff5782518084602001fd5b8160405162461bcd60e51b81526004016107ec9190611729565b80356001600160a01b038116811461163057600080fd5b919050565b60006020828403121561164757600080fd5b6112a982611619565b6000806040838503121561166357600080fd5b61166c83611619565b946020939093013593505050565b60006020828403121561168c57600080fd5b815180151581146112a957600080fd5b6000602082840312156116ae57600080fd5b5035919050565b600082516116c781846020870161184e565b9190910192915050565b602080825282518282018190526000919060409081850190868401855b8281101561171c57815180516001600160a01b031685528601518685015292840192908501906001016116ee565b5091979650505050505050565b602081526000825180602084015261174881604085016020870161184e565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602d908201527f4f6e6c792065787465726e616c206163636f756e74732063616e2063616c6c2060408201526c3a3434b990333ab731ba34b7b760991b606082015260800190565b600082198211156117f1576117f1611899565b500190565b60008261181357634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561183257611832611899565b500290565b60008282101561184957611849611899565b500390565b60005b83811015611869578181015183820152602001611851565b83811115611878576000848401525b50505050565b600060001982141561189257611892611899565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220422c9efe270431257fee21e9544d00983260b2d4cf5c516595fab7a3ae7c9f9964736f6c63430008070033000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000a92737e3940cb9d26f4fc4673c62773a40f5a23300000000000000000000000077f8c74b090c4f64baf767bca5c4218a77c93b7a0000000000000000000000000000000000000000000000000000000064a771a0
Deployed Bytecode
0x6080604052600436106101f75760003560e01c806380faa57d1161010d578063c6195d36116100a0578063ebe2b12b1161006f578063ebe2b12b146105d9578063ee8f0b7a146105ef578063f2fde38b14610625578063f7c618c114610645578063fc7e286d1461066557600080fd5b8063c6195d3614610578578063c8f33c9114610598578063cd3daf9d146105ae578063df136d65146105c357600080fd5b80638da5cb5b116100dc5780638da5cb5b146104e357806391cca3db14610515578063a035b1fe14610535578063be8f6c8a1461054b57600080fd5b806380faa57d1461045e57806387239d82146104735780638b876347146104a05780638da58897146104cd57600080fd5b80633c6b16ab1161019057806370a082311161015f57806370a082311461039c57806370ba1113146103d2578063715018a6146104065780637b0a47ee1461041b5780637bb1ca191461043157600080fd5b80633c6b16ab1461033c5780633ccfd60b1461035c5780633d18b912146103715780635dcf8d2b1461038657600080fd5b806318160ddd116101cc57806318160ddd146102cf578063207e821d146102e457806326476204146102fa5780632a7548e91461030f57600080fd5b80628cc262146101fc578062c399161461022f5780630700037d1461026e5780630fb5a6b41461029b575b600080fd5b34801561020857600080fd5b5061021c610217366004611635565b610692565b6040519081526020015b60405180910390f35b34801561023b57600080fd5b5061024f61024a366004611650565b610711565b604080516001600160a01b039093168352602083019190915201610226565b34801561027a57600080fd5b5061021c610289366004611635565b600e6020526000908152604090205481565b3480156102a757600080fd5b5061021c7f00000000000000000000000000000000000000000000000000000000018b820081565b3480156102db57600080fd5b5060045461021c565b3480156102f057600080fd5b5061021c60065481565b61030d610308366004611635565b610757565b005b34801561031b57600080fd5b5061021c61032a366004611635565b600f6020526000908152604090205481565b34801561034857600080fd5b5061030d61035736600461169c565b610ab5565b34801561036857600080fd5b5061030d610d18565b34801561037d57600080fd5b5061030d610d71565b34801561039257600080fd5b5061021c600c5481565b3480156103a857600080fd5b5061021c6103b7366004611635565b6001600160a01b031660009081526005602052604090205490565b3480156103de57600080fd5b5061021c7f00000000000000000000000000000000000000000000000000000000000000c881565b34801561041257600080fd5b5061030d610f91565b34801561042757600080fd5b5061021c60095481565b34801561043d57600080fd5b5061021c61044c366004611635565b60116020526000908152604090205481565b34801561046a57600080fd5b5061021c610fc7565b34801561047f57600080fd5b5061049361048e366004611650565b610fda565b60405161022691906116d1565b3480156104ac57600080fd5b5061021c6104bb366004611635565b600d6020526000908152604090205481565b3480156104d957600080fd5b5061021c60075481565b3480156104ef57600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610226565b34801561052157600080fd5b506003546104fd906001600160a01b031681565b34801561054157600080fd5b5061021c60025481565b34801561055757600080fd5b5061021c610566366004611635565b60136020526000908152604090205481565b34801561058457600080fd5b5061030d610593366004611650565b61114f565b3480156105a457600080fd5b5061021c600a5481565b3480156105ba57600080fd5b5061021c6111b7565b3480156105cf57600080fd5b5061021c600b5481565b3480156105e557600080fd5b5061021c60085481565b3480156105fb57600080fd5b506104fd61060a366004611635565b6014602052600090815260409020546001600160a01b031681565b34801561063157600080fd5b5061030d610640366004611635565b611205565b34801561065157600080fd5b506001546104fd906001600160a01b031681565b34801561067157600080fd5b5061021c610680366004611635565b60106020526000908152604090205481565b6001600160a01b0381166000908152600e6020908152604080832054600d90925282205461070b919061070590670de0b6b3a7640000906106ff906106df906106d96111b7565b9061129d565b6001600160a01b0388166000908152600560205260409020545b906112b0565b906112bc565b906112c8565b92915050565b6012602052816000526040600020818154811061072d57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b039091169250905082565b336107606111b7565b600b5561076b610fc7565b600a556001600160a01b038116156107b25761078681610692565b6001600160a01b0382166000908152600e6020908152604080832093909355600b54600d909152919020555b6007544210156107f55760405162461bcd60e51b81526020600482015260096024820152681b9bdd081cdd185c9d60ba1b60448201526064015b60405180910390fd5b3332146108145760405162461bcd60e51b81526004016107ec90611791565b333b63ffffffff16156108395760405162461bcd60e51b81526004016107ec90611791565b33600090815260056020526040902054156108855760405162461bcd60e51b815260206004820152600c60248201526b1c995c19585d081cdd185c9d60a21b60448201526064016107ec565b6002543410156108cc5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b60448201526064016107ec565b336000908152600560205260408120541580156108ff5750336000908152601460205260409020546001600160a01b0316155b801561091357506001600160a01b03831615155b80156109285750336001600160a01b03841614155b905080156109b75733600081815260146020908152604080832080546001600160a01b03808a166001600160a01b03199283168117909355835180850185529687524287860190815283875260128652848720805460018181018355828a52888a209a516002909202909a01805491909416941693909317825551960195909555835292546013909152919020555b33600090815260106020526040812054670de0b6b3a764000091906109dc90836112c8565b3360009081526010602052604090208190556004549091506109fe90836112c8565b60045533600090815260056020526040902054610a1b90836112c8565b336000818152600560209081526040808320949094556011905282902042905590517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90610a6c9085815260200190565b60405180910390a26003546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610aad573d6000803e3d6000fd5b505050505050565b6000546001600160a01b03163314610adf5760405162461bcd60e51b81526004016107ec9061175c565b6000610ae96111b7565b600b55610af4610fc7565b600a556001600160a01b03811615610b3b57610b0f81610692565b6001600160a01b0382166000908152600e6020908152604080832093909355600b54600d909152919020555b600754421115610c64576008544210610be9576000610b8e60016107057f00000000000000000000000000000000000000000000000000000000018b82006106ff6007544261129d90919063ffffffff16565b9050610bc6610bbd827f00000000000000000000000000000000000000000000000000000000018b82006112b0565b600754906112c8565b6008819055610be090610bd9904261129d565b84906112bc565b60095550610c28565b600854600090610bf9904261129d565b90506000610c12600954836112b090919063ffffffff16565b9050610c22826106ff86846112c8565b60095550505b42600a556040518281527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1610cfb565b610c8e827f00000000000000000000000000000000000000000000000000000000018b82006112bc565b600955600754610cbe907f00000000000000000000000000000000000000000000000000000000018b82006112c8565b600855600754600a556040518281527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a15b600654610d0890836112c8565b600655610d136112d4565b505050565b6000546001600160a01b03163314610d425760405162461bcd60e51b81526004016107ec9061175c565b60405133904780156108fc02916000818181858888f19350505050158015610d6e573d6000803e3d6000fd5b50565b33610d7a6111b7565b600b55610d85610fc7565b600a556001600160a01b03811615610dcc57610da081610692565b6001600160a01b0382166000908152600e6020908152604080832093909355600b54600d909152919020555b600754421015610e0a5760405162461bcd60e51b81526020600482015260096024820152681b9bdd081cdd185c9d60ba1b60448201526064016107ec565b6000610e1533610692565b90508015610f8d57336000908152600e60205260408120819055610e5f6103e86106ff847f00000000000000000000000000000000000000000000000000000000000000c86112b0565b336000908152601460205260409020549091506001600160a01b031680610e85575061dead5b8115610f1e576001600160a01b0381166000908152600f6020526040902054610eae90836112c8565b6001600160a01b038083166000908152600f6020526040902091909155600154610eda91168284611317565b806001600160a01b03167f061c98e59f9b33c71a9fa7acefcba88c95a4d7e3323f55d60e93ecd8664df89b83604051610f1591815260200190565b60405180910390a25b600154610f35906001600160a01b03163385611317565b60405183815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a2610f7483836117de565b600c6000828254610f8591906117de565b909155505050505b5050565b6000546001600160a01b03163314610fbb5760405162461bcd60e51b81526004016107ec9061175c565b610fc56000611369565b565b6000610fd5426008546113b9565b905090565b6001600160a01b0382166000908152601260209081526040808320805482518185028101850190935280835260609493849084015b82821015611057576000848152602090819020604080518082019091526002850290910180546001600160a01b0316825260019081015482840152908352909201910161100f565b5050825192935050508084111561106c578093505b60008467ffffffffffffffff811115611087576110876118c5565b6040519080825280602002602001820160405280156110cc57816020015b60408051808201909152600080825260208201528152602001906001900390816110a55790505b50905060006110db8684611837565b90505b82811015611145578381815181106110f8576110f86118af565b602002602001015182878561110d9190611837565b6111179084611837565b81518110611127576111276118af565b6020026020010181905250808061113d9061187e565b9150506110de565b5095945050505050565b6003546001600160a01b031633146111915760405162461bcd60e51b815260206004820152600560248201526432b93937b960d91b60448201526064016107ec565b600380546001600160a01b0319166001600160a01b039390931692909217909155600255565b60006111c260045490565b6111cd5750600b5490565b610fd56111fc6111dc60045490565b6106ff670de0b6b3a76400006106f96009546106f9600a546106d9610fc7565b600b54906112c8565b6000546001600160a01b0316331461122f5760405162461bcd60e51b81526004016107ec9061175c565b6001600160a01b0381166112945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ec565b610d6e81611369565b60006112a98284611837565b9392505050565b60006112a98284611818565b60006112a982846117f6565b60006112a982846117de565b6000610fd5670de0b6b3a76400006106f96009547f00000000000000000000000000000000000000000000000000000000018b82006112b090919063ffffffff16565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d139084906113cf565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008183106113c857816112a9565b5090919050565b6000611424826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114a19092919063ffffffff16565b805190915015610d135780806020019051810190611442919061167a565b610d135760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016107ec565b60606114b084846000856114b8565b949350505050565b6060824710156115195760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016107ec565b843b6115675760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016107ec565b600080866001600160a01b0316858760405161158391906116b5565b60006040518083038185875af1925050503d80600081146115c0576040519150601f19603f3d011682016040523d82523d6000602084013e6115c5565b606091505b50915091506115d58282866115e0565b979650505050505050565b606083156115ef5750816112a9565b8251156115ff5782518084602001fd5b8160405162461bcd60e51b81526004016107ec9190611729565b80356001600160a01b038116811461163057600080fd5b919050565b60006020828403121561164757600080fd5b6112a982611619565b6000806040838503121561166357600080fd5b61166c83611619565b946020939093013593505050565b60006020828403121561168c57600080fd5b815180151581146112a957600080fd5b6000602082840312156116ae57600080fd5b5035919050565b600082516116c781846020870161184e565b9190910192915050565b602080825282518282018190526000919060409081850190868401855b8281101561171c57815180516001600160a01b031685528601518685015292840192908501906001016116ee565b5091979650505050505050565b602081526000825180602084015261174881604085016020870161184e565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602d908201527f4f6e6c792065787465726e616c206163636f756e74732063616e2063616c6c2060408201526c3a3434b990333ab731ba34b7b760991b606082015260800190565b600082198211156117f1576117f1611899565b500190565b60008261181357634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561183257611832611899565b500290565b60008282101561184957611849611899565b500390565b60005b83811015611869578181015183820152602001611851565b83811115611878576000848401525b50505050565b600060001982141561189257611892611899565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220422c9efe270431257fee21e9544d00983260b2d4cf5c516595fab7a3ae7c9f9964736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000a92737e3940cb9d26f4fc4673c62773a40f5a23300000000000000000000000077f8c74b090c4f64baf767bca5c4218a77c93b7a0000000000000000000000000000000000000000000000000000000064a771a0
-----Decoded View---------------
Arg [0] : _price (uint256): 100000000000000000
Arg [1] : _owner (address): 0xA92737E3940cB9D26f4fc4673c62773A40f5a233
Arg [2] : _rewardToken (address): 0x77f8C74b090C4F64BaF767BCa5c4218a77c93b7a
Arg [3] : _starttime (uint256): 1688695200
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [1] : 000000000000000000000000a92737e3940cb9d26f4fc4673c62773a40f5a233
Arg [2] : 00000000000000000000000077f8c74b090c4f64baf767bca5c4218a77c93b7a
Arg [3] : 0000000000000000000000000000000000000000000000000000000064a771a0
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.