More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 4,298 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Emergency Withdr... | 18795096 | 429 days ago | IN | 0 ETH | 0.00155186 | ||||
Withdraw Reward | 18706141 | 441 days ago | IN | 0 ETH | 0.00071513 | ||||
Unstake | 18706140 | 441 days ago | IN | 0 ETH | 0.00429226 | ||||
Unstake | 18705349 | 441 days ago | IN | 0 ETH | 0.00266414 | ||||
Withdraw Reward | 18705339 | 441 days ago | IN | 0 ETH | 0.00318462 | ||||
Unstake | 18644449 | 450 days ago | IN | 0 ETH | 0.00351555 | ||||
Unstake | 18602268 | 456 days ago | IN | 0 ETH | 0.00153636 | ||||
Unstake | 18558920 | 462 days ago | IN | 0 ETH | 0.00163056 | ||||
Unstake | 18549135 | 463 days ago | IN | 0 ETH | 0.00264966 | ||||
Unstake | 18533264 | 465 days ago | IN | 0 ETH | 0.00425438 | ||||
Withdraw Reward | 18533261 | 465 days ago | IN | 0 ETH | 0.00411371 | ||||
Withdraw Reward | 18526534 | 466 days ago | IN | 0 ETH | 0.00196755 | ||||
Unstake | 18506460 | 469 days ago | IN | 0 ETH | 0.00236836 | ||||
Withdraw Reward | 18506458 | 469 days ago | IN | 0 ETH | 0.00300507 | ||||
Unstake | 18495379 | 471 days ago | IN | 0 ETH | 0.00099908 | ||||
Unstake | 18478026 | 473 days ago | IN | 0 ETH | 0.00454201 | ||||
Unstake | 18464192 | 475 days ago | IN | 0 ETH | 0.00145772 | ||||
Unstake | 18464188 | 475 days ago | IN | 0 ETH | 0.00593524 | ||||
Withdraw Reward | 18457828 | 476 days ago | IN | 0 ETH | 0.00105075 | ||||
Unstake | 18454121 | 477 days ago | IN | 0 ETH | 0.00102667 | ||||
Unstake | 18451162 | 477 days ago | IN | 0 ETH | 0.00131328 | ||||
Unstake | 18437436 | 479 days ago | IN | 0 ETH | 0.00224937 | ||||
Withdraw Reward | 18437378 | 479 days ago | IN | 0 ETH | 0.00172735 | ||||
Unstake | 18424550 | 481 days ago | IN | 0 ETH | 0.00216231 | ||||
Withdraw Reward | 18424548 | 481 days ago | IN | 0 ETH | 0.00242278 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
18706140 | 441 days ago | 0.0025296 ETH | ||||
18705339 | 441 days ago | 0.4870656 ETH | ||||
18644449 | 450 days ago | 0.0064512 ETH | ||||
18549135 | 463 days ago | 0.0145152 ETH | ||||
18533261 | 465 days ago | 0.1724574 ETH | ||||
18526534 | 466 days ago | 0.0177408 ETH | ||||
18506458 | 469 days ago | 0.0032256 ETH | ||||
18478026 | 473 days ago | 0.0209664 ETH | ||||
18457828 | 476 days ago | 0.0008064 ETH | ||||
18451162 | 477 days ago | 0.0153216 ETH | ||||
18437378 | 479 days ago | 0.02255473 ETH | ||||
18424548 | 481 days ago | 0.0822528 ETH | ||||
18419007 | 481 days ago | 0.0024192 ETH | ||||
18414758 | 482 days ago | 0.1387008 ETH | ||||
18400460 | 484 days ago | 0.01564893 ETH | ||||
18400130 | 484 days ago | 0.004032 ETH | ||||
18399123 | 484 days ago | 0.0233856 ETH | ||||
18393129 | 485 days ago | 0.0129024 ETH | ||||
18390416 | 485 days ago | 0.00000782 ETH | ||||
18386068 | 486 days ago | 0.02016 ETH | ||||
18385801 | 486 days ago | 0.0532224 ETH | ||||
18375796 | 488 days ago | 0.0064512 ETH | ||||
18368236 | 489 days ago | 0.0137088 ETH | ||||
18350780 | 491 days ago | 0.0354816 ETH | ||||
18349543 | 491 days ago | 0.0129024 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
LinqBasicLpStaking
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // A new paradigm. import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract LinqBasicLpStaking is Ownable, ReentrancyGuard { using SafeMath for uint256; IERC20 public lpToken; uint256 public lockPeriod = 20160 minutes; // 20160 minutes uint256 public lock_var = 20160; // 14 uint256 public rewardPerBlock = 1e18; uint256 public blockPerMinutes = 4; // 4 uint256 public AverageBlockTime = 13; // 13 bool public EmergencyFeeWaive = false; bool public Deposit_enabled = false; // false struct Stake { uint256 stakedAmount; uint256 stakeTime; uint256 unstakeTime; uint256 startBlock; uint256 lastClaimedBlock; uint256 claimedRewards; } struct UserInfo { Stake[] stakes; } mapping(address => UserInfo) private userInfo; event Staked(address indexed user, uint256 amount,uint256 startTime, uint256 endTime); event RewardWithdrawn(address indexed user, uint256 reward); event Unstaked(address indexed user, uint256 reward,uint256 unstakeAmount ); constructor(IERC20 _rewardToken) { lpToken = _rewardToken; } function SetAverageBlockTimeAndTimeVar(uint256 _newTime, uint256 _time) external onlyOwner { AverageBlockTime = _newTime; lock_var = _time; } function enableDeposits(bool state) public onlyOwner { Deposit_enabled = state; } function stake(uint256 _tokenAmount) external nonReentrant { require(Deposit_enabled == true, "Deposits need to be enabled"); require(_tokenAmount > 0, "Staking amount must be greater than 0!"); uint256 _stakeTime = block.timestamp; uint256 _unstakeTime = _stakeTime.add(lockPeriod); userInfo[msg.sender].stakes.push(Stake({ stakedAmount: _tokenAmount, stakeTime: _stakeTime, unstakeTime : _unstakeTime, startBlock : block.number, lastClaimedBlock: block.number, claimedRewards: 0 })); require(lpToken.transferFrom(msg.sender, address(this), _tokenAmount), "Token transfer failed!"); emit Staked(msg.sender, _tokenAmount, _stakeTime, _unstakeTime); } function unstake() external { UserInfo storage user = userInfo[msg.sender]; uint256 totalUnstakeAmount = 0; uint256 totalReward = 0; // Store indexes of stakes that need to be removed uint256[] memory toRemoveIndexes = new uint256[](user.stakes.length); uint256 removeCount = 0; for (uint256 i = 0; i < user.stakes.length; i++) { if (block.timestamp >= user.stakes[i].stakeTime.add(lockPeriod)) { uint256 stakeReward = calculateRewardForStake(msg.sender, i); totalReward = totalReward.add(stakeReward); totalUnstakeAmount = totalUnstakeAmount.add(user.stakes[i].stakedAmount); if (stakeReward > 0 && !EmergencyFeeWaive) { withdrawReward(); } toRemoveIndexes[removeCount] = i; removeCount++; } } require(removeCount > 0, "Lock time not completed yet."); for (uint256 j = removeCount; j > 0; j--) { if (toRemoveIndexes[j - 1] != user.stakes.length - 1) { user.stakes[toRemoveIndexes[j - 1]] = user.stakes[user.stakes.length - 1]; } user.stakes.pop(); } require(lpToken.transfer(msg.sender, totalUnstakeAmount), "Failed to transfer LP tokens."); emit Unstaked(msg.sender, totalReward, totalUnstakeAmount); } function calculatePercentage(address user) public view returns(uint256) { UserInfo storage userInformation = userInfo[user]; uint256 userTotalStake = 0; for (uint256 i = 0; i < userInformation.stakes.length; i++) { userTotalStake = userTotalStake.add(userInformation.stakes[i].stakedAmount); } uint256 totalPoolBalance = lpToken.balanceOf(address(this)); if (totalPoolBalance == 0) { return 0; } uint256 percentage = userTotalStake.mul(10000).div(totalPoolBalance); return percentage; } function getUserRewardForBlock(address user) public view returns (uint256) { uint256 userPercentage = calculatePercentage(user); uint256 userReward = rewardPerBlock.mul(userPercentage).div(10000); return userReward; } function withdrawReward() public { require(msg.sender == tx.origin, "invalid caller!"); UserInfo storage user = userInfo[msg.sender]; uint256 totalRewards = 0; for (uint256 i = 0; i < user.stakes.length; i++) { Stake storage stakeInfo = user.stakes[i]; uint256 reward = calculateRewardForStake(msg.sender, i); totalRewards = totalRewards.add(reward); if (reward > 0) { stakeInfo.lastClaimedBlock = block.number; stakeInfo.claimedRewards = stakeInfo.claimedRewards.add(reward); } } require(totalRewards > 0, "No rewards to withdraw"); require(address(this).balance >= totalRewards, "insufficient ETH Balance!"); payable(msg.sender).transfer(totalRewards); emit RewardWithdrawn(msg.sender, totalRewards); } function calculateRewardForStake(address user, uint256 stakeIndex) public view returns (uint256) { Stake storage stakeInfo = userInfo[user].stakes[stakeIndex]; uint256 endBlock = stakeInfo.startBlock.add(blockPerMinutes.mul(lock_var)); uint256 blockToCalculateUntil = (block.number < endBlock) ? block.number : endBlock; if (stakeInfo.lastClaimedBlock >= blockToCalculateUntil) { return 0; } uint256 blocksSinceLastClaim = blockToCalculateUntil.sub(stakeInfo.lastClaimedBlock); return getUserRewardForBlock(user).mul(blocksSinceLastClaim); } function calculateRewardSinceLastClaim(address user) public view returns (uint256) { uint256 totalReward = 0; for (uint256 i = 0; i < userInfo[user].stakes.length; i++) { totalReward = totalReward.add(calculateRewardForStake(user, i)); } return totalReward; } function checkRemainingTimeAndBlocks(address user) public view returns(uint256[] memory remainingTimes, uint256[] memory remainingBlocks){ UserInfo storage userInformation = userInfo[user]; uint256[] memory _remainingTimes = new uint256[](userInformation.stakes.length); uint256[] memory _remainingBlocks = new uint256[](userInformation.stakes.length); for(uint256 i = 0; i < userInformation.stakes.length; i++) { Stake storage stakeInfo = userInformation.stakes[i]; uint256 endBlock = stakeInfo.startBlock.add(blockPerMinutes.mul(lock_var)); _remainingBlocks[i] = (block.number >= endBlock) ? 0 : endBlock.sub(block.number); _remainingTimes[i] = _remainingBlocks[i].mul(AverageBlockTime); // Assuming an average block time of 13 seconds for Ethereum // was 3 if(block.timestamp >= stakeInfo.unstakeTime) { _remainingTimes[i] = 0; } } return (_remainingTimes, _remainingBlocks); } function checkRemainingTime(address user) external view returns(uint256[] memory){ UserInfo storage userInformation = userInfo[user]; uint256[] memory remainingTimes = new uint256[](userInformation.stakes.length); for(uint256 i = 0; i < userInformation.stakes.length; i++) { Stake storage stakeInfo = userInformation.stakes[i]; if(block.timestamp < stakeInfo.unstakeTime) { remainingTimes[i] = stakeInfo.unstakeTime.sub(block.timestamp); } else { remainingTimes[i] = 0; } } return remainingTimes; } function getAllStakeDetails(address _user) external view returns (uint256[] memory stakeIndices, Stake[] memory stakes) { UserInfo storage user = userInfo[_user]; stakeIndices = new uint256[](user.stakes.length); stakes = user.stakes; for (uint256 i = 0; i < user.stakes.length; i++) { stakeIndices[i] = i; } return (stakeIndices, stakes); } function getCurrentBlock() public view returns(uint256) { return block.number; } function getLpDepositsForUser(address account) public view returns (uint256) { UserInfo storage user = userInfo[account]; uint256 totalStaked; // Initialize the total staked variable for (uint256 i = 0; i < user.stakes.length; i++) { totalStaked += user.stakes[i].stakedAmount; // Accumulate the staked amounts } return totalStaked; } function EmergencyMeasures(bool state) public onlyOwner { EmergencyFeeWaive = state; } function updateRewards(uint256 _rewardperBlock) external onlyOwner { rewardPerBlock = _rewardperBlock; } function updatelockPeriod(uint256 newLockPeriodInMinutes) external onlyOwner { lockPeriod = newLockPeriodInMinutes * 1 minutes; } function updateBlockPerMinutes(uint256 _blockPerMinute) external onlyOwner { blockPerMinutes=_blockPerMinute; } function emergencyWithdrawLpTokens() external onlyOwner { uint256 balanceOfContract = lpToken.balanceOf(address(this)); lpToken.transfer(owner(), balanceOfContract); } function CheckBalance() public view returns(uint256){ return lpToken.balanceOf(address(this)); } function withdrawETH() external onlyOwner { payable (owner()).transfer(address(this).balance); } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 (last updated v4.9.0) (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 subtraction 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 (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// 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": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_rewardToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unstakeAmount","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[],"name":"AverageBlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CheckBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Deposit_enabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EmergencyFeeWaive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"EmergencyMeasures","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newTime","type":"uint256"},{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"SetAverageBlockTimeAndTimeVar","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"blockPerMinutes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"calculatePercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"stakeIndex","type":"uint256"}],"name":"calculateRewardForStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"calculateRewardSinceLastClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"checkRemainingTime","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"checkRemainingTimeAndBlocks","outputs":[{"internalType":"uint256[]","name":"remainingTimes","type":"uint256[]"},{"internalType":"uint256[]","name":"remainingBlocks","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdrawLpTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"enableDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getAllStakeDetails","outputs":[{"internalType":"uint256[]","name":"stakeIndices","type":"uint256[]"},{"components":[{"internalType":"uint256","name":"stakedAmount","type":"uint256"},{"internalType":"uint256","name":"stakeTime","type":"uint256"},{"internalType":"uint256","name":"unstakeTime","type":"uint256"},{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"lastClaimedBlock","type":"uint256"},{"internalType":"uint256","name":"claimedRewards","type":"uint256"}],"internalType":"struct LinqBasicLpStaking.Stake[]","name":"stakes","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getLpDepositsForUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserRewardForBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock_var","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockPerMinute","type":"uint256"}],"name":"updateBlockPerMinutes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardperBlock","type":"uint256"}],"name":"updateRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newLockPeriodInMinutes","type":"uint256"}],"name":"updatelockPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405262127500600355614ec0600455670de0b6b3a76400006005556004600655600d6007556000600860006101000a81548160ff0219169083151502179055506000600860016101000a81548160ff0219169083151502179055503480156200006a57600080fd5b506040516200318138038062003181833981810160405281019062000090919062000249565b620000b0620000a4620000ff60201b60201c565b6200010760201b60201c565b6001808190555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200027b565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001fd82620001d0565b9050919050565b60006200021182620001f0565b9050919050565b620002238162000204565b81146200022f57600080fd5b50565b600081519050620002438162000218565b92915050565b600060208284031215620002625762000261620001cb565b5b6000620002728482850162000232565b91505092915050565b612ef6806200028b6000396000f3fe6080604052600436106101e75760003560e01c80637afa1f8011610102578063bdcc98d711610095578063dc2c9de511610064578063dc2c9de5146106cb578063e086e5ec14610708578063f2fde38b1461071f578063fbc35a6914610748576101ee565b8063bdcc98d71461060e578063c885bc581461064b578063cc9a8a6e14610662578063d2da71b9146106a0576101ee565b8063a3d686a3116100d1578063a3d686a31461056a578063a694fc3a14610593578063b00c6db5146105bc578063b1e95e94146105e5576101ee565b80637afa1f80146104ae5780638ae39cac146104eb5780638da5cb5b146105165780639f22a03b14610541576101ee565b80633fd8b02f1161017a57806357cdbf2a1161014957806357cdbf2a146104185780635fcbd28514610441578063672d5d3b1461046c578063715018a614610497576101ee565b80633fd8b02f1461035a57806344e73b7814610385578063485e5c22146103b05780634b6014d7146103ed576101ee565b80632b7c02be116101b65780632b7c02be1461029e5780632def6620146102db57806336205fc3146102f25780633c9943641461031d576101ee565b80630c7c4fe5146101f35780630db5c8441461021e5780631c17180414610235578063266cf0c614610260576101ee565b366101ee57005b600080fd5b3480156101ff57600080fd5b50610208610771565b60405161021591906120db565b60405180910390f35b34801561022a57600080fd5b50610233610777565b005b34801561024157600080fd5b5061024a6108ca565b60405161025791906120db565b60405180910390f35b34801561026c57600080fd5b5061028760048036038101906102829190612159565b6108d0565b60405161029592919061236e565b60405180910390f35b3480156102aa57600080fd5b506102c560048036038101906102c09190612159565b610a4c565b6040516102d291906120db565b60405180910390f35b3480156102e757600080fd5b506102f0610afa565b005b3480156102fe57600080fd5b50610307610fb1565b60405161031491906123c0565b60405180910390f35b34801561032957600080fd5b50610344600480360381019061033f9190612159565b610fc4565b60405161035191906123db565b60405180910390f35b34801561036657600080fd5b5061036f61111f565b60405161037c91906120db565b60405180910390f35b34801561039157600080fd5b5061039a611125565b6040516103a791906120db565b60405180910390f35b3480156103bc57600080fd5b506103d760048036038101906103d29190612159565b6111c8565b6040516103e491906120db565b60405180910390f35b3480156103f957600080fd5b5061040261125a565b60405161040f91906120db565b60405180910390f35b34801561042457600080fd5b5061043f600480360381019061043a9190612429565b611260565b005b34801561044d57600080fd5b50610456611285565b60405161046391906124b5565b60405180910390f35b34801561047857600080fd5b506104816112ab565b60405161048e91906120db565b60405180910390f35b3480156104a357600080fd5b506104ac6112b3565b005b3480156104ba57600080fd5b506104d560048036038101906104d09190612159565b6112c7565b6040516104e291906120db565b60405180910390f35b3480156104f757600080fd5b5061050061145a565b60405161050d91906120db565b60405180910390f35b34801561052257600080fd5b5061052b611460565b60405161053891906124df565b60405180910390f35b34801561054d57600080fd5b5061056860048036038101906105639190612526565b611489565b005b34801561057657600080fd5b50610591600480360381019061058c9190612526565b6114a7565b005b34801561059f57600080fd5b506105ba60048036038101906105b59190612526565b6114b9565b005b3480156105c857600080fd5b506105e360048036038101906105de9190612429565b61178f565b005b3480156105f157600080fd5b5061060c60048036038101906106079190612526565b6117b4565b005b34801561061a57600080fd5b5061063560048036038101906106309190612159565b6117c6565b60405161064291906120db565b60405180910390f35b34801561065757600080fd5b5061066061180b565b005b34801561066e57600080fd5b5061068960048036038101906106849190612159565b611a81565b604051610697929190612553565b60405180910390f35b3480156106ac57600080fd5b506106b5611cbb565b6040516106c291906123c0565b60405180910390f35b3480156106d757600080fd5b506106f260048036038101906106ed919061258a565b611cce565b6040516106ff91906120db565b60405180910390f35b34801561071457600080fd5b5061071d611dd3565b005b34801561072b57600080fd5b5061074660048036038101906107419190612159565b611e2b565b005b34801561075457600080fd5b5061076f600480360381019061076a91906125ca565b611eae565b005b60045481565b61077f611ec8565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016107dc91906124df565b602060405180830381865afa1580156107f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081d919061261f565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610865611460565b836040518363ffffffff1660e01b815260040161088392919061264c565b6020604051808303816000875af11580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c6919061268a565b5050565b60065481565b6060806000600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050806000018054905067ffffffffffffffff811115610937576109366126b7565b5b6040519080825280602002602001820160405280156109655781602001602082028036833780820191505090505b50925080600001805480602002602001604051908101604052809291908181526020016000905b828210156109fa57838290600052602060002090600602016040518060c001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815250508152602001906001019061098c565b50505050915060005b8160000180549050811015610a455780848281518110610a2657610a256126e6565b5b6020026020010181815250508080610a3d90612744565b915050610a03565b5050915091565b600080600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600080600090505b8260000180549050811015610aef57826000018181548110610abd57610abc6126e6565b5b90600052602060002090600602016000015482610ada919061278c565b91508080610ae790612744565b915050610a98565b508092505050919050565b6000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000806000836000018054905067ffffffffffffffff811115610b6357610b626126b7565b5b604051908082528060200260200182016040528015610b915781602001602082028036833780820191505090505b5090506000805b8560000180549050811015610cb657610be3600354876000018381548110610bc357610bc26126e6565b5b906000526020600020906006020160010154611f4690919063ffffffff16565b4210610ca3576000610bf53383611cce565b9050610c0a8186611f4690919063ffffffff16565b9450610c46876000018381548110610c2557610c246126e6565b5b90600052602060002090600602016000015487611f4690919063ffffffff16565b9550600081118015610c655750600860009054906101000a900460ff16155b15610c7357610c7261180b565b5b81848481518110610c8757610c866126e6565b5b6020026020010181815250508280610c9e90612744565b935050505b8080610cae90612744565b915050610b98565b5060008111610cfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf19061283f565b60405180910390fd5b60008190505b6000811115610e7a5760018660000180549050610d1d919061285f565b83600183610d2b919061285f565b81518110610d3c57610d3b6126e6565b5b602002602001015114610e0a578560000160018760000180549050610d61919061285f565b81548110610d7257610d716126e6565b5b90600052602060002090600602018660000184600184610d92919061285f565b81518110610da357610da26126e6565b5b602002602001015181548110610dbc57610dbb6126e6565b5b90600052602060002090600602016000820154816000015560018201548160010155600282015481600201556003820154816003015560048201548160040155600582015481600501559050505b85600001805480610e1e57610e1d612893565b5b600190038181906000526020600020906006020160008082016000905560018201600090556002820160009055600382016000905560048201600090556005820160009055505090558080610e72906128c2565b915050610d00565b50600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33866040518363ffffffff1660e01b8152600401610ed892919061264c565b6020604051808303816000875af1158015610ef7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1b919061268a565b610f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5190612937565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e8486604051610fa2929190612957565b60405180910390a25050505050565b600860019054906101000a900460ff1681565b60606000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000018054905067ffffffffffffffff81111561102c5761102b6126b7565b5b60405190808252806020026020018201604052801561105a5781602001602082028036833780820191505090505b50905060005b8260000180549050811015611114576000836000018281548110611087576110866126e6565b5b9060005260206000209060060201905080600201544210156110de576110ba428260020154611f5c90919063ffffffff16565b8383815181106110cd576110cc6126e6565b5b602002602001018181525050611100565b60008383815181106110f3576110f26126e6565b5b6020026020010181815250505b50808061110c90612744565b915050611060565b508092505050919050565b60035481565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161118291906124df565b602060405180830381865afa15801561119f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c3919061261f565b905090565b6000806000905060005b600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001805490508110156112505761123b61122c8583611cce565b83611f4690919063ffffffff16565b9150808061124890612744565b9150506111d2565b5080915050919050565b60075481565b611268611ec8565b80600860016101000a81548160ff02191690831515021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600043905090565b6112bb611ec8565b6112c56000611f72565b565b600080600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000805b826000018054905081101561136d57611358836000018281548110611337576113366126e6565b5b90600052602060002090600602016000015483611f4690919063ffffffff16565b9150808061136590612744565b91505061130f565b506000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016113cb91906124df565b602060405180830381865afa1580156113e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061140c919061261f565b9050600081036114225760009350505050611455565b600061144b8261143d6127108661203690919063ffffffff16565b61204c90919063ffffffff16565b9050809450505050505b919050565b60055481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611491611ec8565b603c8161149e9190612980565b60038190555050565b6114af611ec8565b8060068190555050565b6114c1612062565b60011515600860019054906101000a900460ff16151514611517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150e90612a26565b60405180910390fd5b6000811161155a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155190612ab8565b60405180910390fd5b6000429050600061157660035483611f4690919063ffffffff16565b9050600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016040518060c0016040528085815260200184815260200183815260200143815260200143815260200160008152509080600181540180825580915050600190039060005260206000209060060201600090919091909150600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a082015181600501555050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b81526004016116ae93929190612ad8565b6020604051808303816000875af11580156116cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f1919061268a565b611730576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172790612b5b565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167fb4caaf29adda3eefee3ad552a8e85058589bf834c7466cae4ee58787f70589ed84848460405161177a93929190612b7b565b60405180910390a2505061178c6120b1565b50565b611797611ec8565b80600860006101000a81548160ff02191690831515021790555050565b6117bc611ec8565b8060058190555050565b6000806117d2836112c7565b905060006117ff6127106117f18460055461203690919063ffffffff16565b61204c90919063ffffffff16565b90508092505050919050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611879576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187090612bfe565b60405180910390fd5b6000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000805b82600001805490508110156119615760008360000182815481106118e7576118e66126e6565b5b9060005260206000209060060201905060006119033384611cce565b90506119188185611f4690919063ffffffff16565b9350600081111561194c57438260040181905550611943818360050154611f4690919063ffffffff16565b82600501819055505b5050808061195990612744565b9150506118c0565b50600081116119a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199c90612c6a565b60405180910390fd5b804710156119e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119df90612cd6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611a2e573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff167f1d3eee4ca001cff39eec6ec7615aacf2f2bd61791273830728ba00ccbd6e133782604051611a7591906120db565b60405180910390a25050565b6060806000600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000018054905067ffffffffffffffff811115611aea57611ae96126b7565b5b604051908082528060200260200182016040528015611b185781602001602082028036833780820191505090505b5090506000826000018054905067ffffffffffffffff811115611b3e57611b3d6126b7565b5b604051908082528060200260200182016040528015611b6c5781602001602082028036833780820191505090505b50905060005b8360000180549050811015611cac576000846000018281548110611b9957611b986126e6565b5b906000526020600020906006020190506000611bd8611bc560045460065461203690919063ffffffff16565b8360030154611f4690919063ffffffff16565b905080431015611bfa57611bf54382611f5c90919063ffffffff16565b611bfd565b60005b848481518110611c1057611c0f6126e6565b5b602002602001018181525050611c4b600754858581518110611c3557611c346126e6565b5b602002602001015161203690919063ffffffff16565b858481518110611c5e57611c5d6126e6565b5b60200260200101818152505081600201544210611c97576000858481518110611c8a57611c896126e6565b5b6020026020010181815250505b50508080611ca490612744565b915050611b72565b50818194509450505050915091565b600860009054906101000a900460ff1681565b600080600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018381548110611d2557611d246126e6565b5b906000526020600020906006020190506000611d64611d5160045460065461203690919063ffffffff16565b8360030154611f4690919063ffffffff16565b90506000814310611d755781611d77565b435b905080836004015410611d905760009350505050611dcd565b6000611da9846004015483611f5c90919063ffffffff16565b9050611dc681611db8896117c6565b61203690919063ffffffff16565b9450505050505b92915050565b611ddb611ec8565b611de3611460565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611e28573d6000803e3d6000fd5b50565b611e33611ec8565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ea2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9990612d68565b60405180910390fd5b611eab81611f72565b50565b611eb6611ec8565b81600781905550806004819055505050565b611ed06120ba565b73ffffffffffffffffffffffffffffffffffffffff16611eee611460565b73ffffffffffffffffffffffffffffffffffffffff1614611f44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3b90612dd4565b60405180910390fd5b565b60008183611f54919061278c565b905092915050565b60008183611f6a919061285f565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081836120449190612980565b905092915050565b6000818361205a9190612e23565b905092915050565b6002600154036120a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209e90612ea0565b60405180910390fd5b6002600181905550565b60018081905550565b600033905090565b6000819050919050565b6120d5816120c2565b82525050565b60006020820190506120f060008301846120cc565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612126826120fb565b9050919050565b6121368161211b565b811461214157600080fd5b50565b6000813590506121538161212d565b92915050565b60006020828403121561216f5761216e6120f6565b5b600061217d84828501612144565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6121bb816120c2565b82525050565b60006121cd83836121b2565b60208301905092915050565b6000602082019050919050565b60006121f182612186565b6121fb8185612191565b9350612206836121a2565b8060005b8381101561223757815161221e88826121c1565b9750612229836121d9565b92505060018101905061220a565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60c08201600082015161228660008501826121b2565b50602082015161229960208501826121b2565b5060408201516122ac60408501826121b2565b5060608201516122bf60608501826121b2565b5060808201516122d260808501826121b2565b5060a08201516122e560a08501826121b2565b50505050565b60006122f78383612270565b60c08301905092915050565b6000602082019050919050565b600061231b82612244565b612325818561224f565b935061233083612260565b8060005b8381101561236157815161234888826122eb565b975061235383612303565b925050600181019050612334565b5085935050505092915050565b6000604082019050818103600083015261238881856121e6565b9050818103602083015261239c8184612310565b90509392505050565b60008115159050919050565b6123ba816123a5565b82525050565b60006020820190506123d560008301846123b1565b92915050565b600060208201905081810360008301526123f581846121e6565b905092915050565b612406816123a5565b811461241157600080fd5b50565b600081359050612423816123fd565b92915050565b60006020828403121561243f5761243e6120f6565b5b600061244d84828501612414565b91505092915050565b6000819050919050565b600061247b612476612471846120fb565b612456565b6120fb565b9050919050565b600061248d82612460565b9050919050565b600061249f82612482565b9050919050565b6124af81612494565b82525050565b60006020820190506124ca60008301846124a6565b92915050565b6124d98161211b565b82525050565b60006020820190506124f460008301846124d0565b92915050565b612503816120c2565b811461250e57600080fd5b50565b600081359050612520816124fa565b92915050565b60006020828403121561253c5761253b6120f6565b5b600061254a84828501612511565b91505092915050565b6000604082019050818103600083015261256d81856121e6565b9050818103602083015261258181846121e6565b90509392505050565b600080604083850312156125a1576125a06120f6565b5b60006125af85828601612144565b92505060206125c085828601612511565b9150509250929050565b600080604083850312156125e1576125e06120f6565b5b60006125ef85828601612511565b925050602061260085828601612511565b9150509250929050565b600081519050612619816124fa565b92915050565b600060208284031215612635576126346120f6565b5b60006126438482850161260a565b91505092915050565b600060408201905061266160008301856124d0565b61266e60208301846120cc565b9392505050565b600081519050612684816123fd565b92915050565b6000602082840312156126a05761269f6120f6565b5b60006126ae84828501612675565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061274f826120c2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361278157612780612715565b5b600182019050919050565b6000612797826120c2565b91506127a2836120c2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156127d7576127d6612715565b5b828201905092915050565b600082825260208201905092915050565b7f4c6f636b2074696d65206e6f7420636f6d706c65746564207965742e00000000600082015250565b6000612829601c836127e2565b9150612834826127f3565b602082019050919050565b600060208201905081810360008301526128588161281c565b9050919050565b600061286a826120c2565b9150612875836120c2565b92508282101561288857612887612715565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006128cd826120c2565b9150600082036128e0576128df612715565b5b600182039050919050565b7f4661696c656420746f207472616e73666572204c5020746f6b656e732e000000600082015250565b6000612921601d836127e2565b915061292c826128eb565b602082019050919050565b6000602082019050818103600083015261295081612914565b9050919050565b600060408201905061296c60008301856120cc565b61297960208301846120cc565b9392505050565b600061298b826120c2565b9150612996836120c2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156129cf576129ce612715565b5b828202905092915050565b7f4465706f73697473206e65656420746f20626520656e61626c65640000000000600082015250565b6000612a10601b836127e2565b9150612a1b826129da565b602082019050919050565b60006020820190508181036000830152612a3f81612a03565b9050919050565b7f5374616b696e6720616d6f756e74206d7573742062652067726561746572207460008201527f68616e2030210000000000000000000000000000000000000000000000000000602082015250565b6000612aa26026836127e2565b9150612aad82612a46565b604082019050919050565b60006020820190508181036000830152612ad181612a95565b9050919050565b6000606082019050612aed60008301866124d0565b612afa60208301856124d0565b612b0760408301846120cc565b949350505050565b7f546f6b656e207472616e73666572206661696c65642100000000000000000000600082015250565b6000612b456016836127e2565b9150612b5082612b0f565b602082019050919050565b60006020820190508181036000830152612b7481612b38565b9050919050565b6000606082019050612b9060008301866120cc565b612b9d60208301856120cc565b612baa60408301846120cc565b949350505050565b7f696e76616c69642063616c6c6572210000000000000000000000000000000000600082015250565b6000612be8600f836127e2565b9150612bf382612bb2565b602082019050919050565b60006020820190508181036000830152612c1781612bdb565b9050919050565b7f4e6f207265776172647320746f20776974686472617700000000000000000000600082015250565b6000612c546016836127e2565b9150612c5f82612c1e565b602082019050919050565b60006020820190508181036000830152612c8381612c47565b9050919050565b7f696e73756666696369656e74204554482042616c616e63652100000000000000600082015250565b6000612cc06019836127e2565b9150612ccb82612c8a565b602082019050919050565b60006020820190508181036000830152612cef81612cb3565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612d526026836127e2565b9150612d5d82612cf6565b604082019050919050565b60006020820190508181036000830152612d8181612d45565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612dbe6020836127e2565b9150612dc982612d88565b602082019050919050565b60006020820190508181036000830152612ded81612db1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612e2e826120c2565b9150612e39836120c2565b925082612e4957612e48612df4565b5b828204905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612e8a601f836127e2565b9150612e9582612e54565b602082019050919050565b60006020820190508181036000830152612eb981612e7d565b905091905056fea26469706673582212206465ac3ecf44624b4460a416a1c1b8347b8b9f37105da223855f71dca281c80464736f6c634300080f0033000000000000000000000000a8a837e2bf0c37fef5c495951a0dfc33aaead57a
Deployed Bytecode
0x6080604052600436106101e75760003560e01c80637afa1f8011610102578063bdcc98d711610095578063dc2c9de511610064578063dc2c9de5146106cb578063e086e5ec14610708578063f2fde38b1461071f578063fbc35a6914610748576101ee565b8063bdcc98d71461060e578063c885bc581461064b578063cc9a8a6e14610662578063d2da71b9146106a0576101ee565b8063a3d686a3116100d1578063a3d686a31461056a578063a694fc3a14610593578063b00c6db5146105bc578063b1e95e94146105e5576101ee565b80637afa1f80146104ae5780638ae39cac146104eb5780638da5cb5b146105165780639f22a03b14610541576101ee565b80633fd8b02f1161017a57806357cdbf2a1161014957806357cdbf2a146104185780635fcbd28514610441578063672d5d3b1461046c578063715018a614610497576101ee565b80633fd8b02f1461035a57806344e73b7814610385578063485e5c22146103b05780634b6014d7146103ed576101ee565b80632b7c02be116101b65780632b7c02be1461029e5780632def6620146102db57806336205fc3146102f25780633c9943641461031d576101ee565b80630c7c4fe5146101f35780630db5c8441461021e5780631c17180414610235578063266cf0c614610260576101ee565b366101ee57005b600080fd5b3480156101ff57600080fd5b50610208610771565b60405161021591906120db565b60405180910390f35b34801561022a57600080fd5b50610233610777565b005b34801561024157600080fd5b5061024a6108ca565b60405161025791906120db565b60405180910390f35b34801561026c57600080fd5b5061028760048036038101906102829190612159565b6108d0565b60405161029592919061236e565b60405180910390f35b3480156102aa57600080fd5b506102c560048036038101906102c09190612159565b610a4c565b6040516102d291906120db565b60405180910390f35b3480156102e757600080fd5b506102f0610afa565b005b3480156102fe57600080fd5b50610307610fb1565b60405161031491906123c0565b60405180910390f35b34801561032957600080fd5b50610344600480360381019061033f9190612159565b610fc4565b60405161035191906123db565b60405180910390f35b34801561036657600080fd5b5061036f61111f565b60405161037c91906120db565b60405180910390f35b34801561039157600080fd5b5061039a611125565b6040516103a791906120db565b60405180910390f35b3480156103bc57600080fd5b506103d760048036038101906103d29190612159565b6111c8565b6040516103e491906120db565b60405180910390f35b3480156103f957600080fd5b5061040261125a565b60405161040f91906120db565b60405180910390f35b34801561042457600080fd5b5061043f600480360381019061043a9190612429565b611260565b005b34801561044d57600080fd5b50610456611285565b60405161046391906124b5565b60405180910390f35b34801561047857600080fd5b506104816112ab565b60405161048e91906120db565b60405180910390f35b3480156104a357600080fd5b506104ac6112b3565b005b3480156104ba57600080fd5b506104d560048036038101906104d09190612159565b6112c7565b6040516104e291906120db565b60405180910390f35b3480156104f757600080fd5b5061050061145a565b60405161050d91906120db565b60405180910390f35b34801561052257600080fd5b5061052b611460565b60405161053891906124df565b60405180910390f35b34801561054d57600080fd5b5061056860048036038101906105639190612526565b611489565b005b34801561057657600080fd5b50610591600480360381019061058c9190612526565b6114a7565b005b34801561059f57600080fd5b506105ba60048036038101906105b59190612526565b6114b9565b005b3480156105c857600080fd5b506105e360048036038101906105de9190612429565b61178f565b005b3480156105f157600080fd5b5061060c60048036038101906106079190612526565b6117b4565b005b34801561061a57600080fd5b5061063560048036038101906106309190612159565b6117c6565b60405161064291906120db565b60405180910390f35b34801561065757600080fd5b5061066061180b565b005b34801561066e57600080fd5b5061068960048036038101906106849190612159565b611a81565b604051610697929190612553565b60405180910390f35b3480156106ac57600080fd5b506106b5611cbb565b6040516106c291906123c0565b60405180910390f35b3480156106d757600080fd5b506106f260048036038101906106ed919061258a565b611cce565b6040516106ff91906120db565b60405180910390f35b34801561071457600080fd5b5061071d611dd3565b005b34801561072b57600080fd5b5061074660048036038101906107419190612159565b611e2b565b005b34801561075457600080fd5b5061076f600480360381019061076a91906125ca565b611eae565b005b60045481565b61077f611ec8565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016107dc91906124df565b602060405180830381865afa1580156107f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081d919061261f565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610865611460565b836040518363ffffffff1660e01b815260040161088392919061264c565b6020604051808303816000875af11580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c6919061268a565b5050565b60065481565b6060806000600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050806000018054905067ffffffffffffffff811115610937576109366126b7565b5b6040519080825280602002602001820160405280156109655781602001602082028036833780820191505090505b50925080600001805480602002602001604051908101604052809291908181526020016000905b828210156109fa57838290600052602060002090600602016040518060c001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815250508152602001906001019061098c565b50505050915060005b8160000180549050811015610a455780848281518110610a2657610a256126e6565b5b6020026020010181815250508080610a3d90612744565b915050610a03565b5050915091565b600080600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600080600090505b8260000180549050811015610aef57826000018181548110610abd57610abc6126e6565b5b90600052602060002090600602016000015482610ada919061278c565b91508080610ae790612744565b915050610a98565b508092505050919050565b6000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000806000836000018054905067ffffffffffffffff811115610b6357610b626126b7565b5b604051908082528060200260200182016040528015610b915781602001602082028036833780820191505090505b5090506000805b8560000180549050811015610cb657610be3600354876000018381548110610bc357610bc26126e6565b5b906000526020600020906006020160010154611f4690919063ffffffff16565b4210610ca3576000610bf53383611cce565b9050610c0a8186611f4690919063ffffffff16565b9450610c46876000018381548110610c2557610c246126e6565b5b90600052602060002090600602016000015487611f4690919063ffffffff16565b9550600081118015610c655750600860009054906101000a900460ff16155b15610c7357610c7261180b565b5b81848481518110610c8757610c866126e6565b5b6020026020010181815250508280610c9e90612744565b935050505b8080610cae90612744565b915050610b98565b5060008111610cfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf19061283f565b60405180910390fd5b60008190505b6000811115610e7a5760018660000180549050610d1d919061285f565b83600183610d2b919061285f565b81518110610d3c57610d3b6126e6565b5b602002602001015114610e0a578560000160018760000180549050610d61919061285f565b81548110610d7257610d716126e6565b5b90600052602060002090600602018660000184600184610d92919061285f565b81518110610da357610da26126e6565b5b602002602001015181548110610dbc57610dbb6126e6565b5b90600052602060002090600602016000820154816000015560018201548160010155600282015481600201556003820154816003015560048201548160040155600582015481600501559050505b85600001805480610e1e57610e1d612893565b5b600190038181906000526020600020906006020160008082016000905560018201600090556002820160009055600382016000905560048201600090556005820160009055505090558080610e72906128c2565b915050610d00565b50600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33866040518363ffffffff1660e01b8152600401610ed892919061264c565b6020604051808303816000875af1158015610ef7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1b919061268a565b610f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5190612937565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e8486604051610fa2929190612957565b60405180910390a25050505050565b600860019054906101000a900460ff1681565b60606000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000018054905067ffffffffffffffff81111561102c5761102b6126b7565b5b60405190808252806020026020018201604052801561105a5781602001602082028036833780820191505090505b50905060005b8260000180549050811015611114576000836000018281548110611087576110866126e6565b5b9060005260206000209060060201905080600201544210156110de576110ba428260020154611f5c90919063ffffffff16565b8383815181106110cd576110cc6126e6565b5b602002602001018181525050611100565b60008383815181106110f3576110f26126e6565b5b6020026020010181815250505b50808061110c90612744565b915050611060565b508092505050919050565b60035481565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161118291906124df565b602060405180830381865afa15801561119f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c3919061261f565b905090565b6000806000905060005b600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001805490508110156112505761123b61122c8583611cce565b83611f4690919063ffffffff16565b9150808061124890612744565b9150506111d2565b5080915050919050565b60075481565b611268611ec8565b80600860016101000a81548160ff02191690831515021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600043905090565b6112bb611ec8565b6112c56000611f72565b565b600080600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000805b826000018054905081101561136d57611358836000018281548110611337576113366126e6565b5b90600052602060002090600602016000015483611f4690919063ffffffff16565b9150808061136590612744565b91505061130f565b506000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016113cb91906124df565b602060405180830381865afa1580156113e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061140c919061261f565b9050600081036114225760009350505050611455565b600061144b8261143d6127108661203690919063ffffffff16565b61204c90919063ffffffff16565b9050809450505050505b919050565b60055481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611491611ec8565b603c8161149e9190612980565b60038190555050565b6114af611ec8565b8060068190555050565b6114c1612062565b60011515600860019054906101000a900460ff16151514611517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150e90612a26565b60405180910390fd5b6000811161155a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155190612ab8565b60405180910390fd5b6000429050600061157660035483611f4690919063ffffffff16565b9050600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016040518060c0016040528085815260200184815260200183815260200143815260200143815260200160008152509080600181540180825580915050600190039060005260206000209060060201600090919091909150600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a082015181600501555050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b81526004016116ae93929190612ad8565b6020604051808303816000875af11580156116cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f1919061268a565b611730576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172790612b5b565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167fb4caaf29adda3eefee3ad552a8e85058589bf834c7466cae4ee58787f70589ed84848460405161177a93929190612b7b565b60405180910390a2505061178c6120b1565b50565b611797611ec8565b80600860006101000a81548160ff02191690831515021790555050565b6117bc611ec8565b8060058190555050565b6000806117d2836112c7565b905060006117ff6127106117f18460055461203690919063ffffffff16565b61204c90919063ffffffff16565b90508092505050919050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611879576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187090612bfe565b60405180910390fd5b6000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000805b82600001805490508110156119615760008360000182815481106118e7576118e66126e6565b5b9060005260206000209060060201905060006119033384611cce565b90506119188185611f4690919063ffffffff16565b9350600081111561194c57438260040181905550611943818360050154611f4690919063ffffffff16565b82600501819055505b5050808061195990612744565b9150506118c0565b50600081116119a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199c90612c6a565b60405180910390fd5b804710156119e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119df90612cd6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611a2e573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff167f1d3eee4ca001cff39eec6ec7615aacf2f2bd61791273830728ba00ccbd6e133782604051611a7591906120db565b60405180910390a25050565b6060806000600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000018054905067ffffffffffffffff811115611aea57611ae96126b7565b5b604051908082528060200260200182016040528015611b185781602001602082028036833780820191505090505b5090506000826000018054905067ffffffffffffffff811115611b3e57611b3d6126b7565b5b604051908082528060200260200182016040528015611b6c5781602001602082028036833780820191505090505b50905060005b8360000180549050811015611cac576000846000018281548110611b9957611b986126e6565b5b906000526020600020906006020190506000611bd8611bc560045460065461203690919063ffffffff16565b8360030154611f4690919063ffffffff16565b905080431015611bfa57611bf54382611f5c90919063ffffffff16565b611bfd565b60005b848481518110611c1057611c0f6126e6565b5b602002602001018181525050611c4b600754858581518110611c3557611c346126e6565b5b602002602001015161203690919063ffffffff16565b858481518110611c5e57611c5d6126e6565b5b60200260200101818152505081600201544210611c97576000858481518110611c8a57611c896126e6565b5b6020026020010181815250505b50508080611ca490612744565b915050611b72565b50818194509450505050915091565b600860009054906101000a900460ff1681565b600080600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018381548110611d2557611d246126e6565b5b906000526020600020906006020190506000611d64611d5160045460065461203690919063ffffffff16565b8360030154611f4690919063ffffffff16565b90506000814310611d755781611d77565b435b905080836004015410611d905760009350505050611dcd565b6000611da9846004015483611f5c90919063ffffffff16565b9050611dc681611db8896117c6565b61203690919063ffffffff16565b9450505050505b92915050565b611ddb611ec8565b611de3611460565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611e28573d6000803e3d6000fd5b50565b611e33611ec8565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ea2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9990612d68565b60405180910390fd5b611eab81611f72565b50565b611eb6611ec8565b81600781905550806004819055505050565b611ed06120ba565b73ffffffffffffffffffffffffffffffffffffffff16611eee611460565b73ffffffffffffffffffffffffffffffffffffffff1614611f44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3b90612dd4565b60405180910390fd5b565b60008183611f54919061278c565b905092915050565b60008183611f6a919061285f565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081836120449190612980565b905092915050565b6000818361205a9190612e23565b905092915050565b6002600154036120a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209e90612ea0565b60405180910390fd5b6002600181905550565b60018081905550565b600033905090565b6000819050919050565b6120d5816120c2565b82525050565b60006020820190506120f060008301846120cc565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612126826120fb565b9050919050565b6121368161211b565b811461214157600080fd5b50565b6000813590506121538161212d565b92915050565b60006020828403121561216f5761216e6120f6565b5b600061217d84828501612144565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6121bb816120c2565b82525050565b60006121cd83836121b2565b60208301905092915050565b6000602082019050919050565b60006121f182612186565b6121fb8185612191565b9350612206836121a2565b8060005b8381101561223757815161221e88826121c1565b9750612229836121d9565b92505060018101905061220a565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60c08201600082015161228660008501826121b2565b50602082015161229960208501826121b2565b5060408201516122ac60408501826121b2565b5060608201516122bf60608501826121b2565b5060808201516122d260808501826121b2565b5060a08201516122e560a08501826121b2565b50505050565b60006122f78383612270565b60c08301905092915050565b6000602082019050919050565b600061231b82612244565b612325818561224f565b935061233083612260565b8060005b8381101561236157815161234888826122eb565b975061235383612303565b925050600181019050612334565b5085935050505092915050565b6000604082019050818103600083015261238881856121e6565b9050818103602083015261239c8184612310565b90509392505050565b60008115159050919050565b6123ba816123a5565b82525050565b60006020820190506123d560008301846123b1565b92915050565b600060208201905081810360008301526123f581846121e6565b905092915050565b612406816123a5565b811461241157600080fd5b50565b600081359050612423816123fd565b92915050565b60006020828403121561243f5761243e6120f6565b5b600061244d84828501612414565b91505092915050565b6000819050919050565b600061247b612476612471846120fb565b612456565b6120fb565b9050919050565b600061248d82612460565b9050919050565b600061249f82612482565b9050919050565b6124af81612494565b82525050565b60006020820190506124ca60008301846124a6565b92915050565b6124d98161211b565b82525050565b60006020820190506124f460008301846124d0565b92915050565b612503816120c2565b811461250e57600080fd5b50565b600081359050612520816124fa565b92915050565b60006020828403121561253c5761253b6120f6565b5b600061254a84828501612511565b91505092915050565b6000604082019050818103600083015261256d81856121e6565b9050818103602083015261258181846121e6565b90509392505050565b600080604083850312156125a1576125a06120f6565b5b60006125af85828601612144565b92505060206125c085828601612511565b9150509250929050565b600080604083850312156125e1576125e06120f6565b5b60006125ef85828601612511565b925050602061260085828601612511565b9150509250929050565b600081519050612619816124fa565b92915050565b600060208284031215612635576126346120f6565b5b60006126438482850161260a565b91505092915050565b600060408201905061266160008301856124d0565b61266e60208301846120cc565b9392505050565b600081519050612684816123fd565b92915050565b6000602082840312156126a05761269f6120f6565b5b60006126ae84828501612675565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061274f826120c2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361278157612780612715565b5b600182019050919050565b6000612797826120c2565b91506127a2836120c2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156127d7576127d6612715565b5b828201905092915050565b600082825260208201905092915050565b7f4c6f636b2074696d65206e6f7420636f6d706c65746564207965742e00000000600082015250565b6000612829601c836127e2565b9150612834826127f3565b602082019050919050565b600060208201905081810360008301526128588161281c565b9050919050565b600061286a826120c2565b9150612875836120c2565b92508282101561288857612887612715565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006128cd826120c2565b9150600082036128e0576128df612715565b5b600182039050919050565b7f4661696c656420746f207472616e73666572204c5020746f6b656e732e000000600082015250565b6000612921601d836127e2565b915061292c826128eb565b602082019050919050565b6000602082019050818103600083015261295081612914565b9050919050565b600060408201905061296c60008301856120cc565b61297960208301846120cc565b9392505050565b600061298b826120c2565b9150612996836120c2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156129cf576129ce612715565b5b828202905092915050565b7f4465706f73697473206e65656420746f20626520656e61626c65640000000000600082015250565b6000612a10601b836127e2565b9150612a1b826129da565b602082019050919050565b60006020820190508181036000830152612a3f81612a03565b9050919050565b7f5374616b696e6720616d6f756e74206d7573742062652067726561746572207460008201527f68616e2030210000000000000000000000000000000000000000000000000000602082015250565b6000612aa26026836127e2565b9150612aad82612a46565b604082019050919050565b60006020820190508181036000830152612ad181612a95565b9050919050565b6000606082019050612aed60008301866124d0565b612afa60208301856124d0565b612b0760408301846120cc565b949350505050565b7f546f6b656e207472616e73666572206661696c65642100000000000000000000600082015250565b6000612b456016836127e2565b9150612b5082612b0f565b602082019050919050565b60006020820190508181036000830152612b7481612b38565b9050919050565b6000606082019050612b9060008301866120cc565b612b9d60208301856120cc565b612baa60408301846120cc565b949350505050565b7f696e76616c69642063616c6c6572210000000000000000000000000000000000600082015250565b6000612be8600f836127e2565b9150612bf382612bb2565b602082019050919050565b60006020820190508181036000830152612c1781612bdb565b9050919050565b7f4e6f207265776172647320746f20776974686472617700000000000000000000600082015250565b6000612c546016836127e2565b9150612c5f82612c1e565b602082019050919050565b60006020820190508181036000830152612c8381612c47565b9050919050565b7f696e73756666696369656e74204554482042616c616e63652100000000000000600082015250565b6000612cc06019836127e2565b9150612ccb82612c8a565b602082019050919050565b60006020820190508181036000830152612cef81612cb3565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612d526026836127e2565b9150612d5d82612cf6565b604082019050919050565b60006020820190508181036000830152612d8181612d45565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612dbe6020836127e2565b9150612dc982612d88565b602082019050919050565b60006020820190508181036000830152612ded81612db1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612e2e826120c2565b9150612e39836120c2565b925082612e4957612e48612df4565b5b828204905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612e8a601f836127e2565b9150612e9582612e54565b602082019050919050565b60006020820190508181036000830152612eb981612e7d565b905091905056fea26469706673582212206465ac3ecf44624b4460a416a1c1b8347b8b9f37105da223855f71dca281c80464736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a8a837e2bf0c37fef5c495951a0dfc33aaead57a
-----Decoded View---------------
Arg [0] : _rewardToken (address): 0xA8A837E2bf0c37fEf5C495951a0DFc33aaEAD57A
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a8a837e2bf0c37fef5c495951a0dfc33aaead57a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,690.77 | 0.2716 | $730.9 |
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.