Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 10,920 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Exit | 19658293 | 95 days ago | IN | 0 ETH | 0.00075096 | ||||
Withdraw | 19270377 | 149 days ago | IN | 0 ETH | 0.00371382 | ||||
Withdraw | 19258788 | 151 days ago | IN | 0 ETH | 0.00198208 | ||||
Withdraw | 19258690 | 151 days ago | IN | 0 ETH | 0.00133403 | ||||
Withdraw | 19258622 | 151 days ago | IN | 0 ETH | 0.00173821 | ||||
Exit | 18710872 | 228 days ago | IN | 0 ETH | 0.00456727 | ||||
Exit | 18192281 | 300 days ago | IN | 0 ETH | 0.00099733 | ||||
Get Reward | 18192276 | 300 days ago | IN | 0 ETH | 0.00079029 | ||||
Exit | 16843664 | 490 days ago | IN | 0 ETH | 0.00224629 | ||||
Get Reward | 16822569 | 493 days ago | IN | 0 ETH | 0.00165227 | ||||
Withdraw | 16814857 | 494 days ago | IN | 0 ETH | 0.00381109 | ||||
Get Reward | 16662844 | 515 days ago | IN | 0 ETH | 0.00410763 | ||||
Exit | 16235544 | 575 days ago | IN | 0 ETH | 0.00191088 | ||||
Withdraw | 15615281 | 662 days ago | IN | 0 ETH | 0.00043242 | ||||
Withdraw | 15542611 | 672 days ago | IN | 0 ETH | 0.00102278 | ||||
Withdraw | 15438010 | 689 days ago | IN | 0 ETH | 0.00094341 | ||||
Get Reward | 15437988 | 689 days ago | IN | 0 ETH | 0.00095891 | ||||
Get Reward | 15266492 | 716 days ago | IN | 0 ETH | 0.00079826 | ||||
Withdraw | 15256986 | 717 days ago | IN | 0 ETH | 0.00111149 | ||||
Exit | 15197516 | 727 days ago | IN | 0 ETH | 0.00082899 | ||||
Exit | 15160416 | 732 days ago | IN | 0 ETH | 0.00203978 | ||||
Withdraw | 15160293 | 732 days ago | IN | 0 ETH | 0.00047647 | ||||
Withdraw | 15160256 | 732 days ago | IN | 0 ETH | 0.00107564 | ||||
Exit | 15146435 | 735 days ago | IN | 0 ETH | 0.00140669 | ||||
Withdraw | 14959172 | 766 days ago | IN | 0 ETH | 0.00588899 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StakingRewards
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-06-18 */ /* ____ __ __ __ _ / __/__ __ ___ / /_ / / ___ / /_ (_)__ __ _\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ / /___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\ /___/ * Curve sBTC/wBTC/renBTC LP StakingRewards pool * * Synthetix: StakingRewards.sol * * Latest source (may be newer): https://github.com/Synthetixio/synthetix/blob/master/contracts/StakingRewards.sol * Docs: https://docs.synthetix.io/contracts/StakingRewards * * Contract Dependencies: * - IERC20 * - Owned * - ReentrancyGuard * - RewardsDistributionRecipient * - TokenWrapper * Libraries: * - Address * - Math * - SafeERC20 * - SafeMath * * MIT License * =========== * * Copyright (c) 2020 Synthetix * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ /* =============================================== * Flattened with Solidifier by Coinage * * https://solidifier.coina.ge * =============================================== */ pragma solidity ^0.5.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); } } /** * @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, 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"); uint256 c = a - b; return c; } /** * @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) { // 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-solidity/pull/522 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. Reverts 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) { // Solidity only automatically asserts when dividing by 0 require(b > 0, "SafeMath: division by zero"); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts 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 Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see `ERC20Detailed`. */ 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. * * > 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); } /** * @dev Optional functions from the ERC20 standard. */ contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of * these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. * * > Note that this information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * `IERC20.balanceOf` and `IERC20.transfer`. */ function decimals() public view returns (uint8) { return _decimals; } } /** * @dev Collection of functions related to the address type, */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its address will be reported as * not containing a contract. * * > It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. */ function isContract(address account) internal view returns (bool) { // This method relies in 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; } } /** * @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 ERC20;` 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)); } 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); 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. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "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"); } } } /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier * available, which can be aplied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. */ contract ReentrancyGuard { /// @dev counter to allow mutex lock with only one SSTORE operation uint256 private _guardCounter; constructor () internal { // The counter starts at one to prevent changing it from zero to a non-zero // value, which is a more expensive operation. _guardCounter = 1; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { _guardCounter += 1; uint256 localCounter = _guardCounter; _; require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call"); } } // https://docs.synthetix.io/contracts/Owned contract Owned { address public owner; address public nominatedOwner; constructor(address _owner) public { require(_owner != address(0), "Owner address cannot be 0"); owner = _owner; emit OwnerChanged(address(0), _owner); } function nominateNewOwner(address _owner) external onlyOwner { nominatedOwner = _owner; emit OwnerNominated(_owner); } function acceptOwnership() external { require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership"); emit OwnerChanged(owner, nominatedOwner); owner = nominatedOwner; nominatedOwner = address(0); } modifier onlyOwner { require(msg.sender == owner, "Only the contract owner may perform this action"); _; } event OwnerNominated(address newOwner); event OwnerChanged(address oldOwner, address newOwner); } // Inheritance // https://docs.synthetix.io/contracts/RewardsDistributionRecipient contract RewardsDistributionRecipient is Owned { address public rewardsDistribution; function notifyRewardAmount(uint256 reward) external; modifier onlyRewardsDistribution() { require(msg.sender == rewardsDistribution, "Caller is not RewardsDistribution contract"); _; } function setRewardsDistribution(address _rewardsDistribution) external onlyOwner { rewardsDistribution = _rewardsDistribution; } } contract TokenWrapper is ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public stakingToken; uint256 private _totalSupply; mapping(address => uint256) private _balances; constructor(address _stakingToken) public { stakingToken = IERC20(_stakingToken); } function totalSupply() public view returns (uint256) { return _totalSupply; } function balanceOf(address account) public view returns (uint256) { return _balances[account]; } function stake(uint256 amount) public nonReentrant { _totalSupply = _totalSupply.add(amount); _balances[msg.sender] = _balances[msg.sender].add(amount); stakingToken.safeTransferFrom(msg.sender, address(this), amount); } function withdraw(uint256 amount) public nonReentrant { _totalSupply = _totalSupply.sub(amount); _balances[msg.sender] = _balances[msg.sender].sub(amount); stakingToken.safeTransfer(msg.sender, amount); } } contract StakingRewards is TokenWrapper, RewardsDistributionRecipient { IERC20 public rewardsToken; uint256 public constant DURATION = 7 days; uint256 public periodFinish = 0; uint256 public rewardRate = 0; uint256 public lastUpdateTime; uint256 public rewardPerTokenStored; mapping(address => uint256) public userRewardPerTokenPaid; mapping(address => uint256) public rewards; event RewardAdded(uint256 reward); event Staked(address indexed user, uint256 amount); event Withdrawn(address indexed user, uint256 amount); event RewardPaid(address indexed user, uint256 reward); event Recovered(address indexed token, uint256 amount); constructor( address _owner, address _rewardsDistribution, address _rewardsToken, address _stakingToken ) public TokenWrapper(_stakingToken) Owned(_owner) { rewardsToken = IERC20(_rewardsToken); rewardsDistribution = _rewardsDistribution; } modifier updateReward(address account) { rewardPerTokenStored = rewardPerToken(); lastUpdateTime = lastTimeRewardApplicable(); if (account != address(0)) { rewards[account] = earned(account); userRewardPerTokenPaid[account] = rewardPerTokenStored; } _; } function lastTimeRewardApplicable() public view returns (uint256) { return Math.min(block.timestamp, periodFinish); } function rewardPerToken() public view returns (uint256) { if (totalSupply() == 0) { return rewardPerTokenStored; } return rewardPerTokenStored.add( lastTimeRewardApplicable().sub(lastUpdateTime).mul(rewardRate).mul(1e18).div(totalSupply()) ); } function earned(address account) public view returns (uint256) { return balanceOf(account).mul(rewardPerToken().sub(userRewardPerTokenPaid[account])).div(1e18).add(rewards[account]); } // stake visibility is public as overriding LPTokenWrapper's stake() function function stake(uint256 amount) public updateReward(msg.sender) { require(amount > 0, "Cannot stake 0"); super.stake(amount); emit Staked(msg.sender, amount); } function withdraw(uint256 amount) public updateReward(msg.sender) { require(amount > 0, "Cannot withdraw 0"); super.withdraw(amount); emit Withdrawn(msg.sender, amount); } function exit() external { withdraw(balanceOf(msg.sender)); getReward(); } function getReward() public updateReward(msg.sender) { uint256 reward = earned(msg.sender); if (reward > 0) { rewards[msg.sender] = 0; rewardsToken.safeTransfer(msg.sender, reward); emit RewardPaid(msg.sender, reward); } } function getRewardForDuration() public view returns (uint256) { return rewardRate.mul(DURATION); } function notifyRewardAmount(uint256 reward) external onlyRewardsDistribution updateReward(address(0)) { if (block.timestamp >= periodFinish) { rewardRate = reward.div(DURATION); } else { uint256 remaining = periodFinish.sub(block.timestamp); uint256 leftover = remaining.mul(rewardRate); rewardRate = reward.add(leftover).div(DURATION); } lastUpdateTime = block.timestamp; periodFinish = block.timestamp.add(DURATION); emit RewardAdded(reward); } // Added to support recovering LP Rewards from other systems to be distributed to holders function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner { // If it's SNX we have to query the token symbol to ensure its not a proxy or underlying bool isSNX = (keccak256(bytes("SNX")) == keccak256(bytes(ERC20Detailed(tokenAddress).symbol()))); // Cannot recover the staking token or the rewards token require(tokenAddress != address(stakingToken) && tokenAddress != address(rewardsToken) && !isSNX, "Cannot withdraw the staking or rewards tokens"); IERC20(tokenAddress).transfer(owner, tokenAmount); emit Recovered(tokenAddress, tokenAmount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_rewardsDistribution","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","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"},{"constant":true,"inputs":[],"name":"DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewardsDistribution","type":"address"}],"name":"setRewardsDistribution","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600855600060095534801561001a57600080fd5b5060405161163b38038061163b8339818101604052608081101561003d57600080fd5b508051602082015160408301516060909301516001600081905580546001600160a01b0319166001600160a01b038084169190911790915592939192849081166100ce576040805162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0383169081179091556040805160008152602081019290925280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a15050600780546001600160a01b039283166001600160a01b03199182161790915560068054939092169216919091179055506114d2806101696000396000f3fe608060405234801561001057600080fd5b50600436106101a85760003560e01c806372f702f3116100f9578063a694fc3a11610097578063d1af0c7d11610071578063d1af0c7d146103ac578063df136d65146103b4578063e9fad8ee146103bc578063ebe2b12b146103c4576101a8565b8063a694fc3a1461037f578063c8f33c911461039c578063cd3daf9d146103a4576101a8565b806380faa57d116100d357806380faa57d1461031d5780638980f11f146103255780638b876347146103515780638da5cb5b14610377576101a8565b806372f702f31461030557806379ba50971461030d5780637b0a47ee14610315576101a8565b80631c1f78eb116101665780633d18b912116101405780633d18b912146102ab5780633fc6df6e146102b357806353a47bb7146102d757806370a08231146102df576101a8565b80631c1f78eb146102695780632e1a7d4d146102715780633c6b16ab1461028e576101a8565b80628cc262146101ad5780630700037d146101e55780631627540c1461020b57806318160ddd14610233578063197621431461023b5780631be0528914610261575b600080fd5b6101d3600480360360208110156101c357600080fd5b50356001600160a01b03166103cc565b60408051918252519081900360200190f35b6101d3600480360360208110156101fb57600080fd5b50356001600160a01b0316610452565b6102316004803603602081101561022157600080fd5b50356001600160a01b0316610464565b005b6101d3610501565b6102316004803603602081101561025157600080fd5b50356001600160a01b0316610508565b6101d3610573565b6101d361057a565b6102316004803603602081101561028757600080fd5b5035610598565b610231600480360360208110156102a457600080fd5b503561067f565b6102316107e9565b6102bb6108bb565b604080516001600160a01b039092168252519081900360200190f35b6102bb6108ca565b6101d3600480360360208110156102f557600080fd5b50356001600160a01b03166108d9565b6102bb6108f4565b610231610903565b6101d36109bf565b6101d36109c5565b6102316004803603604081101561033b57600080fd5b506001600160a01b0381351690602001356109d3565b6101d36004803603602081101561036757600080fd5b50356001600160a01b0316610cc5565b6102bb610cd7565b6102316004803603602081101561039557600080fd5b5035610ce6565b6101d3610dca565b6101d3610dd0565b6102bb610e24565b6101d3610e33565b610231610e39565b6101d3610e54565b6001600160a01b0381166000908152600d6020908152604080832054600c90925282205461044c919061044090670de0b6b3a7640000906104349061041f90610413610dd0565b9063ffffffff610e5a16565b610428886108d9565b9063ffffffff610eb716565b9063ffffffff610f1716565b9063ffffffff610f8116565b92915050565b600d6020526000908152604090205481565b6004546001600160a01b031633146104ad5760405162461bcd60e51b815260040180806020018281038252602f8152602001806113cd602f913960400191505060405180910390fd5b600580546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b6002545b90565b6004546001600160a01b031633146105515760405162461bcd60e51b815260040180806020018281038252602f8152602001806113cd602f913960400191505060405180910390fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b62093a8081565b6009546000906105939062093a8063ffffffff610eb716565b905090565b336105a1610dd0565b600b556105ac6109c5565b600a556001600160a01b038116156105f3576105c7816103cc565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b6000821161063c576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b61064582610fdb565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b6006546001600160a01b031633146106c85760405162461bcd60e51b815260040180806020018281038252602a81526020018061144a602a913960400191505060405180910390fd5b60006106d2610dd0565b600b556106dd6109c5565b600a556001600160a01b03811615610724576106f8816103cc565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b6008544210610748576107408262093a8063ffffffff610f1716565b600955610796565b60085460009061075e904263ffffffff610e5a16565b9050600061077760095483610eb790919063ffffffff16565b905061079062093a80610434868463ffffffff610f8116565b60095550505b42600a8190556107af9062093a8063ffffffff610f8116565b6008556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b336107f2610dd0565b600b556107fd6109c5565b600a556001600160a01b0381161561084457610818816103cc565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b600061084f336103cc565b905080156108b757336000818152600d6020526040812055600754610880916001600160a01b03909116908361109e565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b5050565b6006546001600160a01b031681565b6005546001600160a01b031681565b6001600160a01b031660009081526003602052604090205490565b6001546001600160a01b031681565b6005546001600160a01b0316331461094c5760405162461bcd60e51b81526004018080602001828103825260358152602001806113986035913960400191505060405180910390fd5b600454600554604080516001600160a01b03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160058054600480546001600160a01b03199081166001600160a01b03841617909155169055565b60095481565b6000610593426008546110f5565b6004546001600160a01b03163314610a1c5760405162461bcd60e51b815260040180806020018281038252602f8152602001806113cd602f913960400191505060405180910390fd5b6000826001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b158015610a5757600080fd5b505afa158015610a6b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610a9457600080fd5b8101908080516040519392919084640100000000821115610ab457600080fd5b908301906020820185811115610ac957600080fd5b8251640100000000811182820188101715610ae357600080fd5b82525081516020918201929091019080838360005b83811015610b10578181015183820152602001610af8565b50505050905090810190601f168015610b3d5780820380516001836020036101000a031916815260200191505b506040818152855160209687012082820190915260038252620a69cb60eb1b959091019490945250506001547fc33e514e79311fe606801af4b4f343c83a3b72dca711239a516f2103673922d19092149250506001600160a01b03848116911614801590610bb957506007546001600160a01b03848116911614155b8015610bc3575080155b610bfe5760405162461bcd60e51b815260040180806020018281038252602d81526020018061141d602d913960400191505060405180910390fd5b600480546040805163a9059cbb60e01b81526001600160a01b039283169381019390935260248301859052519085169163a9059cbb9160448083019260209291908290030181600087803b158015610c5557600080fd5b505af1158015610c69573d6000803e3d6000fd5b505050506040513d6020811015610c7f57600080fd5b50506040805183815290516001600160a01b038516917f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28919081900360200190a2505050565b600c6020526000908152604090205481565b6004546001600160a01b031681565b33610cef610dd0565b600b55610cfa6109c5565b600a556001600160a01b03811615610d4157610d15816103cc565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b60008211610d87576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b610d908261110b565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b600a5481565b6000610dda610501565b610de75750600b54610505565b610593610e15610df5610501565b610434670de0b6b3a7640000610428600954610428600a546104136109c5565b600b549063ffffffff610f8116565b6007546001600160a01b031681565b600b5481565b610e4a610e45336108d9565b610598565b610e526107e9565b565b60085481565b600082821115610eb1576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082610ec65750600061044c565b82820282848281610ed357fe5b0414610f105760405162461bcd60e51b81526004018080602001828103825260218152602001806113fc6021913960400191505060405180910390fd5b9392505050565b6000808211610f6d576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b6000828481610f7857fe5b04949350505050565b600082820183811015610f10576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000805460010190819055600254610ff9908363ffffffff610e5a16565b6002553360009081526003602052604090205461101c908363ffffffff610e5a16565b33600081815260036020526040902091909155600154611048916001600160a01b03909116908461109e565b60005481146108b7576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526110f0908490611179565b505050565b60008183106111045781610f10565b5090919050565b6000805460010190819055600254611129908363ffffffff610f8116565b6002553360009081526003602052604090205461114c908363ffffffff610f8116565b33600081815260036020526040902091909155600154611048916001600160a01b03909116903085611337565b61118b826001600160a01b0316611391565b6111dc576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061121a5780518252601f1990920191602091820191016111fb565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461127c576040519150601f19603f3d011682016040523d82523d6000602084013e611281565b606091505b5091509150816112d8576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611331578080602001905160208110156112f457600080fd5b50516113315760405162461bcd60e51b815260040180806020018281038252602a815260200180611474602a913960400191505060405180910390fd5b50505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611331908590611179565b3b15159056fe596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e6572736869704f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616e6e6f7420776974686472617720746865207374616b696e67206f72207265776172647320746f6b656e7343616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820aada1cb1c0c82d81c5b3d0f4ff242051160255853be3a8f32dfb40eb5ca7e3ea64736f6c63430005110032000000000000000000000000de910777c787903f78c89e7a0bf7f4c435cbb1fe000000000000000000000000de910777c787903f78c89e7a0bf7f4c435cbb1fe000000000000000000000000330416c863f2acce7af9c9314b422d24c672534a000000000000000000000000075b1bb99792c9e1041ba13afef80c91a1e70fb3
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a85760003560e01c806372f702f3116100f9578063a694fc3a11610097578063d1af0c7d11610071578063d1af0c7d146103ac578063df136d65146103b4578063e9fad8ee146103bc578063ebe2b12b146103c4576101a8565b8063a694fc3a1461037f578063c8f33c911461039c578063cd3daf9d146103a4576101a8565b806380faa57d116100d357806380faa57d1461031d5780638980f11f146103255780638b876347146103515780638da5cb5b14610377576101a8565b806372f702f31461030557806379ba50971461030d5780637b0a47ee14610315576101a8565b80631c1f78eb116101665780633d18b912116101405780633d18b912146102ab5780633fc6df6e146102b357806353a47bb7146102d757806370a08231146102df576101a8565b80631c1f78eb146102695780632e1a7d4d146102715780633c6b16ab1461028e576101a8565b80628cc262146101ad5780630700037d146101e55780631627540c1461020b57806318160ddd14610233578063197621431461023b5780631be0528914610261575b600080fd5b6101d3600480360360208110156101c357600080fd5b50356001600160a01b03166103cc565b60408051918252519081900360200190f35b6101d3600480360360208110156101fb57600080fd5b50356001600160a01b0316610452565b6102316004803603602081101561022157600080fd5b50356001600160a01b0316610464565b005b6101d3610501565b6102316004803603602081101561025157600080fd5b50356001600160a01b0316610508565b6101d3610573565b6101d361057a565b6102316004803603602081101561028757600080fd5b5035610598565b610231600480360360208110156102a457600080fd5b503561067f565b6102316107e9565b6102bb6108bb565b604080516001600160a01b039092168252519081900360200190f35b6102bb6108ca565b6101d3600480360360208110156102f557600080fd5b50356001600160a01b03166108d9565b6102bb6108f4565b610231610903565b6101d36109bf565b6101d36109c5565b6102316004803603604081101561033b57600080fd5b506001600160a01b0381351690602001356109d3565b6101d36004803603602081101561036757600080fd5b50356001600160a01b0316610cc5565b6102bb610cd7565b6102316004803603602081101561039557600080fd5b5035610ce6565b6101d3610dca565b6101d3610dd0565b6102bb610e24565b6101d3610e33565b610231610e39565b6101d3610e54565b6001600160a01b0381166000908152600d6020908152604080832054600c90925282205461044c919061044090670de0b6b3a7640000906104349061041f90610413610dd0565b9063ffffffff610e5a16565b610428886108d9565b9063ffffffff610eb716565b9063ffffffff610f1716565b9063ffffffff610f8116565b92915050565b600d6020526000908152604090205481565b6004546001600160a01b031633146104ad5760405162461bcd60e51b815260040180806020018281038252602f8152602001806113cd602f913960400191505060405180910390fd5b600580546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b6002545b90565b6004546001600160a01b031633146105515760405162461bcd60e51b815260040180806020018281038252602f8152602001806113cd602f913960400191505060405180910390fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b62093a8081565b6009546000906105939062093a8063ffffffff610eb716565b905090565b336105a1610dd0565b600b556105ac6109c5565b600a556001600160a01b038116156105f3576105c7816103cc565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b6000821161063c576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b61064582610fdb565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b6006546001600160a01b031633146106c85760405162461bcd60e51b815260040180806020018281038252602a81526020018061144a602a913960400191505060405180910390fd5b60006106d2610dd0565b600b556106dd6109c5565b600a556001600160a01b03811615610724576106f8816103cc565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b6008544210610748576107408262093a8063ffffffff610f1716565b600955610796565b60085460009061075e904263ffffffff610e5a16565b9050600061077760095483610eb790919063ffffffff16565b905061079062093a80610434868463ffffffff610f8116565b60095550505b42600a8190556107af9062093a8063ffffffff610f8116565b6008556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b336107f2610dd0565b600b556107fd6109c5565b600a556001600160a01b0381161561084457610818816103cc565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b600061084f336103cc565b905080156108b757336000818152600d6020526040812055600754610880916001600160a01b03909116908361109e565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b5050565b6006546001600160a01b031681565b6005546001600160a01b031681565b6001600160a01b031660009081526003602052604090205490565b6001546001600160a01b031681565b6005546001600160a01b0316331461094c5760405162461bcd60e51b81526004018080602001828103825260358152602001806113986035913960400191505060405180910390fd5b600454600554604080516001600160a01b03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160058054600480546001600160a01b03199081166001600160a01b03841617909155169055565b60095481565b6000610593426008546110f5565b6004546001600160a01b03163314610a1c5760405162461bcd60e51b815260040180806020018281038252602f8152602001806113cd602f913960400191505060405180910390fd5b6000826001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b158015610a5757600080fd5b505afa158015610a6b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610a9457600080fd5b8101908080516040519392919084640100000000821115610ab457600080fd5b908301906020820185811115610ac957600080fd5b8251640100000000811182820188101715610ae357600080fd5b82525081516020918201929091019080838360005b83811015610b10578181015183820152602001610af8565b50505050905090810190601f168015610b3d5780820380516001836020036101000a031916815260200191505b506040818152855160209687012082820190915260038252620a69cb60eb1b959091019490945250506001547fc33e514e79311fe606801af4b4f343c83a3b72dca711239a516f2103673922d19092149250506001600160a01b03848116911614801590610bb957506007546001600160a01b03848116911614155b8015610bc3575080155b610bfe5760405162461bcd60e51b815260040180806020018281038252602d81526020018061141d602d913960400191505060405180910390fd5b600480546040805163a9059cbb60e01b81526001600160a01b039283169381019390935260248301859052519085169163a9059cbb9160448083019260209291908290030181600087803b158015610c5557600080fd5b505af1158015610c69573d6000803e3d6000fd5b505050506040513d6020811015610c7f57600080fd5b50506040805183815290516001600160a01b038516917f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28919081900360200190a2505050565b600c6020526000908152604090205481565b6004546001600160a01b031681565b33610cef610dd0565b600b55610cfa6109c5565b600a556001600160a01b03811615610d4157610d15816103cc565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b60008211610d87576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b610d908261110b565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b600a5481565b6000610dda610501565b610de75750600b54610505565b610593610e15610df5610501565b610434670de0b6b3a7640000610428600954610428600a546104136109c5565b600b549063ffffffff610f8116565b6007546001600160a01b031681565b600b5481565b610e4a610e45336108d9565b610598565b610e526107e9565b565b60085481565b600082821115610eb1576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082610ec65750600061044c565b82820282848281610ed357fe5b0414610f105760405162461bcd60e51b81526004018080602001828103825260218152602001806113fc6021913960400191505060405180910390fd5b9392505050565b6000808211610f6d576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b6000828481610f7857fe5b04949350505050565b600082820183811015610f10576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000805460010190819055600254610ff9908363ffffffff610e5a16565b6002553360009081526003602052604090205461101c908363ffffffff610e5a16565b33600081815260036020526040902091909155600154611048916001600160a01b03909116908461109e565b60005481146108b7576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526110f0908490611179565b505050565b60008183106111045781610f10565b5090919050565b6000805460010190819055600254611129908363ffffffff610f8116565b6002553360009081526003602052604090205461114c908363ffffffff610f8116565b33600081815260036020526040902091909155600154611048916001600160a01b03909116903085611337565b61118b826001600160a01b0316611391565b6111dc576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061121a5780518252601f1990920191602091820191016111fb565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461127c576040519150601f19603f3d011682016040523d82523d6000602084013e611281565b606091505b5091509150816112d8576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611331578080602001905160208110156112f457600080fd5b50516113315760405162461bcd60e51b815260040180806020018281038252602a815260200180611474602a913960400191505060405180910390fd5b50505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611331908590611179565b3b15159056fe596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e6572736869704f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616e6e6f7420776974686472617720746865207374616b696e67206f72207265776172647320746f6b656e7343616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820aada1cb1c0c82d81c5b3d0f4ff242051160255853be3a8f32dfb40eb5ca7e3ea64736f6c63430005110032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000de910777c787903f78c89e7a0bf7f4c435cbb1fe000000000000000000000000de910777c787903f78c89e7a0bf7f4c435cbb1fe000000000000000000000000330416c863f2acce7af9c9314b422d24c672534a000000000000000000000000075b1bb99792c9e1041ba13afef80c91a1e70fb3
-----Decoded View---------------
Arg [0] : _owner (address): 0xDe910777C787903F78C89e7a0bf7F4C435cBB1Fe
Arg [1] : _rewardsDistribution (address): 0xDe910777C787903F78C89e7a0bf7F4C435cBB1Fe
Arg [2] : _rewardsToken (address): 0x330416C863f2acCE7aF9C9314B422d24c672534a
Arg [3] : _stakingToken (address): 0x075b1bb99792c9E1041bA13afEf80C91a1e70fB3
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000de910777c787903f78c89e7a0bf7f4c435cbb1fe
Arg [1] : 000000000000000000000000de910777c787903f78c89e7a0bf7f4c435cbb1fe
Arg [2] : 000000000000000000000000330416c863f2acce7af9c9314b422d24c672534a
Arg [3] : 000000000000000000000000075b1bb99792c9e1041ba13afef80c91a1e70fb3
Deployed Bytecode Sourcemap
19496:4359:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19496:4359:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21335:198;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21335:198:0;-1:-1:-1;;;;;21335:198:0;;:::i;:::-;;;;;;;;;;;;;;;;19874:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19874:42:0;-1:-1:-1;;;;;19874:42:0;;:::i;17195:141::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;17195:141:0;-1:-1:-1;;;;;17195:141:0;;:::i;:::-;;18774:91;;;:::i;18278:142::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18278:142:0;-1:-1:-1;;;;;18278:142:0;;:::i;19608:41::-;;;:::i;22440:112::-;;;:::i;21823:203::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21823:203:0;;:::i;22560:557::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22560:557:0;;:::i;22139:293::-;;;:::i;18012:34::-;;;:::i;:::-;;;;-1:-1:-1;;;;;18012:34:0;;;;;;;;;;;;;;16964:29;;;:::i;18873:110::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18873:110:0;-1:-1:-1;;;;;18873:110:0;;:::i;18545:26::-;;;:::i;17344:271::-;;;:::i;19696:29::-;;;:::i;20856:131::-;;;:::i;23220:632::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;23220:632:0;;;;;;;;:::i;19810:57::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19810:57:0;-1:-1:-1;;;;;19810:57:0;;:::i;16937:20::-;;;:::i;21624:191::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21624:191:0;;:::i;19732:29::-;;;:::i;20995:332::-;;;:::i;19573:26::-;;;:::i;19768:35::-;;;:::i;22034:97::-;;;:::i;19658:31::-;;;:::i;21335:198::-;-1:-1:-1;;;;;21508:16:0;;21389:7;21508:16;;;:7;:16;;;;;;;;;21460:22;:31;;;;;;21416:109;;21508:16;21416:87;;21498:4;;21416:77;;21439:53;;:16;:14;:16::i;:::-;:20;:53;:20;:53;:::i;:::-;21416:18;21426:7;21416:9;:18::i;:::-;:22;:77;:22;:77;:::i;:::-;:81;:87;:81;:87;:::i;:::-;:91;:109;:91;:109;:::i;:::-;21409:116;21335:198;-1:-1:-1;;21335:198:0:o;19874:42::-;;;;;;;;;;;;;:::o;17195:141::-;17675:5;;-1:-1:-1;;;;;17675:5:0;17661:10;:19;17653:79;;;;-1:-1:-1;;;17653:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17267:14;:23;;-1:-1:-1;;;;;17267:23:0;;-1:-1:-1;;;;;;17267:23:0;;;;;;;;17306:22;;;;;;;;;;;;;;;;17195:141;:::o;18774:91::-;18845:12;;18774:91;;:::o;18278:142::-;17675:5;;-1:-1:-1;;;;;17675:5:0;17661:10;:19;17653:79;;;;-1:-1:-1;;;17653:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18370:19;:42;;-1:-1:-1;;;;;;18370:42:0;-1:-1:-1;;;;;18370:42:0;;;;;;;;;;18278:142::o;19608:41::-;19643:6;19608:41;:::o;22440:112::-;22520:10;;22493:7;;22520:24;;19643:6;22520:24;:14;:24;:::i;:::-;22513:31;;22440:112;:::o;21823:203::-;21877:10;20591:16;:14;:16::i;:::-;20568:20;:39;20635:26;:24;:26::i;:::-;20618:14;:43;-1:-1:-1;;;;;20676:21:0;;;20672:157;;20733:15;20740:7;20733:6;:15::i;:::-;-1:-1:-1;;;;;20714:16:0;;;;;;:7;:16;;;;;;;;:34;;;;20797:20;;20763:22;:31;;;;;;:54;20672:157;21917:1;21908:6;:10;21900:40;;;;;-1:-1:-1;;;21900:40:0;;;;;;;;;;;;-1:-1:-1;;;21900:40:0;;;;;;;;;;;;;;;21951:22;21966:6;21951:14;:22::i;:::-;21989:29;;;;;;;;21999:10;;21989:29;;;;;;;;;;21823:203;;:::o;22560:557::-;18184:19;;-1:-1:-1;;;;;18184:19:0;18170:10;:33;18162:88;;;;-1:-1:-1;;;18162:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22658:1;20591:16;:14;:16::i;:::-;20568:20;:39;20635:26;:24;:26::i;:::-;20618:14;:43;-1:-1:-1;;;;;20676:21:0;;;20672:157;;20733:15;20740:7;20733:6;:15::i;:::-;-1:-1:-1;;;;;20714:16:0;;;;;;:7;:16;;;;;;;;:34;;;;20797:20;;20763:22;:31;;;;;;:54;20672:157;22696:12;;22677:15;:31;22673:304;;22738:20;:6;19643;22738:20;:10;:20;:::i;:::-;22725:10;:33;22673:304;;;22811:12;;22791:17;;22811:33;;22828:15;22811:33;:16;:33;:::i;:::-;22791:53;;22859:16;22878:25;22892:10;;22878:9;:13;;:25;;;;:::i;:::-;22859:44;-1:-1:-1;22931:34:0;19643:6;22931:20;:6;22859:44;22931:20;:10;:20;:::i;:34::-;22918:10;:47;-1:-1:-1;;22673:304:0;23004:15;22987:14;:32;;;23045:29;;19643:6;23045:29;:19;:29;:::i;:::-;23030:12;:44;23090:19;;;;;;;;;;;;;;;;;18261:1;22560:557;:::o;22139:293::-;22180:10;20591:16;:14;:16::i;:::-;20568:20;:39;20635:26;:24;:26::i;:::-;20618:14;:43;-1:-1:-1;;;;;20676:21:0;;;20672:157;;20733:15;20740:7;20733:6;:15::i;:::-;-1:-1:-1;;;;;20714:16:0;;;;;;:7;:16;;;;;;;;:34;;;;20797:20;;20763:22;:31;;;;;;:54;20672:157;22203:14;22220:18;22227:10;22220:6;:18::i;:::-;22203:35;-1:-1:-1;22253:10:0;;22249:176;;22288:10;22302:1;22280:19;;;:7;:19;;;;;:23;22318:12;;:45;;-1:-1:-1;;;;;22318:12:0;;;;22356:6;22318:25;:45::i;:::-;22383:30;;;;;;;;22394:10;;22383:30;;;;;;;;;;22249:176;20839:1;22139:293;:::o;18012:34::-;;;-1:-1:-1;;;;;18012:34:0;;:::o;16964:29::-;;;-1:-1:-1;;;;;16964:29:0;;:::o;18873:110::-;-1:-1:-1;;;;;18957:18:0;18930:7;18957:18;;;:9;:18;;;;;;;18873:110::o;18545:26::-;;;-1:-1:-1;;;;;18545:26:0;;:::o;17344:271::-;17413:14;;-1:-1:-1;;;;;17413:14:0;17399:10;:28;17391:94;;;;-1:-1:-1;;;17391:94:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17514:5;;17521:14;;17501:35;;;-1:-1:-1;;;;;17514:5:0;;;17501:35;;17521:14;;;;17501:35;;;;;;;;;;;;;;;;17555:14;;;17547:5;:22;;-1:-1:-1;;;;;;17547:22:0;;;-1:-1:-1;;;;;17555:14:0;;17547:22;;;;17580:27;;;17344:271::o;19696:29::-;;;;:::o;20856:131::-;20913:7;20940:39;20949:15;20966:12;;20940:8;:39::i;23220:632::-;17675:5;;-1:-1:-1;;;;;17675:5:0;17661:10;:19;17653:79;;;;-1:-1:-1;;;17653:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23413:10;23484:12;-1:-1:-1;;;;;23470:34:0;;:36;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23470:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23470:36:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;23470:36:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;23470:36:0;;;;;;;;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;372:25;;-1:-1;23470:36:0;;420:4:-1;411:14;;;;23470:36:0;;;;;411:14:-1;23470:36:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;23470:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23470:36:0;;;;23454:54;;;;;;;23437:12;;;;;;;;;-1:-1:-1;;;23437:12:0;;;;;;;;-1:-1:-1;;23618:12:0;;23427:23;:81;;;;-1:-1:-1;;;;;;;23594:37:0;;;23618:12;;23594:37;;;;:78;;-1:-1:-1;23659:12:0;;-1:-1:-1;;;;;23635:37:0;;;23659:12;;23635:37;;23594:78;:88;;;;;23677:5;23676:6;23594:88;23586:146;;;;-1:-1:-1;;;23586:146:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23773:5;;;23743:49;;;-1:-1:-1;;;23743:49:0;;-1:-1:-1;;;;;23773:5:0;;;23743:49;;;;;;;;;;;;;;:29;;;;;;:49;;;;;;;;;;;;;;23773:5;23743:29;:49;;;5:2:-1;;;;30:1;27;20:12;5:2;23743:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23743:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;23808:36:0;;;;;;;;-1:-1:-1;;;;;23808:36:0;;;;;;;;;23743:49;23808:36;;;17743:1;23220:632;;:::o;19810:57::-;;;;;;;;;;;;;:::o;16937:20::-;;;-1:-1:-1;;;;;16937:20:0;;:::o;21624:191::-;21675:10;20591:16;:14;:16::i;:::-;20568:20;:39;20635:26;:24;:26::i;:::-;20618:14;:43;-1:-1:-1;;;;;20676:21:0;;;20672:157;;20733:15;20740:7;20733:6;:15::i;:::-;-1:-1:-1;;;;;20714:16:0;;;;;;:7;:16;;;;;;;;:34;;;;20797:20;;20763:22;:31;;;;;;:54;20672:157;21715:1;21706:6;:10;21698:37;;;;;-1:-1:-1;;;21698:37:0;;;;;;;;;;;;-1:-1:-1;;;21698:37:0;;;;;;;;;;;;;;;21746:19;21758:6;21746:11;:19::i;:::-;21781:26;;;;;;;;21788:10;;21781:26;;;;;;;;;;21624:191;;:::o;19732:29::-;;;;:::o;20995:332::-;21042:7;21066:13;:11;:13::i;:::-;21062:78;;-1:-1:-1;21108:20:0;;21101:27;;21062:78;21170:149;21213:91;21290:13;:11;:13::i;:::-;21213:72;21280:4;21213:62;21264:10;;21213:46;21244:14;;21213:26;:24;:26::i;:91::-;21170:20;;;:149;:24;:149;:::i;19573:26::-;;;-1:-1:-1;;;;;19573:26:0;;:::o;19768:35::-;;;;:::o;22034:97::-;22070:31;22079:21;22089:10;22079:9;:21::i;:::-;22070:8;:31::i;:::-;22112:11;:9;:11::i;:::-;22034:97::o;19658:31::-;;;;:::o;4070:184::-;4128:7;4161:1;4156;:6;;4148:49;;;;;-1:-1:-1;;;4148:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4220:5:0;;;4070:184::o;4505:470::-;4563:7;4807:6;4803:47;;-1:-1:-1;4837:1:0;4830:8;;4803:47;4874:5;;;4878:1;4874;:5;:1;4898:5;;;;;:10;4890:56;;;;-1:-1:-1;;;4890:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4966:1;4505:470;-1:-1:-1;;;4505:470:0:o;5443:333::-;5501:7;5600:1;5596;:5;5588:44;;;;;-1:-1:-1;;;5588:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5643:9;5659:1;5655;:5;;;;;;;5443:333;-1:-1:-1;;;;5443:333:0:o;3614:181::-;3672:7;3704:5;;;3728:6;;;;3720:46;;;;;-1:-1:-1;;;3720:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;19251:236;16691:13;:18;;16708:1;16691:18;;;;;19331:12;;:24;;19348:6;19331:24;:16;:24;:::i;:::-;19316:12;:39;19400:10;19390:21;;;;:9;:21;;;;;;:33;;19416:6;19390:33;:25;:33;:::i;:::-;19376:10;19366:21;;;;:9;:21;;;;;:57;;;;19434:12;;:45;;-1:-1:-1;;;;;19434:12:0;;;;19472:6;19434:25;:45::i;:::-;16803:13;;16787:12;:29;16779:73;;;;;-1:-1:-1;;;16779:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;12268:176;12377:58;;;-1:-1:-1;;;;;12377:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;12377:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;12351:85:0;;12370:5;;12351:18;:85::i;:::-;12268:176;;;:::o;2355:106::-;2413:7;2444:1;2440;:5;:13;;2452:1;2440:13;;;-1:-1:-1;2448:1:0;;2433:20;-1:-1:-1;2355:106:0:o;18991:252::-;16691:13;:18;;16708:1;16691:18;;;;;19068:12;;:24;;19085:6;19068:24;:16;:24;:::i;:::-;19053:12;:39;19137:10;19127:21;;;;:9;:21;;;;;;:33;;19153:6;19127:33;:25;:33;:::i;:::-;19113:10;19103:21;;;;:9;:21;;;;;:57;;;;19171:12;;:64;;-1:-1:-1;;;;;19171:12:0;;;;19221:4;19228:6;19171:29;:64::i;14262:1114::-;14866:27;14874:5;-1:-1:-1;;;;;14866:25:0;;:27::i;:::-;14858:71;;;;;-1:-1:-1;;;14858:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15003:12;15017:23;15052:5;-1:-1:-1;;;;;15044:19:0;15064:4;15044:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;15044:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;15002:67:0;;;;15088:7;15080:52;;;;;-1:-1:-1;;;15080:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15149:17;;:21;15145:224;;15291:10;15280:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15280:30:0;15272:85;;;;-1:-1:-1;;;15272:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14262:1114;;;;:::o;12452:204::-;12579:68;;;-1:-1:-1;;;;;12579:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;12579:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;12553:95:0;;12572:5;;12553:18;:95::i;11279:422::-;11646:20;11685:8;;;11279:422::o
Swarm Source
bzzr://aada1cb1c0c82d81c5b3d0f4ff242051160255853be3a8f32dfb40eb5ca7e3ea
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.