Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 9,493 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Exit | 16233893 | 654 days ago | IN | 0 ETH | 0.00152698 | ||||
Get Reward | 16233887 | 654 days ago | IN | 0 ETH | 0.00139043 | ||||
Get Reward | 16181516 | 662 days ago | IN | 0 ETH | 0.0012309 | ||||
Exit | 14948109 | 847 days ago | IN | 0 ETH | 0.00498829 | ||||
Exit | 13779763 | 1030 days ago | IN | 0 ETH | 0.00916168 | ||||
Exit | 13727153 | 1038 days ago | IN | 0 ETH | 0.00704228 | ||||
Get Reward | 13541952 | 1068 days ago | IN | 0 ETH | 0.01025612 | ||||
Get Reward | 13386241 | 1092 days ago | IN | 0 ETH | 0.00403064 | ||||
Get Reward | 13362160 | 1096 days ago | IN | 0 ETH | 0.00748792 | ||||
Exit | 13309927 | 1104 days ago | IN | 0 ETH | 0.00346632 | ||||
Exit | 13309927 | 1104 days ago | IN | 0 ETH | 0.00951094 | ||||
Exit | 13214477 | 1119 days ago | IN | 0 ETH | 0.01050945 | ||||
Withdraw | 13145437 | 1130 days ago | IN | 0 ETH | 0.00744648 | ||||
Exit | 12889172 | 1169 days ago | IN | 0 ETH | 0.00094106 | ||||
Exit | 12802220 | 1183 days ago | IN | 0 ETH | 0.00179626 | ||||
Exit | 12750998 | 1191 days ago | IN | 0 ETH | 0.00051325 | ||||
Exit | 12688645 | 1201 days ago | IN | 0 ETH | 0.00191601 | ||||
Exit | 12664707 | 1204 days ago | IN | 0 ETH | 0.00107776 | ||||
Exit | 12644319 | 1208 days ago | IN | 0 ETH | 0.00133446 | ||||
Exit | 12643184 | 1208 days ago | IN | 0 ETH | 0.00119751 | ||||
Exit | 12619990 | 1211 days ago | IN | 0 ETH | 0.00119751 | ||||
Get Reward | 12588893 | 1216 days ago | IN | 0 ETH | 0.00327776 | ||||
Get Reward | 12588893 | 1216 days ago | IN | 0 ETH | 0.00290412 | ||||
Exit | 12579669 | 1218 days ago | IN | 0 ETH | 0.00094106 | ||||
Exit | 12573941 | 1218 days ago | IN | 0 ETH | 0.00128765 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StakingRewards
Compiler Version
v0.6.7+commit.b8d736ae
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.6.7; import "./lib/reentrancy-guard.sol"; import "./lib/pausable.sol"; import "./lib/erc20.sol"; import "./lib/safe-math.sol"; contract StakingRewards is ReentrancyGuard, Pausable { 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 = 7 days; uint256 public lastUpdateTime; uint256 public rewardPerTokenStored; mapping(address => uint256) public userRewardPerTokenPaid; mapping(address => uint256) public rewards; uint256 private _totalSupply; mapping(address => uint256) private _balances; /* ========== CONSTRUCTOR ========== */ constructor( address _owner, address _rewardsToken, address _stakingToken ) public Owned(_owner) { 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 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); } function min(uint256 a, uint256 b) public pure returns (uint256) { return a < b ? a : b; } /* ========== MUTATIVE FUNCTIONS ========== */ function stake(uint256 amount) external nonReentrant notPaused 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 withdraw(uint256 amount) public nonReentrant 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 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 { withdraw(_balances[msg.sender]); getReward(); } /* ========== RESTRICTED FUNCTIONS ========== */ function notifyRewardAmount(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. uint256 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); } // Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner { // Cannot recover the staking token or the rewards token require( tokenAddress != address(stakingToken) && tokenAddress != address(rewardsToken), "Cannot withdraw the staking or rewards tokens" ); IERC20(tokenAddress).safeTransfer(owner, tokenAmount); emit Recovered(tokenAddress, tokenAmount); } 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
pragma solidity ^0.6.7; // Inheritance import "./owned.sol"; // https://docs.synthetix.io/contracts/Pausable abstract contract Pausable is Owned { uint256 public lastPauseTime; bool public paused; constructor() internal { // This contract is abstract, and thus cannot be instantiated directly require(owner != address(0), "Owner must be set"); // Paused will be false, and lastPauseTime will be 0 upon initialisation } /** * @notice Change the paused state of the contract * @dev Only the contract owner may call this. */ function setPaused(bool _paused) external onlyOwner { // Ensure we're actually changing the state before we do anything if (_paused == paused) { return; } // Set our paused state. paused = _paused; // If applicable, set the last pause time. if (paused) { lastPauseTime = now; } // Let everyone know that our pause state has changed. emit PauseChanged(paused); } event PauseChanged(bool isPaused); modifier notPaused { require( !paused, "This action cannot be performed while the contract is paused" ); _; } }
pragma solidity ^0.6.7; // 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 { _onlyOwner(); _; } function _onlyOwner() private view { require( msg.sender == owner, "Only the contract owner may perform this action" ); } event OwnerNominated(address newOwner); event OwnerChanged(address oldOwner, address newOwner); }
// File: contracts/GSN/Context.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "./safe-math.sol"; import "./context.sol"; // File: contracts/token/ERC20/IERC20.sol /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: contracts/utils/Address.sol /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: contracts/token/ERC20/ERC20.sol /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @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. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * 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 See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, 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. */ 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. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { 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. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
{ "metadata": { "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"}],"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":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"PauseChanged","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"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPauseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"name":"min","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600655600060075562093a8060085534801561002157600080fd5b506040516118e73803806118e78339818101604052606081101561004457600080fd5b50805160208201516040909201516001600055909190826001600160a01b0381166100b6576040805162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040805160008152602081019290925280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a1506001546001600160a01b0316610162576040805162461bcd60e51b815260206004820152601160248201527013dddb995c881b5d5cdd081899481cd95d607a1b604482015290519081900360640190fd5b60048054610100600160a81b0319166101006001600160a01b0394851602179055600580546001600160a01b031916919092161790555061173f806101a86000396000f3fe608060405234801561001057600080fd5b50600436106101d95760003560e01c80637ae2b5c711610104578063a694fc3a116100a2578063d1af0c7d11610071578063d1af0c7d14610432578063df136d651461043a578063e9fad8ee14610442578063ebe2b12b1461044a576101d9565b8063a694fc3a146103e8578063c8f33c9114610405578063cc1a378f1461040d578063cd3daf9d1461042a576101d9565b80638980f11f116100de5780638980f11f146103865780638b876347146103b25780638da5cb5b146103d857806391b4ded9146103e0576101d9565b80637ae2b5c7146103535780637b0a47ee1461037657806380faa57d1461037e576101d9565b8063386a95251161017c5780635c975abb1161014b5780635c975abb1461030157806370a082311461031d57806372f702f31461034357806379ba50971461034b576101d9565b8063386a9525146102b05780633c6b16ab146102b85780633d18b912146102d557806353a47bb7146102dd576101d9565b806316c38b3c116101b857806316c38b3c1461026457806318160ddd146102835780631c1f78eb1461028b5780632e1a7d4d14610293576101d9565b80628cc262146101de5780630700037d146102165780631627540c1461023c575b600080fd5b610204600480360360208110156101f457600080fd5b50356001600160a01b0316610452565b60408051918252519081900360200190f35b6102046004803603602081101561022c57600080fd5b50356001600160a01b03166104e8565b6102626004803603602081101561025257600080fd5b50356001600160a01b03166104fa565b005b6102626004803603602081101561027a57600080fd5b50351515610556565b6102046105d0565b6102046105d7565b610262600480360360208110156102a957600080fd5b50356105f5565b610204610797565b610262600480360360208110156102ce57600080fd5b503561079d565b6102626109b5565b6102e5610af6565b604080516001600160a01b039092168252519081900360200190f35b610309610b05565b604080519115158252519081900360200190f35b6102046004803603602081101561033357600080fd5b50356001600160a01b0316610b0e565b6102e5610b29565b610262610b38565b6102046004803603604081101561036957600080fd5b5080359060200135610bf4565b610204610c0c565b610204610c12565b6102626004803603604081101561039c57600080fd5b506001600160a01b038135169060200135610c20565b610204600480360360208110156103c857600080fd5b50356001600160a01b0316610cfc565b6102e5610d0e565b610204610d1d565b610262600480360360208110156103fe57600080fd5b5035610d23565b610204610f05565b6102626004803603602081101561042357600080fd5b5035610f0b565b610204610f8e565b6102e5610fe8565b610204610ffc565b610262611002565b610204611025565b6001600160a01b0381166000908152600c6020908152604080832054600b9092528220546104e291906104d690670de0b6b3a7640000906104ca906104a590610499610f8e565b9063ffffffff61102b16565b6001600160a01b0388166000908152600e60205260409020549063ffffffff61106d16565b9063ffffffff6110c616565b9063ffffffff61110816565b92915050565b600c6020526000908152604090205481565b610502611162565b600280546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b61055e611162565b60045460ff1615158115151415610574576105cd565b6004805460ff1916821515179081905560ff161561059157426003555b6004546040805160ff90921615158252517f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59181900360200190a15b50565b600d545b90565b60006105f060085460075461106d90919063ffffffff16565b905090565b6002600054141561064d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026000553361065b610f8e565b600a55610666610c12565b6009556001600160a01b038116156106ad5761068181610452565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b600082116106f6576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b600d54610709908363ffffffff61102b16565b600d55336000908152600e602052604090205461072c908363ffffffff61102b16565b336000818152600e6020526040902091909155600554610758916001600160a01b0390911690846111ab565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250506001600055565b60085481565b6107a5611162565b60006107af610f8e565b600a556107ba610c12565b6009556001600160a01b03811615610801576107d581610452565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b60065442106108265760085461081e90839063ffffffff6110c616565b600755610875565b60065460009061083c904263ffffffff61102b16565b905060006108556007548361106d90919063ffffffff16565b60085490915061086f906104ca868463ffffffff61110816565b60075550505b60048054604080516370a0823160e01b81523093810193909352516000926101009092046001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156108c857600080fd5b505afa1580156108dc573d6000803e3d6000fd5b505050506040513d60208110156108f257600080fd5b505160085490915061090b90829063ffffffff6110c616565b6007541115610961576040805162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015290519081900360640190fd5b42600981905560085461097a919063ffffffff61110816565b6006556040805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050565b60026000541415610a0d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005533610a1b610f8e565b600a55610a26610c12565b6009556001600160a01b03811615610a6d57610a4181610452565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b336000908152600c60205260409020548015610aed57336000818152600c6020526040812055600454610ab6916101009091046001600160a01b0316908363ffffffff6111ab16565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b50506001600055565b6002546001600160a01b031681565b60045460ff1681565b6001600160a01b03166000908152600e602052604090205490565b6005546001600160a01b031681565b6002546001600160a01b03163314610b815760405162461bcd60e51b81526004018080602001828103825260358152602001806115f26035913960400191505060405180910390fd5b600154600254604080516001600160a01b03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160028054600180546001600160a01b03199081166001600160a01b03841617909155169055565b6000818310610c035781610c05565b825b9392505050565b60075481565b60006105f042600654610bf4565b610c28611162565b6005546001600160a01b03838116911614801590610c5957506004546001600160a01b038381166101009092041614155b610c945760405162461bcd60e51b815260040180806020018281038252602d8152602001806116b3602d913960400191505060405180910390fd5b600154610cb4906001600160a01b0384811691168363ffffffff6111ab16565b604080516001600160a01b03841681526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a15050565b600b6020526000908152604090205481565b6001546001600160a01b031681565b60035481565b60026000541415610d7b576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005560045460ff1615610dc25760405162461bcd60e51b815260040180806020018281038252603c815260200180611677603c913960400191505060405180910390fd5b33610dcb610f8e565b600a55610dd6610c12565b6009556001600160a01b03811615610e1d57610df181610452565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b60008211610e63576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600d54610e76908363ffffffff61110816565b600d55336000908152600e6020526040902054610e99908363ffffffff61110816565b336000818152600e6020526040902091909155600554610ec6916001600160a01b03909116903085611202565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250506001600055565b60095481565b610f13611162565b6006544211610f535760405162461bcd60e51b815260040180806020018281038252605881526020018061159a6058913960600191505060405180910390fd5b60088190556040805182815290517ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39181900360200190a150565b6000600d5460001415610fa45750600a546105d4565b6105f0610fd9600d546104ca670de0b6b3a7640000610fcd600754610fcd600954610499610c12565b9063ffffffff61106d16565b600a549063ffffffff61110816565b60045461010090046001600160a01b031681565b600a5481565b336000908152600e602052604090205461101b906105f5565b6110236109b5565b565b60065481565b6000610c0583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611262565b60008261107c575060006104e2565b8282028284828161108957fe5b0414610c055760405162461bcd60e51b81526004018080602001828103825260218152602001806116566021913960400191505060405180910390fd5b6000610c0583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506112f9565b600082820183811015610c05576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001546001600160a01b031633146110235760405162461bcd60e51b815260040180806020018281038252602f815260200180611627602f913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526111fd90849061135e565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261125c90859061135e565b50505050565b600081848411156112f15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156112b657818101518382015260200161129e565b50505050905090810190601f1680156112e35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836113485760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156112b657818101518382015260200161129e565b50600083858161135457fe5b0495945050505050565b60606113b3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661140f9092919063ffffffff16565b8051909150156111fd578080602001905160208110156113d257600080fd5b50516111fd5760405162461bcd60e51b815260040180806020018281038252602a8152602001806116e0602a913960400191505060405180910390fd5b606061141e8484600085611426565b949350505050565b606061143185611593565b611482576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106114c15780518252601f1990920191602091820191016114a2565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611523576040519150601f19603f3d011682016040523d82523d6000602084013e611528565b606091505b5091509150811561153c57915061141e9050565b80511561154c5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156112b657818101518382015260200161129e565b3b15159056fe50726576696f7573207265776172647320706572696f64206d75737420626520636f6d706c657465206265666f7265206368616e67696e6720746865206475726174696f6e20666f7220746865206e657720706572696f64596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e6572736869704f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e74726163742069732070617573656443616e6e6f7420776974686472617720746865207374616b696e67206f72207265776172647320746f6b656e735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220f1d2e6a5dc469bda1ba279e67be5449f33c48d6532b90780f006b5fd4081782164736f6c63430006070033000000000000000000000000066419eaef5de53cc5da0d8702b990c5bc7d1ab3000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000429881672b9ae42b8eba0e26cd9c73711b891ca5
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101d95760003560e01c80637ae2b5c711610104578063a694fc3a116100a2578063d1af0c7d11610071578063d1af0c7d14610432578063df136d651461043a578063e9fad8ee14610442578063ebe2b12b1461044a576101d9565b8063a694fc3a146103e8578063c8f33c9114610405578063cc1a378f1461040d578063cd3daf9d1461042a576101d9565b80638980f11f116100de5780638980f11f146103865780638b876347146103b25780638da5cb5b146103d857806391b4ded9146103e0576101d9565b80637ae2b5c7146103535780637b0a47ee1461037657806380faa57d1461037e576101d9565b8063386a95251161017c5780635c975abb1161014b5780635c975abb1461030157806370a082311461031d57806372f702f31461034357806379ba50971461034b576101d9565b8063386a9525146102b05780633c6b16ab146102b85780633d18b912146102d557806353a47bb7146102dd576101d9565b806316c38b3c116101b857806316c38b3c1461026457806318160ddd146102835780631c1f78eb1461028b5780632e1a7d4d14610293576101d9565b80628cc262146101de5780630700037d146102165780631627540c1461023c575b600080fd5b610204600480360360208110156101f457600080fd5b50356001600160a01b0316610452565b60408051918252519081900360200190f35b6102046004803603602081101561022c57600080fd5b50356001600160a01b03166104e8565b6102626004803603602081101561025257600080fd5b50356001600160a01b03166104fa565b005b6102626004803603602081101561027a57600080fd5b50351515610556565b6102046105d0565b6102046105d7565b610262600480360360208110156102a957600080fd5b50356105f5565b610204610797565b610262600480360360208110156102ce57600080fd5b503561079d565b6102626109b5565b6102e5610af6565b604080516001600160a01b039092168252519081900360200190f35b610309610b05565b604080519115158252519081900360200190f35b6102046004803603602081101561033357600080fd5b50356001600160a01b0316610b0e565b6102e5610b29565b610262610b38565b6102046004803603604081101561036957600080fd5b5080359060200135610bf4565b610204610c0c565b610204610c12565b6102626004803603604081101561039c57600080fd5b506001600160a01b038135169060200135610c20565b610204600480360360208110156103c857600080fd5b50356001600160a01b0316610cfc565b6102e5610d0e565b610204610d1d565b610262600480360360208110156103fe57600080fd5b5035610d23565b610204610f05565b6102626004803603602081101561042357600080fd5b5035610f0b565b610204610f8e565b6102e5610fe8565b610204610ffc565b610262611002565b610204611025565b6001600160a01b0381166000908152600c6020908152604080832054600b9092528220546104e291906104d690670de0b6b3a7640000906104ca906104a590610499610f8e565b9063ffffffff61102b16565b6001600160a01b0388166000908152600e60205260409020549063ffffffff61106d16565b9063ffffffff6110c616565b9063ffffffff61110816565b92915050565b600c6020526000908152604090205481565b610502611162565b600280546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b61055e611162565b60045460ff1615158115151415610574576105cd565b6004805460ff1916821515179081905560ff161561059157426003555b6004546040805160ff90921615158252517f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59181900360200190a15b50565b600d545b90565b60006105f060085460075461106d90919063ffffffff16565b905090565b6002600054141561064d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026000553361065b610f8e565b600a55610666610c12565b6009556001600160a01b038116156106ad5761068181610452565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b600082116106f6576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b600d54610709908363ffffffff61102b16565b600d55336000908152600e602052604090205461072c908363ffffffff61102b16565b336000818152600e6020526040902091909155600554610758916001600160a01b0390911690846111ab565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250506001600055565b60085481565b6107a5611162565b60006107af610f8e565b600a556107ba610c12565b6009556001600160a01b03811615610801576107d581610452565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b60065442106108265760085461081e90839063ffffffff6110c616565b600755610875565b60065460009061083c904263ffffffff61102b16565b905060006108556007548361106d90919063ffffffff16565b60085490915061086f906104ca868463ffffffff61110816565b60075550505b60048054604080516370a0823160e01b81523093810193909352516000926101009092046001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156108c857600080fd5b505afa1580156108dc573d6000803e3d6000fd5b505050506040513d60208110156108f257600080fd5b505160085490915061090b90829063ffffffff6110c616565b6007541115610961576040805162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015290519081900360640190fd5b42600981905560085461097a919063ffffffff61110816565b6006556040805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050565b60026000541415610a0d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005533610a1b610f8e565b600a55610a26610c12565b6009556001600160a01b03811615610a6d57610a4181610452565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b336000908152600c60205260409020548015610aed57336000818152600c6020526040812055600454610ab6916101009091046001600160a01b0316908363ffffffff6111ab16565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b50506001600055565b6002546001600160a01b031681565b60045460ff1681565b6001600160a01b03166000908152600e602052604090205490565b6005546001600160a01b031681565b6002546001600160a01b03163314610b815760405162461bcd60e51b81526004018080602001828103825260358152602001806115f26035913960400191505060405180910390fd5b600154600254604080516001600160a01b03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160028054600180546001600160a01b03199081166001600160a01b03841617909155169055565b6000818310610c035781610c05565b825b9392505050565b60075481565b60006105f042600654610bf4565b610c28611162565b6005546001600160a01b03838116911614801590610c5957506004546001600160a01b038381166101009092041614155b610c945760405162461bcd60e51b815260040180806020018281038252602d8152602001806116b3602d913960400191505060405180910390fd5b600154610cb4906001600160a01b0384811691168363ffffffff6111ab16565b604080516001600160a01b03841681526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a15050565b600b6020526000908152604090205481565b6001546001600160a01b031681565b60035481565b60026000541415610d7b576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005560045460ff1615610dc25760405162461bcd60e51b815260040180806020018281038252603c815260200180611677603c913960400191505060405180910390fd5b33610dcb610f8e565b600a55610dd6610c12565b6009556001600160a01b03811615610e1d57610df181610452565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b60008211610e63576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600d54610e76908363ffffffff61110816565b600d55336000908152600e6020526040902054610e99908363ffffffff61110816565b336000818152600e6020526040902091909155600554610ec6916001600160a01b03909116903085611202565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250506001600055565b60095481565b610f13611162565b6006544211610f535760405162461bcd60e51b815260040180806020018281038252605881526020018061159a6058913960600191505060405180910390fd5b60088190556040805182815290517ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39181900360200190a150565b6000600d5460001415610fa45750600a546105d4565b6105f0610fd9600d546104ca670de0b6b3a7640000610fcd600754610fcd600954610499610c12565b9063ffffffff61106d16565b600a549063ffffffff61110816565b60045461010090046001600160a01b031681565b600a5481565b336000908152600e602052604090205461101b906105f5565b6110236109b5565b565b60065481565b6000610c0583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611262565b60008261107c575060006104e2565b8282028284828161108957fe5b0414610c055760405162461bcd60e51b81526004018080602001828103825260218152602001806116566021913960400191505060405180910390fd5b6000610c0583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506112f9565b600082820183811015610c05576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001546001600160a01b031633146110235760405162461bcd60e51b815260040180806020018281038252602f815260200180611627602f913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526111fd90849061135e565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261125c90859061135e565b50505050565b600081848411156112f15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156112b657818101518382015260200161129e565b50505050905090810190601f1680156112e35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836113485760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156112b657818101518382015260200161129e565b50600083858161135457fe5b0495945050505050565b60606113b3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661140f9092919063ffffffff16565b8051909150156111fd578080602001905160208110156113d257600080fd5b50516111fd5760405162461bcd60e51b815260040180806020018281038252602a8152602001806116e0602a913960400191505060405180910390fd5b606061141e8484600085611426565b949350505050565b606061143185611593565b611482576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106114c15780518252601f1990920191602091820191016114a2565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611523576040519150601f19603f3d011682016040523d82523d6000602084013e611528565b606091505b5091509150811561153c57915061141e9050565b80511561154c5780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156112b657818101518382015260200161129e565b3b15159056fe50726576696f7573207265776172647320706572696f64206d75737420626520636f6d706c657465206265666f7265206368616e67696e6720746865206475726174696f6e20666f7220746865206e657720706572696f64596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e6572736869704f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e74726163742069732070617573656443616e6e6f7420776974686472617720746865207374616b696e67206f72207265776172647320746f6b656e735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220f1d2e6a5dc469bda1ba279e67be5449f33c48d6532b90780f006b5fd4081782164736f6c63430006070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000066419eaef5de53cc5da0d8702b990c5bc7d1ab3000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000429881672b9ae42b8eba0e26cd9c73711b891ca5
-----Decoded View---------------
Arg [0] : _owner (address): 0x066419EaEf5DE53cc5da0d8702b990c5bc7D1AB3
Arg [1] : _rewardsToken (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [2] : _stakingToken (address): 0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000066419eaef5de53cc5da0d8702b990c5bc7d1ab3
Arg [1] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [2] : 000000000000000000000000429881672b9ae42b8eba0e26cd9c73711b891ca5
Deployed Bytecode Sourcemap
181:6315:6:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;181:6315:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;1879:259:6;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;1879:259:6;-1:-1:-1;;;;;1879:259:6;;:::i;:::-;;;;;;;;;;;;;;;;675:42;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;675:42:6;-1:-1:-1;;;;;675:42:6;;:::i;340:138:2:-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;340:138:2;-1:-1:-1;;;;;340:138:2;;:::i;:::-;;589:472:3;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;589:472:3;;;;:::i;1124:91:6:-;;;:::i;2144:119::-;;;:::i;2844:379::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;2844:379:6;;:::i;490:39::-;;;:::i;3689:1115::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;3689:1115:6;;:::i;3229:300::-;;;:::i;117:29:2:-;;;:::i;:::-;;;;-1:-1:-1;;;;;117:29:2;;;;;;;;;;;;;;187:18:3;;;:::i;:::-;;;;;;;;;;;;;;;;;;1221:110:6;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;1221:110:6;-1:-1:-1;;;;;1221:110:6;;:::i;386:26::-;;;:::i;484:300:2:-;;;:::i;2269:102:6:-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;2269:102:6;;;;;;;:::i;455:29::-;;;:::i;1337:124::-;;;:::i;4916:486::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;4916:486:6;;;;;;;;:::i;612:57::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;612:57:6;-1:-1:-1;;;;;612:57:6;;:::i;91:20:2:-;;;:::i;153:28:3:-;;;:::i;2429:409:6:-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;2429:409:6;;:::i;535:29::-;;;:::i;5408:353::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;5408:353:6;;:::i;1467:406::-;;;:::i;354:26::-;;;:::i;570:35::-;;;:::i;3535:94::-;;;:::i;418:31::-;;;:::i;1879:259::-;-1:-1:-1;;;;;2114:16:6;;1933:7;2114:16;;;:7;:16;;;;;;;;;2032:22;:31;;;;;;1971:160;;2114:16;1971:121;;2087:4;;1971:94;;2011:53;;:16;:14;:16::i;:::-;:20;:53;:20;:53;:::i;:::-;-1:-1:-1;;;;;1971:18:6;;;;;;:9;:18;;;;;;;:94;:39;:94;:::i;:::-;:115;:121;:115;:121;:::i;:::-;:142;:160;:142;:160;:::i;:::-;1952:179;1879:259;-1:-1:-1;;1879:259:6:o;675:42::-;;;;;;;;;;;;;:::o;340:138:2:-;819:12;:10;:12::i;:::-;411:14:::1;:23:::0;;-1:-1:-1;;;;;411:23:2;::::1;-1:-1:-1::0;;;;;;411:23:2;;::::1;::::0;::::1;::::0;;;449:22:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;340:138:::0;:::o;589:472:3:-;819:12:2;:10;:12::i;:::-;740:6:3::1;::::0;::::1;;729:17;;::::0;::::1;;;725:54;;;762:7;;725:54;822:6;:16:::0;;-1:-1:-1;;822:16:3::1;::::0;::::1;;;::::0;;;;::::1;904:6;900:56;;;942:3;926:13;:19:::0;900:56:::1;1047:6;::::0;1034:20:::1;::::0;;1047:6:::1;::::0;;::::1;1034:20;;::::0;;;::::1;::::0;;;;::::1;::::0;;::::1;841:1:2;589:472:3::0;:::o;1124:91:6:-;1196:12;;1124:91;;:::o;2144:119::-;2199:7;2225:31;2240:15;;2225:10;;:14;;:31;;;;:::i;:::-;2218:38;;2144:119;:::o;2844:379::-;1671:1:4;2260:7;;:19;;2252:63;;;;;-1:-1:-1;;;2252:63:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;1671:1;2390:7;:18;2935:10:6::1;5882:16;:14;:16::i;:::-;5859:20;:39:::0;5925:26:::1;:24;:26::i;:::-;5908:14;:43:::0;-1:-1:-1;;;;;5965:21:6;::::1;::::0;5961:154:::1;;6021:15;6028:7;6021:6;:15::i;:::-;-1:-1:-1::0;;;;;6002:16:6;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;6084:20:::1;::::0;6050:22:::1;:31:::0;;;;;;:54;5961:154:::1;2978:1:::2;2969:6;:10;2961:40;;;::::0;;-1:-1:-1;;;2961:40:6;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;2961:40:6;;;;;;;;;;;;;::::2;;3026:12;::::0;:24:::2;::::0;3043:6;3026:24:::2;:16;:24;:::i;:::-;3011:12;:39:::0;3094:10:::2;3084:21;::::0;;;:9:::2;:21;::::0;;;;;:33:::2;::::0;3110:6;3084:33:::2;:25;:33;:::i;:::-;3070:10;3060:21;::::0;;;:9:::2;:21;::::0;;;;:57;;;;3127:12:::2;::::0;:45:::2;::::0;-1:-1:-1;;;;;3127:12:6;;::::2;::::0;3165:6;3127:25:::2;:45::i;:::-;3187:29;::::0;;;;;;;3197:10:::2;::::0;3187:29:::2;::::0;;;;;::::2;::::0;;::::2;-1:-1:-1::0;;1628:1:4;2563:7;:22;2844:379:6:o;490:39::-;;;;:::o;3689:1115::-;819:12:2;:10;:12::i;:::-;3797:1:6::1;5882:16;:14;:16::i;:::-;5859:20;:39:::0;5925:26:::1;:24;:26::i;:::-;5908:14;:43:::0;-1:-1:-1;;;;;5965:21:6;::::1;::::0;5961:154:::1;;6021:15;6028:7;6021:6;:15::i;:::-;-1:-1:-1::0;;;;;6002:16:6;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;6084:20:::1;::::0;6050:22:::1;:31:::0;;;;;;:54;5961:154:::1;3838:12:::2;;3819:15;:31;3815:312;;3890:15;::::0;3879:27:::2;::::0;:6;;:27:::2;:10;:27;:::i;:::-;3866:10;:40:::0;3815:312:::2;;;3957:12;::::0;3937:17:::2;::::0;3957:33:::2;::::0;3974:15:::2;3957:33;:16;:33;:::i;:::-;3937:53;;4004:16;4023:25;4037:10;;4023:9;:13;;:25;;;;:::i;:::-;4100:15;::::0;4004:44;;-1:-1:-1;4075:41:6::2;::::0;:20:::2;:6:::0;4004:44;4075:20:::2;:10;:20;:::i;:41::-;4062:10;:54:::0;-1:-1:-1;;3815:312:6::2;4499:12;::::0;;:37:::2;::::0;;-1:-1:-1;;;4499:37:6;;4530:4:::2;4499:37:::0;;::::2;::::0;;;;;-1:-1:-1;;4499:12:6::2;::::0;;::::2;-1:-1:-1::0;;;;;4499:12:6::2;::::0;:22:::2;::::0;:37;;;;;::::2;::::0;;;;;;;;:12;:37;::::2;;2:2:-1::0;::::2;;;27:1;24::::0;17:12:::2;2:2;4499:37:6;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;4499:37:6;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::2;4:2;-1:-1:::0;4499:37:6;4593:15:::2;::::0;4499:37;;-1:-1:-1;4581:28:6::2;::::0;4499:37;;4581:28:::2;:11;:28;:::i;:::-;4567:10;;:42;;4546:113;;;::::0;;-1:-1:-1;;;4546:113:6;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;4687:15;4670:14;:32:::0;;;4747:15:::2;::::0;4727:36:::2;::::0;4687:15;4727:36:::2;:19;:36;:::i;:::-;4712:12;:51:::0;4778:19:::2;::::0;;;;;;;::::2;::::0;;;;::::2;::::0;;::::2;6124:1;841::2::1;3689:1115:6::0;:::o;3229:300::-;1671:1:4;2260:7;;:19;;2252:63;;;;;-1:-1:-1;;;2252:63:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;1671:1;2390:7;:18;3283:10:6::1;5882:16;:14;:16::i;:::-;5859:20;:39:::0;5925:26:::1;:24;:26::i;:::-;5908:14;:43:::0;-1:-1:-1;;;;;5965:21:6;::::1;::::0;5961:154:::1;;6021:15;6028:7;6021:6;:15::i;:::-;-1:-1:-1::0;;;;;6002:16:6;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;6084:20:::1;::::0;6050:22:::1;:31:::0;;;;;;:54;5961:154:::1;3330:10:::2;3305:14;3322:19:::0;;;:7:::2;:19;::::0;;;;;3355:10;;3351:172:::2;;3389:10;3403:1;3381:19:::0;;;:7:::2;:19;::::0;;;;:23;3418:12:::2;::::0;:45:::2;::::0;:12:::2;::::0;;::::2;-1:-1:-1::0;;;;;3418:12:6::2;::::0;3456:6;3418:45:::2;:25;:45;:::i;:::-;3482:30;::::0;;;;;;;3493:10:::2;::::0;3482:30:::2;::::0;;;;;::::2;::::0;;::::2;3351:172;-1:-1:-1::0;;1628:1:4;2563:7;:22;3229:300:6:o;117:29:2:-;;;-1:-1:-1;;;;;117:29:2;;:::o;187:18:3:-;;;;;;:::o;1221:110:6:-;-1:-1:-1;;;;;1306:18:6;1280:7;1306:18;;;:9;:18;;;;;;;1221:110::o;386:26::-;;;-1:-1:-1;;;;;386:26:6;;:::o;484:300:2:-;565:14;;-1:-1:-1;;;;;565:14:2;551:10;:28;530:128;;;;-1:-1:-1;;;530:128:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;686:5;;693:14;;673:35;;;-1:-1:-1;;;;;686:5:2;;;673:35;;693:14;;;;673:35;;;;;;;;;;;;;;;;726:14;;;;718:22;;-1:-1:-1;;;;;;718:22:2;;;-1:-1:-1;;;;;726:14:2;;718:22;;;;750:27;;;484:300::o;2269:102:6:-;2325:7;2355:1;2351;:5;:13;;2363:1;2351:13;;;2359:1;2351:13;2344:20;2269:102;-1:-1:-1;;;2269:102:6:o;455:29::-;;;;:::o;1337:124::-;1394:7;1420:34;1424:15;1441:12;;1420:3;:34::i;4916:486::-;819:12:2;:10;:12::i;:::-;5140::6::1;::::0;-1:-1:-1;;;;;5116:37:6;;::::1;5140:12:::0;::::1;5116:37;::::0;::::1;::::0;:94:::1;;-1:-1:-1::0;5197:12:6::1;::::0;-1:-1:-1;;;;;5173:37:6;;::::1;5197:12;::::0;;::::1;;5173:37;;5116:94;5095:186;;;;-1:-1:-1::0;;;5095:186:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5325:5;::::0;5291:53:::1;::::0;-1:-1:-1;;;;;5291:33:6;;::::1;::::0;5325:5:::1;5332:11:::0;5291:53:::1;:33;:53;:::i;:::-;5359:36;::::0;;-1:-1:-1;;;;;5359:36:6;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;4916:486:::0;;:::o;612:57::-;;;;;;;;;;;;;:::o;91:20:2:-;;;-1:-1:-1;;;;;91:20:2;;:::o;153:28:3:-;;;;:::o;2429:409:6:-;1671:1:4;2260:7;;:19;;2252:63;;;;;-1:-1:-1;;;2252:63:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;1671:1;2390:7;:18;1158:6:3::1;::::0;::::1;;1157:7;1136:114;;;;-1:-1:-1::0;;;1136:114:3::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2537:10:6::2;5882:16;:14;:16::i;:::-;5859:20;:39:::0;5925:26:::2;:24;:26::i;:::-;5908:14;:43:::0;-1:-1:-1;;;;;5965:21:6;::::2;::::0;5961:154:::2;;6021:15;6028:7;6021:6;:15::i;:::-;-1:-1:-1::0;;;;;6002:16:6;::::2;;::::0;;;:7:::2;:16;::::0;;;;;;;:34;;;;6084:20:::2;::::0;6050:22:::2;:31:::0;;;;;;:54;5961:154:::2;2580:1:::3;2571:6;:10;2563:37;;;::::0;;-1:-1:-1;;;2563:37:6;;::::3;;::::0;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;2563:37:6;;;;;;;;;;;;;::::3;;2625:12;::::0;:24:::3;::::0;2642:6;2625:24:::3;:16;:24;:::i;:::-;2610:12;:39:::0;2693:10:::3;2683:21;::::0;;;:9:::3;:21;::::0;;;;;:33:::3;::::0;2709:6;2683:33:::3;:25;:33;:::i;:::-;2669:10;2659:21;::::0;;;:9:::3;:21;::::0;;;;:57;;;;2726:12:::3;::::0;:64:::3;::::0;-1:-1:-1;;;;;2726:12:6;;::::3;::::0;2776:4:::3;2783:6:::0;2726:29:::3;:64::i;:::-;2805:26;::::0;;;;;;;2812:10:::3;::::0;2805:26:::3;::::0;;;;;::::3;::::0;;::::3;-1:-1:-1::0;;1628:1:4;2563:7;:22;2429:409:6:o;535:29::-;;;;:::o;5408:353::-;819:12:2;:10;:12::i;:::-;5530::6::1;;5512:15;:30;5491:165;;;;-1:-1:-1::0;;;5491:165:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5666:15;:34:::0;;;5715:39:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;5408:353:::0;:::o;1467:406::-;1514:7;1537:12;;1553:1;1537:17;1533:75;;;-1:-1:-1;1577:20:6;;1570:27;;1533:75;1636:230;1678:174;1839:12;;1678:135;1808:4;1678:104;1771:10;;1678:67;1730:14;;1678:26;:24;:26::i;:67::-;:92;:104;:92;:104;:::i;:174::-;1636:20;;;:230;:24;:230;:::i;354:26::-;;;;;;-1:-1:-1;;;;;354:26:6;;:::o;570:35::-;;;;:::o;3535:94::-;3589:10;3579:21;;;;:9;:21;;;;;;3570:31;;:8;:31::i;:::-;3611:11;:9;:11::i;:::-;3535:94::o;418:31::-;;;;:::o;1321:134:5:-;1379:7;1405:43;1409:1;1412;1405:43;;;;;;;;;;;;;;;;;:3;:43::i;2180:459::-;2238:7;2479:6;2475:45;;-1:-1:-1;2508:1:5;2501:8;;2475:45;2542:5;;;2546:1;2542;:5;:1;2565:5;;;;;:10;2557:56;;;;-1:-1:-1;;;2557:56:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3101:130;3159:7;3185:39;3189:1;3192;3185:39;;;;;;;;;;;;;;;;;:3;:39::i;874:176::-;932:7;963:5;;;986:6;;;;978:46;;;;;-1:-1:-1;;;978:46:5;;;;;;;;;;;;;;;;;;;;;;;;;;;855:165:2;935:5;;-1:-1:-1;;;;;935:5:2;921:10;:19;900:113;;;;-1:-1:-1;;;900:113:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19889:175:1;19998:58;;;-1:-1:-1;;;;;19998:58:1;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;19998:58:1;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;19971:86:1;;19991:5;;19971:19;:86::i;:::-;19889:175;;;:::o;20070:203::-;20197:68;;;-1:-1:-1;;;;;20197:68:1;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;20197:68:1;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;20170:96:1;;20190:5;;20170:19;:96::i;:::-;20070:203;;;;:::o;1746:187:5:-;1832:7;1867:12;1859:6;;;;1851:29;;;;-1:-1:-1;;;1851:29:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;1851:29:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1902:5:5;;;1746:187::o;3713:272::-;3799:7;3833:12;3826:5;3818:28;;;;-1:-1:-1;;;3818:28:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;3818:28:5;;3856:9;3872:1;3868;:5;;;;;;;3713:272;-1:-1:-1;;;;;3713:272:5:o;22152:751:1:-;22571:23;22597:69;22625:4;22597:69;;;;;;;;;;;;;;;;;22605:5;-1:-1:-1;;;;;22597:27:1;;;:69;;;;;:::i;:::-;22680:17;;22571:95;;-1:-1:-1;22680:21:1;22676:221;;22820:10;22809:30;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;22809:30:1;22801:85;;;;-1:-1:-1;;;22801:85:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6383:194;6486:12;6517:53;6540:6;6548:4;6554:1;6557:12;6517:22;:53::i;:::-;6510:60;6383:194;-1:-1:-1;;;;6383:194:1:o;7730:958::-;7860:12;7892:18;7903:6;7892:10;:18::i;:::-;7884:60;;;;;-1:-1:-1;;;7884:60:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;8015:12;8029:23;8056:6;-1:-1:-1;;;;;8056:11:1;8076:8;8087:4;8056:36;;;;;;;;;;;;;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;;;8056:36:1;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;8014:78:1;;;;8106:7;8102:580;;;8136:10;-1:-1:-1;8129:17:1;;-1:-1:-1;8129:17:1;8102:580;8247:17;;:21;8243:429;;8505:10;8499:17;8565:15;8552:10;8548:2;8544:19;8537:44;8454:145;8637:20;;-1:-1:-1;;;8637:20:1;;;;;;;;;;;;;;;;;8644:12;;8637:20;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;3528:413:1;3888:20;3926:8;;;3528:413::o
Swarm Source
ipfs://f1d2e6a5dc469bda1ba279e67be5449f33c48d6532b90780f006b5fd40817821
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.