More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 305 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Exit | 13274201 | 1025 days ago | IN | 0 ETH | 0.00622399 | ||||
Unstake | 13161253 | 1042 days ago | IN | 0 ETH | 0.00675377 | ||||
Unstake | 13161252 | 1042 days ago | IN | 0 ETH | 0.00675377 | ||||
Exit | 13161240 | 1042 days ago | IN | 0 ETH | 0.00596794 | ||||
Exit | 13161240 | 1042 days ago | IN | 0 ETH | 0.01259126 | ||||
Unstake | 13161224 | 1042 days ago | IN | 0 ETH | 0.01043592 | ||||
Unstake | 13161210 | 1042 days ago | IN | 0 ETH | 0.00907661 | ||||
Unstake | 13161210 | 1042 days ago | IN | 0 ETH | 0.01440578 | ||||
Get Reward | 11986855 | 1224 days ago | IN | 0 ETH | 0.01004124 | ||||
Exit | 11735950 | 1263 days ago | IN | 0 ETH | 0.00783481 | ||||
Get Reward | 11649683 | 1276 days ago | IN | 0 ETH | 0.00176715 | ||||
Get Reward | 11649683 | 1276 days ago | IN | 0 ETH | 0.00307363 | ||||
Unstake | 11649560 | 1276 days ago | IN | 0 ETH | 0.00444222 | ||||
Unstake | 11642477 | 1277 days ago | IN | 0 ETH | 0.00488875 | ||||
Get Reward | 11639395 | 1278 days ago | IN | 0 ETH | 0.00386248 | ||||
Unstake | 11639381 | 1278 days ago | IN | 0 ETH | 0.00636742 | ||||
Unstake | 11626348 | 1280 days ago | IN | 0 ETH | 0.00414506 | ||||
Get Reward | 11626341 | 1280 days ago | IN | 0 ETH | 0.00351443 | ||||
Get Reward | 11613266 | 1282 days ago | IN | 0 ETH | 0.00703016 | ||||
Unstake | 11613157 | 1282 days ago | IN | 0 ETH | 0.00750241 | ||||
Unstake | 11613127 | 1282 days ago | IN | 0 ETH | 0.01000489 | ||||
Unstake | 11612922 | 1282 days ago | IN | 0 ETH | 0.00848751 | ||||
Unstake | 11605545 | 1283 days ago | IN | 0 ETH | 0.00795844 | ||||
Unstake | 11603074 | 1283 days ago | IN | 0 ETH | 0.0085269 | ||||
Unstake | 11602507 | 1284 days ago | IN | 0 ETH | 0.01111299 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Farming
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-11-05 */ pragma solidity ^0.5.16; /** * @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) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); 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-contracts/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) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); 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) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); 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. * * 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); } /** * @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: 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. * * 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. */ 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. // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != 0x0 && codehash != accountHash); } /** * @dev Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */ function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); } /** * @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]. * * _Available since v2.4.0._ */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, recipient may have reverted"); } } /** * @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, "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. // 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"); } } } contract Context { function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } 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 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 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 onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. */ contract ReentrancyGuard { // 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"); } } interface IFarming { function lastTimeRewardApplicable() external view returns (uint256); function rewardPerToken() external view returns (uint256); function earned(address account) external view returns (uint256); function getRewardForDuration() external view returns (uint256); function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); // Mutative function stake(uint256 amount) external; function unstake(uint256 amount) external; function getReward() external; function exit() external; } contract Farming is IFarming, Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ IERC20 public rewardsToken; IERC20 public stakingToken; uint256 public periodFinish = 0; uint256 public rewardRate = 0; uint256 public rewardsDuration = 31556926; uint256 public lastUpdateTime; uint256 public rewardPerTokenStored; uint256 public startFarmingTime = 1606503600; // 2020 27 November 19:00 UTC modifier startFarming() { require(block.timestamp >= startFarmingTime, "Farming didn't start yet"); _; } mapping(address => uint256) public userRewardPerTokenPaid; mapping(address => uint256) public rewards; uint256 private _totalSupply; mapping(address => uint256) private _balances; /* ========== CONSTRUCTOR ========== */ constructor( address _rewardsToken, address _stakingToken ) public { rewardsToken = IERC20(_rewardsToken); stakingToken = IERC20(_stakingToken); } /* ========== VIEWS ========== */ function totalSupply() external view returns (uint256) { return _totalSupply; } function balanceOf(address account) external view returns (uint256) { return _balances[account]; } function lastTimeRewardApplicable() public view returns (uint256) { return Math.min(block.timestamp, periodFinish); } function rewardPerToken() public view returns (uint256) { if (_totalSupply == 0) { return rewardPerTokenStored; } return rewardPerTokenStored.add( lastTimeRewardApplicable().sub(lastUpdateTime).mul(rewardRate).mul(1e18).div(_totalSupply) ); } function earned(address account) public view returns (uint256) { return _balances[account].mul(rewardPerToken().sub(userRewardPerTokenPaid[account])).div(1e18).add(rewards[account]); } function getRewardForDuration() external view returns (uint256) { return rewardRate.mul(rewardsDuration); } /* ========== MUTATIVE FUNCTIONS ========== */ function stake(uint256 amount) external nonReentrant startFarming updateReward(msg.sender) { require(amount > 0, "Cannot stake 0"); _totalSupply = _totalSupply.add(amount); _balances[msg.sender] = _balances[msg.sender].add(amount); stakingToken.safeTransferFrom(msg.sender, address(this), amount); emit Staked(msg.sender, amount); } function unstake(uint256 amount) public nonReentrant startFarming updateReward(msg.sender) { require(amount > 0, "Cannot withdraw 0"); _totalSupply = _totalSupply.sub(amount); _balances[msg.sender] = _balances[msg.sender].sub(amount); stakingToken.safeTransfer(msg.sender, amount); emit Withdrawn(msg.sender, amount); } function getReward() public nonReentrant startFarming updateReward(msg.sender) { uint256 reward = rewards[msg.sender]; if (reward > 0) { rewards[msg.sender] = 0; rewardsToken.safeTransfer(msg.sender, reward); emit RewardPaid(msg.sender, reward); } } function exit() external startFarming { unstake(_balances[msg.sender]); getReward(); } /* ========== RESTRICTED FUNCTIONS ========== */ function changeRate(uint256 reward) external onlyOwner updateReward(address(0)) { if (block.timestamp >= periodFinish) { rewardRate = reward.div(rewardsDuration); } else { uint256 remaining = periodFinish.sub(block.timestamp); uint256 leftover = remaining.mul(rewardRate); rewardRate = reward.add(leftover).div(rewardsDuration); } // Ensure the provided reward amount is not more than the balance in the contract. // This keeps the reward rate in the right range, preventing overflows due to // very high values of rewardRate in the earned and rewardsPerToken functions; // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow. uint balance = rewardsToken.balanceOf(address(this)); require(rewardRate <= balance.div(rewardsDuration), "Provided reward too high"); lastUpdateTime = block.timestamp; periodFinish = block.timestamp.add(rewardsDuration); emit RewardAdded(reward); } function setRewardsDuration(uint256 _rewardsDuration) external onlyOwner { require(block.timestamp > periodFinish, "Previous rewards period must be complete before changing the duration for the new period" ); rewardsDuration = _rewardsDuration; emit RewardsDurationUpdated(rewardsDuration); } /* ========== MODIFIERS ========== */ modifier updateReward(address account) { rewardPerTokenStored = rewardPerToken(); lastUpdateTime = lastTimeRewardApplicable(); if (account != address(0)) { rewards[account] = earned(account); userRewardPerTokenPaid[account] = rewardPerTokenStored; } _; } /* ========== EVENTS ========== */ 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 RewardsDurationUpdated(uint256 newDuration); event Recovered(address token, uint256 amount); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"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":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","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":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"changeRate","outputs":[],"payable":false,"stateMutability":"nonpayable","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":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":[],"name":"renounceOwnership","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":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","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":"startFarmingTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052600060045560006005556301e1853e600655635fc14cb060095534801561002a57600080fd5b50604051620027ad380380620027ad8339818101604052604081101561004f57600080fd5b810190808051906020019092919080519060200190929190505050600061007a6101a860201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3506001808190555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506101b0565b600033905090565b6125ed80620001c06000396000f3fe608060405234801561001057600080fd5b50600436106101725760003560e01c806380faa57d116100de578063cd3daf9d11610097578063e9fad8ee11610071578063e9fad8ee14610571578063ebe2b12b1461057b578063f2fde38b14610599578063fd55a349146105dd57610172565b8063cd3daf9d146104eb578063d1af0c7d14610509578063df136d651461055357610172565b806380faa57d146103b15780638b876347146103cf5780638da5cb5b14610427578063a694fc3a14610471578063c8f33c911461049f578063cc1a378f146104bd57610172565b80633d18b912116101305780633d18b912146102af57806370a08231146102b9578063715018a61461031157806372f702f31461031b57806374e7493b146103655780637b0a47ee1461039357610172565b80628cc262146101775780630700037d146101cf57806318160ddd146102275780631c1f78eb146102455780632e17de7814610263578063386a952514610291575b600080fd5b6101b96004803603602081101561018d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105fb565b6040518082815260200191505060405180910390f35b610211600480360360208110156101e557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610719565b6040518082815260200191505060405180910390f35b61022f610731565b6040518082815260200191505060405180910390f35b61024d61073b565b6040518082815260200191505060405180910390f35b61028f6004803603602081101561027957600080fd5b8101908080359060200190929190505050610759565b005b610299610b09565b6040518082815260200191505060405180910390f35b6102b7610b0f565b005b6102fb600480360360208110156102cf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e2c565b6040518082815260200191505060405180910390f35b610319610e75565b005b610323610ffd565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103916004803603602081101561037b57600080fd5b8101908080359060200190929190505050611023565b005b61039b611424565b6040518082815260200191505060405180910390f35b6103b961142a565b6040518082815260200191505060405180910390f35b610411600480360360208110156103e557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061143d565b6040518082815260200191505060405180910390f35b61042f611455565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61049d6004803603602081101561048757600080fd5b810190808035906020019092919050505061147e565b005b6104a7611830565b6040518082815260200191505060405180910390f35b6104e9600480360360208110156104d357600080fd5b8101908080359060200190929190505050611836565b005b6104f361199c565b6040518082815260200191505060405180910390f35b610511611a2a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61055b611a50565b6040518082815260200191505060405180910390f35b610579611a56565b005b610583611b20565b6040518082815260200191505060405180910390f35b6105db600480360360208110156105af57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611b26565b005b6105e5611d33565b6040518082815260200191505060405180910390f35b6000610712600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610704670de0b6b3a76400006106f66106a8600a60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461069a61199c565b611d3990919063ffffffff16565b600d60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d8390919063ffffffff16565b611e0990919063ffffffff16565b611e5390919063ffffffff16565b9050919050565b600b6020528060005260406000206000915090505481565b6000600c54905090565b6000610754600654600554611d8390919063ffffffff16565b905090565b60018060008282540192505081905550600060015490506009544210156107e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f4661726d696e67206469646e277420737461727420796574000000000000000081525060200191505060405180910390fd5b336107f161199c565b6008819055506107ff61142a565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108cc57610842816105fb565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008311610942576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f43616e6e6f74207769746864726177203000000000000000000000000000000081525060200191505060405180910390fd5b61095783600c54611d3990919063ffffffff16565b600c819055506109af83600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d3990919063ffffffff16565b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610a3f3384600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611edb9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5846040518082815260200191505060405180910390a2506001548114610b05576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b60065481565b6001806000828254019250508190555060006001549050600954421015610b9e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f4661726d696e67206469646e277420737461727420796574000000000000000081525060200191505060405180910390fd5b33610ba761199c565b600881905550610bb561142a565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c8257610bf8816105fb565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115610db0576000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610d613382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611edb9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b50506001548114610e29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b50565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e7d611fac565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f3e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61102b611fac565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60006110f661199c565b60088190555061110461142a565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111d157611147816105fb565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60045442106111fa576111ef60065483611e0990919063ffffffff16565b60058190555061125c565b600061121142600454611d3990919063ffffffff16565b9050600061122a60055483611d8390919063ffffffff16565b90506112536006546112458387611e5390919063ffffffff16565b611e0990919063ffffffff16565b60058190555050505b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156112fd57600080fd5b505afa158015611311573d6000803e3d6000fd5b505050506040513d602081101561132757600080fd5b8101908080519060200190929190505050905061134f60065482611e0990919063ffffffff16565b60055411156113c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f50726f76696465642072657761726420746f6f2068696768000000000000000081525060200191505060405180910390fd5b426007819055506113e260065442611e5390919063ffffffff16565b6004819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d836040518082815260200191505060405180910390a1505050565b60055481565b600061143842600454611fb4565b905090565b600a6020528060005260406000206000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600180600082825401925050819055506000600154905060095442101561150d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f4661726d696e67206469646e277420737461727420796574000000000000000081525060200191505060405180910390fd5b3361151661199c565b60088190555061152461142a565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115f157611567816105fb565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008311611667576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b61167c83600c54611e5390919063ffffffff16565b600c819055506116d483600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e5390919063ffffffff16565b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611766333085600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611fcd909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d846040518082815260200191505060405180910390a250600154811461182c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b60075481565b61183e611fac565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146118ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6004544211611959576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260588152602001806124f06058913960600191505060405180910390fd5b806006819055507ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d36006546040518082815260200191505060405180910390a150565b600080600c5414156119b2576008549050611a27565b611a24611a13600c54611a05670de0b6b3a76400006119f76005546119e96007546119db61142a565b611d3990919063ffffffff16565b611d8390919063ffffffff16565b611d8390919063ffffffff16565b611e0990919063ffffffff16565b600854611e5390919063ffffffff16565b90505b90565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b600954421015611ace576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f4661726d696e67206469646e277420737461727420796574000000000000000081525060200191505060405180910390fd5b611b16600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610759565b611b1e610b0f565b565b60045481565b611b2e611fac565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611bef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c75576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806125486026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60095481565b6000611d7b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506120d3565b905092915050565b600080831415611d965760009050611e03565b6000828402905082848281611da757fe5b0414611dfe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061256e6021913960400191505060405180910390fd5b809150505b92915050565b6000611e4b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612193565b905092915050565b600080828401905083811015611ed1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b611fa7838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb905060e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612259565b505050565b600033905090565b6000818310611fc35781611fc5565b825b905092915050565b6120cd848573ffffffffffffffffffffffffffffffffffffffff166323b872dd905060e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612259565b50505050565b6000838311158290612180576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561214557808201518184015260208101905061212a565b50505050905090810190601f1680156121725780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000808311829061223f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156122045780820151818401526020810190506121e9565b50505050905090810190601f1680156122315780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161224b57fe5b049050809150509392505050565b6122788273ffffffffffffffffffffffffffffffffffffffff166124a4565b6122ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b602083106123395780518252602082019150602081019050602083039250612316565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461239b576040519150601f19603f3d011682016040523d82523d6000602084013e6123a0565b606091505b509150915081612418576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b60008151111561249e5780806020019051602081101561243757600080fd5b810190808051906020019092919050505061249d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061258f602a913960400191505060405180910390fd5b5b50505050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f91506000801b82141580156124e65750808214155b9250505091905056fe50726576696f7573207265776172647320706572696f64206d75737420626520636f6d706c657465206265666f7265206368616e67696e6720746865206475726174696f6e20666f7220746865206e657720706572696f644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a723158208a70d139b62b47e91548c13be5cb67a8bc36b308f573bbf36e4a99b07bdbe2a664736f6c634300051100320000000000000000000000000bec63182ab7e5cd0c0ba4b6d7f5a1d20e815e2300000000000000000000000015f5f5f29a819bf7b4b80bf55352e1e42707c94e
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101725760003560e01c806380faa57d116100de578063cd3daf9d11610097578063e9fad8ee11610071578063e9fad8ee14610571578063ebe2b12b1461057b578063f2fde38b14610599578063fd55a349146105dd57610172565b8063cd3daf9d146104eb578063d1af0c7d14610509578063df136d651461055357610172565b806380faa57d146103b15780638b876347146103cf5780638da5cb5b14610427578063a694fc3a14610471578063c8f33c911461049f578063cc1a378f146104bd57610172565b80633d18b912116101305780633d18b912146102af57806370a08231146102b9578063715018a61461031157806372f702f31461031b57806374e7493b146103655780637b0a47ee1461039357610172565b80628cc262146101775780630700037d146101cf57806318160ddd146102275780631c1f78eb146102455780632e17de7814610263578063386a952514610291575b600080fd5b6101b96004803603602081101561018d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105fb565b6040518082815260200191505060405180910390f35b610211600480360360208110156101e557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610719565b6040518082815260200191505060405180910390f35b61022f610731565b6040518082815260200191505060405180910390f35b61024d61073b565b6040518082815260200191505060405180910390f35b61028f6004803603602081101561027957600080fd5b8101908080359060200190929190505050610759565b005b610299610b09565b6040518082815260200191505060405180910390f35b6102b7610b0f565b005b6102fb600480360360208110156102cf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e2c565b6040518082815260200191505060405180910390f35b610319610e75565b005b610323610ffd565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103916004803603602081101561037b57600080fd5b8101908080359060200190929190505050611023565b005b61039b611424565b6040518082815260200191505060405180910390f35b6103b961142a565b6040518082815260200191505060405180910390f35b610411600480360360208110156103e557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061143d565b6040518082815260200191505060405180910390f35b61042f611455565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61049d6004803603602081101561048757600080fd5b810190808035906020019092919050505061147e565b005b6104a7611830565b6040518082815260200191505060405180910390f35b6104e9600480360360208110156104d357600080fd5b8101908080359060200190929190505050611836565b005b6104f361199c565b6040518082815260200191505060405180910390f35b610511611a2a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61055b611a50565b6040518082815260200191505060405180910390f35b610579611a56565b005b610583611b20565b6040518082815260200191505060405180910390f35b6105db600480360360208110156105af57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611b26565b005b6105e5611d33565b6040518082815260200191505060405180910390f35b6000610712600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610704670de0b6b3a76400006106f66106a8600a60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461069a61199c565b611d3990919063ffffffff16565b600d60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d8390919063ffffffff16565b611e0990919063ffffffff16565b611e5390919063ffffffff16565b9050919050565b600b6020528060005260406000206000915090505481565b6000600c54905090565b6000610754600654600554611d8390919063ffffffff16565b905090565b60018060008282540192505081905550600060015490506009544210156107e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f4661726d696e67206469646e277420737461727420796574000000000000000081525060200191505060405180910390fd5b336107f161199c565b6008819055506107ff61142a565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108cc57610842816105fb565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008311610942576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f43616e6e6f74207769746864726177203000000000000000000000000000000081525060200191505060405180910390fd5b61095783600c54611d3990919063ffffffff16565b600c819055506109af83600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d3990919063ffffffff16565b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610a3f3384600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611edb9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5846040518082815260200191505060405180910390a2506001548114610b05576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b60065481565b6001806000828254019250508190555060006001549050600954421015610b9e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f4661726d696e67206469646e277420737461727420796574000000000000000081525060200191505060405180910390fd5b33610ba761199c565b600881905550610bb561142a565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c8257610bf8816105fb565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115610db0576000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610d613382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611edb9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b50506001548114610e29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b50565b6000600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e7d611fac565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f3e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61102b611fac565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60006110f661199c565b60088190555061110461142a565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111d157611147816105fb565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60045442106111fa576111ef60065483611e0990919063ffffffff16565b60058190555061125c565b600061121142600454611d3990919063ffffffff16565b9050600061122a60055483611d8390919063ffffffff16565b90506112536006546112458387611e5390919063ffffffff16565b611e0990919063ffffffff16565b60058190555050505b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156112fd57600080fd5b505afa158015611311573d6000803e3d6000fd5b505050506040513d602081101561132757600080fd5b8101908080519060200190929190505050905061134f60065482611e0990919063ffffffff16565b60055411156113c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f50726f76696465642072657761726420746f6f2068696768000000000000000081525060200191505060405180910390fd5b426007819055506113e260065442611e5390919063ffffffff16565b6004819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d836040518082815260200191505060405180910390a1505050565b60055481565b600061143842600454611fb4565b905090565b600a6020528060005260406000206000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600180600082825401925050819055506000600154905060095442101561150d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f4661726d696e67206469646e277420737461727420796574000000000000000081525060200191505060405180910390fd5b3361151661199c565b60088190555061152461142a565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115f157611567816105fb565b600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008311611667576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b61167c83600c54611e5390919063ffffffff16565b600c819055506116d483600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e5390919063ffffffff16565b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611766333085600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611fcd909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d846040518082815260200191505060405180910390a250600154811461182c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b60075481565b61183e611fac565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146118ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6004544211611959576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260588152602001806124f06058913960600191505060405180910390fd5b806006819055507ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d36006546040518082815260200191505060405180910390a150565b600080600c5414156119b2576008549050611a27565b611a24611a13600c54611a05670de0b6b3a76400006119f76005546119e96007546119db61142a565b611d3990919063ffffffff16565b611d8390919063ffffffff16565b611d8390919063ffffffff16565b611e0990919063ffffffff16565b600854611e5390919063ffffffff16565b90505b90565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b600954421015611ace576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f4661726d696e67206469646e277420737461727420796574000000000000000081525060200191505060405180910390fd5b611b16600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610759565b611b1e610b0f565b565b60045481565b611b2e611fac565b73ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611bef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c75576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806125486026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60095481565b6000611d7b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506120d3565b905092915050565b600080831415611d965760009050611e03565b6000828402905082848281611da757fe5b0414611dfe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061256e6021913960400191505060405180910390fd5b809150505b92915050565b6000611e4b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612193565b905092915050565b600080828401905083811015611ed1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b611fa7838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb905060e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612259565b505050565b600033905090565b6000818310611fc35781611fc5565b825b905092915050565b6120cd848573ffffffffffffffffffffffffffffffffffffffff166323b872dd905060e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612259565b50505050565b6000838311158290612180576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561214557808201518184015260208101905061212a565b50505050905090810190601f1680156121725780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000808311829061223f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156122045780820151818401526020810190506121e9565b50505050905090810190601f1680156122315780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161224b57fe5b049050809150509392505050565b6122788273ffffffffffffffffffffffffffffffffffffffff166124a4565b6122ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b602083106123395780518252602082019150602081019050602083039250612316565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461239b576040519150601f19603f3d011682016040523d82523d6000602084013e6123a0565b606091505b509150915081612418576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b60008151111561249e5780806020019051602081101561243757600080fd5b810190808051906020019092919050505061249d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061258f602a913960400191505060405180910390fd5b5b50505050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f91506000801b82141580156124e65750808214155b9250505091905056fe50726576696f7573207265776172647320706572696f64206d75737420626520636f6d706c657465206265666f7265206368616e67696e6720746865206475726174696f6e20666f7220746865206e657720706572696f644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a723158208a70d139b62b47e91548c13be5cb67a8bc36b308f573bbf36e4a99b07bdbe2a664736f6c63430005110032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000bec63182ab7e5cd0c0ba4b6d7f5a1d20e815e2300000000000000000000000015f5f5f29a819bf7b4b80bf55352e1e42707c94e
-----Decoded View---------------
Arg [0] : _rewardsToken (address): 0x0bec63182aB7E5cD0c0bA4b6D7f5a1D20e815e23
Arg [1] : _stakingToken (address): 0x15F5f5F29a819BF7B4B80BF55352E1e42707c94e
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000bec63182ab7e5cd0c0ba4b6d7f5a1d20e815e23
Arg [1] : 00000000000000000000000015f5f5f29a819bf7b4b80bf55352e1e42707c94e
Deployed Bytecode Sourcemap
21522:5698:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21522:5698:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23391:198;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23391:198:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22265:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22265:42:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22693:93;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23597:121;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24170:369;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;24170:369:0;;;;;;;;;;;;;;;;;:::i;:::-;;21843:41;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24547:320;;;:::i;:::-;;22794:112;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22794:112:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;18866:140;;;:::i;:::-;;21736:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;25048:1061;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;25048:1061:0;;;;;;;;;;;;;;;;;:::i;:::-;;21807:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22914:131;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22201:57;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22201:57:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;18224:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23780:382;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23780:382:0;;;;;;;;;;;;;;;;;:::i;:::-;;21891:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26117:346;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;26117:346:0;;;;;;;;;;;;;;;;;:::i;:::-;;23053:330;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21703:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;21927:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24875:109;;;:::i;:::-;;21769:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;19161:236;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;19161:236:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;21969:44;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23391:198;23445:7;23472:109;23564:7;:16;23572:7;23564:16;;;;;;;;;;;;;;;;23472:87;23554:4;23472:77;23495:53;23516:22;:31;23539:7;23516:31;;;;;;;;;;;;;;;;23495:16;:14;:16::i;:::-;:20;;:53;;;;:::i;:::-;23472:9;:18;23482:7;23472:18;;;;;;;;;;;;;;;;:22;;:77;;;;:::i;:::-;:81;;:87;;;;:::i;:::-;:91;;:109;;;;:::i;:::-;23465:116;;23391:198;;;:::o;22265:42::-;;;;;;;;;;;;;;;;;:::o;22693:93::-;22739:7;22766:12;;22759:19;;22693:93;:::o;23597:121::-;23652:7;23679:31;23694:15;;23679:10;;:14;;:31;;;;:::i;:::-;23672:38;;23597:121;:::o;24170:369::-;20722:1;20705:13;;:18;;;;;;;;;;;20734:20;20757:13;;20734:36;;22122:16;;22103:15;:35;;22095:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24249:10;26589:16;:14;:16::i;:::-;26566:20;:39;;;;26633:26;:24;:26::i;:::-;26616:14;:43;;;;26693:1;26674:21;;:7;:21;;;26670:157;;26731:15;26738:7;26731:6;:15::i;:::-;26712:7;:16;26720:7;26712:16;;;;;;;;;;;;;;;:34;;;;26795:20;;26761:22;:31;26784:7;26761:31;;;;;;;;;;;;;;;:54;;;;26670:157;24289:1;24280:6;:10;24272:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24338:24;24355:6;24338:12;;:16;;:24;;;;:::i;:::-;24323:12;:39;;;;24397:33;24423:6;24397:9;:21;24407:10;24397:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;24373:9;:21;24383:10;24373:21;;;;;;;;;;;;;;;:57;;;;24441:45;24467:10;24479:6;24441:12;;;;;;;;;;;:25;;;;:45;;;;;:::i;:::-;24512:10;24502:29;;;24524:6;24502:29;;;;;;;;;;;;;;;;;;22182:1;20817:13;;20801:12;:29;20793:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24170:369;;:::o;21843:41::-;;;;:::o;24547:320::-;20722:1;20705:13;;:18;;;;;;;;;;;20734:20;20757:13;;20734:36;;22122:16;;22103:15;:35;;22095:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24614:10;26589:16;:14;:16::i;:::-;26566:20;:39;;;;26633:26;:24;:26::i;:::-;26616:14;:43;;;;26693:1;26674:21;;:7;:21;;;26670:157;;26731:15;26738:7;26731:6;:15::i;:::-;26712:7;:16;26720:7;26712:16;;;;;;;;;;;;;;;:34;;;;26795:20;;26761:22;:31;26784:7;26761:31;;;;;;;;;;;;;;;:54;;;;26670:157;24637:14;24654:7;:19;24662:10;24654:19;;;;;;;;;;;;;;;;24637:36;;24697:1;24688:6;:10;24684:176;;;24737:1;24715:7;:19;24723:10;24715:19;;;;;;;;;;;;;;;:23;;;;24753:45;24779:10;24791:6;24753:12;;;;;;;;;;;:25;;;;:45;;;;;:::i;:::-;24829:10;24818:30;;;24841:6;24818:30;;;;;;;;;;;;;;;;;;24684:176;26837:1;22182;20817:13;;20801:12;:29;20793:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24547:320;:::o;22794:112::-;22853:7;22880:9;:18;22890:7;22880:18;;;;;;;;;;;;;;;;22873:25;;22794:112;;;:::o;18866:140::-;18446:12;:10;:12::i;:::-;18436:22;;:6;;;;;;;;;;;:22;;;18428:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18965:1;18928:40;;18949:6;;;;;;;;;;;18928:40;;;;;;;;;;;;18996:1;18979:6;;:19;;;;;;;;;;;;;;;;;;18866:140::o;21736:26::-;;;;;;;;;;;;;:::o;25048:1061::-;18446:12;:10;:12::i;:::-;18436:22;;:6;;;;;;;;;;;:22;;;18428:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25124:1;26589:16;:14;:16::i;:::-;26566:20;:39;;;;26633:26;:24;:26::i;:::-;26616:14;:43;;;;26693:1;26674:21;;:7;:21;;;26670:157;;26731:15;26738:7;26731:6;:15::i;:::-;26712:7;:16;26720:7;26712:16;;;;;;;;;;;;;;;:34;;;;26795:20;;26761:22;:31;26784:7;26761:31;;;;;;;;;;;;;;;:54;;;;26670:157;25162:12;;25143:15;:31;25139:318;;25204:27;25215:15;;25204:6;:10;;:27;;;;:::i;:::-;25191:10;:40;;;;25139:318;;;25264:17;25284:33;25301:15;25284:12;;:16;;:33;;;;:::i;:::-;25264:53;;25332:16;25351:25;25365:10;;25351:9;:13;;:25;;;;:::i;:::-;25332:44;;25404:41;25429:15;;25404:20;25415:8;25404:6;:10;;:20;;;;:::i;:::-;:24;;:41;;;;:::i;:::-;25391:10;:54;;;;25139:318;;;25817:12;25832;;;;;;;;;;;:22;;;25863:4;25832:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25832:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25832:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;25832:37:0;;;;;;;;;;;;;;;;25817:52;;25902:28;25914:15;;25902:7;:11;;:28;;;;:::i;:::-;25888:10;;:42;;25880:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25989:15;25972:14;:32;;;;26030:36;26050:15;;26030;:19;;:36;;;;:::i;:::-;26015:12;:51;;;;26082:19;26094:6;26082:19;;;;;;;;;;;;;;;;;;26837:1;18506;25048:1061;:::o;21807:29::-;;;;:::o;22914:131::-;22971:7;22998:39;23007:15;23024:12;;22998:8;:39::i;:::-;22991:46;;22914:131;:::o;22201:57::-;;;;;;;;;;;;;;;;;:::o;18224:79::-;18262:7;18289:6;;;;;;;;;;;18282:13;;18224:79;:::o;23780:382::-;20722:1;20705:13;;:18;;;;;;;;;;;20734:20;20757:13;;20734:36;;22122:16;;22103:15;:35;;22095:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23859:10;26589:16;:14;:16::i;:::-;26566:20;:39;;;;26633:26;:24;:26::i;:::-;26616:14;:43;;;;26693:1;26674:21;;:7;:21;;;26670:157;;26731:15;26738:7;26731:6;:15::i;:::-;26712:7;:16;26720:7;26712:16;;;;;;;;;;;;;;;:34;;;;26795:20;;26761:22;:31;26784:7;26761:31;;;;;;;;;;;;;;;:54;;;;26670:157;23899:1;23890:6;:10;23882:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23945:24;23962:6;23945:12;;:16;;:24;;;;:::i;:::-;23930:12;:39;;;;24004:33;24030:6;24004:9;:21;24014:10;24004:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;23980:9;:21;23990:10;23980:21;;;;;;;;;;;;;;;:57;;;;24048:64;24078:10;24098:4;24105:6;24048:12;;;;;;;;;;;:29;;;;:64;;;;;;:::i;:::-;24135:10;24128:26;;;24147:6;24128:26;;;;;;;;;;;;;;;;;;22182:1;20817:13;;20801:12;:29;20793:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23780:382;;:::o;21891:29::-;;;;:::o;26117:346::-;18446:12;:10;:12::i;:::-;18436:22;;:6;;;;;;;;;;;:22;;;18428:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26227:12;;26209:15;:30;26201:154;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26384:16;26366:15;:34;;;;26416:39;26439:15;;26416:39;;;;;;;;;;;;;;;;;;26117:346;:::o;23053:330::-;23100:7;23140:1;23124:12;;:17;23120:77;;;23165:20;;23158:27;;;;23120:77;23227:148;23270:90;23347:12;;23270:72;23337:4;23270:62;23321:10;;23270:46;23301:14;;23270:26;:24;:26::i;:::-;:30;;:46;;;;:::i;:::-;:50;;:62;;;;:::i;:::-;:66;;:72;;;;:::i;:::-;:76;;:90;;;;:::i;:::-;23227:20;;:24;;:148;;;;:::i;:::-;23207:168;;23053:330;;:::o;21703:26::-;;;;;;;;;;;;;:::o;21927:35::-;;;;:::o;24875:109::-;22122:16;;22103:15;:35;;22095:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24924:30;24932:9;:21;24942:10;24932:21;;;;;;;;;;;;;;;;24924:7;:30::i;:::-;24965:11;:9;:11::i;:::-;24875:109::o;21769:31::-;;;;:::o;19161:236::-;18446:12;:10;:12::i;:::-;18436:22;;:6;;;;;;;;;;;:22;;;18428:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19262:1;19242:22;;:8;:22;;;;19234:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19352:8;19323:38;;19344:6;;;;;;;;;;;19323:38;;;;;;;;;;;;19381:8;19372:6;;:17;;;;;;;;;;;;;;;;;;19161:236;:::o;21969:44::-;;;;:::o;2090:136::-;2148:7;2175:43;2179:1;2182;2175:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;2168:50;;2090:136;;;;:::o;3006:471::-;3064:7;3314:1;3309;:6;3305:47;;;3339:1;3332:8;;;;3305:47;3364:9;3380:1;3376;:5;3364:17;;3409:1;3404;3400;:5;;;;;;:10;3392:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3468:1;3461:8;;;3006:471;;;;;:::o;3945:132::-;4003:7;4030:39;4034:1;4037;4030:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;4023:46;;3945:132;;;;:::o;1634:181::-;1692:7;1712:9;1728:1;1724;:5;1712:17;;1753:1;1748;:6;;1740:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1806:1;1799:8;;;1634:181;;;;:::o;14198:176::-;14281:85;14300:5;14330;:14;;;:23;;;;14355:2;14359:5;14307:58;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;14307:58:0;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;14307:58:0;14281:18;:85::i;:::-;14198:176;;;:::o;17383:99::-;17429:15;17464:10;17457:17;;17383:99;:::o;377:106::-;435:7;466:1;462;:5;:13;;474:1;462:13;;;470:1;462:13;455:20;;377:106;;;;:::o;14382:204::-;14483:95;14502:5;14532;:18;;;:27;;;;14561:4;14567:2;14571:5;14509:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;14509:68:0;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;14509:68:0;14483:18;:95::i;:::-;14382:204;;;;:::o;2563:192::-;2649:7;2682:1;2677;:6;;2685:12;2669:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;2669:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2709:9;2725:1;2721;:5;2709:17;;2746:1;2739:8;;;2563:192;;;;;:::o;4607:345::-;4693:7;4792:1;4788;:5;4795:12;4780:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;4780:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4819:9;4835:1;4831;:5;;;;;;4819:17;;4943:1;4936:8;;;4607:345;;;;;:::o;16237:1114::-;16841:27;16849:5;16841:25;;;:27::i;:::-;16833:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16978:12;16992:23;17027:5;17019:19;;17039:4;17019:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;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;;;17019: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;;16977:67:0;;;;17063:7;17055:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17144:1;17124:10;:17;:21;17120:224;;;17266:10;17255:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;17255:30:0;;;;;;;;;;;;;;;;17247:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17120:224;16237:1114;;;;:::o;11131:810::-;11191:4;11644:16;11671:19;11693:66;11671:88;;;;11862:7;11850:20;11838:32;;11902:3;11890:15;;:8;:15;;:42;;;;;11921:11;11909:8;:23;;11890:42;11882:51;;;;11131:810;;;:::o
Swarm Source
bzzr://8a70d139b62b47e91548c13be5cb67a8bc36b308f573bbf36e4a99b07bdbe2a6
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.