Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Latest 25 from a total of 48 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Exit | 13590998 | 1574 days ago | IN | 0 ETH | 0.03312192 | ||||
| Exit | 13348950 | 1612 days ago | IN | 0 ETH | 0.00959962 | ||||
| Get Reward | 13315575 | 1617 days ago | IN | 0 ETH | 0.00610479 | ||||
| Withdraw | 13315571 | 1617 days ago | IN | 0 ETH | 0.01731671 | ||||
| Get Reward | 13275538 | 1623 days ago | IN | 0 ETH | 0.00269392 | ||||
| Withdraw | 13275467 | 1623 days ago | IN | 0 ETH | 0.00782185 | ||||
| Get Reward | 13269229 | 1624 days ago | IN | 0 ETH | 0.00496505 | ||||
| Withdraw | 13225256 | 1631 days ago | IN | 0 ETH | 0.01389778 | ||||
| Get Reward | 13225251 | 1631 days ago | IN | 0 ETH | 0.00766018 | ||||
| Get Reward | 13188566 | 1636 days ago | IN | 0 ETH | 0.01133714 | ||||
| Exit | 13141393 | 1644 days ago | IN | 0 ETH | 0.04261449 | ||||
| Get Reward | 13125775 | 1646 days ago | IN | 0 ETH | 0.00497373 | ||||
| Get Reward | 13105753 | 1649 days ago | IN | 0 ETH | 0.00603081 | ||||
| Get Reward | 13067699 | 1655 days ago | IN | 0 ETH | 0.00302112 | ||||
| Get Reward | 13042158 | 1659 days ago | IN | 0 ETH | 0.00321809 | ||||
| Get Reward | 13003349 | 1665 days ago | IN | 0 ETH | 0.00341975 | ||||
| Stake | 12978155 | 1669 days ago | IN | 0 ETH | 0.0081365 | ||||
| Get Reward | 12969561 | 1670 days ago | IN | 0 ETH | 0.00229001 | ||||
| Get Reward | 12945178 | 1674 days ago | IN | 0 ETH | 0.00162646 | ||||
| Get Reward | 12925618 | 1677 days ago | IN | 0 ETH | 0.00187042 | ||||
| Get Reward | 12906351 | 1680 days ago | IN | 0 ETH | 0.00113852 | ||||
| Get Reward | 12887548 | 1683 days ago | IN | 0 ETH | 0.00113852 | ||||
| Exit | 12885408 | 1683 days ago | IN | 0 ETH | 0.01438757 | ||||
| Get Reward | 12862265 | 1687 days ago | IN | 0 ETH | 0.00179719 | ||||
| Stake | 12806793 | 1696 days ago | IN | 0 ETH | 0.00263968 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
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,
uint256 _burnFee
) public LPTokenWrapper(_devFee, _stakingToken, _treasury, _burnFee) 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 < previousBoostedBalance) {
uint256 diffBalancesAccounting = previousBoostedBalance.sub(_boostedBalance);
boostedTotalSupply = boostedTotalSupply.sub(diffBalancesAccounting);
} else if (_boostedBalance > previousBoostedBalance) {
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;
uint256 public burnFee;
struct Balance {
uint256 balance;
uint256 boostedBalance;
}
mapping(address => Balance) internal _balances;
constructor(
uint256 _devFee,
address _stakingToken,
address _treasury,
uint256 _burnFee
) public {
devFee = _devFee;
stakingToken = IERC20(_stakingToken);
treasury = _treasury;
burnFee = _burnFee;
}
// 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 {
stakingToken.safeTransferFrom(msg.sender, address(this), amount);
if (burnFee > 0 ) {
uint tokenBurnBalance = amount.mul(burnFee).div(1000);
uint stakedBalance = amount.sub(tokenBurnBalance);
_balances[msg.sender].balance = _balances[msg.sender].balance.add(
stakedBalance
);
totalSupply = totalSupply.add(stakedBalance);
return;
}
// Increment sender's balances and total supply
_balances[msg.sender].balance = _balances[msg.sender].balance.add(
amount
);
totalSupply = totalSupply.add(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
Contract ABI
API[{"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"},{"internalType":"uint256","name":"_burnFee","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":"burnFee","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
6101806040523480156200001257600080fd5b5060405162002c4438038062002c4483398181016040526101008110156200003957600080fd5b5080516020820151604083015160608085015160808087015160a08089015160c08a015160e0909a0151918a90529487901b6001600160601b031916909252600080546001600160a01b0319166001600160a01b038316178155600483905596979596949592949093929190620000af6200026e565b600680546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35087158015906200011557506001600160a01b03871615155b80156200012a57506001600160a01b03861615155b80156200013f57506001600160a01b03851615155b80156200015457506001600160a01b03841615155b80156200016957506001600160a01b03831615155b620001aa576040805162461bcd60e51b815260206004820152600c60248201526b10b1b7b739ba393ab1ba37b960a11b604482015290519081900360640190fd5b846001600160a01b0316610100816001600160a01b031660601b81525050866001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156200020257600080fd5b505afa15801562000217573d6000803e3d6000fd5b505050506040513d60208110156200022e57600080fd5b505160ff16600a0a60e05250506001600160601b0319606094851b811660c05261012096909652426101405290921b909316610160525062000272915050565b3390565b60805160601c60a05160c05160601c60e0516101005160601c61012051610140516101605160601c6128fa6200034a60003980610de55280611586525080610e095250806108a85280610904528061094452806109a35280611518525080610a265280610bd95280610e6d52806112f0528061144252806117d152806118de5280611d6752508061065c52806116cf52806119aa5250806107725280610d0b528061110f52806111dc5280611cd7525080610e4952806120dd525080610fd0528061211d5280612164528061234952506128fa6000f3fe608060405234801561001057600080fd5b50600436106102ac5760003560e01c80637b0a47ee1161017b578063cd3daf9d116100d8578063ebe2b12b1161008c578063f7c618c111610071578063f7c618c1146105b5578063fce589d8146105bd578063fff6cae9146105c5576102ac565b8063ebe2b12b1461057a578063f2fde38b14610582576102ac565b8063df136d65116100bd578063df136d6514610562578063e78b69f01461056a578063e9fad8ee14610572576102ac565b8063cd3daf9d14610552578063db2e21bc1461055a576102ac565b80638f9a372d1161012f578063a694fc3a11610114578063a694fc3a146104f4578063b38ef2e814610511578063c8f33c911461054a576102ac565b80638f9a372d146104b95780639eade652146104ec576102ac565b806382e94ac51161016057806382e94ac5146104705780638da5cb5b146104785780638de9322214610480576102ac565b80637b0a47ee146104605780638112643c14610468576102ac565b806341c0e1b5116102295780636b909a07116101dd578063715018a6116101c2578063715018a61461044857806372f702f31461045057806378e9792514610458576102ac565b80636b909a071461040d57806370a0823114610415576102ac565b8063461ac0191161020e578063461ac019146103f557806361d027b3146103fd5780636827e76414610405576102ac565b806341c0e1b5146103bc5780634390d2a8146103c4576102ac565b80630fd9dd48116102805780631beabcd2116102655780631beabcd2146103645780632e1a7d4d146103975780633d18b912146103b4576102ac565b80630fd9dd481461035457806318160ddd1461035c576102ac565b80628cc262146102b15780630700037d146102f65780630c51dde4146103425780630fb5a6b41461034c575b600080fd5b6102e4600480360360208110156102c757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166105cd565b60408051918252519081900360200190f35b6103296004803603602081101561030c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166106ad565b6040805192835260208301919091528051918290030190f35b61034a6106c6565b005b6102e46109a1565b6102e46109c5565b6102e4610ac8565b6102e46004803603602081101561037a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610ace565b61034a600480360360208110156103ad57600080fd5b5035610af9565b61034a610c8e565b61034a610d35565b6103cc610de3565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102e4610e07565b6103cc610e2b565b6102e4610e47565b6103cc610e6b565b6102e46004803603602081101561042b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610e8f565b61034a610eb7565b6103cc610fce565b6102e4610ff2565b6102e4610ff8565b6102e4610ffe565b61034a611004565b6103cc611203565b61034a6004803603604081101561049657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561121f565b61034a600480360360208110156104cf57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166115de565b6102e46116cd565b61034a6004803603602081101561050a57600080fd5b50356116f1565b6102e46004803603604081101561052757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611886565b6102e4611959565b6102e461195f565b61034a6119f2565b6102e4611af9565b6102e4611aff565b61034a611b12565b6102e4611b2d565b61034a6004803603602081101561059857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611b33565b6103cc611cd5565b6102e4611cf9565b61034a611cff565b73ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604081206001810154905482916106059190611e4d565b905061060f612743565b5073ffffffffffffffffffffffffffffffffffffffff83166000908152600b6020908152604091829020825180840190935280548084526001909101549183018290526106a59161069f907f000000000000000000000000000000000000000000000000000000000000000090610699906106929061068c61195f565b90611ec8565b8790611f3f565b90611fb2565b90611e4d565b949350505050565b600b602052600090815260409020805460019091015482565b6106ce612033565b73ffffffffffffffffffffffffffffffffffffffff166106ec611203565b73ffffffffffffffffffffffffffffffffffffffff161461076e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156107f757600080fd5b505afa15801561080b573d6000803e3d6000fd5b505050506040513d602081101561082157600080fd5b505190508061089157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f2172657761726420616464656400000000000000000000000000000000000000604482015290519081900360640190fd5b610899612037565b60075442106108d4576108cc817f0000000000000000000000000000000000000000000000000000000000000000611fb2565b600955610933565b6007546000906108e49042611ec8565b905060006108fd60095483611f3f90919063ffffffff16565b905061092d7f00000000000000000000000000000000000000000000000000000000000000006106998584611e4d565b60095550505b4260088190556003819055610968907f0000000000000000000000000000000000000000000000000000000000000000611e4d565b6007556040805182815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a150565b7f000000000000000000000000000000000000000000000000000000000000000081565b3360008181526005602090815260408083205481517f7721d79e00000000000000000000000000000000000000000000000000000000815260048101959095526024850152519192839273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001692637721d79e9260448082019391829003018186803b158015610a6857600080fd5b505afa158015610a7c573d6000803e3d6000fd5b505050506040513d6020811015610a9257600080fd5b5051905080610aa5576000915050610ac5565b336000908152600560205260409020546064820281610ac057fe5b049150505b90565b60015481565b73ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090206001015490565b60008111610b6857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b610b713361204f565b610b7a81612094565b3360008181526005602090815260408083205481517f7721d79e0000000000000000000000000000000000000000000000000000000081526004810195909552602485015251919273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001692637721d79e92604480840193919291829003018186803b158015610c1d57600080fd5b505afa158015610c31573d6000803e3d6000fd5b505050506040513d6020811015610c4757600080fd5b50519050610c5481612191565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b610c973361204f565b6000610ca2336105cd565b90508015610d3257336000818152600b6020908152604080832092909255815184815291517fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869281900390910190a2610d3273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163383612202565b50565b610d3d612033565b73ffffffffffffffffffffffffffffffffffffffff16610d5b611203565b73ffffffffffffffffffffffffffffffffffffffff1614610ddd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b42600755565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b73ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205490565b610ebf612033565b73ffffffffffffffffffffffffffffffffffffffff16610edd611203565b73ffffffffffffffffffffffffffffffffffffffff1614610f5f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60065460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b7f000000000000000000000000000000000000000000000000000000000000000081565b60035481565b60095481565b60025481565b61100c612033565b73ffffffffffffffffffffffffffffffffffffffff1661102a611203565b73ffffffffffffffffffffffffffffffffffffffff16146110ac57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60075461a8c00142101561110b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603781526020018061288e6037913960400191505060405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561119457600080fd5b505afa1580156111a8573d6000803e3d6000fd5b505050506040513d60208110156111be57600080fd5b50519050610d3273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163383612202565b60065473ffffffffffffffffffffffffffffffffffffffff1690565b600754421061128f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f63616e6e6f742062757920616674657220706f6f6c20656e6473000000000000604482015290519081900360640190fd5b6112983361204f565b604080517f53364c5000000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff84811660248301526044820184905291516000927f000000000000000000000000000000000000000000000000000000000000000016916353364c50916064808301926020929190829003018186803b15801561133657600080fd5b505afa15801561134a573d6000803e3d6000fd5b505050506040513d602081101561136057600080fd5b50519050806113d057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f636f73742063616e6e6f74206265203000000000000000000000000000000000604482015290519081900360640190fd5b3360008181526005602090815260408083205481517fc0e26f9f000000000000000000000000000000000000000000000000000000008152600481019590955273ffffffffffffffffffffffffffffffffffffffff8881166024870152604486018890526064860191909152905192937f00000000000000000000000000000000000000000000000000000000000000009091169263c0e26f9f9260848084019391929182900301818787803b15801561148957600080fd5b505af115801561149d573d6000803e3d6000fd5b505050506040513d60208110156114b357600080fd5b505190506114c081612191565b6040805173ffffffffffffffffffffffffffffffffffffffff861681526020810185905281517fe31c25a8c942cffbe38e830ad0320372c461b098e910c8ee77567f287ca603fe929181900390910190a1600061154e7f0000000000000000000000000000000000000000000000000000000000000000610699426007540386611f3f90919063ffffffff16565b90506000606461155f836019611f3f565b8161156657fe5b0490506115ab73ffffffffffffffffffffffffffffffffffffffff8716337f000000000000000000000000000000000000000000000000000000000000000084612294565b6000546115d69073ffffffffffffffffffffffffffffffffffffffff88811691339116848603612294565b505050505050565b6115e6612033565b73ffffffffffffffffffffffffffffffffffffffff16611604611203565b73ffffffffffffffffffffffffffffffffffffffff161461168657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000811161176057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b6117693361204f565b6117728161232f565b3360008181526005602090815260408083205481517f7721d79e0000000000000000000000000000000000000000000000000000000081526004810195909552602485015251919273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001692637721d79e92604480840193919291829003018186803b15801561181557600080fd5b505afa158015611829573d6000803e3d6000fd5b505050506040513d602081101561183f57600080fd5b5051905061184c81612191565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b604080517f53364c5000000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff84811660248301526044820184905291516000927f000000000000000000000000000000000000000000000000000000000000000016916353364c50916064808301926020929190829003018186803b15801561192457600080fd5b505afa158015611938573d6000803e3d6000fd5b505050506040513d602081101561194e57600080fd5b505190505b92915050565b60085481565b600060035442101561197357506000610ac5565b6001546119835750600a54610ac5565b600061199c600254600154611e4d90919063ffffffff16565b90506119ec6119e3826106997f00000000000000000000000000000000000000000000000000000000000000006119dd6009546119dd60085461068c611aff565b90611f3f565b600a5490611e4d565b91505090565b60075461a8c001421015611a51576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260648152602001806128006064913960800191505060405180910390fd5b6000611a5c33610e8f565b905060008111611ab7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806127cf6031913960400191505060405180910390fd5b611ac081612094565b60408051828152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250565b600a5481565b6000611b0d42600754612426565b905090565b611b1a610c8e565b611b2b611b2633610e8f565b610af9565b565b60075481565b611b3b612033565b73ffffffffffffffffffffffffffffffffffffffff16611b59611203565b73ffffffffffffffffffffffffffffffffffffffff1614611bdb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611c47576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806127886026913960400191505060405180910390fd5b60065460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b60045481565b611d083361204f565b3360008181526005602090815260408083205481517f7721d79e0000000000000000000000000000000000000000000000000000000081526004810195909552602485015251919273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001692637721d79e92604480840193919291829003018186803b158015611dab57600080fd5b505afa158015611dbf573d6000803e3d6000fd5b505050506040513d6020811015611dd557600080fd5b5051336000908152600560205260409020600101549091508111611e44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061275e602a913960400191505060405180910390fd5b610d3281612191565b600082820183811015611ec157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082821115611f3957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082611f4e57506000611953565b82820282848281611f5b57fe5b0414611ec1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806127ae6021913960400191505060405180910390fd5b600080821161202257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161202b57fe5b049392505050565b3390565b61203f61195f565b600a5561204a611aff565b600855565b612057612037565b612060816105cd565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600b60205260409020908155600a54600190910155565b6001546120a19082611ec8565b600155336000908152600560205260409020546120be9082611ec8565b336000908152600560205260408120919091556121016103e8610699847f0000000000000000000000000000000000000000000000000000000000000000611f3f565b905061214673ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633838503612202565b60005461218d9073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116911683612202565b5050565b3360009081526005602052604090206001810154808310156121d25760006121b98285611ec8565b6002549091506121c99082611ec8565b600255506121fb565b808311156121fb5760006121e68483611ec8565b6002549091506121f69082611e4d565b600255505b5060010155565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261228f90849061243c565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261232990859061243c565b50505050565b61237173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016333084612294565b600454156123e95760006123966103e861069960045485611f3f90919063ffffffff16565b905060006123a48383611ec8565b336000908152600560205260409020549091506123c19082611e4d565b336000908152600560205260409020556001546123de9082611e4d565b60015550610d329050565b336000908152600560205260409020546124039082611e4d565b336000908152600560205260409020556001546124209082611e4d565b60015550565b60008183106124355781611ec1565b5090919050565b606061249e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166125149092919063ffffffff16565b80519091501561228f578080602001905160208110156124bd57600080fd5b505161228f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612864602a913960400191505060405180910390fd5b60606106a58484600085856125288561267f565b61259357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106125fd57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016125c0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461265f576040519150601f19603f3d011682016040523d82523d6000602084013e612664565b606091505b5091509150612674828286612685565b979650505050505050565b3b151590565b60608315612694575081611ec1565b8251156126a45782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156127085781810151838201526020016126f0565b50505050905090810190601f1680156127355780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60405180604001604052806000815260200160008152509056fe4465666c656374506f6f6c3a3a73796e633a20496e76616c69642073796e6320696e766f636174696f6e4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774465666c656374506f6f6c3a3a656d657267656e637957697468647261773a2043616e6e6f7420776974686472617720304465666c656374506f6f6c3a3a656d657267656e637957697468647261773a2043616e6e6f7420656d657267656e6379207769746864726177206265666f726520706572696f642066696e6973686573206f7220706f6f6c2068617320737461727465645361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420656a656374206265666f726520706572696f642066696e6973686573206f7220706f6f6c206861732073746172746564a26469706673582212200b7a99eb725d68a79e4ea277c4a5197656c55ebc9cd5763187269460fe8ec28164736f6c634300060c0033000000000000000000000000000000000000000000000000000000000076a700000000000000000000000000dfe56501901e58c175e4ff381b4cf6b39d3bea220000000000000000000000003ee6e46f52c475c52040b934745501f2a0cea252000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af0000000000000000000000005abbd94bb0561938130d83fda22e672110e12528000000000000000000000000d6f8da21cb98e9eb3cd27a9034e1a71d17bec9ed000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102ac5760003560e01c80637b0a47ee1161017b578063cd3daf9d116100d8578063ebe2b12b1161008c578063f7c618c111610071578063f7c618c1146105b5578063fce589d8146105bd578063fff6cae9146105c5576102ac565b8063ebe2b12b1461057a578063f2fde38b14610582576102ac565b8063df136d65116100bd578063df136d6514610562578063e78b69f01461056a578063e9fad8ee14610572576102ac565b8063cd3daf9d14610552578063db2e21bc1461055a576102ac565b80638f9a372d1161012f578063a694fc3a11610114578063a694fc3a146104f4578063b38ef2e814610511578063c8f33c911461054a576102ac565b80638f9a372d146104b95780639eade652146104ec576102ac565b806382e94ac51161016057806382e94ac5146104705780638da5cb5b146104785780638de9322214610480576102ac565b80637b0a47ee146104605780638112643c14610468576102ac565b806341c0e1b5116102295780636b909a07116101dd578063715018a6116101c2578063715018a61461044857806372f702f31461045057806378e9792514610458576102ac565b80636b909a071461040d57806370a0823114610415576102ac565b8063461ac0191161020e578063461ac019146103f557806361d027b3146103fd5780636827e76414610405576102ac565b806341c0e1b5146103bc5780634390d2a8146103c4576102ac565b80630fd9dd48116102805780631beabcd2116102655780631beabcd2146103645780632e1a7d4d146103975780633d18b912146103b4576102ac565b80630fd9dd481461035457806318160ddd1461035c576102ac565b80628cc262146102b15780630700037d146102f65780630c51dde4146103425780630fb5a6b41461034c575b600080fd5b6102e4600480360360208110156102c757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166105cd565b60408051918252519081900360200190f35b6103296004803603602081101561030c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166106ad565b6040805192835260208301919091528051918290030190f35b61034a6106c6565b005b6102e46109a1565b6102e46109c5565b6102e4610ac8565b6102e46004803603602081101561037a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610ace565b61034a600480360360208110156103ad57600080fd5b5035610af9565b61034a610c8e565b61034a610d35565b6103cc610de3565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102e4610e07565b6103cc610e2b565b6102e4610e47565b6103cc610e6b565b6102e46004803603602081101561042b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610e8f565b61034a610eb7565b6103cc610fce565b6102e4610ff2565b6102e4610ff8565b6102e4610ffe565b61034a611004565b6103cc611203565b61034a6004803603604081101561049657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561121f565b61034a600480360360208110156104cf57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166115de565b6102e46116cd565b61034a6004803603602081101561050a57600080fd5b50356116f1565b6102e46004803603604081101561052757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611886565b6102e4611959565b6102e461195f565b61034a6119f2565b6102e4611af9565b6102e4611aff565b61034a611b12565b6102e4611b2d565b61034a6004803603602081101561059857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611b33565b6103cc611cd5565b6102e4611cf9565b61034a611cff565b73ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604081206001810154905482916106059190611e4d565b905061060f612743565b5073ffffffffffffffffffffffffffffffffffffffff83166000908152600b6020908152604091829020825180840190935280548084526001909101549183018290526106a59161069f907f0000000000000000000000000000000000000000000000000de0b6b3a764000090610699906106929061068c61195f565b90611ec8565b8790611f3f565b90611fb2565b90611e4d565b949350505050565b600b602052600090815260409020805460019091015482565b6106ce612033565b73ffffffffffffffffffffffffffffffffffffffff166106ec611203565b73ffffffffffffffffffffffffffffffffffffffff161461076e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60007f0000000000000000000000003ee6e46f52c475c52040b934745501f2a0cea25273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156107f757600080fd5b505afa15801561080b573d6000803e3d6000fd5b505050506040513d602081101561082157600080fd5b505190508061089157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f2172657761726420616464656400000000000000000000000000000000000000604482015290519081900360640190fd5b610899612037565b60075442106108d4576108cc817f000000000000000000000000000000000000000000000000000000000076a700611fb2565b600955610933565b6007546000906108e49042611ec8565b905060006108fd60095483611f3f90919063ffffffff16565b905061092d7f000000000000000000000000000000000000000000000000000000000076a7006106998584611e4d565b60095550505b4260088190556003819055610968907f000000000000000000000000000000000000000000000000000000000076a700611e4d565b6007556040805182815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a150565b7f000000000000000000000000000000000000000000000000000000000076a70081565b3360008181526005602090815260408083205481517f7721d79e00000000000000000000000000000000000000000000000000000000815260048101959095526024850152519192839273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af1692637721d79e9260448082019391829003018186803b158015610a6857600080fd5b505afa158015610a7c573d6000803e3d6000fd5b505050506040513d6020811015610a9257600080fd5b5051905080610aa5576000915050610ac5565b336000908152600560205260409020546064820281610ac057fe5b049150505b90565b60015481565b73ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090206001015490565b60008111610b6857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b610b713361204f565b610b7a81612094565b3360008181526005602090815260408083205481517f7721d79e0000000000000000000000000000000000000000000000000000000081526004810195909552602485015251919273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af1692637721d79e92604480840193919291829003018186803b158015610c1d57600080fd5b505afa158015610c31573d6000803e3d6000fd5b505050506040513d6020811015610c4757600080fd5b50519050610c5481612191565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b610c973361204f565b6000610ca2336105cd565b90508015610d3257336000818152600b6020908152604080832092909255815184815291517fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869281900390910190a2610d3273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000003ee6e46f52c475c52040b934745501f2a0cea252163383612202565b50565b610d3d612033565b73ffffffffffffffffffffffffffffffffffffffff16610d5b611203565b73ffffffffffffffffffffffffffffffffffffffff1614610ddd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b42600755565b7f000000000000000000000000d6f8da21cb98e9eb3cd27a9034e1a71d17bec9ed81565b7f0000000000000000000000000000000000000000000000000000000060debdf981565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000f81565b7f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af81565b73ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205490565b610ebf612033565b73ffffffffffffffffffffffffffffffffffffffff16610edd611203565b73ffffffffffffffffffffffffffffffffffffffff1614610f5f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60065460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b7f000000000000000000000000dfe56501901e58c175e4ff381b4cf6b39d3bea2281565b60035481565b60095481565b60025481565b61100c612033565b73ffffffffffffffffffffffffffffffffffffffff1661102a611203565b73ffffffffffffffffffffffffffffffffffffffff16146110ac57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60075461a8c00142101561110b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603781526020018061288e6037913960400191505060405180910390fd5b60007f0000000000000000000000003ee6e46f52c475c52040b934745501f2a0cea25273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561119457600080fd5b505afa1580156111a8573d6000803e3d6000fd5b505050506040513d60208110156111be57600080fd5b50519050610d3273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000003ee6e46f52c475c52040b934745501f2a0cea252163383612202565b60065473ffffffffffffffffffffffffffffffffffffffff1690565b600754421061128f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f63616e6e6f742062757920616674657220706f6f6c20656e6473000000000000604482015290519081900360640190fd5b6112983361204f565b604080517f53364c5000000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff84811660248301526044820184905291516000927f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af16916353364c50916064808301926020929190829003018186803b15801561133657600080fd5b505afa15801561134a573d6000803e3d6000fd5b505050506040513d602081101561136057600080fd5b50519050806113d057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f636f73742063616e6e6f74206265203000000000000000000000000000000000604482015290519081900360640190fd5b3360008181526005602090815260408083205481517fc0e26f9f000000000000000000000000000000000000000000000000000000008152600481019590955273ffffffffffffffffffffffffffffffffffffffff8881166024870152604486018890526064860191909152905192937f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af9091169263c0e26f9f9260848084019391929182900301818787803b15801561148957600080fd5b505af115801561149d573d6000803e3d6000fd5b505050506040513d60208110156114b357600080fd5b505190506114c081612191565b6040805173ffffffffffffffffffffffffffffffffffffffff861681526020810185905281517fe31c25a8c942cffbe38e830ad0320372c461b098e910c8ee77567f287ca603fe929181900390910190a1600061154e7f000000000000000000000000000000000000000000000000000000000076a700610699426007540386611f3f90919063ffffffff16565b90506000606461155f836019611f3f565b8161156657fe5b0490506115ab73ffffffffffffffffffffffffffffffffffffffff8716337f000000000000000000000000d6f8da21cb98e9eb3cd27a9034e1a71d17bec9ed84612294565b6000546115d69073ffffffffffffffffffffffffffffffffffffffff88811691339116848603612294565b505050505050565b6115e6612033565b73ffffffffffffffffffffffffffffffffffffffff16611604611203565b73ffffffffffffffffffffffffffffffffffffffff161461168657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b7f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b6000811161176057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b6117693361204f565b6117728161232f565b3360008181526005602090815260408083205481517f7721d79e0000000000000000000000000000000000000000000000000000000081526004810195909552602485015251919273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af1692637721d79e92604480840193919291829003018186803b15801561181557600080fd5b505afa158015611829573d6000803e3d6000fd5b505050506040513d602081101561183f57600080fd5b5051905061184c81612191565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b604080517f53364c5000000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff84811660248301526044820184905291516000927f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af16916353364c50916064808301926020929190829003018186803b15801561192457600080fd5b505afa158015611938573d6000803e3d6000fd5b505050506040513d602081101561194e57600080fd5b505190505b92915050565b60085481565b600060035442101561197357506000610ac5565b6001546119835750600a54610ac5565b600061199c600254600154611e4d90919063ffffffff16565b90506119ec6119e3826106997f0000000000000000000000000000000000000000000000000de0b6b3a76400006119dd6009546119dd60085461068c611aff565b90611f3f565b600a5490611e4d565b91505090565b60075461a8c001421015611a51576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260648152602001806128006064913960800191505060405180910390fd5b6000611a5c33610e8f565b905060008111611ab7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806127cf6031913960400191505060405180910390fd5b611ac081612094565b60408051828152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250565b600a5481565b6000611b0d42600754612426565b905090565b611b1a610c8e565b611b2b611b2633610e8f565b610af9565b565b60075481565b611b3b612033565b73ffffffffffffffffffffffffffffffffffffffff16611b59611203565b73ffffffffffffffffffffffffffffffffffffffff1614611bdb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611c47576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806127886026913960400191505060405180910390fd5b60065460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b7f0000000000000000000000003ee6e46f52c475c52040b934745501f2a0cea25281565b60045481565b611d083361204f565b3360008181526005602090815260408083205481517f7721d79e0000000000000000000000000000000000000000000000000000000081526004810195909552602485015251919273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af1692637721d79e92604480840193919291829003018186803b158015611dab57600080fd5b505afa158015611dbf573d6000803e3d6000fd5b505050506040513d6020811015611dd557600080fd5b5051336000908152600560205260409020600101549091508111611e44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061275e602a913960400191505060405180910390fd5b610d3281612191565b600082820183811015611ec157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082821115611f3957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082611f4e57506000611953565b82820282848281611f5b57fe5b0414611ec1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806127ae6021913960400191505060405180910390fd5b600080821161202257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161202b57fe5b049392505050565b3390565b61203f61195f565b600a5561204a611aff565b600855565b612057612037565b612060816105cd565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600b60205260409020908155600a54600190910155565b6001546120a19082611ec8565b600155336000908152600560205260409020546120be9082611ec8565b336000908152600560205260408120919091556121016103e8610699847f000000000000000000000000000000000000000000000000000000000000000f611f3f565b905061214673ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000dfe56501901e58c175e4ff381b4cf6b39d3bea221633838503612202565b60005461218d9073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000dfe56501901e58c175e4ff381b4cf6b39d3bea228116911683612202565b5050565b3360009081526005602052604090206001810154808310156121d25760006121b98285611ec8565b6002549091506121c99082611ec8565b600255506121fb565b808311156121fb5760006121e68483611ec8565b6002549091506121f69082611e4d565b600255505b5060010155565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261228f90849061243c565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261232990859061243c565b50505050565b61237173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000dfe56501901e58c175e4ff381b4cf6b39d3bea2216333084612294565b600454156123e95760006123966103e861069960045485611f3f90919063ffffffff16565b905060006123a48383611ec8565b336000908152600560205260409020549091506123c19082611e4d565b336000908152600560205260409020556001546123de9082611e4d565b60015550610d329050565b336000908152600560205260409020546124039082611e4d565b336000908152600560205260409020556001546124209082611e4d565b60015550565b60008183106124355781611ec1565b5090919050565b606061249e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166125149092919063ffffffff16565b80519091501561228f578080602001905160208110156124bd57600080fd5b505161228f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612864602a913960400191505060405180910390fd5b60606106a58484600085856125288561267f565b61259357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106125fd57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016125c0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461265f576040519150601f19603f3d011682016040523d82523d6000602084013e612664565b606091505b5091509150612674828286612685565b979650505050505050565b3b151590565b60608315612694575081611ec1565b8251156126a45782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156127085781810151838201526020016126f0565b50505050905090810190601f1680156127355780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60405180604001604052806000815260200160008152509056fe4465666c656374506f6f6c3a3a73796e633a20496e76616c69642073796e6320696e766f636174696f6e4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774465666c656374506f6f6c3a3a656d657267656e637957697468647261773a2043616e6e6f7420776974686472617720304465666c656374506f6f6c3a3a656d657267656e637957697468647261773a2043616e6e6f7420656d657267656e6379207769746864726177206265666f726520706572696f642066696e6973686573206f7220706f6f6c2068617320737461727465645361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420656a656374206265666f726520706572696f642066696e6973686573206f7220706f6f6c206861732073746172746564a26469706673582212200b7a99eb725d68a79e4ea277c4a5197656c55ebc9cd5763187269460fe8ec28164736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000076a700000000000000000000000000dfe56501901e58c175e4ff381b4cf6b39d3bea220000000000000000000000003ee6e46f52c475c52040b934745501f2a0cea252000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af0000000000000000000000005abbd94bb0561938130d83fda22e672110e12528000000000000000000000000d6f8da21cb98e9eb3cd27a9034e1a71d17bec9ed000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _duration (uint256): 7776000
Arg [1] : _stakingToken (address): 0xDfe56501901E58C175e4Ff381B4Cf6b39d3beA22
Arg [2] : _rewardToken (address): 0x3eE6E46f52c475c52040b934745501F2A0cEa252
Arg [3] : _deflector (address): 0xc4682e106f76b9a99dAE0F971704EEA60F5CF9aF
Arg [4] : _treasury (address): 0x5ABBd94bb0561938130d83FdA22E672110e12528
Arg [5] : _devFund (address): 0xd6F8da21cB98e9Eb3Cd27A9034E1A71D17beC9ed
Arg [6] : _devFee (uint256): 15
Arg [7] : _burnFee (uint256): 0
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000076a700
Arg [1] : 000000000000000000000000dfe56501901e58c175e4ff381b4cf6b39d3bea22
Arg [2] : 0000000000000000000000003ee6e46f52c475c52040b934745501f2a0cea252
Arg [3] : 000000000000000000000000c4682e106f76b9a99dae0f971704eea60f5cf9af
Arg [4] : 0000000000000000000000005abbd94bb0561938130d83fda22e672110e12528
Arg [5] : 000000000000000000000000d6f8da21cb98e9eb3cd27a9034e1a71d17bec9ed
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.