More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 226 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 15144683 | 913 days ago | IN | 0 ETH | 0.0032776 | ||||
Get Reward | 14492056 | 1019 days ago | IN | 0 ETH | 0.00310186 | ||||
Exit | 13645239 | 1151 days ago | IN | 0 ETH | 0.01741958 | ||||
Get Reward | 13616263 | 1156 days ago | IN | 0 ETH | 0.0078903 | ||||
Get Reward | 13544494 | 1167 days ago | IN | 0 ETH | 0.01141034 | ||||
Get Reward | 13446988 | 1182 days ago | IN | 0 ETH | 0.0048458 | ||||
Withdraw | 13446954 | 1182 days ago | IN | 0 ETH | 0.00747472 | ||||
Get Reward | 13413819 | 1187 days ago | IN | 0 ETH | 0.00820763 | ||||
Get Reward | 13367406 | 1195 days ago | IN | 0 ETH | 0.00843882 | ||||
Exit | 13306161 | 1204 days ago | IN | 0 ETH | 0.00773577 | ||||
Get Reward | 13278906 | 1209 days ago | IN | 0 ETH | 0.00526491 | ||||
Stake | 13236659 | 1215 days ago | IN | 0 ETH | 0.0060675 | ||||
Withdraw | 13229676 | 1216 days ago | IN | 0 ETH | 0.00668458 | ||||
Get Reward | 13196638 | 1221 days ago | IN | 0 ETH | 0.00497334 | ||||
Exit | 13162259 | 1227 days ago | IN | 0 ETH | 0.01996917 | ||||
Exit | 13093232 | 1237 days ago | IN | 0 ETH | 0.01385735 | ||||
Withdraw | 13021951 | 1248 days ago | IN | 0 ETH | 0.00723719 | ||||
Get Reward | 13021946 | 1248 days ago | IN | 0 ETH | 0.00372169 | ||||
Get Reward | 13015224 | 1249 days ago | IN | 0 ETH | 0.00427425 | ||||
Get Reward | 13011473 | 1250 days ago | IN | 0 ETH | 0.00532086 | ||||
Get Reward | 12984673 | 1254 days ago | IN | 0 ETH | 0.00235951 | ||||
Get Reward | 12945171 | 1260 days ago | IN | 0 ETH | 0.00173665 | ||||
Stake | 12944223 | 1260 days ago | IN | 0 ETH | 0.00363307 | ||||
Get Reward | 12909602 | 1266 days ago | IN | 0 ETH | 0.00326532 | ||||
Get Reward | 12906356 | 1266 days ago | IN | 0 ETH | 0.00110514 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
DeflectPool
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity 0.6.12; /* ▓█████▄ ▓█████ ████ ▒██▓ ▓█████ ▄████▄ ▄▄▄█████▓ ██▓███ ▒█████ ▒█████ ██▓ ▒██▀ ██▌▓█ ▀ ▓██ ▒▓██▒ ▓█ ▀ ▒██▀ ▀█ ▓ ██▒ ▓▒ ▓██░ ██▒▒██▒ ██▒▒██▒ ██▒ ▓██▒ ░██ █▌▒███ ▒████ ░▒██░ ▒███ ▒▓█ ▄ ██░ ▒ ▓██░ ██▓▒▒██ ██▒▒██░ ██▒ ▒██░ ░▓█▄ ▌▒▓█ ▄ ░ ▓█▒ ░▒██░ ▒▓█ ▄ ▒▓▓▄ ▄██▒░ ██ ░ ▒██▄█▓▒ ▒▒██ ██░▒██ ██░ ▒██░ ░▒████▓ ░▒████▒░ ▒█░ ░██████▒░▒████▒▒ ▓███▀ ░ ▒██▒ ▒██▒ ░ ░░ ████▓▒░░ ████▓▒░░██████▒ ▒▒▓ ▒ ░░ ▒░ ░ ▒ ░ ░ ▒░▓ ░░░ ▒░ ░░ ░▒ ▒ ░ ▒ ░░ ▒▓▒░ ░ ░░ ▒░▒░▒░ ░ ▒░▒░▒░ ░ ▒░▓ ░ ░ ▒ ▒ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ▒ ░ ░▒ ░ ░ ▒ ▒░ ░ ▒ ▒░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░░ ░ ░ ░ ▒ ░ ░ ░ ▒ */ import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/Math.sol"; import "./LPTokenWrapper.sol"; import "./interfaces/IDeflector.sol"; import "./interfaces/IERC20Metadata.sol"; /** * @title DeflectPool * @author DEFLECT PROTOCOL * @dev This contract is a time-based yield farming pool with effective-staking multiplier mechanics. * * * * NOTE: A withdrawal fee of 1.5% is included which is sent to the treasury address. * * * */ contract DeflectPool is LPTokenWrapper, Ownable { using SafeERC20 for IERC20Metadata; IERC20Metadata public immutable rewardToken; uint256 public immutable stakingTokenMultiplier; IDeflector public immutable deflector; uint256 public immutable duration; uint256 public immutable deployedTime; address public immutable devFund; uint256 public periodFinish; uint256 public lastUpdateTime; uint256 public rewardRate; uint256 public rewardPerTokenStored; struct RewardInfo { uint256 rewards; uint256 userRewardPerTokenPaid; } mapping(address => RewardInfo) public rewards; event RewardAdded(uint256 reward); event Withdrawn(address indexed user, uint256 amount); event Staked(address indexed user, uint256 amount); event RewardPaid(address indexed user, uint256 reward); event Boost(address _token, uint256 level); // Set the staking token for the contract constructor( uint256 _duration, address _stakingToken, IERC20Metadata _rewardToken, address _deflector, address _treasury, address _devFund, uint256 _devFee ) public LPTokenWrapper(_devFee, _stakingToken, _treasury) Ownable() { require(_duration != 0 && _stakingToken != address(0) && _rewardToken != IERC20Metadata(0) && _deflector != address(0) && _treasury != address(0) && _devFund != address(0), "!constructor"); deflector = IDeflector(_deflector); stakingTokenMultiplier = 10**uint256(IERC20Metadata(_stakingToken).decimals()); rewardToken = _rewardToken; duration = _duration; deployedTime = block.timestamp; devFund = _devFund; } function setNewTreasury(address _treasury) external onlyOwner() { treasury = _treasury; } function lastTimeRewardsActive() public view returns (uint256) { return Math.min(block.timestamp, periodFinish); } /* @dev Returns the current rate of rewards per token (doh) */ function rewardPerToken() public view returns (uint256) { // Do not distribute rewards before startTime. if (block.timestamp < startTime) { return 0; } if (totalSupply == 0) { return rewardPerTokenStored; } // Effective total supply takes into account all the multipliers bought by userbase. uint256 effectiveTotalSupply = totalSupply.add(boostedTotalSupply); // The returrn value is time-based on last time the contract had rewards active multipliede by the reward-rate. // It's evened out with a division of bonus effective supply. return rewardPerTokenStored .add( lastTimeRewardsActive() .sub(lastUpdateTime) .mul(rewardRate) .mul(stakingTokenMultiplier) .div(effectiveTotalSupply) ); } /** @dev Returns the claimable tokens for user.*/ function earned(address account) public view returns (uint256) { uint256 effectiveBalance = _balances[account].balance.add(_balances[account].boostedBalance); RewardInfo memory userRewards = rewards[account]; return effectiveBalance.mul(rewardPerToken().sub(userRewards.userRewardPerTokenPaid)).div(stakingTokenMultiplier).add(userRewards.rewards); } /** @dev Staking function which updates the user balances in the parent contract */ function stake(uint256 amount) public override { require(amount > 0, "Cannot stake 0"); updateReward(msg.sender); // Call the parent to adjust the balances. super.stake(amount); // Adjust the bonus effective stake according to the multiplier. uint256 boostedBalance = deflector.calculateBoostedBalance(msg.sender, _balances[msg.sender].balance); adjustBoostedBalance(boostedBalance); emit Staked(msg.sender, amount); } /** @dev Withdraw function, this pool contains a tax which is defined in the constructor */ function withdraw(uint256 amount) public override { require(amount > 0, "Cannot withdraw 0"); updateReward(msg.sender); // Adjust regular balances super.withdraw(amount); // And the bonus balances uint256 boostedBalance = deflector.calculateBoostedBalance(msg.sender, _balances[msg.sender].balance); adjustBoostedBalance(boostedBalance); emit Withdrawn(msg.sender, amount); } /** @dev Adjust the bonus effective stakee for user and whole userbase */ function adjustBoostedBalance(uint256 _boostedBalance) private { Balance storage balances = _balances[msg.sender]; uint256 previousBoostedBalance = balances.boostedBalance; if (_boostedBalance > 0) { if (_boostedBalance < previousBoostedBalance) { uint256 diffBalancesAccounting = previousBoostedBalance.sub(_boostedBalance); boostedTotalSupply = boostedTotalSupply.sub(diffBalancesAccounting); } else { uint256 diffBalancesAccounting = _boostedBalance.sub(previousBoostedBalance); boostedTotalSupply = boostedTotalSupply.add(diffBalancesAccounting); } balances.boostedBalance = _boostedBalance; } } // Ease-of-access function for user to remove assets from the pool. function exit() external { getReward(); withdraw(balanceOf(msg.sender)); } // Sends out the reward tokens to the user. function getReward() public { updateReward(msg.sender); uint256 reward = earned(msg.sender); if (reward > 0) { rewards[msg.sender].rewards = 0; emit RewardPaid(msg.sender, reward); rewardToken.safeTransfer(msg.sender, reward); } } // Called to start the pool. // Owner must send rewards to the contract and the balance of this token is used as the reward to account for fee on transfer tokens. // The reward period will be the duration of the pool. function notifyRewardAmount() external onlyOwner() { uint256 reward = rewardToken.balanceOf(address(this)); require(reward > 0, "!reward added"); // Update reward values updateRewardPerTokenStored(); // Rewardrate must stay at a constant since it's used by end-users claiming rewards after the reward period has finished. if (block.timestamp >= periodFinish) { rewardRate = reward.div(duration); } else { // Remaining time for the pool uint256 remainingTime = periodFinish.sub(block.timestamp); // And the rewards uint256 rewardsRemaining = remainingTime.mul(rewardRate); // Set the current rate rewardRate = reward.add(rewardsRemaining).div(duration); } // Set the last updated lastUpdateTime = block.timestamp; startTime = block.timestamp; // Add the period to be equal to duration set.s periodFinish = block.timestamp.add(duration); emit RewardAdded(reward); } // Purchase a multiplier level, same level cannot be purchased twice. function purchase(address _token, uint256 _newLevel) external { require(block.timestamp < periodFinish, "cannot buy after pool ends"); updateReward(msg.sender); // Calculates cost, ensures it is a new level too uint256 cost = deflector.calculateCost(msg.sender, _token, _newLevel); require(cost > 0, "cost cannot be 0"); // Update level in multiplier contract uint256 newBoostedBalance = deflector.updateLevel(msg.sender, _token, _newLevel, _balances[msg.sender].balance); // Adjust new level adjustBoostedBalance(newBoostedBalance); emit Boost(_token, _newLevel); uint256 actualCost = cost.mul(periodFinish - block.timestamp).div(duration); uint256 devPortion = actualCost.mul(25) / 100; // Transfer the bonus cost into the treasury and dev fund. IERC20Metadata(_token).safeTransferFrom(msg.sender, devFund, devPortion); IERC20Metadata(_token).safeTransferFrom(msg.sender, treasury, actualCost - devPortion); } // Sync after minting more prism function sync() external { updateReward(msg.sender); uint256 boostedBalance = deflector.calculateBoostedBalance(msg.sender, _balances[msg.sender].balance); require(boostedBalance > _balances[msg.sender].boostedBalance, "DeflectPool::sync: Invalid sync invocation"); // Adjust new level adjustBoostedBalance(boostedBalance); } // Returns the multiplier for user. function getUserMultiplier() external view returns (uint256) { // And the bonus balances uint256 boostedBalance = deflector.calculateBoostedBalance(msg.sender, _balances[msg.sender].balance); if (boostedBalance == 0) return 0; return boostedBalance * 100 / _balances[msg.sender].balance; } function getLevelCost(address _token, uint256 _level) external view returns (uint256) { return deflector.calculateCost(msg.sender, _token, _level); } // Ejects any remaining tokens from the pool. // Callable only after the pool has started and the pools reward distribution period has finished. function eject() external onlyOwner() { require(block.timestamp >= periodFinish + 12 hours, "Cannot eject before period finishes or pool has started"); uint256 currBalance = rewardToken.balanceOf(address(this)); rewardToken.safeTransfer(msg.sender, currBalance); } // Forcefully retire a pool // Only sets the period finish to 0 // This will prevent more rewards from being disbursed function kill() external onlyOwner() { periodFinish = block.timestamp; } // Callable only after the pool has started and the pools reward distribution period has finished. function emergencyWithdraw() external { require(block.timestamp >= periodFinish + 12 hours, "DeflectPool::emergencyWithdraw: Cannot emergency withdraw before period finishes or pool has started"); uint256 fullWithdrawal = balanceOf(msg.sender); require(fullWithdrawal > 0, "DeflectPool::emergencyWithdraw: Cannot withdraw 0"); super.withdraw(fullWithdrawal); emit Withdrawn(msg.sender, fullWithdrawal); } function updateRewardPerTokenStored() internal { rewardPerTokenStored = rewardPerToken(); lastUpdateTime = lastTimeRewardsActive(); } function updateReward(address account) internal { updateRewardPerTokenStored(); rewards[account].rewards = earned(account); rewards[account].userRewardPerTokenPaid = rewardPerTokenStored; } }
//SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; abstract contract LPTokenWrapper { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public immutable stakingToken; uint256 public immutable devFee; address public treasury; // Returns the total staked tokens within the contract uint256 public totalSupply; uint256 public boostedTotalSupply; uint256 public startTime; struct Balance { uint256 balance; uint256 boostedBalance; } mapping(address => Balance) internal _balances; constructor( uint256 _devFee, address _stakingToken, address _treasury ) public { devFee = _devFee; stakingToken = IERC20(_stakingToken); treasury = _treasury; } // Returns staking balance of the account function balanceOf(address account) public view returns (uint256) { return _balances[account].balance; } function boostedBalanceOf(address account) public view returns (uint256) { return _balances[account].boostedBalance; } // Stake funds into the pool function stake(uint256 amount) public virtual { // Increment sender's balances and total supply _balances[msg.sender].balance = _balances[msg.sender].balance.add( amount ); totalSupply = totalSupply.add(amount); // Transfer funds stakingToken.safeTransferFrom(msg.sender, address(this), amount); } // Subtract balances withdrawn from the user function withdraw(uint256 amount) public virtual { totalSupply = totalSupply.sub(amount); _balances[msg.sender].balance = _balances[msg.sender].balance.sub( amount ); // Calculate the withdraw tax (it's 1.5% of the amount) uint256 tax = amount.mul(devFee).div(1000); // Transfer the tokens to user stakingToken.safeTransfer(msg.sender, amount - tax); // Tax to treasury stakingToken.safeTransfer(treasury, tax); } }
//SPDX-License-Identifier: MIT pragma solidity ^0.6.0; interface IDeflector { function calculateBoostedBalance(address _user, uint256 _balance) external view returns (uint256); function calculateCost( address _user, address _token, uint256 _nextLevel ) external view returns (uint256); function updateLevel( address _user, address _token, uint256 _nextLevel, uint256 _balance ) external returns (uint256); }
//SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IERC20Metadata is IERC20 { function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev 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, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 999999 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"contract IERC20Metadata","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_deflector","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_devFund","type":"address"},{"internalType":"uint256","name":"_devFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"level","type":"uint256"}],"name":"Boost","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":"account","type":"address"}],"name":"boostedBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostedTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deflector","outputs":[{"internalType":"contract IDeflector","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deployedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFund","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":[],"name":"eject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_level","type":"uint256"}],"name":"getLevelCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getUserMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastTimeRewardsActive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_newLevel","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"nonpayable","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":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"userRewardPerTokenPaid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setNewTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingTokenMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"nonpayable","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":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101806040523480156200001257600080fd5b5060405162002b9638038062002b96833981810160405260e08110156200003857600080fd5b5080516020820151604083015160608085015160808087015160a08089015160c090990151908190529386901b6001600160601b031916909152600080546001600160a01b0319166001600160a01b0383161781559596949593949193909290620000a262000260565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35086158015906200010857506001600160a01b03861615155b80156200011d57506001600160a01b03851615155b80156200013257506001600160a01b03841615155b80156200014757506001600160a01b03831615155b80156200015c57506001600160a01b03821615155b6200019d576040805162461bcd60e51b815260206004820152600c60248201526b10b1b7b739ba393ab1ba37b960a11b604482015290519081900360640190fd5b836001600160a01b0316610100816001600160a01b031660601b81525050856001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015620001f557600080fd5b505afa1580156200020a573d6000803e3d6000fd5b505050506040513d60208110156200022157600080fd5b505160ff16600a0a60e052506001600160601b0319606094851b811660c05261012096909652426101405290921b909316610160525062000264915050565b3390565b60805160601c60a05160c05160601c60e0516101005160601c61012051610140516101605160601c61285a6200033c60003980610dc85280611564525080610dec52508061088552806108e15280610921528061098052806114f6525080610a065280610bbd5280610e5052806112d3528061142352806117b252806118be5280611d4452508061063952806116ad528061198a52508061074f5280610cee52806110f252806111bf5280611cb7525080610e2c52806120b9525080610fb352806120f95280612140528061235e525061285a6000f3fe608060405234801561001057600080fd5b50600436106102915760003560e01c80637b0a47ee11610160578063c8f33c91116100d8578063e9fad8ee1161008c578063f2fde38b11610071578063f2fde38b14610567578063f7c618c11461059a578063fff6cae9146105a257610291565b8063e9fad8ee14610557578063ebe2b12b1461055f57610291565b8063db2e21bc116100bd578063db2e21bc1461053f578063df136d6514610547578063e78b69f01461054f57610291565b8063c8f33c911461052f578063cd3daf9d1461053757610291565b80638de932221161012f5780639eade652116101145780639eade652146104d1578063a694fc3a146104d9578063b38ef2e8146104f657610291565b80638de93222146104655780638f9a372d1461049e57610291565b80637b0a47ee146104455780638112643c1461044d57806382e94ac5146104555780638da5cb5b1461045d57610291565b806341c0e1b51161020e5780636b909a07116101c2578063715018a6116101a7578063715018a61461042d57806372f702f31461043557806378e979251461043d57610291565b80636b909a07146103f257806370a08231146103fa57610291565b8063461ac019116101f3578063461ac019146103da57806361d027b3146103e25780636827e764146103ea57610291565b806341c0e1b5146103a15780634390d2a8146103a957610291565b80630fd9dd48116102655780631beabcd21161024a5780631beabcd2146103495780632e1a7d4d1461037c5780633d18b9121461039957610291565b80630fd9dd481461033957806318160ddd1461034157610291565b80628cc262146102965780630700037d146102db5780630c51dde4146103275780630fb5a6b414610331575b600080fd5b6102c9600480360360208110156102ac57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166105aa565b60408051918252519081900360200190f35b61030e600480360360208110156102f157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661068a565b6040805192835260208301919091528051918290030190f35b61032f6106a3565b005b6102c961097e565b6102c96109a2565b6102c9610aa9565b6102c96004803603602081101561035f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610aaf565b61032f6004803603602081101561039257600080fd5b5035610ada565b61032f610c71565b61032f610d18565b6103b1610dc6565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102c9610dea565b6103b1610e0e565b6102c9610e2a565b6103b1610e4e565b6102c96004803603602081101561041057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610e72565b61032f610e9a565b6103b1610fb1565b6102c9610fd5565b6102c9610fdb565b6102c9610fe1565b61032f610fe7565b6103b16111e6565b61032f6004803603604081101561047b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611202565b61032f600480360360208110156104b457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166115bc565b6102c96116ab565b61032f600480360360208110156104ef57600080fd5b50356116cf565b6102c96004803603604081101561050c57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611866565b6102c9611939565b6102c961193f565b61032f6119d2565b6102c9611ad9565b6102c9611adf565b61032f611af2565b6102c9611b0d565b61032f6004803603602081101561057d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611b13565b6103b1611cb5565b61032f611cd9565b73ffffffffffffffffffffffffffffffffffffffff811660009081526004602052604081206001810154905482916105e29190611e29565b90506105ec6126a3565b5073ffffffffffffffffffffffffffffffffffffffff83166000908152600a6020908152604091829020825180840190935280548084526001909101549183018290526106829161067c907f0000000000000000000000000000000000000000000000000000000000000000906106769061066f9061066961193f565b90611ea4565b8790611f1b565b90611f8e565b90611e29565b949350505050565b600a602052600090815260409020805460019091015482565b6106ab61200f565b73ffffffffffffffffffffffffffffffffffffffff166106c96111e6565b73ffffffffffffffffffffffffffffffffffffffff161461074b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156107d457600080fd5b505afa1580156107e8573d6000803e3d6000fd5b505050506040513d60208110156107fe57600080fd5b505190508061086e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f2172657761726420616464656400000000000000000000000000000000000000604482015290519081900360640190fd5b610876612013565b60065442106108b1576108a9817f0000000000000000000000000000000000000000000000000000000000000000611f8e565b600855610910565b6006546000906108c19042611ea4565b905060006108da60085483611f1b90919063ffffffff16565b905061090a7f00000000000000000000000000000000000000000000000000000000000000006106768584611e29565b60085550505b4260078190556003819055610945907f0000000000000000000000000000000000000000000000000000000000000000611e29565b6006556040805182815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a150565b7f000000000000000000000000000000000000000000000000000000000000000081565b3360008181526004602081815260408084205481517f7721d79e00000000000000000000000000000000000000000000000000000000815293840195909552602483019490945292519192839273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001692637721d79e926044808301939192829003018186803b158015610a4957600080fd5b505afa158015610a5d573d6000803e3d6000fd5b505050506040513d6020811015610a7357600080fd5b5051905080610a86576000915050610aa6565b336000908152600460205260409020546064820281610aa157fe5b049150505b90565b60015481565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090206001015490565b60008111610b4957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b610b523361202b565b610b5b81612070565b3360008181526004602081815260408084205481517f7721d79e0000000000000000000000000000000000000000000000000000000081529384019590955260248301949094529251919273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001692637721d79e926044808201939291829003018186803b158015610c0057600080fd5b505afa158015610c14573d6000803e3d6000fd5b505050506040513d6020811015610c2a57600080fd5b50519050610c378161216d565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b610c7a3361202b565b6000610c85336105aa565b90508015610d1557336000818152600a6020908152604080832092909255815184815291517fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869281900390910190a2610d1573ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633836121e2565b50565b610d2061200f565b73ffffffffffffffffffffffffffffffffffffffff16610d3e6111e6565b73ffffffffffffffffffffffffffffffffffffffff1614610dc057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b42600655565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205490565b610ea261200f565b73ffffffffffffffffffffffffffffffffffffffff16610ec06111e6565b73ffffffffffffffffffffffffffffffffffffffff1614610f4257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b7f000000000000000000000000000000000000000000000000000000000000000081565b60035481565b60085481565b60025481565b610fef61200f565b73ffffffffffffffffffffffffffffffffffffffff1661100d6111e6565b73ffffffffffffffffffffffffffffffffffffffff161461108f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60065461a8c0014210156110ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260378152602001806127ee6037913960400191505060405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561117757600080fd5b505afa15801561118b573d6000803e3d6000fd5b505050506040513d60208110156111a157600080fd5b50519050610d1573ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633836121e2565b60055473ffffffffffffffffffffffffffffffffffffffff1690565b600654421061127257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f63616e6e6f742062757920616674657220706f6f6c20656e6473000000000000604482015290519081900360640190fd5b61127b3361202b565b604080517f53364c5000000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff84811660248301526044820184905291516000927f000000000000000000000000000000000000000000000000000000000000000016916353364c50916064808301926020929190829003018186803b15801561131957600080fd5b505afa15801561132d573d6000803e3d6000fd5b505050506040513d602081101561134357600080fd5b50519050806113b357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f636f73742063616e6e6f74206265203000000000000000000000000000000000604482015290519081900360640190fd5b3360008181526004602081815260408084205481517fc0e26f9f0000000000000000000000000000000000000000000000000000000081529384019590955273ffffffffffffffffffffffffffffffffffffffff88811660248501526044840188905260648401959095525192937f0000000000000000000000000000000000000000000000000000000000000000169263c0e26f9f92608480820193929182900301818787803b15801561146757600080fd5b505af115801561147b573d6000803e3d6000fd5b505050506040513d602081101561149157600080fd5b5051905061149e8161216d565b6040805173ffffffffffffffffffffffffffffffffffffffff861681526020810185905281517fe31c25a8c942cffbe38e830ad0320372c461b098e910c8ee77567f287ca603fe929181900390910190a1600061152c7f0000000000000000000000000000000000000000000000000000000000000000610676426006540386611f1b90919063ffffffff16565b90506000606461153d836019611f1b565b8161154457fe5b04905061158973ffffffffffffffffffffffffffffffffffffffff8716337f00000000000000000000000000000000000000000000000000000000000000008461226f565b6000546115b49073ffffffffffffffffffffffffffffffffffffffff8881169133911684860361226f565b505050505050565b6115c461200f565b73ffffffffffffffffffffffffffffffffffffffff166115e26111e6565b73ffffffffffffffffffffffffffffffffffffffff161461166457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000811161173e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b6117473361202b565b6117508161230a565b3360008181526004602081815260408084205481517f7721d79e0000000000000000000000000000000000000000000000000000000081529384019590955260248301949094529251919273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001692637721d79e926044808201939291829003018186803b1580156117f557600080fd5b505afa158015611809573d6000803e3d6000fd5b505050506040513d602081101561181f57600080fd5b5051905061182c8161216d565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b604080517f53364c5000000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff84811660248301526044820184905291516000927f000000000000000000000000000000000000000000000000000000000000000016916353364c50916064808301926020929190829003018186803b15801561190457600080fd5b505afa158015611918573d6000803e3d6000fd5b505050506040513d602081101561192e57600080fd5b505190505b92915050565b60075481565b600060035442101561195357506000610aa6565b6001546119635750600954610aa6565b600061197c600254600154611e2990919063ffffffff16565b90506119cc6119c3826106767f00000000000000000000000000000000000000000000000000000000000000006119bd6008546119bd600754610669611adf565b90611f1b565b60095490611e29565b91505090565b60065461a8c001421015611a31576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260648152602001806127606064913960800191505060405180910390fd5b6000611a3c33610e72565b905060008111611a97576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603181526020018061272f6031913960400191505060405180910390fd5b611aa081612070565b60408051828152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250565b60095481565b6000611aed42600654612386565b905090565b611afa610c71565b611b0b611b0633610e72565b610ada565b565b60065481565b611b1b61200f565b73ffffffffffffffffffffffffffffffffffffffff16611b396111e6565b73ffffffffffffffffffffffffffffffffffffffff1614611bbb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611c27576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806126e86026913960400191505060405180910390fd5b60055460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b611ce23361202b565b3360008181526004602081815260408084205481517f7721d79e0000000000000000000000000000000000000000000000000000000081529384019590955260248301949094529251919273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001692637721d79e926044808201939291829003018186803b158015611d8757600080fd5b505afa158015611d9b573d6000803e3d6000fd5b505050506040513d6020811015611db157600080fd5b5051336000908152600460205260409020600101549091508111611e20576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806126be602a913960400191505060405180910390fd5b610d158161216d565b600082820183811015611e9d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082821115611f1557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082611f2a57506000611933565b82820282848281611f3757fe5b0414611e9d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061270e6021913960400191505060405180910390fd5b6000808211611ffe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161200757fe5b049392505050565b3390565b61201b61193f565b600955612026611adf565b600755565b612033612013565b61203c816105aa565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600a60205260409020908155600954600190910155565b60015461207d9082611ea4565b6001553360009081526004602052604090205461209a9082611ea4565b336000908152600460205260408120919091556120dd6103e8610676847f0000000000000000000000000000000000000000000000000000000000000000611f1b565b905061212273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016338385036121e2565b6000546121699073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081169116836121e2565b5050565b336000908152600460205260409020600181015482156121dd57808310156121b457600061219b8285611ea4565b6002549091506121ab9082611ea4565b600255506121d5565b60006121c08483611ea4565b6002549091506121d09082611e29565b600255505b600182018390555b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526121dd90849061239c565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261230490859061239c565b50505050565b336000908152600460205260409020546123249082611e29565b336000908152600460205260409020556001546123419082611e29565b600155610d1573ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633308461226f565b60008183106123955781611e9d565b5090919050565b60606123fe826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166124749092919063ffffffff16565b8051909150156121dd5780806020019051602081101561241d57600080fd5b50516121dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806127c4602a913960400191505060405180910390fd5b6060610682848460008585612488856125df565b6124f357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061255d57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612520565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146125bf576040519150601f19603f3d011682016040523d82523d6000602084013e6125c4565b606091505b50915091506125d48282866125e5565b979650505050505050565b3b151590565b606083156125f4575081611e9d565b8251156126045782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612668578181015183820152602001612650565b50505050905090810190601f1680156126955780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60405180604001604052806000815260200160008152509056fe4465666c656374506f6f6c3a3a73796e633a20496e76616c69642073796e6320696e766f636174696f6e4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774465666c656374506f6f6c3a3a656d657267656e637957697468647261773a2043616e6e6f7420776974686472617720304465666c656374506f6f6c3a3a656d657267656e637957697468647261773a2043616e6e6f7420656d657267656e6379207769746864726177206265666f726520706572696f642066696e6973686573206f7220706f6f6c2068617320737461727465645361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420656a656374206265666f726520706572696f642066696e6973686573206f7220706f6f6c206861732073746172746564a264697066735822122069ebd592429d5ad929276db2e1269bc4d9ecfe8380d29b1863e87c65307b6f5964736f6c634300060c0033000000000000000000000000000000000000000000000000000000000114db00000000000000000000000000bd7326e81993e6783682a85bb6b7d2df82e1750900000000000000000000000095a8a98727272ed6ee7b7834c081e55801dcd9e5000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af0000000000000000000000005abbd94bb0561938130d83fda22e672110e12528000000000000000000000000d6f8da21cb98e9eb3cd27a9034e1a71d17bec9ed000000000000000000000000000000000000000000000000000000000000000f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102915760003560e01c80637b0a47ee11610160578063c8f33c91116100d8578063e9fad8ee1161008c578063f2fde38b11610071578063f2fde38b14610567578063f7c618c11461059a578063fff6cae9146105a257610291565b8063e9fad8ee14610557578063ebe2b12b1461055f57610291565b8063db2e21bc116100bd578063db2e21bc1461053f578063df136d6514610547578063e78b69f01461054f57610291565b8063c8f33c911461052f578063cd3daf9d1461053757610291565b80638de932221161012f5780639eade652116101145780639eade652146104d1578063a694fc3a146104d9578063b38ef2e8146104f657610291565b80638de93222146104655780638f9a372d1461049e57610291565b80637b0a47ee146104455780638112643c1461044d57806382e94ac5146104555780638da5cb5b1461045d57610291565b806341c0e1b51161020e5780636b909a07116101c2578063715018a6116101a7578063715018a61461042d57806372f702f31461043557806378e979251461043d57610291565b80636b909a07146103f257806370a08231146103fa57610291565b8063461ac019116101f3578063461ac019146103da57806361d027b3146103e25780636827e764146103ea57610291565b806341c0e1b5146103a15780634390d2a8146103a957610291565b80630fd9dd48116102655780631beabcd21161024a5780631beabcd2146103495780632e1a7d4d1461037c5780633d18b9121461039957610291565b80630fd9dd481461033957806318160ddd1461034157610291565b80628cc262146102965780630700037d146102db5780630c51dde4146103275780630fb5a6b414610331575b600080fd5b6102c9600480360360208110156102ac57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166105aa565b60408051918252519081900360200190f35b61030e600480360360208110156102f157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661068a565b6040805192835260208301919091528051918290030190f35b61032f6106a3565b005b6102c961097e565b6102c96109a2565b6102c9610aa9565b6102c96004803603602081101561035f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610aaf565b61032f6004803603602081101561039257600080fd5b5035610ada565b61032f610c71565b61032f610d18565b6103b1610dc6565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102c9610dea565b6103b1610e0e565b6102c9610e2a565b6103b1610e4e565b6102c96004803603602081101561041057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610e72565b61032f610e9a565b6103b1610fb1565b6102c9610fd5565b6102c9610fdb565b6102c9610fe1565b61032f610fe7565b6103b16111e6565b61032f6004803603604081101561047b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611202565b61032f600480360360208110156104b457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166115bc565b6102c96116ab565b61032f600480360360208110156104ef57600080fd5b50356116cf565b6102c96004803603604081101561050c57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611866565b6102c9611939565b6102c961193f565b61032f6119d2565b6102c9611ad9565b6102c9611adf565b61032f611af2565b6102c9611b0d565b61032f6004803603602081101561057d57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611b13565b6103b1611cb5565b61032f611cd9565b73ffffffffffffffffffffffffffffffffffffffff811660009081526004602052604081206001810154905482916105e29190611e29565b90506105ec6126a3565b5073ffffffffffffffffffffffffffffffffffffffff83166000908152600a6020908152604091829020825180840190935280548084526001909101549183018290526106829161067c907f0000000000000000000000000000000000000000000000000de0b6b3a7640000906106769061066f9061066961193f565b90611ea4565b8790611f1b565b90611f8e565b90611e29565b949350505050565b600a602052600090815260409020805460019091015482565b6106ab61200f565b73ffffffffffffffffffffffffffffffffffffffff166106c96111e6565b73ffffffffffffffffffffffffffffffffffffffff161461074b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60007f00000000000000000000000095a8a98727272ed6ee7b7834c081e55801dcd9e573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156107d457600080fd5b505afa1580156107e8573d6000803e3d6000fd5b505050506040513d60208110156107fe57600080fd5b505190508061086e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f2172657761726420616464656400000000000000000000000000000000000000604482015290519081900360640190fd5b610876612013565b60065442106108b1576108a9817f000000000000000000000000000000000000000000000000000000000114db00611f8e565b600855610910565b6006546000906108c19042611ea4565b905060006108da60085483611f1b90919063ffffffff16565b905061090a7f000000000000000000000000000000000000000000000000000000000114db006106768584611e29565b60085550505b4260078190556003819055610945907f000000000000000000000000000000000000000000000000000000000114db00611e29565b6006556040805182815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a150565b7f000000000000000000000000000000000000000000000000000000000114db0081565b3360008181526004602081815260408084205481517f7721d79e00000000000000000000000000000000000000000000000000000000815293840195909552602483019490945292519192839273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af1692637721d79e926044808301939192829003018186803b158015610a4957600080fd5b505afa158015610a5d573d6000803e3d6000fd5b505050506040513d6020811015610a7357600080fd5b5051905080610a86576000915050610aa6565b336000908152600460205260409020546064820281610aa157fe5b049150505b90565b60015481565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090206001015490565b60008111610b4957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b610b523361202b565b610b5b81612070565b3360008181526004602081815260408084205481517f7721d79e0000000000000000000000000000000000000000000000000000000081529384019590955260248301949094529251919273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af1692637721d79e926044808201939291829003018186803b158015610c0057600080fd5b505afa158015610c14573d6000803e3d6000fd5b505050506040513d6020811015610c2a57600080fd5b50519050610c378161216d565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b610c7a3361202b565b6000610c85336105aa565b90508015610d1557336000818152600a6020908152604080832092909255815184815291517fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869281900390910190a2610d1573ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000095a8a98727272ed6ee7b7834c081e55801dcd9e51633836121e2565b50565b610d2061200f565b73ffffffffffffffffffffffffffffffffffffffff16610d3e6111e6565b73ffffffffffffffffffffffffffffffffffffffff1614610dc057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b42600655565b7f000000000000000000000000d6f8da21cb98e9eb3cd27a9034e1a71d17bec9ed81565b7f0000000000000000000000000000000000000000000000000000000060899db781565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000f81565b7f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af81565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205490565b610ea261200f565b73ffffffffffffffffffffffffffffffffffffffff16610ec06111e6565b73ffffffffffffffffffffffffffffffffffffffff1614610f4257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b7f000000000000000000000000bd7326e81993e6783682a85bb6b7d2df82e1750981565b60035481565b60085481565b60025481565b610fef61200f565b73ffffffffffffffffffffffffffffffffffffffff1661100d6111e6565b73ffffffffffffffffffffffffffffffffffffffff161461108f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60065461a8c0014210156110ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260378152602001806127ee6037913960400191505060405180910390fd5b60007f00000000000000000000000095a8a98727272ed6ee7b7834c081e55801dcd9e573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561117757600080fd5b505afa15801561118b573d6000803e3d6000fd5b505050506040513d60208110156111a157600080fd5b50519050610d1573ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000095a8a98727272ed6ee7b7834c081e55801dcd9e51633836121e2565b60055473ffffffffffffffffffffffffffffffffffffffff1690565b600654421061127257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f63616e6e6f742062757920616674657220706f6f6c20656e6473000000000000604482015290519081900360640190fd5b61127b3361202b565b604080517f53364c5000000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff84811660248301526044820184905291516000927f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af16916353364c50916064808301926020929190829003018186803b15801561131957600080fd5b505afa15801561132d573d6000803e3d6000fd5b505050506040513d602081101561134357600080fd5b50519050806113b357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f636f73742063616e6e6f74206265203000000000000000000000000000000000604482015290519081900360640190fd5b3360008181526004602081815260408084205481517fc0e26f9f0000000000000000000000000000000000000000000000000000000081529384019590955273ffffffffffffffffffffffffffffffffffffffff88811660248501526044840188905260648401959095525192937f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af169263c0e26f9f92608480820193929182900301818787803b15801561146757600080fd5b505af115801561147b573d6000803e3d6000fd5b505050506040513d602081101561149157600080fd5b5051905061149e8161216d565b6040805173ffffffffffffffffffffffffffffffffffffffff861681526020810185905281517fe31c25a8c942cffbe38e830ad0320372c461b098e910c8ee77567f287ca603fe929181900390910190a1600061152c7f000000000000000000000000000000000000000000000000000000000114db00610676426006540386611f1b90919063ffffffff16565b90506000606461153d836019611f1b565b8161154457fe5b04905061158973ffffffffffffffffffffffffffffffffffffffff8716337f000000000000000000000000d6f8da21cb98e9eb3cd27a9034e1a71d17bec9ed8461226f565b6000546115b49073ffffffffffffffffffffffffffffffffffffffff8881169133911684860361226f565b505050505050565b6115c461200f565b73ffffffffffffffffffffffffffffffffffffffff166115e26111e6565b73ffffffffffffffffffffffffffffffffffffffff161461166457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b7f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b6000811161173e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b6117473361202b565b6117508161230a565b3360008181526004602081815260408084205481517f7721d79e0000000000000000000000000000000000000000000000000000000081529384019590955260248301949094529251919273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af1692637721d79e926044808201939291829003018186803b1580156117f557600080fd5b505afa158015611809573d6000803e3d6000fd5b505050506040513d602081101561181f57600080fd5b5051905061182c8161216d565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b604080517f53364c5000000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff84811660248301526044820184905291516000927f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af16916353364c50916064808301926020929190829003018186803b15801561190457600080fd5b505afa158015611918573d6000803e3d6000fd5b505050506040513d602081101561192e57600080fd5b505190505b92915050565b60075481565b600060035442101561195357506000610aa6565b6001546119635750600954610aa6565b600061197c600254600154611e2990919063ffffffff16565b90506119cc6119c3826106767f0000000000000000000000000000000000000000000000000de0b6b3a76400006119bd6008546119bd600754610669611adf565b90611f1b565b60095490611e29565b91505090565b60065461a8c001421015611a31576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260648152602001806127606064913960800191505060405180910390fd5b6000611a3c33610e72565b905060008111611a97576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603181526020018061272f6031913960400191505060405180910390fd5b611aa081612070565b60408051828152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250565b60095481565b6000611aed42600654612386565b905090565b611afa610c71565b611b0b611b0633610e72565b610ada565b565b60065481565b611b1b61200f565b73ffffffffffffffffffffffffffffffffffffffff16611b396111e6565b73ffffffffffffffffffffffffffffffffffffffff1614611bbb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611c27576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806126e86026913960400191505060405180910390fd5b60055460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b7f00000000000000000000000095a8a98727272ed6ee7b7834c081e55801dcd9e581565b611ce23361202b565b3360008181526004602081815260408084205481517f7721d79e0000000000000000000000000000000000000000000000000000000081529384019590955260248301949094529251919273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af1692637721d79e926044808201939291829003018186803b158015611d8757600080fd5b505afa158015611d9b573d6000803e3d6000fd5b505050506040513d6020811015611db157600080fd5b5051336000908152600460205260409020600101549091508111611e20576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806126be602a913960400191505060405180910390fd5b610d158161216d565b600082820183811015611e9d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082821115611f1557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082611f2a57506000611933565b82820282848281611f3757fe5b0414611e9d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061270e6021913960400191505060405180910390fd5b6000808211611ffe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161200757fe5b049392505050565b3390565b61201b61193f565b600955612026611adf565b600755565b612033612013565b61203c816105aa565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600a60205260409020908155600954600190910155565b60015461207d9082611ea4565b6001553360009081526004602052604090205461209a9082611ea4565b336000908152600460205260408120919091556120dd6103e8610676847f000000000000000000000000000000000000000000000000000000000000000f611f1b565b905061212273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000bd7326e81993e6783682a85bb6b7d2df82e1750916338385036121e2565b6000546121699073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000bd7326e81993e6783682a85bb6b7d2df82e1750981169116836121e2565b5050565b336000908152600460205260409020600181015482156121dd57808310156121b457600061219b8285611ea4565b6002549091506121ab9082611ea4565b600255506121d5565b60006121c08483611ea4565b6002549091506121d09082611e29565b600255505b600182018390555b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526121dd90849061239c565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261230490859061239c565b50505050565b336000908152600460205260409020546123249082611e29565b336000908152600460205260409020556001546123419082611e29565b600155610d1573ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000bd7326e81993e6783682a85bb6b7d2df82e175091633308461226f565b60008183106123955781611e9d565b5090919050565b60606123fe826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166124749092919063ffffffff16565b8051909150156121dd5780806020019051602081101561241d57600080fd5b50516121dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806127c4602a913960400191505060405180910390fd5b6060610682848460008585612488856125df565b6124f357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061255d57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612520565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146125bf576040519150601f19603f3d011682016040523d82523d6000602084013e6125c4565b606091505b50915091506125d48282866125e5565b979650505050505050565b3b151590565b606083156125f4575081611e9d565b8251156126045782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612668578181015183820152602001612650565b50505050905090810190601f1680156126955780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60405180604001604052806000815260200160008152509056fe4465666c656374506f6f6c3a3a73796e633a20496e76616c69642073796e6320696e766f636174696f6e4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774465666c656374506f6f6c3a3a656d657267656e637957697468647261773a2043616e6e6f7420776974686472617720304465666c656374506f6f6c3a3a656d657267656e637957697468647261773a2043616e6e6f7420656d657267656e6379207769746864726177206265666f726520706572696f642066696e6973686573206f7220706f6f6c2068617320737461727465645361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420656a656374206265666f726520706572696f642066696e6973686573206f7220706f6f6c206861732073746172746564a264697066735822122069ebd592429d5ad929276db2e1269bc4d9ecfe8380d29b1863e87c65307b6f5964736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000114db00000000000000000000000000bd7326e81993e6783682a85bb6b7d2df82e1750900000000000000000000000095a8a98727272ed6ee7b7834c081e55801dcd9e5000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af0000000000000000000000005abbd94bb0561938130d83fda22e672110e12528000000000000000000000000d6f8da21cb98e9eb3cd27a9034e1a71d17bec9ed000000000000000000000000000000000000000000000000000000000000000f
-----Decoded View---------------
Arg [0] : _duration (uint256): 18144000
Arg [1] : _stakingToken (address): 0xbd7326E81993E6783682A85BB6B7D2DF82e17509
Arg [2] : _rewardToken (address): 0x95A8A98727272ED6EE7B7834C081e55801DCD9e5
Arg [3] : _deflector (address): 0xc4682e106f76b9a99dAE0F971704EEA60F5CF9aF
Arg [4] : _treasury (address): 0x5ABBd94bb0561938130d83FdA22E672110e12528
Arg [5] : _devFund (address): 0xd6F8da21cB98e9Eb3Cd27A9034E1A71D17beC9ed
Arg [6] : _devFee (uint256): 15
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000114db00
Arg [1] : 000000000000000000000000bd7326e81993e6783682a85bb6b7d2df82e17509
Arg [2] : 00000000000000000000000095a8a98727272ed6ee7b7834c081e55801dcd9e5
Arg [3] : 000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af
Arg [4] : 0000000000000000000000005abbd94bb0561938130d83fda22e672110e12528
Arg [5] : 000000000000000000000000d6f8da21cb98e9eb3cd27a9034e1a71d17bec9ed
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.